at path:
ROOT
/
wp-content
/
themes
/
oceanwp
/
comments.php
run:
R
W
Run
assets
DIR
2026-07-10 16:52:18
R
W
Run
inc
DIR
2026-07-10 16:52:18
R
W
Run
languages
DIR
2026-07-10 16:52:18
R
W
Run
partials
DIR
2026-07-10 16:52:18
R
W
Run
sass
DIR
2026-07-10 16:52:18
R
W
Run
templates
DIR
2026-07-10 16:52:18
R
W
Run
tribe-events
DIR
2026-07-10 16:52:18
R
W
Run
woocommerce
DIR
2026-07-10 16:52:18
R
W
Run
404.php
4.56 KB
2023-05-23 11:21:48
R
W
Run
Delete
Rename
500.php
211 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
README.md
1.83 KB
2026-07-01 12:41:12
R
W
Run
Delete
Rename
accessibility.txt
5.66 KB
2026-06-29 21:46:40
R
W
Run
Delete
Rename
babel.config.js
42 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
changelog.md
4.76 KB
2026-07-01 12:41:12
R
W
Run
Delete
Rename
comments.php
6.03 KB
2026-06-29 21:46:40
R
W
Run
Delete
Rename
footer-pwa.php
166 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
footer.php
1.67 KB
2022-08-09 11:52:52
R
W
Run
Delete
Rename
functions.php
37.19 KB
2026-06-29 21:46:40
R
W
Run
Delete
Rename
header-pwa.php
437 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
header.php
1.01 KB
2023-04-05 12:12:28
R
W
Run
Delete
Rename
image.php
1.38 KB
2023-09-06 12:38:32
R
W
Run
Delete
Rename
index.php
3.06 KB
2023-09-06 12:38:32
R
W
Run
Delete
Rename
offline.php
210 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
page.php
1.26 KB
2023-09-06 12:38:32
R
W
Run
Delete
Rename
readme.txt
6.39 KB
2026-07-01 12:41:12
R
W
Run
Delete
Rename
rtl.css
17.32 KB
2023-04-05 12:12:28
R
W
Run
Delete
Rename
screenshot.png
82.88 KB
2021-06-09 11:27:58
R
W
Run
Delete
Rename
search.php
1.52 KB
2024-10-16 13:50:30
R
W
Run
Delete
Rename
searchform.php
2.29 KB
2026-06-29 21:46:40
R
W
Run
Delete
Rename
sidebar-left.php
737 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
sidebar.php
872 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
singular.php
1.65 KB
2023-09-06 12:38:32
R
W
Run
Delete
Rename
style.css
2.09 KB
2026-07-01 12:41:12
R
W
Run
Delete
Rename
webpack.config.js
2.15 KB
2023-09-06 12:38:32
R
W
Run
Delete
Rename
wpml-config.xml
2.53 KB
2021-03-08 12:42:38
R
W
Run
Delete
Rename
error_log
up
📄
comments.php
Save
<?php /** * The template for displaying Comments. * * The area of the page that contains both current comments * and the comment form. * * For additional options check: * oceanwp_comments() and oceanwp_modify_comment_form_fields( $fields ) * * @package OceanWP WordPress theme */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } // Return if password is required. if ( post_password_required() ) { return; } // Add classes to the comments main wrapper. $classes = 'comments-area clr'; if ( get_comments_number() !== 0 ) { $classes .= ' has-comments'; } if ( ! comments_open() && get_comments_number() < 1 ) { $classes .= ' empty-closed-comments'; return; } if ( 'full-screen' === oceanwp_post_layout() ) { $classes .= ' container'; } // Get comment form position. $comment_position = apply_filters( 'ocean_comment_form_position', get_theme_mod( 'ocean_comment_form_position' ) ); $comment_position = $comment_position ? $comment_position : 'after'; // New accessibility and customizer settings. $display_comment_label = oceanwp_is_accessibility_feature_enabled( 'ocean_display_comment_form_label' ); // Setup conditional Textarea formatting parameters. $textarea_label_class = $display_comment_label ? 'comment-form-visible-label' : 'screen-reader-text'; $textarea_label_text = esc_html__( 'Comment', 'oceanwp' ); if ( $display_comment_label ) { $textarea_label_text .= ' <span class="required">*</span>'; $textarea_placeholder = ''; // Completely strip placeholder text when visible labels are enabled. } else { $textarea_placeholder = esc_attr( oceanwp_theme_strings( 'owp-string-comment-placeholder', false ) ); } // Construct clean textarea markup block. $comment_field_html = '<div class="comment-textarea">'; $comment_field_html .= '<label for="comment" class="' . esc_attr( $textarea_label_class ) . '">' . $textarea_label_text . '</label>'; $comment_field_html .= '<textarea name="comment" id="comment" cols="39" rows="4" tabindex="0" class="textarea-comment" required aria-required="true"'; if ( ! empty( $textarea_placeholder ) ) { $comment_field_html .= ' placeholder="' . $textarea_placeholder . '"'; } $comment_field_html .= '></textarea></div>'; // Comment form args. $args = array( /* translators: 1: logged in to comment */ 'must_log_in' => '<p class="must-log-in">' . sprintf( esc_html__( 'You must be %1$slogged in%2$s to post a comment.', 'oceanwp' ), '<a href="' . wp_login_url( apply_filters( 'the_permalink', get_permalink() ) ) . '">', '</a>' ) . '</p>', 'logged_in_as' => '<p class="logged-in-as">' . esc_html__( 'Logged in as', 'oceanwp' ) . ' <a href="' . admin_url( 'profile.php' ) . '">' . $user_identity . '</a>.<span class="screen-reader-text">' . esc_html( oceanwp_theme_strings( 'owp-string-comment-profile-edit', false ) ) . '</span> <a href="' . wp_logout_url( get_permalink() ) . '" aria-label="' . esc_attr( oceanwp_theme_strings( 'owp-string-comment-logout-text', false ) ) . '">' . esc_html__( 'Log out »', 'oceanwp' ) . '</a></p>', 'comment_notes_before' => false, 'comment_notes_after' => false, 'comment_field' => $comment_field_html, // Include fixed accessible element upstream. 'id_submit' => 'comment-submit', 'label_submit' => esc_html( oceanwp_theme_strings( 'owp-string-comment-post-button', false ) ), ); ?> <section id="comments" class="<?php echo esc_attr( $classes ); ?>" aria-label="<?php echo esc_attr_x( 'Comments', 'Aria label for the comments section', 'oceanwp' ); ?>"> <?php // Display comment form if position set to before the comment list. if ( 'before' === $comment_position ) { comment_form( $args ); } ?> <?php if ( have_comments() ) : ?> <?php $comments_number = number_format_i18n( get_comments_number() ); if ( '1' === $comments_number ) { $comments_title = esc_html__( 'This Post Has One Comment', 'oceanwp' ); } else { /* translators: %s: Comments number */ $comments_title = sprintf( esc_html__( 'This Post Has %s Comments', 'oceanwp' ), $comments_number ); } $comments_title = apply_filters( 'ocean_comments_title', $comments_title ); ?> <h3 class="theme-heading comments-title"> <span class="text"><?php echo esc_html( $comments_title ); ?></span> </h3> <ol class="comment-list"> <?php wp_list_comments( array( 'callback' => 'oceanwp_comment', 'style' => 'ol', 'format' => 'html5', ) ); ?> </ol><!-- .comment-list --> <?php // Display comment navigation. if ( function_exists( 'the_comments_navigation' ) ) : $prev_comm_txt = is_rtl() ? oceanwp_icon( 'angle_right', false ) : oceanwp_icon( 'angle_left', false ); $next_comm_txt = is_rtl() ? oceanwp_icon( 'angle_left', false ) : oceanwp_icon( 'angle_right', false ); the_comments_navigation( array( 'prev_text' => $prev_comm_txt . '<span class="screen-reader-text">' . esc_html__( 'Previous comment', 'oceanwp' ) . '</span>' . esc_html__( 'Previous', 'oceanwp' ), 'next_text' => esc_html__( 'Next', 'oceanwp' ) . $next_comm_txt . '</i><span class="screen-reader-text">' . esc_html__( 'Next comment', 'oceanwp' ) . '</span>', ) ); elseif ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> <div class="comment-navigation clr"> <?php paginate_comments_links( array( 'prev_text' => $prev_comm_txt . '</i><span class="screen-reader-text">' . esc_html__( 'Previous comment', 'oceanwp' ) . '</span>' . esc_html__( 'Previous', 'oceanwp' ), 'next_text' => esc_html__( 'Next', 'oceanwp' ) . $next_comm_txt . '<span class="screen-reader-text">' . esc_html__( 'Next comment', 'oceanwp' ) . '</span>', ) ); ?> </div> <?php endif; ?> <?php if ( ! comments_open() && get_comments_number() ) : ?> <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'oceanwp' ); ?></p> <?php endif; ?> <?php endif; // have_comments function. ?> <?php // Display comment form if position set to after the comment list (default setting). if ( 'after' === $comment_position ) { comment_form( $args ); } ?> </section><!-- #comments -->