function do_dynamic_css(){ // Get Dynamic Styles // If multisite is used, then dynamic styles need to be inline. // TODO is there a better solution? if( is_multisite() || pagelines_option('inline_dynamic_css') || !is_writable(PAGELINES_DCSS ) ){ get_dynamic_css(); } else { $date_modified = filemtime(PAGELINES_DCSS); $dcss_cache_ver = str_replace('.', '', CORE_VERSION) .'-'. date('mdyGis', $date_modified); printf('<link rel="stylesheet" id="dynamic-css" href="%s?ver=%s" type="text/css" media="all" />%s', PAGELINES_DCSS_URI, $dcss_cache_ver, "\n"); } }
function do_dynamic_css(){ // Function Temporary disabled not needed for production if(is_multisite()){ get_dynamic_css(); } if(file_exists(EPANEL_DCSS)){ echo '<link rel="stylesheet" id="epanel-dynamic-css" href="'; echo EPANEL_DCSS_URI . '?ver=' . CORE_VERSION; echo '" type="text/css" media="all" />'."\n"; } else { // Deprecated location, remove by 1.5.0 echo '<link rel="stylesheet" id="epanel-dynamic-css" href="'; echo CORE_CSS.'/dynamic.css?ver='.CORE_VERSION; echo '" type="text/css" media="all" />'."\n"; } }