Skip to content

Commit

Permalink
0.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSteffanick committed Mar 26, 2017
1 parent f004dad commit e64b0de
Show file tree
Hide file tree
Showing 6 changed files with 225 additions and 64 deletions.
34 changes: 28 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

## [0.8.4] - 2017-03-25
### Added
* blog archives recent entries ([archives.php])
* blog entry featured image → link to blog entry ([content.php])
* blog entry title → blog entry featured image `alt` & `title` attributes ([content.php])
* [schema.org] `image` microdata → blog entry featured image ([content.php])
* `the_post_thumbnail()` [mod_pagespeed] optimization → blog entry featured image ([content.php])

### Changed
* blog archives lists → [Bootstrap] panels ([archives.php])
* blog archives tag cloud → tag list ([archives.php])
* blog entries → [Bootstrap] panels ([content.php])
* blog entry featured image → below `.entry-header` ([content.php])
* blog entry featured image → conditional ([content.php])
* byline & dateline → `<small>` ([content.php])
* theme `line-height` & margins → lists, headers, & `<pre>` ([style.css])

### Removed
* [WordPress] responsive images ([functions.php])

## [0.8.3] - 2017-03-14
### Added
* `.entry-header .entry-title` transition ([style.css])
Expand All @@ -31,29 +51,29 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
* function `twentytwelve_entry_meta()` ([functions.php])
* function `twentytwelve_entry_meta()` [microformats.org] author & time microdata → blog entries ([content.php])
* “Proudly Powered By [WordPress]” → [Font Awesome] icon ([footer.php])
* [schema.org] `copyrightHolder` & `copyrightYear` → blog entries ([content.php])
* [schema.org] `copyrightHolder` & `copyrightYear` microdata → blog entries ([content.php])

### Changed
* `footer.entry-meta` style ([style.css])
* author information style ([style.css])
* blog entries [schema.org] `dateModified``get_the_modified_date('c');` with relative timestamp ([content.php])
* blog entries [schema.org] `dateModified` microdata `get_the_modified_date('c');` with relative timestamp ([content.php])
* blog time zone → UTC
* relative theme name → paths to theme files ([functions.php])

### Fixed
* blog entries [microformats.org] `updated` errors
* blog entries [microformats.org] `updated` microdata errors

## [0.8.1] - 2017-03-03
### Added
* [schema.org] `image` → blog entries ([content.php])
* [schema.org] `publisher` → blog entries ([content.php])

### Changed
* blog entries byline `<time>` [schema.org] `dateCreated``datePublished` ([content.php])
* blog entries byline `<time>` [schema.org] `dateCreated` microdata `datePublished` ([content.php])
* [schema.org] `dateCreated` → blog entries byline `<meta>` ([content.php])

### Fixed
* [schema.org] `BlogPosting` errors
* [schema.org] `BlogPosting` microdata errors

## [0.8.0] - 2017-03-02
### Added
Expand Down Expand Up @@ -286,7 +306,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
* [LISENCE]
* [README.md]

[Unreleased]: https://github.com/AdamSteffanick/wp2012-s/compare/v0.8.3...HEAD
[Unreleased]: https://github.com/AdamSteffanick/wp2012-s/compare/v0.8.4...HEAD
[0.8.4]: https://github.com/AdamSteffanick/wp2012-s/compare/v0.8.3...v0.8.4
[0.8.3]: https://github.com/AdamSteffanick/wp2012-s/compare/v0.8.2...v0.8.3
[0.8.2]: https://github.com/AdamSteffanick/wp2012-s/compare/v0.8.1...v0.8.2
[0.8.1]: https://github.com/AdamSteffanick/wp2012-s/compare/v0.8.0...v0.8.1
Expand Down Expand Up @@ -340,6 +361,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
[HTML5 Validator]: https://validator.w3.org/nu/
[jQuery]: https://jquery.com/
[microformats.org]: http://microformats.org/
[mod_pagespeed]: https://www.modpagespeed.com/
[schema.org]: https://schema.org/
[shields.io]: http://shields.io/
[WordPress]: https://wordpress.org/
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# WP2012-S [![version](https://img.shields.io/badge/wp2012--s-v0.8.3-0038e2.svg?style=flat-square)][CHANGELOG]
A WordPress child theme of Twenty Twelve built for https://steffanick.com/
# WP2012-S [![version](https://img.shields.io/badge/wp2012--s-v0.8.4-0038e2.svg?style=flat-square)][CHANGELOG]
A [WordPress] child theme of Twenty Twelve built for https://steffanick.com/

