Skip to content

Commit

Permalink
Merge pull request #28 from ScottSmith95/3.0.4
Browse files Browse the repository at this point in the history
Decode 3.0.4
  • Loading branch information
ScottSmith95 committed Oct 17, 2014
2 parents 1da06e8 + 8bd5052 commit 638ab7c
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 43 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions docs/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions image.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
?>
Expand Down
34 changes: 11 additions & 23 deletions inc/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' );

/**
Expand Down Expand Up @@ -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',
) );
Expand Down Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -1104,15 +1092,15 @@ 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(
'label' => __( 'RSS Feed', 'decode' ),
'section' => 'decode_social_options',
'active_callback' => 'decode_social_icons_are_enabled',
'type' => 'checkbox',
'priority' => 59,
'priority' => 58,
) );


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Decode",
"version": "3.0.3",
"version": "3.0.4",
"author": "Scott Smith <[email protected]> (http://ScottHSmith.com)",
"license": "GPLv3",
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions page.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

<?php
// 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();
endif;
if ( comments_open() || get_comments_number() ) {
comments_template();
}
?>

<?php endwhile; // end of the loop. ?>
Expand Down
4 changes: 2 additions & 2 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || '0' != get_comments_number() ) :
if ( comments_open() || get_comments_number() ) {
comments_template();
endif;
}
?>

<?php endwhile; // end of the loop. ?>
Expand Down
10 changes: 10 additions & 0 deletions social-links.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,16 @@
</a>
<?php endif; ?>

<?php if ( get_theme_mod( 'steam_url', '' ) !== '' ) : ?>
<a class="social-link Steam" href="<?php echo esc_url( get_theme_mod( 'steam_url' ) );?>" <?php if ( get_theme_mod( 'open_links_in_new_tab', false ) == true ) echo 'target="_blank"'; ?> rel="me">
<svg width="200px" height="200px" viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path class="social-icon-fill SocialIconFill" d="M100,0 C44.7714,0 0,44.7714 0,100 C0,155.2286 44.7714,200 100,200 C155.2286,200 200,155.2286 200,100 C200,44.7714 155.2286,0 100,0 Z M158.258929,64 C146.358414,64 136.692907,73.5974571 136.584821,85.4732143 L123.080357,104.825893 C122.5302,104.768964 121.971036,104.736607 121.40625,104.736607 C118.389071,104.736603 115.56945,105.566009 113.147321,107.013393 L51.9866071,82.4151786 C50.3881671,75.1588836 43.90355,69.6919643 36.1830357,69.6919643 C27.2692014,69.6919621 20,76.9834843 20,85.8973214 C19.9999991,94.8111543 27.2691986,102.080357 36.1830357,102.080357 C39.2000793,102.080353 42.0198336,101.250999 44.4419643,99.8035714 L105.602679,124.357143 C107.184964,131.630394 113.670264,137.10268 121.40625,137.10268 C129.785757,137.10268 136.699314,130.67943 137.5,122.504464 L158.258929,107.325893 C170.224079,107.325891 179.933043,97.6358043 179.933036,85.6741071 C179.933043,73.7055671 170.224943,64 158.258929,64 Z M158.258929,71.1428571 C166.275943,71.1428571 172.790179,77.6568986 172.790179,85.6741071 C172.790171,93.6913143 166.275943,100.183036 158.258929,100.183036 C150.241921,100.183034 143.727679,93.6913157 143.727679,85.6741071 C143.727671,77.6568971 150.241914,71.1428571 158.258929,71.1428571 Z M169.924114,85.6071436 C169.924114,92.0142864 164.724114,97.2142871 158.316964,97.2142871 C151.909829,97.2142871 146.709821,92.0142864 146.709821,85.6071436 C146.709821,79.2 151.909829,74 158.316964,74 C164.724114,74 169.924114,79.2 169.924114,85.6071436 Z M36.1830357,73.9776786 C40.7526086,73.9776764 44.7018479,76.5306829 46.6964286,80.2946429 L40.78125,77.9285714 L40.78125,77.9508929 C36.0155329,76.2394643 30.72125,78.56875 28.8169643,83.3080357 C26.9126771,88.0473171 29.1033929,93.4117857 33.7276786,95.4732143 L33.7276786,95.4955357 L38.75,97.5044643 C37.9243764,97.684295 37.0644021,97.7946429 36.1830357,97.7946429 C29.5880421,97.7946443 24.2857143,92.4923186 24.2857143,85.8973214 C24.2857143,79.3023229 29.5880386,73.9776786 36.1830357,73.9776786 Z M121.40625,109.022321 C128.001614,109.022316 133.303571,114.324251 133.303571,120.919643 C133.303543,127.515037 128.001643,132.816966 121.40625,132.816966 C116.81865,132.816966 112.857507,130.259109 110.870536,126.477679 C112.827036,127.267187 114.786907,128.04863 116.741071,128.843751 C121.590336,130.792323 127.113214,128.44893 129.0625,123.598214 C131.011757,118.748925 128.644643,113.247679 123.794643,111.299107 L118.839286,109.3125 C119.664914,109.132676 120.524829,109.022321 121.40625,109.022321 Z" id="Steam" fill="#444444"></path>
</g>
</svg>
</a>
<?php endif; ?>

<?php if ( get_theme_mod( 'skype_username', '' ) !== '' ) : ?>
<a class="social-link SkypeLink" href="skype:<?php echo get_theme_mod( 'skype_username' );?>?userinfo" <?php if ( get_theme_mod( 'open_links_in_new_tab', false ) == true ) echo 'target="_blank"'; ?> rel="me">
<svg width="200px" height="200px" viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg">
Expand Down
5 changes: 2 additions & 3 deletions styles/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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. <a href="http://scotthsmith.com/projects/decode/">More info here</a>
Expand Down Expand Up @@ -541,8 +541,7 @@ embed, iframe, object {
.XboxLiveLink {
background-image: url('images/XboxLive.png');
}
.SteamUserLink,
.SteamGroupLink {
.Steam {
background-image: url('images/Steam.png');
}
.SkypeLink {
Expand Down

0 comments on commit 638ab7c

Please sign in to comment.