D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
cwd
/
wp-content
/
themes
/
newsplus1
/
Filename :
comments.php
back
Copy
<?php if ( !comments_open() ) { return; } ?> <?php if ( (!a4h_options('wp_comments') || !a4h_case('wp_comments')) && (!a4h_options('fb_comments') || !a4h_case('fb_comments')) ) { return; } ?> <section id="comments" class="site-section section-comments comments"> <header class="widget-header"> <div class="widget-title"> <h2><?php _ex('Comments', 'noun', THEME_TEXT_DOMAIN); ?></h2> </div> </header> <div class="content-inner"> <div class="sm-font comments-inner"> <?php if ( a4h_options('fb_comments') && a4h_case('fb_comments') ) { ?> <div id="comments-fb" class="comments-item"> <div class="fb-comments" data-href="<?php if ( a4h_options('fb_comments_shortlink') ) { echo wp_get_shortlink(); } else { echo get_the_permalink(); } ?>" data-width="1000" data-numposts="10" data-order-by="<?php echo a4h_options('fb_comments_order'); ?>"></div> <?php a4h_fb_sdk_js(); ?> </div> <?php } ?> <?php if ( a4h_options('wp_comments') && a4h_case('wp_comments') ) { ?> <div id="comments-wp" class="comments-item"> <?php if ( have_comments() ) { ?> <ol class="comment-list"> <?php wp_list_comments(array('style' => 'ol', 'short_ping' => true, 'avatar_size' => 100)); ?> </ol> <?php a4h_comments_pagination(); ?> <?php } ?> <?php if ( !comments_open() && get_comments_number() && post_type_supports(get_post_type(), 'comments')) { ?> <p class="no-comments"><?php _e('Comments are closed.', THEME_TEXT_DOMAIN); ?></p> <?php } ?> <?php $form_args = array('comment_field' => '<p class="comment-form-comment"><label for="comment">'._x('Comment', 'noun').'</label> <textarea id="comment" name="comment" placeholder="'.__('Write your comment here...', THEME_TEXT_DOMAIN).'" rows="2" aria-required="true" required="required"></textarea></p>', 'class_form' => 'comment-form', 'title_reply_before' => '<div class="leave-comment-title"><h3 class="title">', 'title_reply_after' => '</h3></div>'); ?> <?php comment_form($form_args); ?> </div> <?php } ?> </div> </div> </section>