@@ -10,23 +10,23 @@ discard block |
||
| 10 | 10 | * |
| 11 | 11 | * @param WP_Customize_Manager $wp_customize Theme Customizer object. |
| 12 | 12 | */ |
| 13 | -function designfly_customize_register( $wp_customize ) { |
|
| 14 | - $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; |
|
| 15 | - $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; |
|
| 16 | - $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; |
|
| 13 | +function designfly_customize_register($wp_customize) { |
|
| 14 | + $wp_customize->get_setting('blogname')->transport = 'postMessage'; |
|
| 15 | + $wp_customize->get_setting('blogdescription')->transport = 'postMessage'; |
|
| 16 | + $wp_customize->get_setting('header_textcolor')->transport = 'postMessage'; |
|
| 17 | 17 | |
| 18 | - if ( isset( $wp_customize->selective_refresh ) ) { |
|
| 19 | - $wp_customize->selective_refresh->add_partial( 'blogname', array( |
|
| 18 | + if (isset($wp_customize->selective_refresh)) { |
|
| 19 | + $wp_customize->selective_refresh->add_partial('blogname', array( |
|
| 20 | 20 | 'selector' => '.site-title a', |
| 21 | 21 | 'render_callback' => 'designfly_customize_partial_blogname', |
| 22 | - ) ); |
|
| 23 | - $wp_customize->selective_refresh->add_partial( 'blogdescription', array( |
|
| 22 | + )); |
|
| 23 | + $wp_customize->selective_refresh->add_partial('blogdescription', array( |
|
| 24 | 24 | 'selector' => '.site-description', |
| 25 | 25 | 'render_callback' => 'designfly_customize_partial_blogdescription', |
| 26 | - ) ); |
|
| 26 | + )); |
|
| 27 | 27 | } |
| 28 | 28 | } |
| 29 | -add_action( 'customize_register', 'designfly_customize_register' ); |
|
| 29 | +add_action('customize_register', 'designfly_customize_register'); |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Render the site title for the selective refresh partial. |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * @return void |
| 35 | 35 | */ |
| 36 | 36 | function designfly_customize_partial_blogname() { |
| 37 | - bloginfo( 'name' ); |
|
| 37 | + bloginfo('name'); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -43,16 +43,16 @@ discard block |
||
| 43 | 43 | * @return void |
| 44 | 44 | */ |
| 45 | 45 | function designfly_customize_partial_blogdescription() { |
| 46 | - bloginfo( 'description' ); |
|
| 46 | + bloginfo('description'); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. |
| 51 | 51 | */ |
| 52 | 52 | function designfly_customize_preview_js() { |
| 53 | - wp_enqueue_script( 'designfly-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true ); |
|
| 53 | + wp_enqueue_script('designfly-customizer', get_template_directory_uri() . '/js/customizer.js', array('customize-preview'), '20151215', true); |
|
| 54 | 54 | } |
| 55 | -add_action( 'customize_preview_init', 'designfly_customize_preview_js' ); |
|
| 55 | +add_action('customize_preview_init', 'designfly_customize_preview_js'); |
|
| 56 | 56 | |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -61,63 +61,63 @@ discard block |
||
| 61 | 61 | * @since 1.0.5 |
| 62 | 62 | */ |
| 63 | 63 | |
| 64 | - function register_home_mods( $wp_customize ) { |
|
| 64 | + function register_home_mods($wp_customize) { |
|
| 65 | 65 | /* Home Page Settings */ |
| 66 | 66 | // 'Home Page' display header section or not |
| 67 | - $wp_customize -> add_setting( 'designfly-home-display-header', array( |
|
| 67 | + $wp_customize -> add_setting('designfly-home-display-header', array( |
|
| 68 | 68 | 'default' => true, |
| 69 | - ) ); |
|
| 69 | + )); |
|
| 70 | 70 | |
| 71 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-home-display-header-control', |
|
| 71 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-home-display-header-control', |
|
| 72 | 72 | array( |
| 73 | - 'label' => __( 'Display header section', 'designfly' ), |
|
| 73 | + 'label' => __('Display header section', 'designfly'), |
|
| 74 | 74 | 'section' => 'static_front_page', |
| 75 | 75 | 'settings' => 'designfly-home-display-header', |
| 76 | 76 | 'type' => 'checkbox', |
| 77 | 77 | 'priority' => 1, |
| 78 | - ) ) ); |
|
| 78 | + ))); |
|
| 79 | 79 | |
| 80 | 80 | // 'Home page' display recent portfolio |
| 81 | - $wp_customize -> add_setting( 'designfly-home-display-portfolio', array( |
|
| 81 | + $wp_customize -> add_setting('designfly-home-display-portfolio', array( |
|
| 82 | 82 | 'default' => true, |
| 83 | - ) ); |
|
| 83 | + )); |
|
| 84 | 84 | |
| 85 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-home-display-portfolio-control', |
|
| 85 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-home-display-portfolio-control', |
|
| 86 | 86 | array( |
| 87 | - 'label' => __( 'Display latest portfolio items', 'designfly' ), |
|
| 87 | + 'label' => __('Display latest portfolio items', 'designfly'), |
|
| 88 | 88 | 'section' => 'static_front_page', |
| 89 | 89 | 'settings' => 'designfly-home-display-portfolio', |
| 90 | 90 | 'type' => 'checkbox', |
| 91 | 91 | 'priority' => 2, |
| 92 | - ) ) ); |
|
| 92 | + ))); |
|
| 93 | 93 | |
| 94 | 94 | // 'Home Page' portfolio section title |
| 95 | - $wp_customize -> add_setting( 'designfly-home-portfolio-title', array( |
|
| 95 | + $wp_customize -> add_setting('designfly-home-portfolio-title', array( |
|
| 96 | 96 | 'default' => 'D\'sign is the soul' |
| 97 | - ) ); |
|
| 97 | + )); |
|
| 98 | 98 | |
| 99 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-home-portfolio-title-control', |
|
| 99 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-home-portfolio-title-control', |
|
| 100 | 100 | array( |
| 101 | - 'label' => __( 'Portfolio Section Title', 'designfly' ), |
|
| 101 | + 'label' => __('Portfolio Section Title', 'designfly'), |
|
| 102 | 102 | 'section' => 'static_front_page', |
| 103 | 103 | 'settings' => 'designfly-home-portfolio-title', |
| 104 | 104 | 'type' => 'text', |
| 105 | 105 | 'priority' => 3, |
| 106 | - ) ) ); |
|
| 106 | + ))); |
|
| 107 | 107 | |
| 108 | 108 | // 'Home Page' View all button url |
| 109 | - $wp_customize -> add_setting( 'designfly-home-portfolio-btn', array( |
|
| 109 | + $wp_customize -> add_setting('designfly-home-portfolio-btn', array( |
|
| 110 | 110 | 'default' => '', |
| 111 | - ) ); |
|
| 111 | + )); |
|
| 112 | 112 | |
| 113 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-hoome-portfolio-btn-control', |
|
| 113 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-hoome-portfolio-btn-control', |
|
| 114 | 114 | array( |
| 115 | - 'label' => __( 'Portfolio \'View all\' button url', 'designfly' ), |
|
| 115 | + 'label' => __('Portfolio \'View all\' button url', 'designfly'), |
|
| 116 | 116 | 'section' => 'static_front_page', |
| 117 | 117 | 'settings' => 'designfly-home-portfolio-btn', |
| 118 | 118 | 'type' => 'dropdown-pages', |
| 119 | 119 | 'priority' => 4, |
| 120 | - ) ) ); |
|
| 120 | + ))); |
|
| 121 | 121 | |
| 122 | 122 | } |
| 123 | 123 | |
@@ -126,67 +126,67 @@ discard block |
||
| 126 | 126 | * |
| 127 | 127 | * @since 1.0.5 |
| 128 | 128 | */ |
| 129 | -function register_footer_mods( $wp_customize ) { |
|
| 130 | - $wp_customize -> add_section( 'designfly-footer-section', array( |
|
| 131 | - 'title' => __( 'Footer settings', 'designfly' ) |
|
| 132 | - ) ); |
|
| 129 | +function register_footer_mods($wp_customize) { |
|
| 130 | + $wp_customize -> add_section('designfly-footer-section', array( |
|
| 131 | + 'title' => __('Footer settings', 'designfly') |
|
| 132 | + )); |
|
| 133 | 133 | |
| 134 | 134 | // contact info |
| 135 | - $wp_customize -> add_setting( 'designfly-footer-contact', array( |
|
| 135 | + $wp_customize -> add_setting('designfly-footer-contact', array( |
|
| 136 | 136 | 'capability' => 'edit_theme_options', |
| 137 | 137 | 'default' => 'Street 21 Planet, A-11, california <br> Tel: 91234 42354' |
| 138 | - ) ); |
|
| 138 | + )); |
|
| 139 | 139 | |
| 140 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-footer-contact-control', |
|
| 140 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-footer-contact-control', |
|
| 141 | 141 | array( |
| 142 | - 'label' => __( 'Contact info(use \'<br>\' for new line)', 'designfly' ), |
|
| 142 | + 'label' => __('Contact info(use \'<br>\' for new line)', 'designfly'), |
|
| 143 | 143 | 'section' => 'designfly-footer-section', |
| 144 | 144 | 'settings' => 'designfly-footer-contact', |
| 145 | 145 | 'type' => 'textarea', |
| 146 | - ) ) ); |
|
| 146 | + ))); |
|
| 147 | 147 | |
| 148 | 148 | |
| 149 | - $wp_customize -> add_setting( 'designfly-footer-email', array( |
|
| 149 | + $wp_customize -> add_setting('designfly-footer-email', array( |
|
| 150 | 150 | 'capability' => 'edit_theme_options', |
| 151 | 151 | 'default' => '' |
| 152 | - ) ); |
|
| 152 | + )); |
|
| 153 | 153 | |
| 154 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-footer-email-control', |
|
| 154 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-footer-email-control', |
|
| 155 | 155 | array( |
| 156 | - 'label' => __( 'Contact email', 'designfly' ), |
|
| 156 | + 'label' => __('Contact email', 'designfly'), |
|
| 157 | 157 | 'section' => 'designfly-footer-section', |
| 158 | 158 | 'settings' => 'designfly-footer-email', |
| 159 | 159 | 'type' => 'text', |
| 160 | - ) ) ); |
|
| 160 | + ))); |
|
| 161 | 161 | |
| 162 | 162 | |
| 163 | 163 | // Site info text |
| 164 | - $wp_customize -> add_setting( 'designfly-footer-info', array( |
|
| 164 | + $wp_customize -> add_setting('designfly-footer-info', array( |
|
| 165 | 165 | 'capability' => 'edit_theme_options', |
| 166 | 166 | 'default' => '2012 - DESIGNfly' |
| 167 | - ) ); |
|
| 167 | + )); |
|
| 168 | 168 | |
| 169 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-footer-info-control', |
|
| 169 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-footer-info-control', |
|
| 170 | 170 | array( |
| 171 | - 'label' => __( 'Site info text', 'designfly' ), |
|
| 171 | + 'label' => __('Site info text', 'designfly'), |
|
| 172 | 172 | 'section' => 'designfly-footer-section', |
| 173 | 173 | 'settings' => 'designfly-footer-info', |
| 174 | 174 | 'type' => 'text', |
| 175 | - ) ) ); |
|
| 175 | + ))); |
|
| 176 | 176 | |
| 177 | 177 | // Social media urls |
| 178 | - $wp_customize -> add_setting( 'designfly-footer-urls', array( |
|
| 178 | + $wp_customize -> add_setting('designfly-footer-urls', array( |
|
| 179 | 179 | 'capability' => 'edit_theme_options', |
| 180 | 180 | 'default' => 'https://www.facebook.com/' |
| 181 | - ) ); |
|
| 181 | + )); |
|
| 182 | 182 | |
| 183 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-footer-urls-control', |
|
| 183 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-footer-urls-control', |
|
| 184 | 184 | array( |
| 185 | - 'label' => __( 'Social site urls(separate urls with a semicolon(;))', 'designfly' ), |
|
| 185 | + 'label' => __('Social site urls(separate urls with a semicolon(;))', 'designfly'), |
|
| 186 | 186 | 'section' => 'designfly-footer-section', |
| 187 | 187 | 'settings' => 'designfly-footer-urls', |
| 188 | 188 | 'type' => 'textarea', |
| 189 | - ) ) ); |
|
| 189 | + ))); |
|
| 190 | 190 | |
| 191 | 191 | } |
| 192 | 192 | |
@@ -195,137 +195,137 @@ discard block |
||
| 195 | 195 | * @since 1.0.2 |
| 196 | 196 | */ |
| 197 | 197 | |
| 198 | -function register_features_mods( $wp_customize ) { |
|
| 199 | - $wp_customize -> add_section( 'designfly-features-section', array( |
|
| 200 | - 'title' => __( 'Services bar', 'designfly' ) |
|
| 201 | - ) ); |
|
| 198 | +function register_features_mods($wp_customize) { |
|
| 199 | + $wp_customize -> add_section('designfly-features-section', array( |
|
| 200 | + 'title' => __('Services bar', 'designfly') |
|
| 201 | + )); |
|
| 202 | 202 | |
| 203 | 203 | /* Features settings */ |
| 204 | 204 | // 'Features' display or not |
| 205 | - $wp_customize -> add_setting( 'designfly-features-display', array( |
|
| 205 | + $wp_customize -> add_setting('designfly-features-display', array( |
|
| 206 | 206 | 'default' => true, |
| 207 | - ) ); |
|
| 207 | + )); |
|
| 208 | 208 | |
| 209 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-features-display-control', |
|
| 209 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-features-display-control', |
|
| 210 | 210 | array( |
| 211 | - 'label' => __( 'Display features?', 'designfly' ), |
|
| 211 | + 'label' => __('Display features?', 'designfly'), |
|
| 212 | 212 | 'section' => 'designfly-features-section', |
| 213 | 213 | 'settings' => 'designfly-features-display', |
| 214 | 214 | 'type' => 'checkbox', |
| 215 | - ) ) ); |
|
| 215 | + ))); |
|
| 216 | 216 | /* Features block-1 */ |
| 217 | 217 | // 'Features' title |
| 218 | - $wp_customize -> add_setting( 'designfly-features-title-1', array( |
|
| 218 | + $wp_customize -> add_setting('designfly-features-title-1', array( |
|
| 219 | 219 | 'default' => 'Title Text' |
| 220 | - ) ); |
|
| 220 | + )); |
|
| 221 | 221 | |
| 222 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-features-title-control-1', |
|
| 222 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-features-title-control-1', |
|
| 223 | 223 | array( |
| 224 | - 'label' => __( 'Title-1', 'designfly' ), |
|
| 224 | + 'label' => __('Title-1', 'designfly'), |
|
| 225 | 225 | 'section' => 'designfly-features-section', |
| 226 | 226 | 'settings' => 'designfly-features-title-1', |
| 227 | - ) ) ); |
|
| 227 | + ))); |
|
| 228 | 228 | |
| 229 | 229 | // 'Features' paragraph |
| 230 | - $wp_customize -> add_setting( 'designfly-features-para-1', array( |
|
| 230 | + $wp_customize -> add_setting('designfly-features-para-1', array( |
|
| 231 | 231 | 'default' => 'Description about the service...' |
| 232 | - ) ); |
|
| 232 | + )); |
|
| 233 | 233 | |
| 234 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-features-para-control-1', |
|
| 234 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-features-para-control-1', |
|
| 235 | 235 | array( |
| 236 | - 'label' => __( 'Description-1', 'designfly' ), |
|
| 236 | + 'label' => __('Description-1', 'designfly'), |
|
| 237 | 237 | 'section' => 'designfly-features-section', |
| 238 | 238 | 'settings' => 'designfly-features-para-1', |
| 239 | 239 | 'type' => 'textarea', |
| 240 | - ) ) ); |
|
| 240 | + ))); |
|
| 241 | 241 | |
| 242 | 242 | // 'Features' Image |
| 243 | - $wp_customize -> add_setting( 'designfly-features-image-1' ); |
|
| 243 | + $wp_customize -> add_setting('designfly-features-image-1'); |
|
| 244 | 244 | |
| 245 | - $wp_customize -> add_control( new WP_Customize_Cropped_Image_Control( $wp_customize, 'designfly-features-image-control-1', |
|
| 245 | + $wp_customize -> add_control(new WP_Customize_Cropped_Image_Control($wp_customize, 'designfly-features-image-control-1', |
|
| 246 | 246 | array( |
| 247 | - 'label' => __( 'Image-1', 'designfly' ), |
|
| 247 | + 'label' => __('Image-1', 'designfly'), |
|
| 248 | 248 | 'section' => 'designfly-features-section', |
| 249 | 249 | 'settings' => 'designfly-features-image-1', |
| 250 | 250 | 'width' => 50, |
| 251 | 251 | 'height' => 50, |
| 252 | - ) ) ); |
|
| 252 | + ))); |
|
| 253 | 253 | |
| 254 | 254 | /* Features block-2 */ |
| 255 | 255 | // 'Features' title |
| 256 | - $wp_customize -> add_setting( 'designfly-features-title-2', array( |
|
| 256 | + $wp_customize -> add_setting('designfly-features-title-2', array( |
|
| 257 | 257 | 'default' => 'Title Text' |
| 258 | - ) ); |
|
| 258 | + )); |
|
| 259 | 259 | |
| 260 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-features-title-control-2', |
|
| 260 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-features-title-control-2', |
|
| 261 | 261 | array( |
| 262 | - 'label' => __( 'Title-2', 'designfly' ), |
|
| 262 | + 'label' => __('Title-2', 'designfly'), |
|
| 263 | 263 | 'section' => 'designfly-features-section', |
| 264 | 264 | 'settings' => 'designfly-features-title-2', |
| 265 | - ) ) ); |
|
| 265 | + ))); |
|
| 266 | 266 | |
| 267 | 267 | // 'Features' paragraph |
| 268 | - $wp_customize -> add_setting( 'designfly-features-para-2', array( |
|
| 268 | + $wp_customize -> add_setting('designfly-features-para-2', array( |
|
| 269 | 269 | 'default' => 'Description about the service...' |
| 270 | - ) ); |
|
| 270 | + )); |
|
| 271 | 271 | |
| 272 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-features-para-control-2', |
|
| 272 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-features-para-control-2', |
|
| 273 | 273 | array( |
| 274 | - 'label' => __( 'Description-2', 'designfly' ), |
|
| 274 | + 'label' => __('Description-2', 'designfly'), |
|
| 275 | 275 | 'section' => 'designfly-features-section', |
| 276 | 276 | 'settings' => 'designfly-features-para-2', |
| 277 | 277 | 'type' => 'textarea', |
| 278 | - ) ) ); |
|
| 278 | + ))); |
|
| 279 | 279 | |
| 280 | 280 | // 'Features' Image |
| 281 | - $wp_customize -> add_setting( 'designfly-features-image-2' ); |
|
| 281 | + $wp_customize -> add_setting('designfly-features-image-2'); |
|
| 282 | 282 | |
| 283 | - $wp_customize -> add_control( new WP_Customize_Cropped_Image_Control( $wp_customize, 'designfly-features-image-control-2', |
|
| 283 | + $wp_customize -> add_control(new WP_Customize_Cropped_Image_Control($wp_customize, 'designfly-features-image-control-2', |
|
| 284 | 284 | array( |
| 285 | - 'label' => __( 'Image-2', 'designfly' ), |
|
| 285 | + 'label' => __('Image-2', 'designfly'), |
|
| 286 | 286 | 'section' => 'designfly-features-section', |
| 287 | 287 | 'settings' => 'designfly-features-image-2', |
| 288 | 288 | 'width' => 50, |
| 289 | 289 | 'height' => 50, |
| 290 | - ) ) ); |
|
| 290 | + ))); |
|
| 291 | 291 | |
| 292 | 292 | /* Features block-1 */ |
| 293 | 293 | // 'Features' title |
| 294 | - $wp_customize -> add_setting( 'designfly-features-title-3', array( |
|
| 294 | + $wp_customize -> add_setting('designfly-features-title-3', array( |
|
| 295 | 295 | 'default' => 'Title Text' |
| 296 | - ) ); |
|
| 296 | + )); |
|
| 297 | 297 | |
| 298 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-features-title-control-3', |
|
| 298 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-features-title-control-3', |
|
| 299 | 299 | array( |
| 300 | - 'label' => __( 'Title-3', 'designfly' ), |
|
| 300 | + 'label' => __('Title-3', 'designfly'), |
|
| 301 | 301 | 'section' => 'designfly-features-section', |
| 302 | 302 | 'settings' => 'designfly-features-title-3', |
| 303 | - ) ) ); |
|
| 303 | + ))); |
|
| 304 | 304 | |
| 305 | 305 | // 'Features' paragraph |
| 306 | - $wp_customize -> add_setting( 'designfly-features-para-3', array( |
|
| 306 | + $wp_customize -> add_setting('designfly-features-para-3', array( |
|
| 307 | 307 | 'default' => 'Description about the service...' |
| 308 | - ) ); |
|
| 308 | + )); |
|
| 309 | 309 | |
| 310 | - $wp_customize -> add_control( new WP_Customize_Control( $wp_customize, 'designfly-features-para-control-3', |
|
| 310 | + $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'designfly-features-para-control-3', |
|
| 311 | 311 | array( |
| 312 | - 'label' => __( 'Description-3', 'designfly' ), |
|
| 312 | + 'label' => __('Description-3', 'designfly'), |
|
| 313 | 313 | 'section' => 'designfly-features-section', |
| 314 | 314 | 'settings' => 'designfly-features-para-3', |
| 315 | 315 | 'type' => 'textarea', |
| 316 | - ) ) ); |
|
| 316 | + ))); |
|
| 317 | 317 | |
| 318 | 318 | // 'Features' Image |
| 319 | - $wp_customize -> add_setting( 'designfly-features-image-3' ); |
|
| 319 | + $wp_customize -> add_setting('designfly-features-image-3'); |
|
| 320 | 320 | |
| 321 | - $wp_customize -> add_control( new WP_Customize_Cropped_Image_Control( $wp_customize, 'designfly-features-image-control-3', |
|
| 321 | + $wp_customize -> add_control(new WP_Customize_Cropped_Image_Control($wp_customize, 'designfly-features-image-control-3', |
|
| 322 | 322 | array( |
| 323 | - 'label' => __( 'Image-3', 'designfly' ), |
|
| 323 | + 'label' => __('Image-3', 'designfly'), |
|
| 324 | 324 | 'section' => 'designfly-features-section', |
| 325 | 325 | 'settings' => 'designfly-features-image-3', |
| 326 | 326 | 'width' => 50, |
| 327 | 327 | 'height' => 50, |
| 328 | - ) ) ); |
|
| 328 | + ))); |
|
| 329 | 329 | } |
| 330 | 330 | |
| 331 | 331 | /** |
@@ -333,10 +333,10 @@ discard block |
||
| 333 | 333 | * |
| 334 | 334 | * @since 1.0.5 |
| 335 | 335 | */ |
| 336 | - function designfly_theme_mods( $wp_customize ) { |
|
| 337 | - register_features_mods( $wp_customize ); |
|
| 338 | - register_home_mods( $wp_customize ); |
|
| 339 | - register_footer_mods( $wp_customize ); |
|
| 336 | + function designfly_theme_mods($wp_customize) { |
|
| 337 | + register_features_mods($wp_customize); |
|
| 338 | + register_home_mods($wp_customize); |
|
| 339 | + register_footer_mods($wp_customize); |
|
| 340 | 340 | } |
| 341 | 341 | |
| 342 | - add_action( 'customize_register', 'designfly_theme_mods' ); |
|
| 342 | + add_action('customize_register', 'designfly_theme_mods'); |
|