/** * Adds .post-with-media class to the post tag, * if the post has any media assigned to it. * * @since gp 1.0 */ function gp_post_classes($classes, $class, $post_id) { if (gp_post_has_media($post_id)) { $classes[] = 'post-with-media'; } if (has_post_thumbnail($post_id)) { $classes[] = 'post-with-featured-image'; } else { $classes[] = 'post-without-featured-image'; } return $classes; }
} if (is_sticky()) { ?> <div class="sticky-icon icon-star" title="<?php echo esc_attr(__('Sticky post', 'gp')); ?> "></div><?php } ?> </h1> </header><?php } ?> --> <!-- <div class="entry-summary"><?php if (!gp_post_has_media()) { // Post has no media, so there is additional space. Let's increase the excerpt length. add_filter('excerpt_length', 'gp_increased_excerpt_lenght', 1001); } the_excerpt(); remove_filter('excerpt_length', 'gp_increased_excerpt_lenght', 1001); ?> </div> -->