Index: openacs-4/packages/xowiki/tcl/adp-generator-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/adp-generator-procs.tcl,v diff -u -r1.51 -r1.52 --- openacs-4/packages/xowiki/tcl/adp-generator-procs.tcl 14 Mar 2018 15:40:49 -0000 1.51 +++ openacs-4/packages/xowiki/tcl/adp-generator-procs.tcl 3 Sep 2024 15:37:55 -0000 1.52 @@ -1,5 +1,5 @@ ::xo::library doc { - XoWiki - adp generator procs: remove redundancy in adp files by generating it + XoWiki - ADP generator procs: remove redundancy in ADP files by generating it @creation-date 2007-03-13 @author Gustaf Neumann @@ -35,7 +35,7 @@ if {![:wikicmds]} {return ""} return { <% - if {$::::xowiki::search_mounted_p} { + if {$::xowiki::search_mounted_p} { template::add_event_listener \ -id wiki-menu-do-search-control \ -script { @@ -72,8 +72,8 @@
@body.menubarHTML;noquote@
\n\

@body.title@ (@page_context@)

\n\

@body.title@

\n\ - \n\ -
@folderhtml;noquote@
\n\ + \n\ +
@body.folderHTML;noquote@
\n\
@content;noquote@
\n\
@content;noquote@" @@ -89,7 +89,7 @@ append _ \ { - +
} \n append _ [:wikicmds_part] \n @@ -105,8 +105,8 @@ # Generate the ADP file, when does not exist, or when the # generator is newer. # - if {![file exists $adpFilename] - || [file mtime [info script]] > [file mtime $adpFilename]} { + if {![ad_file exists $adpFilename] + || [file mtime [info script]] > [ad_file mtime $adpFilename]} { try { set f [open $adpFilename w] } on error {errorMsg} { @@ -122,10 +122,15 @@ # Definition of Templates #################################################################################### # - # view-plain + # view-plain (without master) # ADP_Generator create view-plain -master 0 -wikicmds 0 -footer 0 + # + # view-plain-master (plain with master) + # + ADP_Generator create view-plain-master -master 1 -wikicmds 0 -footer 0 + #################################################################################### # # view-links @@ -152,10 +157,10 @@ return [subst -novariables -nobackslashes \ {
-
@@ -187,7 +192,7 @@ margin-left: 6px; margin-top: 6px; padding: 0px; ">
-
@@ -203,14 +208,14 @@ margin-left: 6px; margin-top: 6px; padding: 0px; ">
- - -
-
Contributors @@ -253,14 +258,14 @@ margin-left: 6px; margin-top: 6px; padding: 0px; ">
- - -
-
Contributors @@ -271,7 +276,7 @@ margin-left: 6px; margin-top: 6px; padding: 0px; ">
-
@@ -283,7 +288,7 @@ }] } - + # oacs-view3-bootstrap3 # # similar to oacs view3, but based on bootstrap @@ -311,61 +316,61 @@ set open_page {-open_page [list @name@]} return [subst -novariables -nobackslashes {\ -
+
@top_includelets;noquote@
@body.menubarHTML;noquote@

@body.title@ (@page_context@)

@body.title@

- -
@folderhtml;noquote@
-
@content;noquote@
+ +
@body.folderHTML;noquote@
+
@content;noquote@
@content;noquote@
- +
- +
- +
- +
-
+
@footer;noquote@
}] } - + #################################################################################### # # view-book @@ -410,12 +415,10 @@ - - Previous + - - No Previous + @@ -431,12 +434,10 @@ - - Next + - - No Next + @@ -453,7 +454,7 @@ &="per_object_categories_with_links" &="digg_link" &="delicious_link" &="my_yahoo_link" &="gc_link" &="gc_comments" &="notification_subscribe_link" &="notification_image" - &="top_includelets" &="folderhtml" &="page" &="doc" &="body"> + &="top_includelets" &="page" &="doc" &="body">
}} @@ -462,7 +463,7 @@ # # view-book-no-ajax # - # adp identical to view-book. + # ADP identical to view-book. # ADP_Generator create view-book-no-ajax -master 1 -footer 1 -wikicmds 0 \ -extra_header_stuff {