PHP 8.2.31
Preview: comments.php Size: 5.03 KB
/proc/self/root/home/nshryvcy/taramarriagebureau.com/wp-content/themes/planmyday/comments.php

<?php
/**
 * The template for displaying Comments.
 *
 * The area of the page that contains both current comments
 * and the comment form. 
 */

/*
 * If the current post is protected by a password and
 * the visitor has not yet entered the password we will
 * return early without loading the comments.
 */
if ( post_password_required() )
	return;

if ( have_comments() || comments_open() ) {
	?>
	<section class="comments_wrap">
	<?php
	if ( have_comments() ) {
	?>
		<div id="comments" class="comments_list_wrap">
			<h2 class="section_title comments_list_title"><?php $post_comments = get_comments_number(); echo esc_attr($post_comments); ?> <?php echo (1==$post_comments ? esc_html__('Comment', 'planmyday') : esc_html__('Comments', 'planmyday')); ?></h2>
			<ul class="comments_list">
				<?php
				wp_list_comments( array('callback'=>'planmyday_output_single_comment') );
				?>
			</ul><!-- .comments_list -->
			<?php if ( !comments_open() && get_comments_number()!=0 && post_type_supports( get_post_type(), 'comments' ) ) { ?>
				<p class="comments_closed"><?php esc_html_e( 'Comments are closed.', 'planmyday' ); ?></p>
			<?php }	?>
			<div class="comments_pagination"><?php paginate_comments_links(); ?></div>
		</div><!-- .comments_list_wrap -->
	<?php 
	}

	if ( comments_open() ) {
		?>
		<div class="comments_form_wrap">
			<h2 class="section_title comments_form_title"><?php esc_html_e('Add Comment', 'planmyday'); ?></h2>
			<div class="comments_form">
				<?php
				$form_style = esc_attr(planmyday_get_theme_option('input_hover'));
				$commenter = wp_get_current_commenter();
				$req = get_option( 'require_name_email' );
				$aria_req = ( $req ? ' aria-required="true"' : '' );
				$privacy_text = planmyday_get_privacy_text();
				$planmyday_comments_args = apply_filters(	'planmyday_filter_comment_form_args', array(
						// class of the 'form' tag
						'class_form' => 'comment-form sc_input_hover_' . esc_attr($form_style),
						// change the id of send button 
						'id_submit'=>'send_comment',
						// change the title of send button 
						'label_submit'=>esc_html__('Post Comment', 'planmyday'),
						// change the title of the reply section
						'title_reply'=>'',
						// remove "Logged in as"
						'logged_in_as' => '',
						// remove text before textarea
						'comment_notes_before' => '<p class="comments_notes">'.esc_html__('Your email address will not be published. Required fields are marked *', 'planmyday').'</p>',
						// remove text after textarea
						'comment_notes_after' => '',
						// redefine your own textarea (the comment body)
						'fields'               => array(
							'author' => planmyday_single_comments_field(
											array(
												'form_style'        => $form_style,
												'field_type'        => 'text',
												'field_req'         => true,
												'field_icon'        => 'icon-user',
												'field_value'       => isset($commenter['comment_author']) ? $commenter['comment_author'] : '',
												'field_name'        => 'author',
												'field_title'       => esc_attr__( 'Name', 'planmyday' ),
												'field_placeholder' => esc_attr__( 'Name', 'planmyday' ),
											)
									),
							'email'  => planmyday_single_comments_field(
									 array(
										  'form_style'        => $form_style,
										  'field_type'        => 'text',
										  'field_req'         => $req,
										  'field_icon'        => 'icon-mail',
										  'field_value'       => isset( $planmyday_commenter['comment_author_email'] ) ? $planmyday_commenter['comment_author_email'] : '',
										  'field_name'        => 'email',
										  'field_title'       => esc_attr__( 'E-mail', 'planmyday' ),
										  'field_placeholder' => esc_attr__( 'E-mail', 'planmyday' ),
											)
										),
							'site'  => planmyday_single_comments_field(
								array(
										'form_style'        => $form_style,
										'field_type'        => 'text',
										'field_req'         => false,
										'field_icon'        => 'icon-site',
										'field_value'       => isset( $planmyday_commenter['comment_author_site'] ) ? $planmyday_commenter['comment_author_site'] : '',
										'field_name'        => 'site',
										'field_title'       => esc_attr__( 'Websile', 'planmyday' ),
										'field_placeholder' => esc_attr__( 'Websile', 'planmyday' ),
										)
									),
								),
							// redefine your own textarea (the comment body)
							'comment_field'        => planmyday_single_comments_field(
									array(
										'form_style'        => $form_style,
										'field_type'        => 'textarea',
										'field_req'         => true,
										'field_icon'        => 'icon-feather',
										'field_value'       => '',
										'field_name'        => 'comment',
										'field_title'       => esc_attr__( 'Comment', 'planmyday' ),
										'field_placeholder' => esc_attr__( 'Comment', 'planmyday' ),
									)
							),
					 )
				);
				
					comment_form($planmyday_comments_args);
					?>
				</div>
			</div><!-- /.comments_form_wrap -->
		<?php 
		}
		?>	
	</section><!-- /.comments_wrap -->
<?php 
}
?>

