This commit is contained in:
Alexander Agnarson 2019-01-27 16:17:11 +01:00
parent 105cddc501
commit 3357532245
5 changed files with 47 additions and 37 deletions

View file

@ -1,24 +1,25 @@
<?php $format = get_post_format(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('group post-grid'); ?>>
<div class="post-inner post-hover">
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail() ): ?>
<div class="post-inner post-hover <?php if ( !has_post_thumbnail() ) { ?>no-thumbnail<?php } ?>">
<?php if ( has_post_thumbnail() ): ?>
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('boxstyle-medium'); ?>
<?php elseif ( get_theme_mod('placeholder') != 'off' ): ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-star"></i></span>'; ?>
</a>
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) =='on' ) ): ?>
<a class="post-comments" href="<?php comments_link(); ?>"><span><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></span></a>
<?php endif; ?>
</div><!--/.post-thumbnail-->
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-star"></i></span>'; ?>
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) =='on' ) ): ?>
<a class="post-comments" href="<?php comments_link(); ?>"><span><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></span></a>
<?php endif; ?>
</a>
</div><!--/.post-thumbnail-->
<?php else: ?>
<?php endif; ?>
<div class="post-content">
<div class="post-category">

View file

@ -1,23 +1,24 @@
<?php $format = get_post_format(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('group post-list'); ?>>
<div class="post-inner post-hover">
<div class="post-inner post-hover <?php if ( !has_post_thumbnail() ) { ?>no-thumbnail<?php } ?>">
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail() ): ?>
<?php if ( has_post_thumbnail() ): ?>
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('boxstyle-list'); ?>
<?php elseif ( get_theme_mod('placeholder') != 'off' ): ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-list.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-star"></i></span>'; ?>
</a>
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) =='on' ) ): ?>
<a class="post-comments" href="<?php comments_link(); ?>"><span><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></span></a>
<?php endif; ?>
</div><!--/.post-thumbnail-->
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-star"></i></span>'; ?>
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) =='on' ) ): ?>
<a class="post-comments" href="<?php comments_link(); ?>"><span><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></span></a>
<?php endif; ?>
</a>
</div><!--/.post-thumbnail-->
<?php else: ?>
<?php endif; ?>
<div class="post-content">

View file

@ -2,7 +2,7 @@
Contributors: alxmedia
Requires at least: 5.0
Tested up to: 5.0
Version: 1.0.4
Version: 1.0.5
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background
@ -81,6 +81,11 @@ Sidebar images
== Changelog ==
= 1.0.5 - 2019-01-27 =
* Remove placeholder thumbnail images in main post list and grid - it now works without any
* Fix markup bug in content-grid
* Minor responsive styling fixes
= 1.0.4 - 2019-01-27 =
* Fix site description margin
* Add max-height styling option for header logo

View file

@ -176,6 +176,8 @@
.front-widgets { padding: 10px 15px 10px 15px; }
.post-inner { margin-left: 0; display: block; }
.post-grid .post,
.post-grid .page { border-bottom: 1px solid #eee; padding: 20px 0; }
.post-grid .post-inner { margin: 15px; }
.post-list .post-inner { padding-left: 0; }
@ -183,7 +185,7 @@
.blog .post-list,
.single .post-list,
.archive .post-list,
.search .post-list { padding: 0 15px; }
.search .post-list { padding: 0 15px 20px 15px; border-bottom: 1px solid #eee; }
.post-list .post-content { width: 100%; text-align: center; }
/* sidebar */

View file

@ -1,7 +1,7 @@
/*
Theme Name: Boxstyle
Theme URI: http://alxmedia.se/themes/boxstyle/
Version: 1.0.4
Version: 1.0.5
Description: <a href="http://alxmedia.se/themes/boxstyle/">Boxstyle</a> is a responsive 100% high resolution theme for personal blogs. The feature list is long: Unlimited accent colors, unlimited widget areas, 0-1 sidebars to the left or right that can be uniquely specified for each page or post, 220px fixed width sidebar, 0-4 footer widget columns, almost zero layout images, related posts and post nav, 5 post formats, good SEO, 2 flexible custom widgets, localisation support, social links, logo upload and many more useful admin panel features.
Author: Alexander Agnarson
Author URI: http://alxmedia.se
@ -809,10 +809,10 @@ article > .pad { padding-top: 50px; padding-bottom: 50px; }
/* post : grid loop
/* ------------------------------------ */
.post-grid { }
.post-grid .post-row { padding: 30px 20px 30px 50px; float: left; border-bottom: 1px solid #eee; position: relative; }
.post-grid .post-row { padding: 30px 20px 30px 50px; float: left; border-bottom: 1px solid #eee; position: relative; display: flex; flex: 1 1 auto; flex-wrap: wrap; }
.post-grid .post-row:last-child { border: none; margin-bottom: 0; }
.post-grid .post,
.post-grid .page { width: 50%; float: left; border: none; }
.post-grid .page { width: 50%; float: left; }
.post-grid .post-inner { margin-right: 30px; }
.post-grid .post-title { font-size: 22px; }
.post-grid .entry { font-size: 15px; color: #999; }
@ -831,6 +831,7 @@ article > .pad { padding-top: 50px; padding-bottom: 50px; }
.post-list .format-circle { right: 0; bottom: 0; }
.post-list .post-inner { padding: 30px 0 0 150px; }
.post-list .post-inner.no-thumbnail { padding-left: 0; }
.post-list .post-thumbnail { margin-left: -150px; max-width: 120px; margin-bottom: 0; float: left; }
.post-list .post-thumbnail img { position: relative; border-radius: 10px; }
.post-list .post-content { position: relative; }