function less_components() { $var_array = $this->core_less_vars(); $tool_files = $this->less_tool_files(); $core_files = get_core_lessfiles(); $less = array(); $less['vars'] = $this->lessify_vars($var_array); $less['tools'] = $this->load_less_from_file_array($tool_files); $less['core'] = $this->load_less_from_file_array($core_files); $less['sections'] = get_all_active_sections(); return apply_filters('pl_less_components', $less); }
function __construct() { if (pl_less_dev()) { return; } global $blog_id; $this->url_string = '%s/?pageless=%s'; $this->ctimeout = 86400; $this->btimeout = 604800; $this->types = array('sections', 'core', 'custom'); $this->lessfiles = get_core_lessfiles(); self::actions(); }