Example #1
0
        echo get_author_posts_url(get_the_author_meta(null, $post->post_author));
        ?>
" class="author">
						<?php 
        the_avatar(64);
        ?>
						<span><?php 
        echo the_author_meta('display_name', $post->post_author);
        ?>
</span>
					</a>
				<?php 
    }
    ?>
				<?php 
    if (is_hub()) {
        ?>
					<span>
						<?php 
        foreach (array('developer', 'publisher') as $tax) {
            foreach (wp_get_post_terms($post->ID, $tax) as $arr) {
                ?>
								<a href="<?php 
                echo get_term_link($arr);
                ?>
"><?php 
                echo $arr->name;
                ?>
</a>
							<?php 
            }
Example #2
0
function hub_tabs()
{
    if (is_hub('single')) {
        ?>
	<div id="hub-tabs">
		<ul>
			<?php 
        foreach (lg_hub_tab_list() as $key => $tab) {
            $class = null;
            if (get_endpoint($tab) || $key == 0 && get_current_url() == get_permalink()) {
                $class = 'current-tab';
            }
            // if(is_hub()) $class = 'current-tab';
            $end = $key > 0 ? $tab : null;
            ?>
				<li class="hub-tab-item <?php 
            echo $class;
            ?>
"><a href="<?php 
            echo get_the_permalink() . $end;
            ?>
"><?php 
            echo strpretty($tab);
            ?>
</a></li>
			<?php 
        }
        ?>
		</ul>
	</div>
<?php 
    }
}