function cb_author_box_shortcode($atts, $content = NULL)
 {
     extract(shortcode_atts(array('authorid' => '', 'title' => ''), $atts));
     global $post;
     return cb_author_box($post, $authorid, $title);
 }
示例#2
0
        ?>
									
								</section> <!-- end article section -->

								<footer class="article-footer">
									<?php 
        wp_link_pages('before=<div class="cb-post-pagination clearfix">&after=</div>&next_or_number=number&pagelink=<span class="wp-link-pages-number">%</span>');
        the_tags('<p class="cb-tags"> ', '', '</p>');
        if ($cb_social_sharing != 'off') {
            echo cb_social_sharing($post, $cb_social_style);
        }
        if ($cb_previous_next_onoff != 'cb_previous_next_off' && $post->post_type != 'attachment') {
            cb_previous_next_links();
        }
        if ($cb_author_box_onoff != 'cb_author_box_off') {
            echo cb_author_box($post);
        }
        if ($cb_related_onoff != 'cb_related_off') {
            cb_related_posts();
        }
        ?>

								</footer> <!-- end article footer -->

								<?php 
        if ($cb_comments_onoff == 'cb_comments_on') {
            comments_template();
        }
        ?>

							</article> <!-- end article -->