/** * Returns the instance. * * @since 1.0.0 * @return object */ public static function get_instance() { // If the single instance hasn't been set, set it now. if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }
/** * Get avaliable functions into array * * @since 1.0.0 * @return array dynamic CSS variables */ public function get_css_functions() { require_once $this->get_path('inc/class-cherry-dynamic-css-utilities.php'); $utilities = Cherry_Dynamic_Css_Utilities::get_instance(); $func_list = array('darken' => array($utilities, 'color_darken'), 'lighten' => array($utilities, 'color_lighten'), 'contrast' => array($utilities, 'color_contrast'), 'alpha' => array($utilities, 'color_alpha'), 'background' => array($utilities, 'background_css'), 'typography' => array($utilities, 'get_typography_css'), 'box' => array($utilities, 'get_box_model_css'), 'emph' => array($utilities, 'element_emphasis'), 'font_size' => array($utilities, 'typography_size'), 'container_compare' => array($utilities, 'container_width_compare'), 'sum' => array($utilities, 'simple_sum'), 'diff' => array($utilities, 'simple_diff'), 'menu_toogle_endpoint' => array($utilities, 'menu_toogle_endpoint')); /** * Filter available CSS functions list * * @since 1.0.0 * @param array $func_list default functions list. * @param array $this->args module arguments. */ return apply_filters('cherry_css_func_list', $func_list, $this->args); }