Index: openacs-4/packages/theme-zen/tcl/apm-callback-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/theme-zen/tcl/apm-callback-procs.tcl,v diff -u -r1.1.2.1 -r1.1.2.2 --- openacs-4/packages/theme-zen/tcl/apm-callback-procs.tcl 21 Jan 2007 03:07:12 -0000 1.1.2.1 +++ openacs-4/packages/theme-zen/tcl/apm-callback-procs.tcl 29 Jan 2007 02:51:36 -0000 1.1.2.2 @@ -24,12 +24,66 @@ } { + # DRB: Localize!!!! + set var_list [list \ + [list name "Zen 1 column"] \ + [list description "Zen 1 column"] \ + [list filename ../../theme-zen/lib/layouts/zen1] + ] + set layout_id [package_instantiate_object -var_list $var_list portal_layout] + set var_list [list \ + [list layout_id $layout_id] \ + [list region 1] + ] + package_exec_plsql -var_list $var_list portal_layout add_region + + set var_list [list \ + [list name "Zen 2 column"] \ + [list description "Zen 2 column"] \ + [list filename ../../theme-zen/lib/layouts/zen2] + ] + set layout_id [package_instantiate_object -var_list $var_list portal_layout] + set var_list [list \ + [list layout_id $layout_id] \ + [list region 1] + ] + package_exec_plsql -var_list $var_list portal_layout add_region + set var_list [list \ + [list layout_id $layout_id] \ + [list region 2] + ] + package_exec_plsql -var_list $var_list portal_layout add_region + + set var_list [list \ + [list name "Zen 3 column"] \ + [list description "Zen 3 column"] \ + [list filename ../../theme-zen/lib/layouts/zen3] + ] + set layout_id [package_instantiate_object -var_list $var_list portal_layout] + set var_list [list \ + [list layout_id $layout_id] \ + [list region 1] + ] + package_exec_plsql -var_list $var_list portal_layout add_region + set var_list [list \ + [list layout_id $layout_id] \ + [list region 2] + ] + package_exec_plsql -var_list $var_list portal_layout add_region + set var_list [list \ + [list layout_id $layout_id] \ + [list region 3] + ] + package_exec_plsql -var_list $var_list portal_layout add_region + + set var_list [list \ [list name zen] \ [list description "Zen Theme"] \ - [list filename /packages/theme-zen/lib/themes/zen-theme] \ - [list resource_dir /packages/theme-zen/lib/themes/zen-theme] + [list filename ../../theme-zen/lib/themes/zen-theme] \ + [list resource_dir ../../packages/theme-zen/lib/themes/zen-theme] ] + set theme_id [package_instantiate_object -var_list $var_list portal_element_theme] set site_template_id [db_nextval acs_object_id_seq]