Exemplo n.º 1
0
/**
 * 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);
    }
}
Exemplo n.º 2
0
 public static function get_instance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new Largo();
         self::$instance->load();
     }
     return self::$instance;
 }