/** * This creates an instance of this class. * * If the reach_theme_start hook has already run, this will not do anything. * * @param Reach_Theme $theme * @static * @access public * @since 1.0.0 */ public static function start(Reach_Theme $theme) { if (!$theme->is_start()) { return; } new Reach_Jetpack($theme); }
/** * This creates an instance of this class. * * If the reach_theme_start hook has already run, this will not do anything. * * @param Reach_Theme $theme * @static * @access public * @since 1.0.0 */ public static function start(Reach_Theme $theme) { if (!$theme->is_start()) { return; } new Reach_Easy_Google_Fonts(); }
/** * Instantiate the object, but only if this is the start phase. * * @static * @param Reach_Theme $theme * @return void */ public static function start(Reach_Theme $theme) { if (!$theme->is_start()) { return; } new Reach_Customizer(); }
/** * This creates an instance of this class. * * If the reach_theme_start hook has already run, this will not do anything. * * @param Reach_Theme $theme * @static * @access public * @since 1.0.0 */ public static function start(Reach_Theme $theme) { if (!$theme->is_start()) { return; } new Reach_Tribe_Events(); }
/** * This creates an instance of this class. * * If the reach_theme_start hook has already run, this will not do anything. * * @param Reach_Theme $theme * @static * @access public * @since 1.0.0 */ public static function start(Reach_Theme $theme) { if (!$theme->is_start()) { return; } new Reach_Charitable(); }
/** * Retrieve the class instance. If one hasn't been created yet, create it first. * * @return Reach_Theme * @static * @access public * @since 1.0.0 */ public static function get_instance() { if (is_null(self::$instance)) { self::$instance = new Reach_Theme(); } return self::$instance; }
/** * Return the one true instance of the Reach_Theme. * * @return Reach_Theme * @since 1.0.0 */ function reach_get_theme() { return Reach_Theme::get_instance(); }
/** * A image's state is simply the contatenation of two values: its retina setting and its path. * * This is used to determine whether the image is changed when the customizer's settings are saved. * * @see Crafted_Customizer::set_current_image_state() * @see Crafted_Customizer::is_image_changed() * * @return string The state as a simple string. * @access private * @since 1.0.0 */ private function get_image_state() { return $this->theme->get_theme_setting($this->id . '_is_retina', false) . '_' . $this->theme->get_theme_setting($this->id, false); }