remove_section('colors'); $wp_customize->remove_section('static_front_page'); $wp_customize->remove_control('blogdescription'); /* Global Settings */ $wp_customize->add_section( 'title_tagline', array( 'title' => __( 'Global', 'mm' ), 'description' => __( 'Upload a logo to replace the default site name and description in the header', 'mm' ), 'priority' => 10, ) ); // global pro options class m3_ad_3_Textarea1 extends WP_Customize_Control { public $type = 'desc'; public $extra = ''; public function render_content() { ?> add_setting('ad_3_code1', array('default' => '',)); $wp_customize->add_control(new m3_ad_3_Textarea1($wp_customize, 'ad_3_code1', array( 'section' => 'title_tagline', 'settings' => 'ad_3_code1', ))); /* Layout Option */ $wp_customize->add_section( 'layout_section' , array( 'title' => __( 'Layout', 'mm' ), // 'description' => __( 'Where are these Advertisement Areas? Click Here for more detials ', 'mm' ), 'priority' => 20, ) ); // Sidebar Left $wp_customize->add_setting( 'sidebar_switch', array( 'default' => '1', ) ); $wp_customize->add_control( 'sidebar_switch', array( 'label' => 'Sidebar', 'section' => 'layout_section', 'type' => 'radio', 'priority' => 1, 'choices' => array( '1' => 'Show Sidebar in Right Side', '2' => 'Show Sidebar in Left Side', ), ) ); // layout pro options class m3_ad_3_Textarea2 extends WP_Customize_Control { public $type = 'desc'; public $extra = ''; public function render_content() { ?> add_setting('ad_3_code2', array('default' => '',)); $wp_customize->add_control(new m3_ad_3_Textarea2($wp_customize, 'ad_3_code2', array( 'section' => 'layout_section', 'settings' => 'ad_3_code2', ))); /* Footer Settings */ $wp_customize->add_section( 'footer_section' , array( 'title' => __( 'Footer', 'mm' ), 'priority' => 30, ) ); // Analytics control class m3_Customize_Textarea_Control extends WP_Customize_Control { public $type = 'textarea'; public $extra = ''; public function render_content() { ?> add_setting('textarea_setting', array('default' => '',)); $wp_customize->add_control(new m3_Customize_Textarea_Control($wp_customize, 'textarea_setting', array( 'label' => 'Analyics code', 'section' => 'footer_section', 'settings' => 'textarea_setting', 'extra' => __( 'Paste the Google Analyics Tracking code ', 'mm' ), ))); // Copyright textbox control $wp_customize->add_setting( 'copyright_text', array( 'default' => __( ' © Copyright ', 'mm' ), ) ); $wp_customize->add_control( 'copyright_text', array( 'label' => 'Copyright Text', 'section' => 'footer_section', 'type' => 'text', ) ); /* Single Settings */ $wp_customize->add_section( 'single_section' , array( 'title' => __( 'Single Post', 'mm' ), 'priority' => 40, ) ); // single pro options class m3_ad_3_Textarea3 extends WP_Customize_Control { public $type = 'desc'; public $extra = ''; public function render_content() { ?> add_setting('ad_3_code3', array('default' => '',)); $wp_customize->add_control(new m3_ad_3_Textarea3($wp_customize, 'ad_3_code3', array( 'section' => 'single_section', 'settings' => 'ad_3_code3', ))); /* Advertisement Settings */ $wp_customize->add_section( 'ad_section' , array( 'title' => __( 'Advertisement', 'mm' ), 'priority' => 50, ) ); // ad pro options class m3_ad_3_Textarea4 extends WP_Customize_Control { public $type = 'desc'; public $extra = ''; public function render_content() { ?> add_setting('ad_3_code4', array('default' => '',)); $wp_customize->add_control(new m3_ad_3_Textarea4($wp_customize, 'ad_3_code4', array( 'section' => 'ad_section', 'settings' => 'ad_3_code4', ))); /* Background Settings */ // Background Image Upload $wp_customize->add_section( 'background_image', array( 'title' => __( 'Background','mm' ), 'priority' => 60, ) ); // Color control $wp_customize->add_setting( 'bg_color_setting', array( 'default' => '#ffffff', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bg_color_setting', array( 'label' => 'Background Color', 'section' => 'background_image', 'settings' => 'bg_color_setting', ) ) ); /* Color Settings */ // Background Image Upload $wp_customize->add_section( 'color_block', array( 'title' => __( 'Colors','mm' ), 'priority' => 70, ) ); // ad pro options class m3_ad_3_Textarea5 extends WP_Customize_Control { public $type = 'desc'; public $extra = ''; public function render_content() { ?> add_setting('ad_3_code5', array('default' => '',)); $wp_customize->add_control(new m3_ad_3_Textarea5($wp_customize, 'ad_3_code5', array( 'section' => 'color_block', 'settings' => 'ad_3_code5', ))); /* Advance Settings */ $wp_customize->add_section( 'advance_section' , array( 'title' => __( 'Advance Settings', 'mm' ), 'priority' => 80, ) ); // Tag control $wp_customize->add_setting( 'og_on_off', array( 'default' => '1', ) ); // ad pro options class m3_ad_3_Textarea6 extends WP_Customize_Control { public $type = 'desc'; public $extra = ''; public function render_content() { ?> add_setting('ad_3_code6', array('default' => '',)); $wp_customize->add_control(new m3_ad_3_Textarea6($wp_customize, 'ad_3_code6', array( 'section' => 'advance_section', 'settings' => 'ad_3_code6', ))); }