Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

get_plugin_css()

Parameters

This function accepts no parameters.

Location

include/plugin_functions.php lines 1379 to 1406

Definition

 
function get_plugin_css()
    {
    global 
$plugins,$baseurl,$language,$css_reload_key;

    
$plugincss="";
    for (
$n=count($plugins)-1;$n>=0;$n--)
    {
    if (!isset(
$plugins[$n])) { continue; }
    
$csspath=get_plugin_path($plugins[$n]) . "/css/style.css";
    if (
file_exists($csspath))
        {
        
$plugincss.='<link href="'.get_plugin_path($plugins[$n],true).'/css/style.css?css_reload_key='.$css_reload_key.'" rel="stylesheet" type="text/css" media="screen,projection,print" class="plugincss" />
        '
;
        }    

        
# Allow language specific CSS files
        
$csspath=get_plugin_path($plugins[$n]) . "/css/style-" $language ".css";
        if (
file_exists($csspath))
            {
            
$plugincss.='<link href="' get_plugin_path($plugins[$n],true) . '/css/style-' $language '.css?css_reload_key='.$css_reload_key.'" rel="stylesheet" type="text/css" media="screen,projection,print" class="plugincss" />';
            }
        
        
# additional plugin css functionality
        
$plugincss.=hook('moreplugincss','',array($plugins$n));
            
        }
    return 
$plugincss;
    }

This article was last updated 17th May 2021 23:05 Europe/London time based on the source file dated 10th May 2021 17:30 Europe/London time.