Example #1
0
 function start_el(&$output, $comment, $depth, $args)
 {
     $depth++;
     $GLOBALS['comment_depth'] = $depth;
     if (!empty($args['callback'])) {
         call_user_func($args['callback'], $comment, $args, $depth);
         return;
     }
     if ($this->count == 0) {
         $this->count = get_comments_number();
     }
     $GLOBALS['comment'] = $comment;
     extract($args, EXTR_SKIP);
     echo get_comment_author_url_link(GZ_Comments::get_ping_text($comment)) . ', ';
 }
Example #2
0
        ?>
					<?php 
        GZ::post_single($post, false);
        ?>
				<?php 
        $x++;
        if ($x == $gz_theme->latest) {
            break;
        }
    }
    ?>
			</div>
		<?php 
}
?>

		</div>

		<div style="clear: both"></div>
	</div>
</div>

<?php 
GZ_Comments::load();
?>

<?php 
get_footer();
?>

Example #3
0
		<div class="tablenav-pages">
			<?php 
        _e('Page', 'guangzhou');
        ?>
: <?php 
        paginate_comments_links(array('mid_size' => 4, 'end_size' => 4, 'prev_next' => false));
        ?>
		</div>
	</div>
	<?php 
    }
}
?>
	
<?php 
if (GZ_Comments::show_pings() && GZ_Comments::pings_number() > 0) {
    ?>
<h3><?php 
    _e('Pings &amp; Trackbacks', 'guangzhou');
    ?>
</h3>

<p><?php 
    wp_list_comments(array('walker' => new GZ_Ping_Walker(), 'type' => 'pings', 'per_page' => 0));
    ?>
</p>
<?php 
}
?>

<?php 
Example #4
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();
    }