Changeset 234536 for blogbd/1.1/inc/customizer.php
- Timestamp:
- 07/10/2024 09:52:48 AM (17 months ago)
- Location:
- blogbd/1.1
- Files:
-
- 1 edited
- 1 copied
-
. (copied) (copied from blogbd/1.0.12)
-
inc/customizer.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blogbd/1.1/inc/customizer.php
r230801 r234536 28 28 29 29 $wp_customize->add_control( new WP_Customize_Color_control( $wp_customize, 'header_background_color', array( 30 'label' => __( 'Header Background Color', 'blogbd' ),30 'label' => __( 'Header Background', 'blogbd' ), 31 31 'section' => 'colors', 32 32 'settings' => 'header_background_color', … … 41 41 ) ); 42 42 43 $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'blogbd_link_color _control', array(43 $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'blogbd_link_color', array( 44 44 'label' => __( 'Link Color', 'blogbd' ), 45 45 'section' => 'colors', … … 95 95 ) ); 96 96 97 98 99 // Add a new section for the footer text 100 $wp_customize->add_section( 'blogbd_footer_section', array( 101 'title' => __( 'Footer Text', 'blogbd' ), 102 'priority' => 130, 103 ) ); 104 105 // Add the setting for the footer text 106 $wp_customize->add_setting( 'blogbd_footer_text', array( 107 'default' => __( 'BlogBD WordPress Theme', 'blogbd' ), 108 'sanitize_callback' => 'sanitize_text_field', 109 ) ); 110 111 // Add the control for the footer text 112 $wp_customize->add_control( 'blogbd_footer_text', array( 113 'label' => __( 'Footer Text', 'blogbd' ), 114 'section' => 'blogbd_footer_section', 115 'type' => 'text', 116 ) ); 117 118 119 120 97 121 } 98 122 … … 104 128 a { color: <?php echo esc_attr( get_theme_mod( 'blogbd_link_color', '#0073aa' ) ); ?>; } 105 129 #secondary.widget-area ul li a { color: <?php echo esc_attr( get_theme_mod( 'blogbd_link_color', '#0073aa' ) ); ?>; } 106 body { color: <?php echo esc_attr( get_theme_mod( 'blogbd_text_color', '#333333' ) ); ?>; } 107 .site-header a { color: #<?php echo esc_attr( get_header_textcolor() ); ?>; } 108 .site-header { 109 background-color: <?php echo esc_attr( get_theme_mod( 'header_background_color', '#ffffff' ) ); ?>; 130 body { 131 color: <?php echo esc_attr( get_theme_mod( 'blogbd_text_color', '#333333' ) ); ?>; 132 } 133 header.site-header a { color: #<?php echo esc_attr( get_header_textcolor() ); ?>; } 134 header.site-header { 135 background-color: <?php echo esc_attr( get_theme_mod( 'header_background_color', '#0073aa' ) ); ?>; 110 136 color: #<?php echo esc_attr( get_header_textcolor() ); ?>; 111 137 }
Note: See TracChangeset
for help on using the changeset viewer.