/** *边栏文章列表样式 *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 }
/** *相关文章样式 *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 }