/** *相关文章样式 *http://www.bgbk.org */ function Bing_related_posts_loop() { ?> <li <?php post_class('span4'); ?> > <div class="panel no-padding"> <a href="<?php the_permalink(); ?> " class="thumbnail-link" rel="bookmark" title="<?php the_title_attribute(); ?> "> <?php echo Bing_thumbnail(175, 80, false); ?> <div class="excerpt"><?php echo Bing_excerpt(80); ?> </div> </a> <div class="bottom-box"> <?php the_title('<h4 class="post-title"><a href="' . esc_url(get_permalink()) . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a></h4>'); Bing_post_meta(array('author', 'date-abb')); ?> </div> </div> </li> <?php }
/** *边栏文章列表样式 *http://www.bgbk.org */ function Bing_sidebar_posts_list_loop($thumbnail = true) { ?> <li <?php post_class($thumbnail ? 'thumbnail' : ''); ?> > <?php if ($thumbnail) { echo Bing_thumbnail(50); } ?> <div class="right-box"> <?php the_title('<h4 class="post-title"><a href="' . esc_url(get_permalink()) . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a></h4>'); ?> <?php Bing_post_meta(array('date-abb', 'views')); ?> </div> </li> <?php }
> <div class="panel"> <header class="panel-header"> <?php the_title('<h2 class="post-title">', '</h2>'); edit_post_link('<span class="dashicons dashicons-edit"></span>' . __('编辑', 'Bing'), '<span class="right">', '</span>'); ?> </header> <section class="context"> <?php the_content(); wp_link_pages(array('before' => '<div class="page-links">' . __('页码:', 'Bing'), 'after' => '</div>')); ?> </section> <footer class="post-meta-box"><?php Bing_post_meta(array('author', 'date', 'views', 'comments', 'tags')); ?> </footer> </div> </article> <?php if (Bing_mpanel('related_posts')) { Bing_related_posts(); } if (!post_password_required() && (comments_open() || get_comments_number() > 0)) { comments_template('', true); } ?> </div> </section> <?php