Uname:Linux webm002.cluster129.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64

403WebShell
403Webshell
Server IP : 51.91.236.255  /  Your IP : 216.73.217.120
Web Server : Apache
System : Linux webm002.cluster129.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : laureet ( 1012854)
PHP Version : 8.0.30
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/laureet/www/wp-content/themes/rhye/inc/functions/blog/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/laureet/www/wp-content/themes/rhye/inc/functions/blog/comments.php
<?php

/**
 * Custom Fields (author, email, url) for Comment Form
 */
add_filter( 'comment_form_default_fields', 'arts_filter_comment_form_default_fields' );
function arts_filter_comment_form_default_fields( $args = array(), $post_id = null ) {
	if ( null === $post_id ) {
		$post_id = get_the_ID();
	}

	// Exit the function when comments for the post are closed.
	if ( ! comments_open( $post_id ) ) {
		/**
		 * Fires after the comment form if comments are closed.
		 *
		 * @since 3.0.0
		 */
		do_action( 'comment_form_comments_closed' );

		return;
	}

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

	$args = wp_parse_args( $args );
	if ( ! isset( $args['format'] ) ) {
		$args['format'] = current_theme_supports( 'html5', 'comment-form' ) ? 'html5' : 'xhtml';
	}

	$req      = get_option( 'require_name_email' );
	$html_req = ( $req ? " required='required'" : '' );
	$html5    = 'html5' === $args['format'];

		$fields = array(
			'author' => '
				<div class="row form__row">
					<div class="col form__col">
						<label class="input-float js-input-float">
							<input class="input-float__input" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" maxlength="245"' . $html_req . '/>' .
								'<span class="input-float__label">' . esc_html__( 'Name', 'rhye' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</span>
						</label>
					</div>
				</div>
			',
			'email'  => '
				<div class="row form__row">
					<div class="col form__col">
						<label class="input-float js-input-float">
							<input class="input-float__input" id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" maxlength="100" aria-describedby="email-notes"' . $html_req . ' />' .
								'<span class="input-float__label">' . esc_html__( 'Email', 'rhye' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</span>
						</label>
					</div>
				</div>
			',
			'url'    => '
				<div class="row form__row">
					<div class="col form__col">
						<label class="input-float js-input-float">
							<input class="input-float__input" id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" maxlength="200" />' .
								'<span class="input-float__label">' . esc_html__( 'Website', 'rhye' ) . '</span>
						</label>
					</div>
				</div>
			',
		);

		return $fields;
}

/**
 * Custom Textarea & Submit Button for Comment Form
 */
add_filter( 'comment_form_defaults', 'arts_comment_form_defaults' );
function arts_comment_form_defaults() {
	$args = array(
		'comment_field' => '
		<div class="row form__row">
			<div class="col form__col">
				<label class="input-float js-input-float">
					<textarea id="comment" name="comment" class="input-float__input input-float__input_textarea" cols="45" rows="8" maxlength="65525" required="required"></textarea><span class="input-float__label">' . esc_html_x( 'Comment', 'noun', 'rhye' ) . '</span>
				</label>
			</div>
		</div>
	',
		'class_submit'  => 'button button_bordered bg-dark-1',
		'submit_button' => '<button name="%1$s" type="submit" id="%2$s" class="%3$s" data-hover="%4$s"><span class="button__label-hover">%4$s</span></button>',
		'submit_field'  => '
		<div class="row form__row form__row_submit text-right">
			<div class="col form__col form__col_submit">
				%1$s %2$s
			</div>
		</div>
	',
	);

	return $args;
}

Youez - 2016 - github.com/yon3zu
LinuXploit