Index: openacs-4/packages/acs-tcl/tcl/navigation-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/navigation-procs.tcl,v
diff -u -r1.32.2.6 -r1.32.2.7
--- openacs-4/packages/acs-tcl/tcl/navigation-procs.tcl 8 Nov 2016 11:29:07 -0000 1.32.2.6
+++ openacs-4/packages/acs-tcl/tcl/navigation-procs.tcl 1 Dec 2016 15:44:13 -0000 1.32.2.7
@@ -409,213 +409,217 @@
}
+# --
+# apisano 2016-12-01: this proc is obsolete and currently broken, as
+# ad_naked_html_patterns is not defined anywhere on the
+# system. Therefore, I am commenting it out.
+# --
# this incorporates HTML designed by Ben (not adida, some other guy)
-
-proc ad_menu_header {{section ""} {uplink ""}} {
+# proc ad_menu_header {{section ""} {uplink ""}} {
- set section [string tolower $section]
+# set section [string tolower $section]
- # if it is an excluded directory, just return
- set url_stub [ad_conn url]
- set full_filename "$::acs::pageroot$url_stub"
+# # if it is an excluded directory, just return
+# set url_stub [ad_conn url]
+# set full_filename "$::acs::pageroot$url_stub"
- foreach naked_pattern [ad_naked_html_patterns] {
- if { [string match $naked_pattern $url_stub] } {
- # want the global admins with no menu, but not the domain admin
- return ""
- }
- }
+# foreach naked_pattern [ad_naked_html_patterns] {
+# if { [string match $naked_pattern $url_stub] } {
+# # want the global admins with no menu, but not the domain admin
+# return ""
+# }
+# }
- # title is the title for the title bar
- # section is the highlight for the menu
+# # title is the title for the title bar
+# # section is the highlight for the menu
- set menu_items [menu_items]
- set java_script_p [java_script_capabilities]
+# set menu_items [menu_items]
+# set java_script_p [java_script_capabilities]
- # Ben has a different table structure for netscape 3
- set netscape3_p [netscape3_browser]
- set return_string ""
+# # Ben has a different table structure for netscape 3
+# set netscape3_p [netscape3_browser]
+# set return_string ""
- if { $java_script_p } {
- append return_string "
- "
- } else {
+# function go_to_url(url) \{
+# if (url \!= \"\") \{
+# self.location=url;
+# \}
+# return;
+# \}
+# // -->
+# "
+# } else {
- append return_string "
+# append return_string "
- "
- }
+# function go_to_url(url) \{
+# \}
+# // -->
+# "
+# }
- # We divide up the screen into 4 areas top to bottom:
- # + The top table which is the cognet logo and search stuff.
- # + The next table down is the CogNet name and area name.
- # + The next area is either 1 large table with 2 sub-tables, or two tables (NS 3.0).
- # The left table is the navigation table and the right one is the content.
- # + Finally, the bottom table holds the bottom navigation bar.
+# # We divide up the screen into 4 areas top to bottom:
+# # + The top table which is the cognet logo and search stuff.
+# # + The next table down is the CogNet name and area name.
+# # + The next area is either 1 large table with 2 sub-tables, or two tables (NS 3.0).
+# # The left table is the navigation table and the right one is the content.
+# # + Finally, the bottom table holds the bottom navigation bar.
- append return_string "[ad_body_tag]"
+# append return_string "[ad_body_tag]"
- if {$netscape3_p} {
- append return_string "
-
"
- } else {
- append return_string "
-
- |
- "
+# } else {
+# append return_string "
+# |
+#
+#
+#
"
+# }
- append return_string "
-
- | "
+# append return_string "
+#
+# | "
- set uplevel_string " |
"
+# set uplevel_string " | "
- foreach url_pattern [ad_no_uplevel_patterns] {
- if { [regexp $url_pattern $url_stub match] } {
- set uplevel_string ""
- }
- }
+# foreach url_pattern [ad_no_uplevel_patterns] {
+# if { [regexp $url_pattern $url_stub match] } {
+# set uplevel_string ""
+# }
+# }
- append return_string $uplevel_string
- append return_string "
"
+# append return_string $uplevel_string
+# append return_string "
"
- if {$netscape3_p} {
- append return_string ""
- } else {
- append return_string "
-
- "
- }
+# if {$netscape3_p} {
+# append return_string ""
+# } else {
+# append return_string "
+#
+# "
+# }
-# Navigation Table
+# # Navigation Table
- foreach item $menu_items {
- if { $item == [menu_highlight $section] } {
- append return_string " | "
- } else {
- append return_string " | "
- }
- }
+# foreach item $menu_items {
+# if { $item == [menu_highlight $section] } {
+# append return_string " | "
+# } else {
+# append return_string " | "
+# }
+# }
- append return_string "
-
-
-
- [menu_subsection $section]
-
- |
- "
+# append return_string "
+# |
+#
+#
+# [menu_subsection $section]
+#
+# |
+# "
- if {$netscape3_p} {
- append return_string ""
- } else {
- append return_string "
- "
- }
- append return_string ""
-}
+# if {$netscape3_p} {
+# append return_string ""
+# } else {
+# append return_string "
+# "
+# }
+# append return_string ""
+# }
proc ad_menu_footer {{section ""}} {
| | | | |