template::iconset (private)

 template::iconset [ -subsite_id subsite_id ]

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

Return the configured or derived icon set. Potential results are "classic" (old-style gif/png images), "glyphicons" (Part of Bootstrap 3), "fa-icons" (usable for all themes), and "bootstrap-icons" (usable for all themes).

Switches:
-subsite_id (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 Object ::template::CSS Object ::template::CSS (public) template::iconset template::iconset Object ::template::CSS->template::iconset 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::iconset packages/bootstrap-icons/www/sitewide-admin/sample.tcl packages/bootstrap-icons/ www/sitewide-admin/sample.tcl packages/bootstrap-icons/www/sitewide-admin/sample.tcl->template::iconset packages/fa-icons/www/sitewide-admin/sample.tcl packages/fa-icons/ www/sitewide-admin/sample.tcl packages/fa-icons/www/sitewide-admin/sample.tcl->template::iconset template::CSS proc initialize template::CSS proc initialize (public) template::CSS proc initialize->template::iconset ad_conn ad_conn (public) template::iconset->ad_conn apm_package_enabled_p apm_package_enabled_p (public) template::iconset->apm_package_enabled_p parameter::get parameter::get (public) template::iconset->parameter::get template::toolkit template::toolkit (private) template::iconset->template::toolkit

Testcases:
No testcase defined.
Source code:
    if { ![info exists subsite_id] } {
        set subsite_id [ad_conn subsite_id]
    }
    set default ""
    # set default "fa-icons"  ;# just for testing
    set iconset [parameter::get -parameter IconSet -package_id $subsite_id -default $default]

    if {$iconset eq ""} {
        #
        # Derive the iconset from the template::toolkit.
        #
        if {[template::toolkit -subsite_id $subsite_id] eq "bootstrap"} {
            #
            # Bootstrap 3. Make this for backward compatibility the
            # first choice.
            #
            set iconset "glyphicons"
        } elseif {[apm_package_enabled_p "bootstrap-icons"]} {
            #
            # Bootstrap icons work with all toolkits
            #
            set iconset "bootstrap-icons"
        } elseif {[apm_package_enabled_p "fa-icons"]} {
            #
            # Awesome icons work with all toolkits
            #
            set iconset "fa-icons"
        } else {
            set iconset "classic"
        }
    }
    return $iconset
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: