diff --git a/README.md b/README.md index deee464..968876e 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,6 @@ Changelogs for each version can be found [on GitHub](https://github.com/ScottSmith95/Decode/releases). -*Note: Decode does not support Internet Explorer 8* An Internet Explorer 8-compatible version is available for download [on GitHub](https://github.com/ScottSmith95/Decode/tree/IE8-Support) and via [direct download](https://github.com/ScottSmith95/Decode/archive/IE8-Support.zip). - I built Decode, the theme I use on [Beyond The Code](http://beyondtheco.de), to be a beautifully crafted, mobile first theme that uses media queries to bring in CSS for larger screens. If you want to change any of the colors in your theme, enable the sidebar, social links, and more, access the Customize menu in Admin > Appearance > Customize. From here you can access all the settings available for this theme. @@ -72,8 +70,7 @@ Lastly, Decode has social icons that can link to your profiles from every side o - YouVersion - Playstation Network - Xbox Live -- Steam User -- Steam Groups +- Steam - Skype - Website - Email diff --git a/docs/src/README.md b/docs/src/README.md index deee464..968876e 100644 --- a/docs/src/README.md +++ b/docs/src/README.md @@ -6,8 +6,6 @@ Changelogs for each version can be found [on GitHub](https://github.com/ScottSmith95/Decode/releases). -*Note: Decode does not support Internet Explorer 8* An Internet Explorer 8-compatible version is available for download [on GitHub](https://github.com/ScottSmith95/Decode/tree/IE8-Support) and via [direct download](https://github.com/ScottSmith95/Decode/archive/IE8-Support.zip). - I built Decode, the theme I use on [Beyond The Code](http://beyondtheco.de), to be a beautifully crafted, mobile first theme that uses media queries to bring in CSS for larger screens. If you want to change any of the colors in your theme, enable the sidebar, social links, and more, access the Customize menu in Admin > Appearance > Customize. From here you can access all the settings available for this theme. @@ -72,8 +70,7 @@ Lastly, Decode has social icons that can link to your profiles from every side o - YouVersion - Playstation Network - Xbox Live -- Steam User -- Steam Groups +- Steam - Skype - Website - Email diff --git a/image.php b/image.php index 0f6bd14..703291b 100644 --- a/image.php +++ b/image.php @@ -101,9 +101,9 @@ if ( get_theme_mod( 'enable_comments', true ) == true ) : // If comments are open or we have at least one comment, load up the comment template. - if ( comments_open() || '0' != get_comments_number() ) { - comments_template(); - } + if ( comments_open() || get_comments_number() ) { + comments_template(); + } endif; ?> diff --git a/inc/customizer.php b/inc/customizer.php index 0c5d3b2..ad4bd30 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -44,9 +44,8 @@ function decode_sanitize_setting( $input ) { // Boolean sanitization function function decode_sanitize_boolean( $input ) { - if ( filter_var( $input, FILTER_VALIDATE_BOOLEAN ) ) { - return $input; - } + $output = filter_var($input, FILTER_VALIDATE_BOOLEAN); + return $output; } // String sanitization function @@ -135,6 +134,8 @@ public static function decode_customize_register( $wp_customize ) { remove_theme_mod( 'show_social_icons' ); remove_theme_mod( 'linkedin_username' ); remove_theme_mod( 'yelp_userid' ); + remove_theme_mod( 'steam_user' ); + remove_theme_mod( 'steam_group' ); remove_theme_mod( 'show_all_post_types' ); /** @@ -602,12 +603,7 @@ public static function decode_customize_register( $wp_customize ) { 'sanitize_callback' => 'decode_sanitize_string', ) ); - $wp_customize->add_setting( 'steam_username', array( - 'default' => '', - 'sanitize_callback' => 'decode_sanitize_string', - ) ); - - $wp_customize->add_setting( 'steam_group_name', array( + $wp_customize->add_setting( 'steam_url', array( 'default' => '', 'sanitize_callback' => 'decode_sanitize_string', ) ); @@ -1065,28 +1061,20 @@ public static function decode_customize_register( $wp_customize ) { 'priority' => 53, ) ); - $wp_customize->add_control( 'steam_username', array( - 'label' => sprintf( __( '%s Username', 'decode' ), 'Steam' ), + $wp_customize->add_control( 'steam_url', array( + 'label' => sprintf( __( '%s Profile URL', 'decode' ), 'Steam' ), 'section' => 'decode_social_options', 'active_callback' => 'decode_social_icons_are_enabled', 'type' => 'text', 'priority' => 54, ) ); - $wp_customize->add_control( 'steam_group_name', array( - 'label' => sprintf( __( '%s Group Name', 'decode' ), 'Steam' ), - 'section' => 'decode_social_options', - 'active_callback' => 'decode_social_icons_are_enabled', - 'type' => 'text', - 'priority' => 55, - ) ); - $wp_customize->add_control( 'skype_username', array( 'label' => sprintf( __( '%s Username', 'decode' ), 'Skype' ), 'section' => 'decode_social_options', 'active_callback' => 'decode_social_icons_are_enabled', 'type' => 'text', - 'priority' => 56, + 'priority' => 55, ) ); $wp_customize->add_control( 'email_address', array( @@ -1095,7 +1083,7 @@ public static function decode_customize_register( $wp_customize ) { 'active_callback' => 'decode_social_icons_are_enabled', 'type' => 'text', //'type' => 'email', /* Uncomment for WP >= 4.4 */ - 'priority' => 57, + 'priority' => 56, ) ); $wp_customize->add_control( 'website_link', array( @@ -1104,7 +1092,7 @@ public static function decode_customize_register( $wp_customize ) { 'active_callback' => 'decode_social_icons_are_enabled', 'type' => 'text', //'type' => 'url', /* Uncomment for WP >= 4.4 */ - 'priority' => 58, + 'priority' => 57, ) ); $wp_customize->add_control( 'show_rss_icon', array( @@ -1112,7 +1100,7 @@ public static function decode_customize_register( $wp_customize ) { 'section' => 'decode_social_options', 'active_callback' => 'decode_social_icons_are_enabled', 'type' => 'checkbox', - 'priority' => 59, + 'priority' => 58, ) ); diff --git a/package.json b/package.json index fcb8df1..c5a0442 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Decode", - "version": "3.0.3", + "version": "3.0.4", "author": "Scott Smith (http://ScottHSmith.com)", "license": "GPLv3", "repository": { diff --git a/page.php b/page.php index ae4422e..5ccaf37 100644 --- a/page.php +++ b/page.php @@ -21,9 +21,9 @@ diff --git a/single.php b/single.php index e1d789d..add37ac 100644 --- a/single.php +++ b/single.php @@ -16,9 +16,9 @@ diff --git a/social-links.php b/social-links.php index 97e733b..561d8b9 100644 --- a/social-links.php +++ b/social-links.php @@ -533,6 +533,16 @@ + + rel="me"> + + + + + + + + rel="me"> diff --git a/styles/src/style.scss b/styles/src/style.scss index b7c1e16..d8e7852 100644 --- a/styles/src/style.scss +++ b/styles/src/style.scss @@ -4,7 +4,7 @@ /*! Theme Name: Decode Theme URI: http://ScottHSmith.com/projects/decode/ -Version: 3.0.3 +Version: 3.0.4 Author: Scott Smith Author URI: http://ScottHSmith.com/ Description: A minimal, modern theme, designed to be mobile first and fully responsive, Decode features the ability to change all the colors in the theme and an elegant sidebar conveniently accessed by tapping on the menu icon. The sidebar can fit all of your widgets and its position can be customized. You can also choose to keep the sidebar always visible on larger screens for an elegent two-column experience. You can even disable the sidebar and comment links if you choose. Decode supports link posts, where the title can be hyperlinked. Decode includes custom social icons in the header that you can easily link to your choice of 53 different social profiles from Twitter, and App.net, to Pinterest and LinkedIn, you will be sure to find support for the network you want alongside a bevy of customizations to make your site unique. Decode has been translated into Chinese, Dutch, French, German, Polish, Russian, and Spanish. More info here @@ -541,8 +541,7 @@ embed, iframe, object { .XboxLiveLink { background-image: url('images/XboxLive.png'); } - .SteamUserLink, - .SteamGroupLink { + .Steam { background-image: url('images/Steam.png'); } .SkypeLink {