Exemplo n.º 1
0

<div id="comments" class="comments-area">

    <?php 
// You can start editing here -- including this comment!
?>


    <?php 
if (have_comments()) {
    ?>

    <h3 class="smartlib-comments-title">
        <span><?php 
    echo maxflat_get_awesome_ico('comments');
    ?>

        <?php 
    printf(_n('1 comment', '%1$s comments', get_comments_number(), 'maxflat'), number_format_i18n(get_comments_number()));
    ?>
</span>
    </h3>

    <ol class="commentlist">
        <?php 
    wp_list_comments(array('callback' => 'maxflat_comment_component', 'style' => 'ol'));
    ?>

    </ol><!-- .commentlist -->
Exemplo n.º 2
0
/**
Prints leave replay button
*/
function maxflat_replay_link()
{
    ?>

<div class="smartlib-comments-link">
	<?php 
    if (comments_open() && is_single()) {
        ?>

	<?php 
        comments_popup_link(__('Comment', 'maxflat') . '<i class="' . maxflat_get_awesome_ico('comments') . '"></i></span>', __('1 Reply', 'maxflat'), __('% Replies', 'maxflat'));
        ?>

	<?php 
    }
    ?>

</div>
		<?php 
}