From 8ce5db97aa1de2fc86be89f280b1db4cedca6a30 Mon Sep 17 00:00:00 2001 From: Marius Cristea Date: Wed, 1 Jun 2016 05:24:13 -0400 Subject: [PATCH 1/5] [AUTO] Updating changelog for v1.0.0 --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..db827e6 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ + + ### 1.0.0 - 01/06/2016 + **Changes:** + - New design + From 24d6b0e0417e01c4c393bd202eb4f4b5e6cda13f Mon Sep 17 00:00:00 2001 From: Marius Cristea Date: Tue, 7 Jun 2016 09:20:57 -0400 Subject: [PATCH 2/5] [AUTO] Updating changelog for v1.0.1 --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index db827e6..65781a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ + ### 1.0.1 - 07/06/2016 + **Changes:** + - Add colors schemes options + - Fixed sanitizations + - Regenerate .pot file + - Style Trackbacks and Pingbacks + - Style Galleries + ### 1.0.0 - 01/06/2016 **Changes:** - New design From 65b1c7d68cea760e37af176294e6995c4a55c4da Mon Sep 17 00:00:00 2001 From: Marius Cristea Date: Tue, 7 Jun 2016 09:26:45 -0400 Subject: [PATCH 3/5] [AUTO] Updating changelog for v1.0.2 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65781a7..aa8f865 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ + ### 1.0.2 - 07/06/2016 + **Changes:** + - Fixed issue with Related Posts + ### 1.0.1 - 07/06/2016 **Changes:** - Add colors schemes options From 2bf1badc0dda70df0cd419446d04ff07f2b82b23 Mon Sep 17 00:00:00 2001 From: claudiuvertistudio Date: Wed, 8 Jun 2016 13:49:45 +0300 Subject: [PATCH 4/5] #46 Removal of Core Options --- functions.php | 37 +++++++++++--------------------- inc/custom-header.php | 2 ++ inc/customizer.php | 20 +++++++++++------ js/customizer.js | 50 +++++++++++++++++++++++++++---------------- style.css | 4 ++++ 5 files changed, 65 insertions(+), 48 deletions(-) diff --git a/functions.php b/functions.php index 1cf779d..3db000c 100644 --- a/functions.php +++ b/functions.php @@ -306,39 +306,28 @@ function zillah_brand(){ echo '
'; - if ( function_exists( 'the_custom_logo' ) && has_custom_logo() ) { - the_custom_logo(); - echo '
'; - if ( is_front_page() && is_home() ) : ?> -

- -