## Download
* [**Latest release**](https://github.com/AdamSteffanick/wp2012-s/releases/latest)
Expand All @@ -8,7 +8,7 @@ A WordPress child theme of Twenty Twelve built for https://steffanick.com/
* [Bootstrap] CSS & JS via CDN
* [Font Awesome] via CDN
* [Google Code Prettify] via CDN
* [Google Custom Search Engine]
* [Google Custom Search Engine] for WordPress Multisite
* [Google Fonts] via CSS
* [schema.org] microdata for blog entries

Expand All @@ -19,4 +19,5 @@ A WordPress child theme of Twenty Twelve built for https://steffanick.com/
[Google Code Prettify]: https://github.com/google/code-prettify
[Google Custom Search Engine]: https://developers.google.com/custom-search/
[Google Fonts]: https://fonts.google.com/
[schema.org]: https://schema.org/
[schema.org]: https://schema.org/
[WordPress]: https://wordpress.org/
48 changes: 39 additions & 9 deletions archives.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,49 @@
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header><!-- .entry-header -->

<div class="entry-content">
<section class="directory">
<h1>Topics</h1>
<h2>Categories</h2>
<div class="panel panel-default">
<div class="panel-body">
<ul>
<?php wp_list_categories('title_li=&feed=RSS'); ?>
</ul>
</section>
<section class="directory">
<h1>Tags</h1>
<ul>
<?php wp_tag_cloud(); ?>
</ul>
</section>
</div><!-- .panel-body -->
</div><!-- .panel -->

<h2>Tags</h2>
<div class="panel panel-default">
<div class="panel-body">
<?php
$args =
array(
'smallest' => 14,
'largest' => 14,
'unit' => 'px',
'format' => 'list',
);
wp_tag_cloud($args); ?>

</div><!-- .panel-body -->
</div><!-- .panel -->

<h2>Recent</h2>
<div class="panel panel-default">
<div class="panel-body">
<ul>
<?php
$recent_posts = wp_get_recent_posts();
foreach( $recent_posts as $recent ){
echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a> </li> ';
}
wp_reset_query();
?>
</ul>

</div><!-- .panel-body -->
</div><!-- .panel -->

</div><!-- .entry-content -->
</div><!-- #content -->
</div><!-- #primary -->
Expand Down
87 changes: 54 additions & 33 deletions content.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemid="<?php the_permalink(); ?>" itemscope itemtype="http://schema.org/BlogPosting">
<div class="panel panel-default">
<div class="panel-body">

<?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
<div class="featured-post">
<?php _e( 'Featured post', 'twentytwelve' ); ?>
</div>
<?php endif; ?>
<header class="entry-header">
<?php if ( ! post_password_required() && ! is_attachment() ) :
the_post_thumbnail();
endif; ?>

<header class="entry-header">
<?php if ( is_single() ) : ?>
<h1 class="entry-title" itemprop="headline"><?php the_title(); ?></h1>
<?php else : ?>
Expand All @@ -35,31 +35,55 @@
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
</div><!-- .comments-link -->
<?php endif; // comments_open() ?>

<?php if ( ! post_password_required() && ! is_attachment() ) :
if ( has_post_thumbnail() ) :
$image_data = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<div itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="<?php echo $image_data[0] ?>">
<meta itemprop="width" content="<?php echo $image_data[1] ?>">
<meta itemprop="height" content="<?php echo $image_data[2] ?>">
<?php the_post_thumbnail(array(523, 275), array('src' => $image_data[0], 'alt' => get_the_title(), 'title' => get_the_title())); ?>
</div>
</a>
<?php else : ?>
<div itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="https://www.steffanick.com/android-chrome-192x192.png">
<meta itemprop="width" content="192">
<meta itemprop="height" content="192">
</div>
<?php endif;
endif; ?>

</header><!-- .entry-header -->

<div class="entry-byline-dateline entry-meta">
<span class="byline" itemprop="author creator copyrightHolder" itemid="<?php echo get_the_author_meta('url'); ?>" itemscope itemtype="http://schema.org/Person">
By
<span class="author vcard">
<a class="url fn n" href="<?php echo get_the_author_meta('url'); ?>" title="Visit <?php echo get_the_author(); ?>’s website">
<span class="byline-author" data-byline-name="<?php echo get_the_author(); ?>" itemprop="name" data-twitter-handle="<?php echo get_the_author_meta('twitter'); ?>">
<?php echo get_the_author(); ?>
</span>
</a>
<small>
<span class="byline" itemprop="author creator copyrightHolder" itemid="<?php echo get_the_author_meta('url'); ?>" itemscope itemtype="http://schema.org/Person">
By
<span class="author vcard">
<a class="url fn n" href="<?php echo get_the_author_meta('url'); ?>" title="Visit <?php echo get_the_author(); ?>’s website">
<span class="byline-author" itemprop="name">
<?php echo get_the_author(); ?>
</span>
</a>
</span>
</span>
</span>
<meta itemprop="copyrightYear" content="<?php echo get_the_date('Y'); ?>">
<meta itemprop="dateCreated" content="<?php echo get_the_date('c'); ?>">
<span class="dateline posted-on">
<time class="entry-date published" datetime="<?php echo get_the_date('Y-m-d'); ?>" itemprop="datePublished" content="<?php echo get_the_date('Y-m-d'); ?>">
<?php echo get_the_date(); ?>
</time>
(last updated
<time class="updated" datetime="<?php echo get_the_modified_date('c'); ?>" itemprop="dateModified" content="<?php echo get_the_modified_date('c'); ?>">
<?php echo human_time_diff(get_the_modified_time('U'), current_time('U')); ?>
</time>
ago)
</span>
<meta itemprop="copyrightYear" content="<?php echo get_the_date('Y'); ?>">
<meta itemprop="dateCreated" content="<?php echo get_the_date('c'); ?>">
<span class="dateline posted-on">
<time class="entry-date published" datetime="<?php echo get_the_date('Y-m-d'); ?>" itemprop="datePublished" content="<?php echo get_the_date('Y-m-d'); ?>">
<?php echo get_the_date(); ?>
</time>
(last updated
<time class="updated" datetime="<?php echo get_the_modified_date('c'); ?>" itemprop="dateModified" content="<?php echo get_the_modified_date('c'); ?>">
<?php echo human_time_diff(get_the_modified_time('U'), current_time('U')); ?>
</time>
ago)
</span>
</small>
</div><!-- .entry-byline-dateline -->

<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
Expand All @@ -70,11 +94,6 @@
</div>
<meta itemprop="name" content="Steffanick">
</div>
<div itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="https://www.steffanick.com/android-chrome-192x192.png">
<meta itemprop="width" content="192">
<meta itemprop="height" content="192">
</div>

<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
Expand All @@ -87,12 +106,13 @@
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>

</div><!-- .panel-body -->
<div class="panel-footer">
<footer class="entry-meta">
<?php twentytwelve_entry_meta(); ?>
<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
<hr />
<?php if ( is_singular() && get_the_author_meta( 'description' ) ) : // If a user has filled out their description show a bio on their entries. ?>
<hr />
<div class="author-info media">
<div class="author-avatar media-left">
<?php
Expand All @@ -112,7 +132,8 @@
<p><?php the_author_meta( 'description' ); ?></p>
</div><!-- .author-description -->
</div><!-- .author-info -->
<hr />
<?php endif; ?>
</footer><!-- .entry-meta -->
</div><!-- .panel-footer -->
</div><!-- .panel -->
</article><!-- #post -->
1 change: 1 addition & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ function theme_google_analytics() {
add_filter('style_loader_tag' , 'theme_remove_style_id');
add_filter('style_loader_tag' , 'theme_add_style_property');
add_filter('get_avatar' , 'theme_add_gravatar_class');
add_filter('wp_calculate_image_srcset_meta', '__return_null'); //http://wordpress.stackexchange.com/questions/211375/how-do-i-disable-responsive-images-in-wp-4-4

add_action('wp_enqueue_scripts', 'theme_style');
add_action('wp_enqueue_scripts', 'theme_remove_open_sans', 11);
Expand Down
Loading

0 comments on commit e64b0de

Please sign in to comment.