/** * Define the excerpts length * * To use this feature, write: * * add_filter('excerpt_length', 'basicbootstrap_excerpt_length'); * * The `excerpt_length` filter is documented in `wp-includes/formatting.php`. * * @return string */ function basicbootstrap_excerpt_length() { if (is_sticky() && is_sticky_view()) { return get_basicbootstrap_mod('sticky_posts_excerpt_max_length'); } return get_basicbootstrap_mod('excerpt_max_length'); }
<?php /** * @package WP_Basic_Bootstrap * @since WP_Basic_Bootstrap 1.0 */ if (have_posts() && !is_singular()) { $list_layout = get_posts_list_layout(); $count = 0; if (is_sticky_view()) { $sticky = get_sticky_query(); if ($sticky) { while (have_posts()) { the_post(); ?> <div class="sticky-wrapper"> <?php get_template_part_hierarchical('post-templates/summary-sticky', get_post_format()); ?> </div> <hr class="hidden-print" /> <?php } } ?> <?php get_not_sticky_query(); ?> <?php
<?php /** * @package WP_Basic_Bootstrap * @since WP_Basic_Bootstrap 1.0 */ if (has_post_thumbnail()) { ?> <?php if (is_sticky() && is_sticky_view()) { ?> <div class="featured-media sticky-media center-block"> <a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> " class="thumbnail"> <?php the_post_thumbnail('post-thumbnail', array('class' => 'img-responsive')); ?> </a> </div> <?php } else { ?> <div class="featured-media pull-left center-block"> <a href="<?php the_permalink(); ?>