?> " <?php post_class(); ?> > <header class="entry-header"> <?php the_title(sprintf('<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h1>'); ?> <?php if ('post' == get_post_type()) { ?> <div class="entry-meta"> <?php bakery_posted_on(); ?> </div><!-- .entry-meta --> <?php } ?> </header><!-- .entry-header --> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <footer class="entry-footer"> <?php
function bakery_post_box() { ?> <div <?php post_class("post-box"); ?> > <?php if (has_post_thumbnail()) { ?> <div class="post-box-media"> <a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "><?php the_post_thumbnail(); ?> </a> </div> <?php } ?> <div class="post-box-title"> <a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "><?php the_title('<h3 class="entry-title">', '</h3>'); ?> </a> </div> <div class="post-box-date"> <?php bakery_posted_on(); ?> </div> <div class="post-box-excerpt"> <?php the_excerpt(); ?> </div> <div class="post-box-more"> <a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "><?php _e('Read More', 'bakery'); ?> <i class="fa fa-arrow-right"></i></a> </div> </div><!-- #post-box --> <?php }