template::toolkit (private)

 template::toolkit [ -subsite_id subsite_id ]

Defined in packages/acs-templating/tcl/style-procs.tcl

Return the CSS toolkit or empty the current or given subsite. Potential result values are "" (undetermined) "bootstrap" (for Bootstrap 3), "bootstrap5" (for Bootstrap 5), or "w3css".

Switches:
-subsite_id (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 Object ::template::CSS Object ::template::CSS (public) template::toolkit template::toolkit Object ::template::CSS->template::toolkit packages/acs-templating/tcl/tag-init.tcl packages/acs-templating/ tcl/tag-init.tcl packages/acs-templating/tcl/tag-init.tcl->template::toolkit packages/acs-templating/www/sitewide-admin/index.tcl packages/acs-templating/ www/sitewide-admin/index.tcl packages/acs-templating/www/sitewide-admin/index.tcl->template::toolkit template::CSS proc class template::CSS proc class (public) template::CSS proc class->template::toolkit template::iconset template::iconset (private) template::iconset->template::toolkit ad_conn ad_conn (public) template::toolkit->ad_conn parameter::get parameter::get (public) template::toolkit->parameter::get subsite::get_theme subsite::get_theme (public) template::toolkit->subsite::get_theme

Testcases:
No testcase defined.
Source code:
    if { ![info exists subsite_id] } {
        set subsite_id [ad_conn subsite_id]
    }
    set toolkit [parameter::get -parameter CSSToolkit -package_id $subsite_id]
    if {$toolkit eq ""} {
        #
        # Derive the toolkit from the subsite theme
        #
        set theme [subsite::get_theme -subsite_id $subsite_id]
        if {[string match *bootstrap5* $theme]} {
            set toolkit bootstrap5
        } elseif {[string match *bootstrap3* $theme]} {
            set toolkit bootstrap
        } elseif {[string match *w3css* $theme]} {
            set toolkit w3css
        }
    }
    return $toolkit
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: