Index: openacs-4/packages/new-portal/tcl/portal-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/tcl/portal-procs.tcl,v diff -u -N -r1.192 -r1.193 --- openacs-4/packages/new-portal/tcl/portal-procs.tcl 27 Oct 2014 16:41:45 -0000 1.192 +++ openacs-4/packages/new-portal/tcl/portal-procs.tcl 18 Jun 2015 19:54:07 -0000 1.193 @@ -287,17 +287,18 @@ @portal.name@" if { $element_list ne "" } { set element_src "[www_path]/render_styles/${render_style}/render-element" - append template " - " + append template [subst { + + }] } # Necessary hack to work around the acs-templating system @@ -399,7 +400,9 @@ } if {$referer eq ""} { - set return_text "[_ new-portal.Go_back]" + set return_text [subst { + [_ new-portal.Go_back] + }] } else { set return_text "" set return_url $referer @@ -417,11 +420,12 @@ # Theme selection chunk # - set theme_chunk " -
-
-
-

[_ new-portal.Change_Theme]

" + set theme_chunk [subst { + +
+
+

[_ new-portal.Change_Theme]

+ }] set current_theme_id [portal::get_theme_id -portal_id $portal_id] @@ -441,7 +445,10 @@ append theme_chunk "" } - append theme_chunk "
" + append theme_chunk [subst { +
+ + }] if {$allow_theme_change_p} { append template "$theme_chunk" } @@ -472,37 +479,39 @@ # # Page rename chunk # - set page_name_chunk " - - - + + + + +
- -

$page_name

-
- -
-
-
-
-
-
-
+ set page_name_chunk [subst { + + + + - - - - -
+ +

$page_name

+
+ + +
+
+
+
+
+
+ +
+
+
+
+
+
-
-
-
-
-
-
-
-
- \"\" -
" +
+ +
+ }] append template "$page_name_chunk" @@ -529,25 +538,26 @@ set layout layouts/simple[llength $regions] db_1row layout_id_select {} - append template " + append template [subst { - - - - " + }] + # clear out the region array array unset fake_element_ids @@ -566,32 +576,31 @@ if {! $first_page_p } { - append template " + append template [subst { - " + + }] - - - append template " - - + - " + }] } # @@ -605,7 +614,7 @@ set layout_name [ns_set get $layout layout_name] set layout_description [ns_set get $layout layout_description] set one_layout_chunk " $layout_name - $layout_description" - append layout_chunk "
- " + }] } @@ -647,70 +656,70 @@ set new_page_num [expr {[page_count -portal_id $portal_id] + 1}] - append template "
-
- + + +
+
- +
-
+ append template [subst { +
+
[_ new-portal.lt_No_Elements_on_this_p] -
+ [export_vars -form { portal_id page_id return_url { anchor $page_id } }] -
+

-
+

[_ new-portal.Change_page_layout]

-
-
-
-
+
+
+
+
$layout_chunk -
+
+ append template [subst {
+
-
-

[_ new-portal.Create_a_new_page]

+

[_ new-portal.Create_a_new_page]

- -
-
-
-
-
- - + + +
+
+
+
+ +
" + }] # # Revert page chunk # if {[get_portal_template_id $portal_id] ne ""} { - append template "
- + append template [subst {
+
-
-
-
-
-

[_ new-portal.lt_Revert_the_entire_por]

-
- + +
+
+

[_ new-portal.lt_Revert_the_entire_por]

+
+
" + }] } if { [db_string sub_portals {}] } { # Portal has other portals using it as a template - append template "
- + append template [subst {
+
-
-
-
-
-

[_ new-portal.lt_Revert_all_portals_us]

-
- + +
+
+

[_ new-portal.lt_Revert_all_portals_us]

+
+
[_ new-portal.lt_Note_Please_be_patien]
" + }] } # @@ -1844,17 +1853,17 @@ set action_string [generate_action_string] # the sources /www/place-element.tcl - set template " - - Return to your portal + set template [subst { + + Return to your portal

-

+ Edit this element's parameters:

@html_string@

- " + }] set __adp_stub "[get_server_root][www_path]/." set {master_template} \"master\" @@ -2444,7 +2453,10 @@ if {($option_val eq $thisoption_name && !$link_all) || !$thisoption_link_p} { append html "${pre_selected_td_html}${pre_html}${thisoption_value}${post_selected_html}\n" } else { - append html "${pre_td_html}${pre_html}${thisoption_value}${post_html}\n" + set href "$url?[export_ns_set_vars url $option_key $options_set]&[ns_urlencode $option_key]=[ns_urlencode $thisoption_name]" + append html [subst { + ${pre_td_html}${pre_html}${thisoption_value}${post_html} + }] } }