示例#1
0
    ?>
" alt="<?php 
    bloginfo('name');
    ?>
" /><?php 
}
?>
</div>
  </div>
</footer>
<!-- FOOTER --> 
<?php 
if (rehub_option('rehub_analytics')) {
    echo rehub_option('rehub_analytics');
}
if (rehub_option('rehub_disable_totop') != '1') {
    ?>
<a href="#top_ankor" class="rehub_scroll" id="topcontrol"><i class="fa fa-chevron-up"></i></a><?php 
}
if (rehub_option('rehub_adblock_enable') == '1') {
    wp_enqueue_script('adblock_init');
    ?>
<div id="noblockdiv" style="display:none"><div class="noadb"><span class="noadb-span"><?php 
    echo rehub_kses(rehub_option('rehub_adblock_notice'));
    ?>
</span></div></div><?php 
}
wp_footer();
?>
</body>
</html>
示例#2
0
<div id="comments" class="clearfix">
<?php 
if (rehub_option('rehub_widget_comments') && comments_open()) {
    echo htmlspecialchars_decode(stripslashes(rehub_kses(rehub_option('rehub_widget_comments'))));
    ?>
<div style="margin-bottom:15px; clear:both"></div><?php 
}
if (rehub_option('rehub_disable_comments') != '1') {
    ?>
    <div class="post-comments">
        <?php 
    if (comments_open()) {
        echo "<div class='title_comments'>";
        comments_number(__('No Comments', 'rehub_framework'), __('1 Comment', 'rehub_framework'), '% ' . __('Comments', 'rehub_framework'));
        echo "</div>";
    }
    echo "<ol class='commentlist'>";
    wp_list_comments(array('avatar_size' => 50, 'max_depth' => 4, 'style' => 'ul', 'callback' => 'rehub_framework_comments', 'type' => 'all'));
    echo "</ol>";
    echo "<div id='comments_pagination'>";
    paginate_comments_links(array('prev_text' => '&laquo;', 'next_text' => '&raquo;'));
    echo "</div>";
    $custom_comment_field = '<textarea id="comment" name="comment" cols="30" rows="10" aria-required="true"></textarea>';
    $commenter = wp_get_current_commenter();
    comment_form(array('comment_field' => $custom_comment_field, 'comment_notes_after' => '', 'logged_in_as' => '', 'comment_notes_before' => '', 'title_reply' => __('Leave a reply', 'rehub_framework'), 'cancel_reply_link' => __('Cancel reply', 'rehub_framework'), 'label_submit' => __('Post comment', 'rehub_framework'), 'fields' => apply_filters('comment_form_default_fields', array('author' => '<div class="usr_re"><input id="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" name="author" placeholder="' . __('Name', 'rehub_framework') . '"></div>', 'email' => '<div class="email_re"><input id="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" name="email" placeholder="' . __('E-mail', 'rehub_framework') . '"></div>', 'url' => '<div class="site_re end"><input id="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" name="url" placeholder="' . __('Website', 'rehub_framework') . '"></div><div class="clearfix"></div>'))));
    ?>
    </div> <!-- end comments div -->
<?php 
}
?>