Example #1
0
 function widget($args, $instance)
 {
     extract($args);
     if (is_single()) {
         $avatar = $instance['avatar'];
         $social = $instance['social'];
         wp_reset_query();
         echo $before_widget;
         echo $before_title;
         printf(__('About %s', 'tie'), get_the_author());
         echo $after_title;
         tie_author_box($avatar, $social);
         echo $after_widget;
     }
 }
Example #2
0
    if (tie_get_option('post_authorbio') && empty($get_meta["tie_hide_author"][0]) || isset($get_meta["tie_hide_related"][0]) && $get_meta["tie_hide_author"][0] == 'no') {
        ?>
		
		<section id="author-box">
			<div class="block-head">
				<h3><?php 
        _eti('About');
        ?>
 <?php 
        the_author();
        ?>
 </h3><div class="stripe-line"></div>
			</div>
			<div class="post-listing">
				<?php 
        tie_author_box();
        ?>
			</div>
		</section><!-- #author-box -->
		<?php 
    }
    ?>
		
		
		<?php 
    if (tie_get_option('post_nav')) {
        ?>
				
		<div class="post-navigation">
			<div class="post-previous"><?php 
        previous_post_link('%link', '<span>' . __ti('Previous') . '</span> %title');
Example #3
0
		
		<?php //Below Post Banner
		if( empty( $get_meta["tie_hide_below"][0] ) ){
			if( !empty( $get_meta["tie_banner_below"][0] ) ) echo '<div class="e3lan e3lan-post">' .do_shortcode( htmlspecialchars_decode($get_meta["tie_banner_below"][0]) ) .'</div>';
			else tie_banner('banner_below' , '<div class="e3lan e3lan-post">' , '</div>' );
		}
		?>
		
		<?php if( ( tie_get_option( 'post_authorbio' ) && empty( $get_meta["tie_hide_author"][0] ) ) || ( isset( $get_meta["tie_hide_related"][0] ) && $get_meta["tie_hide_author"][0] == 'no' ) ): ?>		
		<section id="author-box">
			<div class="block-head">
				<h3><?php _eti( 'About' ) ?> <?php the_author() ?> </h3><div class="stripe-line"></div>
			</div>
			<div class="post-listing">
				<?php tie_author_box() ?>
			</div>
		</section><!-- #author-box -->
		<?php endif; ?>
		
		
		<?php if( tie_get_option( 'post_nav' ) ): ?>				
		<div class="post-navigation">
			<div class="post-previous"><?php previous_post_link( '%link', '<span>'. __ti( 'Previous' ).'</span> %title' ); ?></div>
			<div class="post-next"><?php next_post_link( '%link', '<span>'. __ti( 'Next' ).'</span> %title' ); ?></div>
		</div><!-- .post-navigation -->
		<?php endif; ?>
	
		<?php if( tie_get_option( 'related_position' ) != 'in' ) get_template_part( 'framework/parts/related-posts' ); ?>
		
		<?php get_template_part( 'framework/parts/check-also' ); ?>
        if (!is_array($roles)) {
            global $wp_roles;
            $roles = $wp_roles->get_names();
        }
        foreach ($roles as $role) {
            $users = get_users('role=' . $role);
            if ($users) {
                $all_users = array_merge($all_users, $users);
            }
        }
        foreach ($all_users as $user) {
            ?>
						<li>
						
							<?php 
            tie_author_box(true, true, $user->display_name, $user->ID);
            ?>

						</li>
					<?php 
        }
        ?>
					</ul>

					<?php 
        edit_post_link(__ti('Edit'), '<span class="edit-link">', '</span>');
        ?>
				</div><!-- .entry /-->	
			
			</div><!-- .post-inner -->
		</article><!-- .post-listing -->