- '; + $zillah_tagline_hide = get_theme_mod( 'zillah_tagline_show', false ); - } else { - if( is_customize_preview() ){ ?> - - - - '; + + if( ( ! $zillah_tagline_hide && display_header_text() ) || is_customize_preview() ) { + echo '
'; if ( is_front_page() && is_home() ) : ?>

'; - } + echo '
'; + } - $description = get_bloginfo( 'description', 'display' ); - if ( $description || is_customize_preview() ) : ?> -

- +

+ '; } diff --git a/inc/custom-header.php b/inc/custom-header.php index 389ea5b..df61686 100644 --- a/inc/custom-header.php +++ b/inc/custom-header.php @@ -31,3 +31,5 @@ function zillah_custom_header_setup() { } add_action( 'after_setup_theme', 'zillah_custom_header_setup' ); + + diff --git a/inc/customizer.php b/inc/customizer.php index 3bffd0a..aa1ccc6 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -14,24 +14,32 @@ function zillah_customize_register( $wp_customize ) { $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; - $wp_customize->get_setting( 'header_textcolor' )->default = '#7fcaad'; require_once ( 'class/zillah_category-selector-control.php'); - - $wp_customize->remove_control( 'display_header_text' ); $wp_customize->get_control( 'blogname' )->priority = 3; $wp_customize->get_control( 'blogdescription' )->priority = 4; - $wp_customize->remove_control( 'background_color' ); - $wp_customize->remove_control( 'header_textcolor' ); - $custom_logo = $wp_customize->get_control( 'custom_logo' ); if( !empty( $custom_logo ) ) { $wp_customize->get_control( 'custom_logo' )->priority = 5; } + /* Title tagline */ + $wp_customize->add_setting('zillah_tagline_show', array( + 'default' => 0, + 'sanitize_callback' => 'zillah_sanitize_checkbox', + 'transport' => 'postMessage', + )); + + $wp_customize->add_control('zillah_tagline_show', array( + 'label' => esc_html__('Hide Site Title', 'zillah'), + 'section' => 'title_tagline', + 'priority' => 50, + 'type' => 'checkbox', + )); + /* Advanced options */ $wp_customize->add_section( 'zillah_home_theme_option_section', array( 'title' => esc_html__( 'Theme options', 'zillah' ), diff --git a/js/customizer.js b/js/customizer.js index 7a79aba..ef15321 100644 --- a/js/customizer.js +++ b/js/customizer.js @@ -14,6 +14,7 @@ $( '.site-title a' ).text( to ); } ); } ); + wp.customize( 'blogdescription', function( value ) { value.bind( function( to ) { $( '.site-description' ).text( to ); @@ -21,24 +22,37 @@ } ); // Header text color. - wp.customize( 'header_textcolor', function( value ) { - value.bind( function( to ) { - if ( 'blank' === to ) { - $( '.site-title a, .site-description' ).css( { - 'clip': 'rect(1px, 1px, 1px, 1px)', - 'position': 'absolute' - } ); - } else { - $( '.site-title a' ).css( { - 'clip': 'auto', - 'position': 'relative' - } ); - $( '.site-title a' ).css( { - 'color': to - } ); - } - } ); - } ); + wp.customize( 'header_textcolor', function( value ) { + value.bind( function( to ) { + if ( 'blank' === to ) { + $( '.site-title a, .site-description' ).css( { + 'clip': 'rect(1px, 1px, 1px, 1px)', + 'position': 'absolute' + } ); + } else { + $( '.site-title a, .site-description' ).css( { + 'clip': 'auto', + 'position': 'relative' + } ); + $( '.site-title a' ).css( { + 'color': to + } ); + } + } ); + } ); + + // Hide Site Title + wp.customize( 'zillah_tagline_show', function( value ) { + value.bind( function( to ) { + if( to != '' ) { + $( '.header-title-wrap' ).addClass( 'zillah-only-customizer' ); + } + else { + $( '.header-title-wrap' ).removeClass( 'zillah-only-customizer' ); + } + } ); + } ); + // Logo wp.customize( 'custom_logo', function( value ) { diff --git a/style.css b/style.css index 3887a41..978afdc 100644 --- a/style.css +++ b/style.css @@ -1721,6 +1721,10 @@ object { padding: 12px 0; } +.header-title-wrap { + margin-top: 20px; +} + .menu-toggle-button-wrap { display: table-cell; vertical-align: middle; From fb9d130528799b335b9e8ab15eaa1fb9c37549f9 Mon Sep 17 00:00:00 2001 From: claudiuvertistudio Date: Wed, 8 Jun 2016 14:09:01 +0300 Subject: [PATCH 5/5] !!! Custom color issue in customizer --- functions.php | 18 +++++++++++------- inc/custom-header.php | 2 -- style.css | 4 ++++ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/functions.php b/functions.php index 3db000c..3c08edf 100644 --- a/functions.php +++ b/functions.php @@ -438,6 +438,8 @@ function zillah_php_style() { $zillah_c5 = $zillah_picker->color5; } + $header_text_color = get_header_textcolor(); + if( isset( $zillah_c5 ) ) { $rgb = zillah_get_rgb( $zillah_c5 ); } @@ -473,10 +475,11 @@ function zillah_php_style() { color: '.$zillah_c2.'; } a, .entry-content a:visited, .comment-content a:visited, - .site-title a, .site-title a:visited, .cat-links, .entry-header .cat-links, .cat-links a, p.dropcap:first-letter, - .site-footer .fa { + .site-footer .fa, + .author-details-title, + .entry-content #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a { color:'.$zillah_c2.'; } button, input[type="button"], input[type="reset"], input[type="submit"], .btn { @@ -545,11 +548,6 @@ function zillah_php_style() { '; /* Color 4 */ - echo ' - body { - background: '.$zillah_c4.'; - } - '; /* Color 5 */ echo ' @@ -577,6 +575,12 @@ function zillah_php_style() { } '; + echo ' + .site-title a { + color: #'. esc_attr( $header_text_color ) .' + } + '; + } echo ''; } diff --git a/inc/custom-header.php b/inc/custom-header.php index df61686..389ea5b 100644 --- a/inc/custom-header.php +++ b/inc/custom-header.php @@ -31,5 +31,3 @@ function zillah_custom_header_setup() { } add_action( 'after_setup_theme', 'zillah_custom_header_setup' ); - - diff --git a/style.css b/style.css index 978afdc..9e0742b 100644 --- a/style.css +++ b/style.css @@ -1297,6 +1297,10 @@ p.dropcap:first-letter { margin-bottom: 50px; } +.post-thumbnail-wrap img { + width: 100%; +} + .entry-title-blog { margin-bottom: 0; }