Skip to content

Commit

Permalink
moved footer and header controls in their relevant sections
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeo committed Feb 27, 2017
1 parent ef94236 commit 2526a69
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 42 deletions.
80 changes: 40 additions & 40 deletions functions/class-utils-settings-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,46 +299,6 @@ function hu_general_design_sec( $get_default = null ) {
//'transport' => 'postMessage',
//'notice' => __('Set background color and/or upload your own background image.', 'hueman')
),
'color-topbar' => array(
'default' => '#26272b',
'control' => 'WP_Customize_Color_Control',
'label' => __( 'Topbar Background' , 'hueman' ),
'section' => 'general_design_sec',
'type' => 'color' ,
'sanitize_callback' => array( $this, 'hu_sanitize_hex_color' ),
'sanitize_js_callback' => 'maybe_hash_hex_color',
'transport' => 'postMessage'
),
'color-header' => array(
'default' => '#33363b',
'control' => 'WP_Customize_Color_Control',
'label' => __( 'Header Background' , 'hueman' ),
'section' => 'general_design_sec',
'type' => 'color' ,
'sanitize_callback' => array( $this, 'hu_sanitize_hex_color' ),
'sanitize_js_callback' => 'maybe_hash_hex_color',
'transport' => 'postMessage'
),
'color-header-menu' => array(
'default' => '#33363b',
'control' => 'WP_Customize_Color_Control',
'label' => __( 'Header Menu Background' , 'hueman' ),
'section' => 'general_design_sec',
'type' => 'color' ,
'sanitize_callback' => array( $this, 'hu_sanitize_hex_color' ),
'sanitize_js_callback' => 'maybe_hash_hex_color',
'transport' => 'postMessage'
),
'color-footer' => array(
'default' => '#33363b',
'control' => 'WP_Customize_Color_Control',
'label' => __( 'Footer Background' , 'hueman' ),
'section' => 'general_design_sec',
'type' => 'color' ,
'sanitize_callback' => array( $this, 'hu_sanitize_hex_color' ),
'sanitize_js_callback' => 'maybe_hash_hex_color',
'transport' => 'postMessage'
),
'image-border-radius' => array(
'default' => 0,
'control' => 'HU_controls' ,
Expand Down Expand Up @@ -544,6 +504,36 @@ function hu_header_design_sec() {
'priority' => '15'
)
),
'color-topbar' => array(
'default' => '#26272b',
'control' => 'WP_Customize_Color_Control',
'label' => __( 'Topbar Background' , 'hueman' ),
'section' => 'header_design_sec',
'type' => 'color' ,
'sanitize_callback' => array( $this, 'hu_sanitize_hex_color' ),
'sanitize_js_callback' => 'maybe_hash_hex_color',
'transport' => 'postMessage'
),
'color-header' => array(
'default' => '#33363b',
'control' => 'WP_Customize_Color_Control',
'label' => __( 'Header Background' , 'hueman' ),
'section' => 'header_design_sec',
'type' => 'color' ,
'sanitize_callback' => array( $this, 'hu_sanitize_hex_color' ),
'sanitize_js_callback' => 'maybe_hash_hex_color',
'transport' => 'postMessage'
),
'color-header-menu' => array(
'default' => '#33363b',
'control' => 'WP_Customize_Color_Control',
'label' => __( 'Header Menu Background' , 'hueman' ),
'section' => 'header_design_sec',
'type' => 'color' ,
'sanitize_callback' => array( $this, 'hu_sanitize_hex_color' ),
'sanitize_js_callback' => 'maybe_hash_hex_color',
'transport' => 'postMessage'
),
'use-header-image' => array(
'default' => 0,
'control' => 'HU_controls',
Expand Down Expand Up @@ -983,6 +973,16 @@ function hu_footer_design_sec() {
'dst_height' => false,
'notice' => __('Upload your custom logo image. Supported formats : .jpg, .png, .gif, svg, svgz' , 'hueman')
),
'color-footer' => array(
'default' => '#33363b',
'control' => 'WP_Customize_Color_Control',
'label' => __( 'Footer Background' , 'hueman' ),
'section' => 'footer_design_sec',
'type' => 'color' ,
'sanitize_callback' => array( $this, 'hu_sanitize_hex_color' ),
'sanitize_js_callback' => 'maybe_hash_hex_color',
'transport' => 'postMessage'
),
'copyright' => array(
'control' => 'HU_controls',
'default' => '',
Expand Down
1 change: 0 additions & 1 deletion functions/czr/class-czr-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ function hu_register_old_custom_logo( $settings ) {
function hu_augment_customizer( $manager ) {
$_classes = array(
'controls/class-base-control.php',
//'controls/class-background-control.php',
'controls/class-cropped-image-control.php',

'controls/class-layout-control.php',
Expand Down
2 changes: 1 addition & 1 deletion functions/czr/czr-resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function hu_customize_controls_js_css() {
'css_attr' => HU_customize::$instance -> hu_get_controls_css_attr(),
'i18n' => hu_get_czr_translated_strings(),
'isDevMode' => ( defined('WP_DEBUG') && true === WP_DEBUG ) || ( defined('TC_DEV') && true === TC_DEV ),
'isThemeSwitchOn' => isset( $_GET['theme']),
'isThemeSwitchOn' => ! (bool)HU_IS_PRO,
'themeSettingList' => HU_utils::$_theme_setting_list
)
)
Expand Down

0 comments on commit 2526a69

Please sign in to comment.