Index: openacs-4/packages/xowiki/tcl/bootstrap-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/bootstrap-procs.tcl,v diff -u -r1.14 -r1.15 --- openacs-4/packages/xowiki/tcl/bootstrap-procs.tcl 11 Sep 2024 06:15:56 -0000 1.14 +++ openacs-4/packages/xowiki/tcl/bootstrap-procs.tcl 24 Oct 2024 17:02:23 -0000 1.15 @@ -34,7 +34,7 @@ BootstrapNavbar instproc init {} { ::xo::Page requireJS urn:ad:js:jquery - ::xowiki::CSS require_toolkit -css -js + ::template::CSS require_toolkit -css -js next } @@ -43,7 +43,7 @@ http://getbootstrap.com/components/#navbar } { html::nav \ - -class [xowiki::CSS classes ${:navbarClass}] \ + -class [template::CSS classes ${:navbarClass}] \ -role "navigation" \ -style "background-color: #f8f9fa;" { # @@ -61,7 +61,7 @@ } } if {[llength $rightMenuEntries] > 0} { - html::ul -class "nav navbar-nav [::xowiki::CSS class navbar-right]" { + html::ul -class "nav navbar-nav [::template::CSS class navbar-right]" { foreach entry $rightMenuEntries { $entry render } @@ -93,7 +93,7 @@ if {${:brand}} { lappend class "navbar-brand" } - set data_attribute [expr {[::xowiki::CSS toolkit] eq "bootstrap5" ? "data-bs" : "data"}] + set data_attribute [expr {[::template::CSS toolkit] eq "bootstrap5" ? "data-bs" : "data"}] html::a -href "\#" -class $class -$data_attribute-toggle "dropdown" { html::t ${:text} } @@ -402,7 +402,7 @@ } BootstrapCollapseButton instproc render {} { - switch [::xowiki::CSS toolkit] { + switch [::template::CSS toolkit] { "bootstrap" { template::add_script -src urn:ad:js:bootstrap3 ::html::button -type button -class "btn btn-xs" -data-toggle ${:toggle} -data-target "#${:id}" { @@ -578,7 +578,7 @@ foreach bulk_action $bulkactions { set id [::xowiki::Includelet html_id $bulk_action] html::li { - html::a -class [::xowiki::CSS class bulk-action] -rule button \ + html::a -class [::template::CSS class bulk-action] -rule button \ -title [$bulk_action tooltip] -href # \ -id $id { html::t [$bulk_action label] @@ -605,7 +605,7 @@ } BootstrapTableRenderer instproc render {} { - ::xowiki::CSS require_toolkit -css + ::template::CSS require_toolkit -css if {![nsf::is object [self]::__actions]} {:actions {}} if {![nsf::is object [self]::__bulkactions]} {:__bulkactions {}} @@ -700,9 +700,9 @@ @return HTML } { return [ns_trim -delimiter | [subst { - |
- |
$title
- |
$body
+ |
+ |
$title
+ |
$body
|
}]] } @@ -717,10 +717,10 @@ @return HTML } { # - set name [xowiki::CSS class $name] + set name [template::CSS class $name] set styleAtt [expr {[info exists style] ? "style='$style'" : ""}] set CSSclass [expr {[info exists CSSclass] ? " $CSSclass" : ""}] - switch [::xowiki::CSS toolkit] { + switch [::template::CSS toolkit] { "bootstrap" { return [subst {}] } @@ -748,7 +748,7 @@ if {$subtitle ne ""} { set subtitle [subst {}] } - if {[::xowiki::CSS toolkit] eq "bootstrap5"} { + if {[::template::CSS toolkit] eq "bootstrap5"} { set data_attribute "data-bs" ::security::csp::require img-src data: set close_button_label "" @@ -767,7 +767,7 @@ |