403Webshell
Server IP : 69.39.225.240  /  Your IP : 216.73.216.138
Web Server : Apache
System : Linux bronze7.serverhost.net 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : reademotions ( 1074)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/reademotions/www/wp-content/plugins/bb-plugin/modules/contact-form/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/reademotions/www/wp-content/plugins/bb-plugin/modules/contact-form/includes/frontend.php
<?php
global $post;
$label_hidden_class = isset( $settings->placeholder_labels ) && 'placeholder' === $settings->placeholder_labels ? ' class="fl-contact-form-label-hidden"' : '';
$show_placeholder   = isset( $settings->placeholder_labels ) && ( 'placeholder' === $settings->placeholder_labels || 'both' === $settings->placeholder_labels ) ? true : false;

$contact_form_fields = apply_filters( 'fl_builder_contact_form_fields', array(
	'form_name'        => 'fl-name',
	'form_subject'     => 'fl-subject',
	'form_email'       => 'fl-email',
	'form_phone'       => 'fl-phone',
	'form_message'     => 'fl-message',
	'form_success_url' => 'fl-success-url',
	'name_error'       => 'name-error',
	'subject_error'    => 'subject-error',
	'email_error'      => 'email-error',
	'phone_error'      => 'phone-error',
	'message_error'    => 'message-error',
), $settings );

