403Webshell
Server IP : 69.72.244.102  /  Your IP : 216.73.216.164
Web Server : LiteSpeed
System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : konzalta ( 1271)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/konzalta/johnweru.com/wp-content/themes/inbio/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/konzalta/johnweru.com/wp-content/themes/inbio//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://codex.wordpress.org/Template_Hierarchy
 *
 * @package inbio
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly.
}

/*
 * 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 (!function_exists('rainbow_move_comment_field_to_bottom')) {
    function rainbow_move_comment_field_to_bottom($fields)
    {
        $temp = (isset($fields['comment'])) ? $fields['comment'] : "";
        $temp_cookies = (isset($fields['cookies'])) ? $fields['cookies'] : "";
        unset($fields['comment']);
        unset($fields['cookies']);
        $fields['comment'] = $temp;
        $fields['cookies'] = $temp_cookies;
        return $fields;
    }
}
add_filter('comment_form_fields', 'rainbow_move_comment_field_to_bottom');

if (post_password_required()) {
    return;
}
?>
<div id="comments" class="comments-area">
    <div class="leave-comment-form"> 
        <?php
        if (have_comments()):
            $comments_number = absint(get_comments_number());
            ?>
            <div id="comment-list" class="inbio-blog-comment mt--60 mt_md--40 mt_sm--30">
                <h4 class="comment-title mb--40">
                    <?php
                    if (1 === $comments_number) {
                        /* translators: %s: post title */
                        printf(esc_html_x('One reply on &ldquo;%s&rdquo;', 'comments title', 'inbio'), esc_html(get_the_title()));
                    } else {
                        echo sprintf(
                        /* translators: 1: number of comments, 2: post title */
                            _nx(
                                '%1$s reply on &ldquo;%2$s&rdquo;',
                                '%1$s replies on &ldquo;%2$s&rdquo;',
                                $comments_number,
                                'comments title',
                                'inbio'
                            ),
                            number_format_i18n($comments_number),
                            esc_html(get_the_title())
                        );
                    }

                    ?>
                </h4> 
                <?php rainbow_get_post_navigation(); ?> 
                <ul class="comment-list comment-list">
                    <?php
                    wp_list_comments(
                        array(
                            'style' => 'ul',
                            'callback' => 'rainbow_comment',
                            'type' => 'all',
                            'format' => current_theme_supports('html5', 'comment-list') ? 'html5' : 'xhtml',
                        )
                    );
                    ?>
                </ul>
                <?php rainbow_get_post_navigation(); ?>
                <?php
                if (!comments_open() && get_comments_number() && post_type_supports(get_post_type(), 'comments')) :
                    ?>
                    <p class="no-comments"><?php echo esc_html__('Comments are closed.', 'inbio'); ?></p>

                <?php
                endif;
                ?>
            </div>
        <?php
        endif;
        ?> 
        <div id="comment-form" class="inbio-comment-form mt--75 mt_md--40 mt_sm--30">
            <div class="inner">
                <?php 
                $commenter = wp_get_current_commenter();
                $req = get_option('require_name_email');
                $aria_req = ($req ? " aria-required='true'" : '');
                $consent = empty($commenter['comment_author_email']) ? '' : ' checked="checked"'; 
                $fields = array(

                    'author' =>
                        '<div class="row row--25"><div class="ccol-lg-4 col-md-4 col-12"><div class="form-group"><label for="author">' . esc_attr__('Full Name', 'inbio') . '<span class="required">*</span></label><span class="focus-border"></span> <input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" required aria-required="true" /></div></div>',

                    'email' =>
                        '<div class="col-lg-4 col-md-4 col-12"><div class="form-group"><label for="email">' . esc_attr__('Email ', 'inbio') . '<span class="required">*</span></label><span class="focus-border"></span><input id="email" name="email" class="input_half" type="email" value="' . esc_attr($commenter['comment_author_email']) . '" required aria-required="true" /></div></div>',
                    'url' =>
                        '<div class="col-lg-4 col-md-4 col-12"><div class="form-group"><label for="url">' . esc_attr__('Website', 'inbio') . '</label><span class="focus-border"></span><input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" /></div></div></div>'

                );
                // $fields['cookies'] =  '<p class="comment-form-cookies-consent login-remember"><label for="wp-comment-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' . esc_attr__( 'Save my name, email, and website in this browser for the next time I comment.', 'inbio' ) . '</label></p>';
                $args = array(

                    'class_submit' => 'inbio-button btn-large btn-transparent',
                    'label_submit' => esc_html__('Post Comment', 'inbio'),
                    'comment_field' =>
                        '<div class="row"><div class="col-md-12"><div class="form-group"><label for="comment">' . esc_attr__('Write your comment here… ', 'inbio') . '<span class="required">*</span></label><span class="focus-border"></span><textarea id="comment" name="comment" rows="3"  required aria-required="true"></textarea></div></div></div>',
                    'fields' => apply_filters('comment_form_default_fields', $fields),
                    'title_reply' => esc_html__('Leave a Reply', 'inbio'),
                    'format' => 'xhtml'

                );
                comment_form($args); 
                ?>
            </div>
        </div> 
    </div>
</div><!-- /.comments-area -->

Youez - 2016 - github.com/yon3zu
LinuXploit