Directory Contents

Dirs: 8 × Files: 24

Name Size Perms Modified Actions
css DIR
- drwxr-xr-x 2025-04-30 03:18:26
Edit Download
fw DIR
- drwxr-xr-x 2025-04-30 03:18:34
Edit Download
images DIR
- drwxr-xr-x 2025-04-30 03:18:27
Edit Download
includes DIR
- drwxr-xr-x 2025-04-30 03:18:25
Edit Download
js DIR
- drwxr-xr-x 2025-04-30 03:18:27
Edit Download
languages DIR
- drwxr-xr-x 2025-04-30 03:18:25
Edit Download
plugins DIR
- drwxr-xr-x 2025-04-30 03:18:25
Edit Download
templates DIR
- drwxr-xr-x 2025-04-30 03:18:26
Edit Download
364 B lrw-r--r-- 2025-04-30 03:18:26
Edit Download
60 B lrw-r--r-- 2025-04-30 03:18:27
Edit Download
503 B lrw-r--r-- 2025-04-30 03:18:27
Edit Download
236 B lrw-r--r-- 2025-04-30 03:18:25
Edit Download
240 B lrw-r--r-- 2025-04-30 03:18:26
Edit Download
8.66 KB lrw-r--r-- 2025-04-30 03:18:26
Edit Download
2.88 KB lrw-r--r-- 2025-04-30 03:18:25
Edit Download
5.03 KB lrw-r--r-- 2025-04-30 03:18:27
Edit Download
6.36 KB lrw-r--r-- 2025-05-19 13:28:11
Edit Download
18.10 KB lrw-r--r-- 2025-05-19 13:43:28
Edit Download
6.16 KB lrw-r--r-- 2025-05-25 05:11:26
Edit Download
484 B lrw-r--r-- 2025-04-30 03:18:25
Edit Download
61 B lrw-r--r-- 2025-04-30 03:18:27
Edit Download
2.38 KB lrw-r--r-- 2025-05-25 14:07:19
Edit Download
195.05 KB lrw-r--r-- 2025-04-30 03:18:25
Edit Download
75 B lrw-r--r-- 2025-04-30 03:18:34
Edit Download
399 B lrw-r--r-- 2025-04-30 03:18:26
Edit Download
1.63 KB lrw-r--r-- 2025-05-25 13:29:21
Edit Download
1.13 KB lrw-r--r-- 2025-04-30 03:18:26
Edit Download
60 B lrw-r--r-- 2025-04-30 03:18:27
Edit Download
114 B lrw-r--r-- 2025-04-30 03:18:25
Edit Download
571 B lrw-r--r-- 2025-04-30 03:18:25
Edit Download
229.78 KB lrw-r--r-- 2025-04-30 03:18:27
Edit Download
16.54 KB lrw-r--r-- 2025-04-30 03:18:27
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).