?>
<form class="fl-contact-form" <?php if ( isset( $module->template_id ) ) { echo 'data-template-id="' . $module->template_id . '" data-template-node-id="' . $module->template_node_id . '"';} ?>><?php // @codingStandardsIgnoreLine ?>
	<?php wp_nonce_field( 'fl-contact-form-nonce', 'fl-contact-form-nonce' ); ?>
	<input type="hidden" name="fl-layout-id" value="<?php echo $post->ID; ?>" />
	<?php if ( 'show' == $settings->name_toggle ) : ?>
	<div class="fl-input-group fl-name">
		<label for="<?php echo esc_attr( $contact_form_fields['form_name'] ); ?>" <?php echo $label_hidden_class; ?>><?php echo esc_attr( $settings->name_placeholder ); ?></label>
		<span class="fl-contact-error" id="<?php echo esc_attr( $contact_form_fields['name_error'] ); ?>"><?php _e( 'Please enter your name.', 'fl-builder' ); ?></span>
		<input type="text" id="<?php echo esc_attr( $contact_form_fields['form_name'] ); ?>" name="fl-name" aria-describedby="name-error" value="" placeholder="<?php echo $show_placeholder ? esc_attr( $settings->name_placeholder ) : ''; ?>" />
	</div>
	<?php endif; ?>
	<?php if ( 'show' == $settings->subject_toggle ) : ?>
	<div class="fl-input-group fl-subject">
		<label for="<?php echo esc_attr( $contact_form_fields['form_subject'] ); ?>" <?php echo $label_hidden_class; ?>><?php echo esc_attr( $settings->subject_placeholder ); ?></label>
		<span class="fl-contact-error" id="<?php echo esc_attr( $contact_form_fields['subject_error'] ); ?>"><?php _e( 'Please enter a subject.', 'fl-builder' ); ?></span>
		<input type="text" id="<?php echo esc_attr( $contact_form_fields['form_subject'] ); ?>" aria-describedby="subject-error" name="fl-subject" value="" placeholder="<?php echo $show_placeholder ? esc_attr( $settings->subject_placeholder ) : ''; ?>" />
	</div>
	<?php endif; ?>
	<?php if ( 'show' == $settings->email_toggle ) : ?>
	<div class="fl-input-group fl-email">
		<label for="<?php echo esc_attr( $contact_form_fields['form_email'] ); ?>" <?php echo $label_hidden_class; ?>><?php echo esc_attr( $settings->email_placeholder ); ?></label>
		<span class="fl-contact-error" id="<?php echo esc_attr( $contact_form_fields['email_error'] ); ?>"><?php _e( 'Please enter a valid email.', 'fl-builder' ); ?></span>
		<input type="email" id="<?php echo esc_attr( $contact_form_fields['form_email'] ); ?>" aria-describedby="email-error" name="fl-email" value="" placeholder="<?php echo $show_placeholder ? esc_attr( $settings->email_placeholder ) : ''; ?>" />
	</div>
	<?php endif; ?>
	<?php if ( 'show' == $settings->phone_toggle ) : ?>
	<div class="fl-input-group fl-phone">
		<label for="<?php echo esc_attr( $contact_form_fields['form_phone'] ); ?>"<?php echo $label_hidden_class; ?>><?php echo esc_attr( $settings->phone_placeholder ); ?></label>
		<span class="fl-contact-error" id="<?php echo esc_attr( $contact_form_fields['phone_error'] ); ?>"><?php _e( 'Please enter a valid phone number.', 'fl-builder' ); ?></span>
		<input type="tel" id="<?php echo esc_attr( $contact_form_fields['form_phone'] ); ?>" aria-describedby="phone-error" name="fl-phone" value="" placeholder="<?php echo $show_placeholder ? esc_attr( $settings->phone_placeholder ) : ''; ?>" />
	</div>
	<?php endif; ?>
	<div class="fl-input-group fl-message">
		<label for="<?php echo esc_attr( $contact_form_fields['form_message'] ); ?>" <?php echo $label_hidden_class; ?>><?php echo esc_attr( $settings->message_placeholder ); ?></label>
		<span class="fl-contact-error" id="<?php echo esc_attr( $contact_form_fields['message_error'] ); ?>"><?php _e( 'Please enter a message.', 'fl-builder' ); ?></span>
		<textarea id="<?php echo esc_attr( $contact_form_fields['form_message'] ); ?>" name="fl-message" aria-describedby="message-error" placeholder="<?php echo $show_placeholder ? esc_attr( $settings->message_placeholder ) : ''; ?>"></textarea>
	</div>
	<?php if ( 'show' == $settings->terms_checkbox ) : ?>
		<div class="fl-input-group fl-terms-checkbox">
			<?php if ( isset( $settings->terms_text ) && ! empty( $settings->terms_text ) ) : ?>
				<div class="fl-terms-checkbox-text"><?php echo $settings->terms_text; ?></div>
			<?php endif; ?>
			<label for="fl-terms-checkbox-<?php echo $id; ?>">
				<input type="checkbox" class="checkbox-inline" id="fl-terms-checkbox-<?php echo $id; ?>" name="fl-terms-checkbox" value="1" /> <?php echo $settings->terms_checkbox_text; ?>
			</label>
			<span class="fl-contact-error"><?php _e( 'You must accept the Terms and Conditions.', 'fl-builder' ); ?></span>
		</div>
	<?php endif; ?>

	<?php
	if ( 'show' == $settings->recaptcha_toggle && ( isset( $settings->recaptcha_site_key ) && ! empty( $settings->recaptcha_site_key ) ) ) :
		?>
	<div class="fl-input-group fl-recaptcha">
		<span class="fl-contact-error"><?php _e( 'Please check the captcha to verify you are not a robot.', 'fl-builder' ); ?></span>
		<div id="<?php echo $id; ?>-fl-grecaptcha" class="fl-grecaptcha"<?php $module->recaptcha_data_attributes(); ?>></div>
	</div>
	<?php endif; ?>
	<?php FLBuilder::render_module_html( 'button', $module->get_button_settings() ); ?>
	<?php if ( 'redirect' == $settings->success_action ) : ?>
		<input type="text" aria-label="<?php echo esc_attr( $contact_form_fields['form_success_url'] ); ?>" value="<?php echo $settings->success_url; ?>" style="display: none;" class="fl-success-url">
	<?php elseif ( 'none' == $settings->success_action ) : ?>
		<span class="fl-success-none" style="display:none;"><?php _e( 'Message Sent!', 'fl-builder' ); ?></span>
	<?php endif; ?>

	<span class="fl-send-error" style="display:none;"><?php _e( 'Message failed. Please try again.', 'fl-builder' ); ?></span>
</form>
<?php if ( 'show_message' == $settings->success_action ) : ?>
	<span class="fl-success-msg" style="display:none;"><?php echo $settings->success_message; ?></span>
<?php endif; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit