403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.217.10.152
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/cynthiaadediran.com/wp-content/themes/gerold/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/cynthiaadediran.com/wp-content/themes/gerold//comments.php
<?php

/**
 * The template for displaying comments
 *
 * This is the template that displays the area of the page that contains both the current comments
 * and the comment form.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Gerold_Theme
 * @since Gerold 1.0.0
 * @author ThemeJunction 
 */

/*
 * 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;
}
?>

<?php if (have_comments() || comments_open()) : ?>
	<div id="comments" class="tj-comments__container">

		<?php if (get_comments_number() >= 1) : ?>
			<div class="tj-comments__wrap">
				<div class="tj-comment__title">

					<?php
					$comment_no = number_format_i18n(get_comments_number());
					$comment_text = (!empty($comment_no) and ($comment_no > 1)) ? esc_html__(' Comments', 'gerold') : esc_html__(' Comment ', 'gerold');
					$comment_no = (!empty($comment_no) and ($comment_no > 0)) ?  esc_html($comment_no . $comment_text) : ' ';
					print sprintf("%s", $comment_no);
					?>

				</div>
				<div class="tj-latest__comments">
					<ul>
						<?php
						wp_list_comments([
							'style'       => 'ul',
							'callback'    => 'gerold_comment',
							'avatar_size' => 120,
							'short_ping'  => true,
						]);
						?>
					</ul>
				</div>
			</div>
		<?php endif; ?>

		<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : ?>
			<div class="tj-comment__pagination">
				<nav id="comment-nav-below" class="comment__navigation" role="navigation">
					<h1 class="screen-reader-text"><?php esc_html_e('Comment navigation', 'gerold'); ?></h1>
					<div class="row">
						<div class="col-md-6">
							<div class="nav-previous "><?php previous_comments_link(esc_html__('&larr; Older ', 'gerold')); ?></div>
						</div>
						<div class="col-md-6">
							<div class="nav-next "><?php next_comments_link(esc_html__('Newer &rarr;', 'gerold')); ?></div>
						</div>
					</div>
					<div class="clearfix"></div>
				</nav><!-- #comment-nav-below -->
			</div>
		<?php endif; // check for comment navigation 
		?>


		<?php
		$post_id = '';
		if (null === $post_id)
			$post_id = get_the_ID();
		else
			$id      = $post_id;

		$commenter       = wp_get_current_commenter();
		$user            = wp_get_current_user();
		$user_identity   = $user->exists() ? $user->display_name : '';


		$req         = get_option('require_name_email');
		$aria_req    = ($req ? " aria-required='true'" : '');

		$fields = array(
			'author' => '<div class="row"><div class="col-md-6"><div class="form_group"><input placeholder="' .  esc_attr__('Enter Name', 'gerold') . '" id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . ' /></div></div>',
			'email'  => '<div class="col-md-6"><div class="form_group"><input placeholder="' .  esc_attr__('Enter Email', 'gerold') . '" id="email" name="email" type="email" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . ' /></div></div>',
			'url'    => '<div class="col-md-12"><div class="form_group"><input placeholder="' .  esc_attr__('Enter Website', 'gerold') . '" id="url" name="url" type="url" value="' . esc_attr($commenter['comment_author_url']) . '" size="30" /></div></div></div>'
		);

		if (is_user_logged_in()) {
			$cl = 'loginformuser';
		} else {
			$cl = '';
		}
		$defaults = [
			'fields'             => $fields,
			'comment_field'      => '
            <div class="row">
                <div class="col-12 ' . $cl . '">
                    <div class="form_group"><textarea placeholder="' .  esc_attr__('Enter Your Comments', 'gerold') . '" id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea>
                </div></div>
                <div class="clearfix"></div>
            </div>
        ',
			'submit_button'    => '<button class="tj-btn-primary submit" type="submit">' . esc_html__('Post Comment', 'gerold') . ' </button>',
			/** This filter is documented in wp-includes/link-template.php */
			'must_log_in'        => '
            <p class="must-log-in">
            ' . esc_html__('You must be', 'gerold') . ' <a href="' . esc_url(wp_login_url(apply_filters('the_permalink', get_permalink($post_id)))) . '">' . esc_html__('logged in', 'gerold') . '</a> ' . esc_html__('to post a comment.', 'gerold') . '
            </p>',
			/** This filter is documented in wp-includes/link-template.php */
			'logged_in_as'       => '
            <p class="logged-in-as">
            ' . esc_html__('Logged in as', 'gerold') . ' <a href="' . esc_url(get_edit_user_link()) . '">' . esc_html($user_identity) . '</a>. <a href="' . esc_url(wp_logout_url(apply_filters('the_permalink', get_permalink($post_id)))) . '" title="' . esc_attr__('Log out of this account', 'gerold') . '">' . esc_html__('Log out?', 'gerold') . '</a>
            </p>',
			'id_form'            => 'commentForm',
			'class_form'            => 'tj-post-comment__form',
			'label_submit'       => esc_html__('Post Comment', 'gerold'),
			'format'             => 'xhtml',
		];

		comment_form($defaults);
		?>

	</div><!-- #comments -->
<?php endif; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit