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)

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: