Skip to content

Commit

Permalink
Version 2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
marcperel committed Jun 16, 2017
2 parents 8dd3c92 + 938f23b commit 101b4d2
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
9 changes: 9 additions & 0 deletions changelog.md
@@ -1,5 +1,14 @@
# Layers Changelog

=======
##2.0.4
### 16 June 2017

* **Fix** - Attachment pages which weren't showing images. *MP*
* **Fix** - Comments showing up for password protected posts. *MP*
* **Fix** - Full screen slider JS was using the wrong selector. *MP*


=======
##2.0.3
### 12 June 2017
Expand Down
4 changes: 4 additions & 0 deletions comments.php
Expand Up @@ -6,6 +6,10 @@
* @since Layers 1.0.0
*/

if ( post_password_required() ) {
return;
}

do_action('layers_before_comments'); ?>
<div id="comments" <?php echo layers_wrapper_class( 'comment_container', 'push-top-large' ); ?>>
<?php if ( have_comments() ) { ?>
Expand Down
2 changes: 1 addition & 1 deletion core/widgets/modules/slider.php
Expand Up @@ -425,7 +425,7 @@ function widget( $args, $instance ) {

<?php echo $swiper_js_obj; ?>.init();
if ( ! $('#<?php echo $widget_id; ?>').prev('.widget').length ) {
if ( ! $('#<?php echo $widget_id; ?>').hasClass( '.full-screen' ) ) {
if ( ! $('#<?php echo $widget_id; ?>').hasClass( 'full-screen' ) ) {
jQuery('.header-site.header-overlay').css( 'transition', '0s' );
setTimeout( function(){ jQuery('.header-site.header-overlay').css( 'transition', '' ); }, 1000 );
jQuery('body').addClass( 'header-overlay-no-push' );
Expand Down
2 changes: 1 addition & 1 deletion functions.php
Expand Up @@ -11,7 +11,7 @@
* The current version of the theme. Use a random number for SCRIPT_DEBUG mode
*/

define( 'LAYERS_VERSION', '2.0.3' );
define( 'LAYERS_VERSION', '2.0.4' );
define( 'LAYERS_TEMPLATE_URI' , get_template_directory_uri() );
define( 'LAYERS_TEMPLATE_DIR' , get_template_directory() );
define( 'LAYERS_THEME_TITLE' , 'Layers' );
Expand Down
9 changes: 7 additions & 2 deletions partials/content-single.php
Expand Up @@ -40,7 +40,11 @@
/**
* Display the Featured Thumbnail
*/
echo layers_post_featured_media( array( 'postid' => get_the_ID(), 'wrap_class' => 'thumbnail push-bottom', 'size' => 'large' ) );
if( is_attachment() ) {
echo wp_get_attachment_image( get_the_ID(), 'large' );
} else {
echo layers_post_featured_media( array( 'postid' => get_the_ID(), 'wrap_class' => 'thumbnail push-bottom', 'size' => 'large' ) );
}

if ( '' != get_the_content() ) { ?>
<?php do_action('layers_before_single_content'); ?>
Expand Down Expand Up @@ -84,6 +88,7 @@
/**
* Display the Post Comments
*/
comments_template();
if ( comments_open() )
comments_template();

do_action('layers_after_single_post');
2 changes: 1 addition & 1 deletion style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 101b4d2

Please sign in to comment.