Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

get_plugin_css()

Parameters

This function accepts no parameters.

Location

include/plugin_functions.php lines 1311 to 1337

Definition

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

    
$plugincss="";
    for (
$n=count($plugins)-1;$n>=0;$n--)
    {
    
$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 12th July 2020 07:05 Europe/London time based on the source file dated 2nd July 2020 09:08 Europe/London time.