| @@ -6,8 +6,11 @@ | ||
| 6 | 6 | |
| 7 | 7 | if ( isset( $config['sections'] ) && ! empty( $config['sections'] ) ) { |
| 8 | 8 | |
| 9 | 9 | foreach ( $config['sections'] as $id => $section ) { |
| 10 | + if ( empty( $section['title'] ) ) { | |
| 11 | + $section['title'] = 'No Title'; | |
| 12 | + } | |
| 10 | 13 | $customify_sections[$id] = $section['title']; |
| 11 | 14 | } |
| 12 | 15 | |
| 13 | 16 | } |
| @@ -17,8 +20,11 @@ | ||
| 17 | 20 | foreach ( $config['panels'] as $panel_id => $panel ) { |
| 18 | 21 | |
| 19 | 22 | if ( isset( $panel['sections'] ) && ! empty( $panel['sections'] ) ) { |
| 20 | 23 | foreach ( $panel['sections'] as $id => $section ) { |
| 24 | + if ( empty( $section['title'] ) ) { | |
| 25 | + $section['title'] = 'No Title'; | |
| 26 | + } | |
| 21 | 27 | $customify_sections[$id] = $section['title']; |
| 22 | 28 | } |
| 23 | 29 | } |
| 24 | 30 | } |
| @@ -29,38 +35,38 @@ | ||
| 29 | 35 | 'label' => 'General Settings', |
| 30 | 36 | 'options' => array( |
| 31 | 37 | 'values_store_mod' => array( |
| 32 | 38 | 'name' => 'values_store_mod', |
| 33 | - 'label' => __( 'Store values as:', 'pixcustomify_txtd' ), | |
| 34 | - 'desc' => __( 'You can store the values globally so you can use them with other themes or store them as a "theme_mod" which will make an individual set of options only for the current theme', 'pixcustomify_txtd' ), | |
| 39 | + 'label' => __( 'Store values as:', 'customify' ), | |
| 40 | + 'desc' => __( 'You can store the values globally so you can use them with other themes or store them as a "theme_mod" which will make an individual set of options only for the current theme', 'customify' ), | |
| 35 | 41 | 'default' => 'option', |
| 36 | 42 | 'type' => 'select', |
| 37 | 43 | 'options' => array( |
| 38 | - 'option' => __( 'Option (global options)', 'pixcustomify_txtd' ), | |
| 39 | - 'theme_mod' => __( 'Theme Mod (per theme options)', 'pixcustomify_txtd' ), | |
| 44 | + 'option' => __( 'Option (global options)', 'customify' ), | |
| 45 | + 'theme_mod' => __( 'Theme Mod (per theme options)', 'customify' ), | |
| 40 | 46 | ), |
| 41 | 47 | ), |
| 42 | 48 | |
| 43 | 49 | 'disable_default_sections' => array( |
| 44 | 50 | 'name' => 'disable_default_sections', |
| 45 | - 'label' => __( 'Disable default sections', 'pixcustomify_txtd' ), | |
| 46 | - 'desc' => __( 'You can disable default sections', 'pixcustomify_txtd' ), | |
| 51 | + 'label' => __( 'Disable default sections', 'customify' ), | |
| 52 | + 'desc' => __( 'You can disable default sections', 'customify' ), | |
| 47 | 53 | 'type' => 'multicheckbox', |
| 48 | 54 | 'options' => array( |
| 49 | - 'nav' => __( 'Navigation', 'pixcustomify_txtd' ), | |
| 50 | - 'static_front_page' => __( 'Front Page', 'pixcustomify_txtd' ), | |
| 51 | - 'title_tagline' => __( 'Title', 'pixcustomify_txtd' ), | |
| 52 | - 'colors' => __( 'Colors', 'pixcustomify_txtd' ), | |
| 53 | - 'background_image' => __( 'Background', 'pixcustomify_txtd' ), | |
| 54 | - 'header_image' => __( 'Header', 'pixcustomify_txtd' ), | |
| 55 | - 'widgets' => __( 'Widgets', 'pixcustomify_txtd' ), | |
| 55 | + 'nav' => __( 'Navigation', 'customify' ), | |
| 56 | + 'static_front_page' => __( 'Front Page', 'customify' ), | |
| 57 | + 'title_tagline' => __( 'Title', 'customify' ), | |
| 58 | + 'colors' => __( 'Colors', 'customify' ), | |
| 59 | + 'background_image' => __( 'Background', 'customify' ), | |
| 60 | + 'header_image' => __( 'Header', 'customify' ), | |
| 61 | + 'widgets' => __( 'Widgets', 'customify' ), | |
| 56 | 62 | ), |
| 57 | 63 | ), |
| 58 | 64 | |
| 59 | 65 | 'enable_reset_buttons' => array( |
| 60 | 66 | 'name' => 'enable_reset_buttons', |
| 61 | - 'label' => __( 'Enable Reset Buttons', 'pixcustomify_txtd' ), | |
| 62 | - 'desc' => __( 'You can enable "Reset to defaults" buttons for panels / sections or all settings. We have disabled this feature by default to avoid accidental resets. If you are sure that you need it please enable this.', 'pixcustomify_txtd' ), | |
| 67 | + 'label' => __( 'Enable Reset Buttons', 'customify' ), | |
| 68 | + 'desc' => __( 'You can enable "Reset to defaults" buttons for panels / sections or all settings. We have disabled this feature by default to avoid accidental resets. If you are sure that you need it please enable this.', 'customify' ), | |
| 63 | 69 | 'default' => false, |
| 64 | 70 | 'type' => 'switch', |
| 65 | 71 | ), |
| 66 | 72 | |
| @@ -65,10 +71,10 @@ | ||
| 65 | 71 | ), |
| 66 | 72 | |
| 67 | 73 | 'enable_editor_style' => array( |
| 68 | 74 | 'name' => 'enable_editor_style', |
| 69 | - 'label' => __( 'Enable Editor Style', 'pixcustomify_txtd' ), | |
| 70 | - 'desc' => __( 'The styling added by Customify in front-end can be added in the WordPress editor too by enabling this option', 'pixcustomify_txtd' ), | |
| 75 | + 'label' => __( 'Enable Editor Style', 'customify' ), | |
| 76 | + 'desc' => __( 'The styling added by Customify in front-end can be added in the WordPress editor too by enabling this option', 'customify' ), | |
| 71 | 77 | 'default' => true, |
| 72 | 78 | 'type' => 'switch', |
| 73 | 79 | ), |
| 74 | 80 | ) |
| @@ -76,10 +82,10 @@ | ||
| 76 | 82 | |
| 77 | 83 | if ( !empty( $customify_sections ) ) { |
| 78 | 84 | $general_settings['options']['disable_customify_sections'] = array( |
| 79 | 85 | 'name' => 'disable_customify_sections', |
| 80 | - 'label' => __( 'Disable Customify sections', 'pixcustomify_txtd' ), | |
| 81 | - 'desc' => __( 'You can also disable Customify\'s sections', 'pixcustomify_txtd' ), | |
| 86 | + 'label' => __( 'Disable Customify sections', 'customify' ), | |
| 87 | + 'desc' => __( 'You can also disable Customify\'s sections', 'customify' ), | |
| 82 | 88 | 'type' => 'multicheckbox', |
| 83 | 89 | 'options' => $customify_sections |
| 84 | 90 | ); |
| 85 | 91 | } |