Exemplo n.º 1
0
 function widget($args, $instance)
 {
     extract($args);
     if (is_single()) {
         $avatar = $instance['avatar'];
         $social = $instance['social'];
         echo $before_widget;
         echo $before_title;
         printf(__('About %s', 'bd'), get_the_author());
         echo $after_title;
         bd_author_box($avatar, $social);
         echo $after_widget;
     }
 }
Exemplo n.º 2
0
            <?php 
if (bdayh_get_option('article_author_box') == 1) {
    ?>
                <div class="box_inner author_box">
                  <div class="news_box">
                    <h2 class="news_box_title2">
                      <?php 
    _e('About', 'bd');
    ?>
                      <span>
                      <?php 
    the_author();
    ?>
                      </span></h2>
                    <?php 
    bd_author_box(get_the_author_meta('ID'));
    ?>
                  </div>
                </div>
                <!--//end author box-->
            <?php 
}
?>

            <?php 
if (bdayh_get_option('article_related') == 1) {
    ?>
                <?php 
    require BD_TM . '/related.php';
    ?>
            <?php