/** * Make sure custom CSS is regenerated if we're using custom LESS variables */ function largo_update_custom_less_variables() { if (Largo::is_less_enabled()) { $variables = Largo_Custom_Less_Variables::get_custom_values(); $escaped = array(); foreach ($variables['variables'] as $key => $var) { $escaped[$key] = addslashes($var); } Largo_Custom_Less_Variables::update_custom_values($escaped); } }
public static function get_instance() { if (!isset(self::$instance)) { self::$instance = new Largo(); self::$instance->load(); } return self::$instance; }