Esempio n. 1
0
 /**
  * This hooks into 'customize_register' (available as of WP 3.4) and allows
  * you to add new sections and controls to the Theme Customize screen.
  *
  * Note: To enable instant preview, we have to actually write a bit of custom
  * javascript. See live_preview() for more.
  *
  * @see add_action('customize_register',$func)
  *
  * @param \WP_Customize_Manager $wp_customize
  *
  * @link http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/
  * @since MyTheme 1.0
  */
 public static function Register($wp_customize)
 {
     Quest_Customize_General::register($wp_customize);
     Quest_Customize_Layout::register($wp_customize);
     Quest_Customize_Background_Images::register($wp_customize);
     Quest_Customize_Colors::register($wp_customize);
     Quest_Customize_Typography::register($wp_customize);
 }
Esempio n. 2
0
 /**
  * This hooks into 'customize_register' (available as of WP 3.4) and allows
  * you to add new sections and controls to the Theme Customize screen.
  *
  * Note: To enable instant preview, we have to actually write a bit of custom
  * javascript. See live_preview() for more.
  *
  * @see add_action('customize_register',$func)
  *
  * @param \WP_Customize_Manager $wp_customize
  *
  * @link http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/
  * @since MyTheme 1.0
  */
 public static function register($wp_customize)
 {
     $quest_customizer_path = trailingslashit(get_template_directory()) . 'inc/customizer/';
     // Load all custom controls
     require $quest_customizer_path . "custom-controls/google-fonts-control.php";
     require $quest_customizer_path . "custom-controls/text-area-control.php";
     require $quest_customizer_path . "custom-controls/misc-control.php";
     require $quest_customizer_path . "custom-controls/multiple-checkbox-control.php";
     // Load all Customizer Panels
     require $quest_customizer_path . "panels/general.php";
     require $quest_customizer_path . "panels/layout.php";
     require $quest_customizer_path . "panels/background-images.php";
     require $quest_customizer_path . "panels/colors.php";
     require $quest_customizer_path . "panels/typography.php";
     Quest_Customize_General::register($wp_customize);
     Quest_Customize_Layout::register($wp_customize);
     Quest_Customize_Background_Images::register($wp_customize);
     Quest_Customize_Colors::register($wp_customize);
     Quest_Customize_Typography::register($wp_customize);
 }