/** * Print dynamic CSS in compare popup * * @since 1.0.0 * @return void */ public function compare_css() { if (!$this->is_comapre_table()) { return; } do_action('cherry_wc_comapre_css'); if (!class_exists('cherry_css_compiler')) { return; } $css_compiler = cherry_css_compiler::get_instance(); $dynamic_css = $css_compiler->prepare_dynamic_css(); ?> <style type="text/css"> <?php echo $dynamic_css; ?> </style> <?php }
/** * Delete compiler status transient to recompile CSS * * @since 4.0.0 */ function cherry_reset_compiled_css() { if (!class_exists('cherry_css_compiler')) { return false; } $compiler = cherry_css_compiler::get_instance(); $compiler->reset_compiled_css(); }