Exemplo n.º 1
0
    function page_info()
    {
        global $post, $authordata;
        $options = GZ::get_options();
        if (function_exists('the_tags')) {
            $tags = get_the_tag_list(__('<strong>Tags:</strong>', 'guangzhou') . ' ', ', ', '');
        }
        ?>
			<div class="info">
				<a title="<?php 
        _e('Subscribe to this!', 'guangzhou');
        ?>
" href="<?php 
        echo get_post_comments_feed_link();
        ?>
"><img src="<?php 
        bloginfo('template_url');
        ?>
/image/feed.png" width="16" height="16" alt="RSS"/></a>
			</div>
		
			<h2><?php 
        the_time(get_option('date_format'));
        ?>
</h2>
			<p>
				
				<?php 
        if (isset($options['author']) && $options['author']) {
            ?>
					<?php 
            printf(__('This page was created <strong>%1s ago</strong> by <a href="%2$s">%3$s</a>.', 'guangzhou'), $this->time_since(mysql2date('U', $post->post_date)), get_author_posts_url($authordata->ID, $authordata->user_nicename), get_the_author_meta('nickname'));
            ?>
				<?php 
        } else {
            ?>
					<?php 
            printf(__('This page was created <strong>%1s ago</strong>.', 'guangzhou'), $this->time_since(mysql2date('U', $post->post_date)));
            ?>
				<?php 
        }
        ?>
		
				<?php 
        if (is_single()) {
            ?>
					<?php 
            printf(__('Similar pages can be found in %s.', 'guangzhou'), get_the_category_list(', '));
            ?>
				<?php 
        }
        ?>
			</p>
		
			<?php 
        if ($tags) {
            ?>
				<p><?php 
            echo $tags;
            ?>
</p>
			<?php 
        }
        ?>
		
			<?php 
        echo GZ_Comments::comment_count();
    }