Created
August 10, 2017 16:20
-
-
Save mjesusabarca/e03d56ee646551dd5548db01dc948c69 to your computer and use it in GitHub Desktop.
delete four services Boxes Section
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // four services Boxes Section | |
| $wp_customize->add_section('pageboxes_section', array( | |
| 'title' => __('Four Page Boxes Section','milestone-lite'), | |
| 'description' => __('Select Pages from the dropdown for four services boxes section','milestone-lite'), | |
| 'priority' => null | |
| )); | |
| $wp_customize->add_setting('pagebox-area1', array( | |
| 'default' => '0', | |
| 'capability' => 'edit_theme_options', | |
| 'sanitize_callback' => 'absint' | |
| )); | |
| $wp_customize->add_control( 'pagebox-area1',array('type' => 'dropdown-pages', | |
| 'section' => 'pageboxes_section', | |
| )); | |
| $wp_customize->add_setting('pagebox-area2', array( | |
| 'default' => '0', | |
| 'capability' => 'edit_theme_options', | |
| 'sanitize_callback' => 'absint' | |
| )); | |
| $wp_customize->add_control( 'pagebox-area2',array('type' => 'dropdown-pages', | |
| 'section' => 'pageboxes_section', | |
| )); | |
| $wp_customize->add_setting('pagebox-area3', array( | |
| 'default' => '0', | |
| 'capability' => 'edit_theme_options', | |
| 'sanitize_callback' => 'absint' | |
| )); | |
| $wp_customize->add_control( 'pagebox-area3',array('type' => 'dropdown-pages', | |
| 'section' => 'pageboxes_section', | |
| )); | |
| $wp_customize->add_setting('pagebox-area4', array( | |
| 'default' => '0', | |
| 'capability' => 'edit_theme_options', | |
| 'sanitize_callback' => 'absint' | |
| )); | |
| $wp_customize->add_control( 'pagebox-area4',array('type' => 'dropdown-pages', | |
| 'section' => 'pageboxes_section', | |
| ));//end four column page boxes | |
| $wp_customize->add_setting('disabled_pgboxes',array( | |
| 'default' => true, | |
| 'sanitize_callback' => 'milestone_lite_sanitize_checkbox', | |
| 'capability' => 'edit_theme_options', | |
| )); | |
| $wp_customize->add_control( 'disabled_pgboxes', array( | |
| 'settings' => 'disabled_pgboxes', | |
| 'section' => 'pageboxes_section', | |
| 'label' => __('Uncheck To show This Section','milestone-lite'), | |
| 'type' => 'checkbox' | |
| ));//show Homepage boxes Section |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment