예제 #1
0
		<?php 
    the_post();
    ?>
	
		<h1 class="page-title author">
			<?php 
    printf(__('Author archives: %s %s', GKTPLNAME), get_the_author_meta('first_name', get_the_author_meta('ID')), get_the_author_meta('last_name', get_the_author_meta('ID')));
    ?>
		</h1>
	
		<?php 
    rewind_posts();
    ?>
	
		<?php 
    gk_author(true);
    ?>
	
		<?php 
    do_action('gavernwp_before_loop');
    ?>
	
		<?php 
    while (have_posts()) {
        the_post();
        ?>
			<?php 
        get_template_part('content', get_post_format());
        ?>
		<?php 
    }
// disable direct access to the file
defined('GAVERN_WP') or die('Access denied');
global $tpl;
?>

<?php 
do_action('gavernwp_after_post_content');
?>

<?php 
if (is_singular()) {
    ?>
	<?php 
    // variable for the social API HTML output
    $social_api_output = gk_social_api(get_the_title(), get_the_ID());
    ?>
		
	<?php 
    if ($social_api_output != '' || gk_author(false, true)) {
        ?>
	<footer>
		<?php 
        echo $social_api_output;
        ?>
		<?php 
        gk_author();
        ?>
	</footer>
	<?php 
    }
}