/** * Returns the instance. * * @since 4.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; }
/** * Enqueue Google fonts pased from options * * @return void */ public function enqueue_fonts() { if (!class_exists('cherry_enqueue_fonts')) { return; } $fonts_controller = cherry_enqueue_fonts::get_instance(); printf('<link id="google-fonts-css" media="all" type="text/css" href="%s" rel="stylesheet">', $fonts_controller->get_fonts_url()); }