height; $fit_height = basic_get_theme_option( 'fix_header_height' ); if ( ! empty( $fit_height ) && !empty( $header_h ) ) { $style .= "@media screen and (min-width:1024px){.sitetitle{height:{$header_h}px}}"; } $header_textcolor = get_theme_mod( 'header_textcolor', false ); if ( ! empty( $header_textcolor ) ) { $style .= "a#logo{color:#$header_textcolor}"; } $main_color = basic_get_theme_option( 'maincolor' ); if ( ! empty( $main_color ) && '#936' != $main_color && '#993366' != $main_color ) { $style .= "a:hover,#logo,.bx-controls a:hover .fa{color:$main_color}"; $style .= "a:hover{color:$main_color}"; $style .= "blockquote,q,input:focus,textarea:focus{border-color:$main_color}"; $style .= "input[type=submit],input[type=button],.submit,.button,#mobile-menu:hover,.top-menu,.top-menu .sub-menu,.top-menu .children,.more-link,.avd-pagination a:hover,.avd-pagination .current,#footer{background-color:$main_color}"; } echo ( $style ) ? "\n\n\n" : ""; } add_action( 'wp_head', 'basic_customizer_css' ); /* ======================================================================== */ /* ======================================================================== * * Customizer functions * ======================================================================== */ // ------------------------ function basic_sanitize_text( $value ) { return sanitize_text_field( $value ); } // ------------------------ function basic_sanitize_html( $value ) { return esc_html( $value ); } // ------------------------ function basic_sanitize_textarea( $value ) { return esc_textarea( $value ); } // ------------------------ function basic_is_single() { return is_single(); } // ------------------------ function basic_is_page() { return is_page(); } // ------------------------ function basic_is_singular() { return is_singular(); } // ------------------------ function basic_is_default_layout() { return ! is_singular() && ! is_page() && ! is_home(); } // ------------------------ if ( class_exists( 'WP_Customize_Control' ) ) { class Basic_Group_Title_Control extends WP_Customize_Control { public function render_content() { echo ( ! empty( $this->label ) ) ? '
' . esc_html( $this->description ) . '
' : ''; echo '