Пример #1
0
        ?>
		<header class="entry-header post-list__header">
	<?php 
        if (is_single()) {
            the_title('<h1 class="entry-title">', '</h1>');
        } elseif (is_page()) {
        } else {
            the_title('<h2 class="entry-title post-list__title">', '</h2>');
        }
        //Check for meta
        //bb_posts_meta();
        ?>
	
		</header><!-- .entry-header --><div class="entry-content post-list__excerpt">
			<?php 
        bb_excerpt();
        ?>
	<?php 
        ?>
		</div><!-- .entry-content -->
		<?php 
        $readMoreDiv = get_theme_mod('posts__read_more_div');
        if ($readMoreDiv) {
            echo '<div class="post-list__read-more">' . $readMoreDiv . '</div>';
        }
        ?>
	  </a>
	  <?php 
        //Display edit link
        edit_post_link(__('Edit', 'bear-bones'), '<span class="edit-link">', '</span>');
        ?>
Пример #2
0
function get_bb_excerpt($excerpt_length = 55, $id = false, $echo = false)
{
    return bb_excerpt($excerpt_length, $id, $echo);
}
Пример #3
0
						<?php 
            the_post_thumbnail('post-thumbnail');
            ?>
					</div>
				<?php 
        }
        ?>
		<div class="archive-list__text">
		<header class="entry-header post-header">
	<?php 
        the_title('<p class="entry-title archive-list__title">', '</p>');
        ?>
	
		</header><!-- .entry-header --><div class="entry-content archive-list__excerpt">
			<?php 
        bb_excerpt(30);
        ?>
		</div><!-- .entry-content -->
		</div>
	  </a>
	  <?php 
        //Display edit link
        edit_post_link(__('Edit', 'bear-bones'), '<span class="edit-link">', '</span>');
        ?>
	</article>
			
	<?php 
    }
    ?>
            
<?php