Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/themify-.../template...
File: template-signup-form.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Template Sign Up
[2] Fix | Delete
*
[3] Fix | Delete
* This template can be overridden by copying it to your child_theme_folder/themify-builder/template-signup-form.php.
[4] Fix | Delete
*
[5] Fix | Delete
* Access original fields: $args['mod_settings']
[6] Fix | Delete
* @author Themify
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
defined( 'ABSPATH' ) || exit;
[10] Fix | Delete
[11] Fix | Delete
$mod_name=$args['mod_name'];
[12] Fix | Delete
$element_id = $args['module_ID'];
[13] Fix | Delete
$fields_args = $args['mod_settings']+ array(
[14] Fix | Delete
'mod_title' => '',
[15] Fix | Delete
'success_action' => 'c',
[16] Fix | Delete
'redirect_to' => '',
[17] Fix | Delete
'i_name' => '',
[18] Fix | Delete
'i_firstname' => '',
[19] Fix | Delete
'i_lastname' => '',
[20] Fix | Delete
'i_username' => '',
[21] Fix | Delete
'i_email' => '',
[22] Fix | Delete
'i_password' => '',
[23] Fix | Delete
'i_bio' => '',
[24] Fix | Delete
'i_desc' => '',
[25] Fix | Delete
'i_submit' => '',
[26] Fix | Delete
'l_name' =>'',
[27] Fix | Delete
'l_firstname' =>'',
[28] Fix | Delete
'l_lastname' => '',
[29] Fix | Delete
'l_username' =>'',
[30] Fix | Delete
'l_email' => '',
[31] Fix | Delete
'l_password' => '',
[32] Fix | Delete
'l_bio' => '',
[33] Fix | Delete
'l_submit' =>'',
[34] Fix | Delete
'desc' =>'',
[35] Fix | Delete
'optin' => 'no',
[36] Fix | Delete
'optin_label' => '',
[37] Fix | Delete
'provider' => '',
[38] Fix | Delete
'gdpr' => '',
[39] Fix | Delete
'gdpr_label' => '',
[40] Fix | Delete
'css' => '',
[41] Fix | Delete
'welcome' => '',
[42] Fix | Delete
'animation_effect' => '',
[43] Fix | Delete
);
[44] Fix | Delete
$container_class = apply_filters( 'themify_builder_module_classes', array(
[45] Fix | Delete
'module',
[46] Fix | Delete
'module-' . $mod_name,
[47] Fix | Delete
$element_id,
[48] Fix | Delete
$fields_args['css']
[49] Fix | Delete
), $mod_name, $element_id, $fields_args );
[50] Fix | Delete
[51] Fix | Delete
$container_props = apply_filters( 'themify_builder_module_container_props', self::parse_animation_effect($fields_args,array(
[52] Fix | Delete
'class' => implode( ' ', $container_class ),
[53] Fix | Delete
)), $fields_args, $mod_name, $element_id );
[54] Fix | Delete
if(Themify_Builder::$frontedit_active===false){
[55] Fix | Delete
$container_props['data-lazy']=1;
[56] Fix | Delete
}
[57] Fix | Delete
self::sticky_element_props($container_props, $fields_args);
[58] Fix | Delete
$builder_id = $args['builder_id'];
[59] Fix | Delete
?>
[60] Fix | Delete
<!-- module signup form -->
[61] Fix | Delete
<div <?php echo themify_get_element_attributes( $container_props ); ?>>
[62] Fix | Delete
<?php
[63] Fix | Delete
if ( ! TB_Signup_Form_Module::signup_enabled() ) {
[64] Fix | Delete
if ( current_user_can( 'manage_options' ) ) {
[65] Fix | Delete
printf( __( 'Signup is currently disabled. You can enable the option in <a href="%s" target="_blank">Settings > General</a>.', 'themify' ), admin_url( 'options-general.php' ) );
[66] Fix | Delete
}
[67] Fix | Delete
} else { ?>
[68] Fix | Delete
<?php
[69] Fix | Delete
$container_props = $container_class = $args =null;
[70] Fix | Delete
echo Themify_Builder_Component_Module::get_module_title($fields_args);
[71] Fix | Delete
?>
[72] Fix | Delete
<?php if ( is_user_logged_in() ) {
[73] Fix | Delete
$current_user = wp_get_current_user();
[74] Fix | Delete
echo '<div class="tb_signup_welcome">';
[75] Fix | Delete
echo str_replace( [
[76] Fix | Delete
'%site_name%',
[77] Fix | Delete
'%site_description%',
[78] Fix | Delete
'%site_url%',
[79] Fix | Delete
'%user_login%',
[80] Fix | Delete
'%user_email%',
[81] Fix | Delete
'%user_firstname%',
[82] Fix | Delete
'%user_lastname%',
[83] Fix | Delete
'%user_display_name%',
[84] Fix | Delete
'%user_id%'
[85] Fix | Delete
], [
[86] Fix | Delete
get_bloginfo('name'),
[87] Fix | Delete
get_bloginfo('description'),
[88] Fix | Delete
home_url(),
[89] Fix | Delete
esc_html( $current_user->user_login ),
[90] Fix | Delete
esc_html( $current_user->user_email ),
[91] Fix | Delete
esc_html( $current_user->user_firstname ),
[92] Fix | Delete
esc_html( $current_user->user_lastname ),
[93] Fix | Delete
esc_html( $current_user->display_name ),
[94] Fix | Delete
$current_user->ID
[95] Fix | Delete
],
[96] Fix | Delete
$fields_args['welcome']
[97] Fix | Delete
);
[98] Fix | Delete
echo '</div>';
[99] Fix | Delete
} else { ?>
[100] Fix | Delete
<form class="tb_signup_form tf_rel"
[101] Fix | Delete
method="POST"
[102] Fix | Delete
<?php if ( 'c' === $fields_args['success_action'] ) : ?>data-redirect="<?php echo esc_url( $fields_args['redirect_to'] ); ?>"<?php endif; ?>
[103] Fix | Delete
data-generic-error="<?php esc_attr_e( 'There was an error connecting to server, please try again.', 'themify' ) ?>"
[104] Fix | Delete
>
[105] Fix | Delete
<div class="tb_signup_messages tb_signup_errors"></div>
[106] Fix | Delete
<?php if ( 'm' === $fields_args['success_action'] && !empty( $fields_args['msg_success'] ) ): ?>
[107] Fix | Delete
<div class="tf_hide tb_signup_messages tb_signup_success"><?php echo esc_html( $fields_args['msg_success'] ) ?></div>
[108] Fix | Delete
<?php endif; ?>
[109] Fix | Delete
<div>
[110] Fix | Delete
<label>
[111] Fix | Delete
<span class="tb_signup_label"><?php if ( $fields_args['i_name'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['i_name'] ); ?></em><?php endif; ?><?php echo esc_html( $fields_args['l_name'] ) ?></span>
[112] Fix | Delete
</label>
[113] Fix | Delete
<div class="tb_sp_name_wrapper">
[114] Fix | Delete
<div>
[115] Fix | Delete
<label>
[116] Fix | Delete
<input type="text" name="first_n">
[117] Fix | Delete
<span><?php if ( $fields_args['i_firstname'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['i_firstname'] ); ?></em><?php endif; ?> <?php echo esc_html( $fields_args['l_firstname'] ) ?></span>
[118] Fix | Delete
</label>
[119] Fix | Delete
</div>
[120] Fix | Delete
<div>
[121] Fix | Delete
<label>
[122] Fix | Delete
<input type="text" name="last_n">
[123] Fix | Delete
<span><?php if ( $fields_args['i_lastname'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['i_lastname'] ); ?></em><?php endif; ?><?php echo esc_html( $fields_args['l_lastname'] ) ?></span>
[124] Fix | Delete
</label>
[125] Fix | Delete
</div>
[126] Fix | Delete
</div>
[127] Fix | Delete
</div>
[128] Fix | Delete
<div>
[129] Fix | Delete
<label>
[130] Fix | Delete
<span class="tb_signup_label" data-required="yes"><?php if ( $fields_args['i_username'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['i_username'] ); ?></em><?php endif; ?> <?php echo esc_html( $fields_args['l_username'] ) ?></span>
[131] Fix | Delete
<input type="text" name="user_login" autocapitalize="none" autocomplete="username" required="required">
[132] Fix | Delete
</label>
[133] Fix | Delete
</div>
[134] Fix | Delete
<div>
[135] Fix | Delete
<label>
[136] Fix | Delete
<span class="tb_signup_label" data-required="yes"><?php if ( $fields_args['i_email'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['i_email'] ); ?></em><?php endif; ?> <?php echo esc_html( $fields_args['l_email'] ) ?></span>
[137] Fix | Delete
<input type="email" name="user_email" autocomplete="email" required="required">
[138] Fix | Delete
</label>
[139] Fix | Delete
</div>
[140] Fix | Delete
<div>
[141] Fix | Delete
<label>
[142] Fix | Delete
<span class="tb_signup_label" data-required="yes"><?php if ( $fields_args['i_password'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['i_password'] ); ?></em><?php endif; ?> <?php echo esc_html( $fields_args['l_password'] ) ?></span>
[143] Fix | Delete
<input type="password" name="pwd" autocomplete="current-password">
[144] Fix | Delete
</label>
[145] Fix | Delete
</div>
[146] Fix | Delete
<div>
[147] Fix | Delete
<label>
[148] Fix | Delete
<span class="tb_signup_label"><?php if ( $fields_args['i_bio'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['i_bio'] ); ?></em><?php endif; ?> <?php echo esc_html( $fields_args['l_bio'] ) ?></span>
[149] Fix | Delete
<textarea name="bio"></textarea>
[150] Fix | Delete
</label>
[151] Fix | Delete
<?php if ( $fields_args['desc'] !== '' ): ?>
[152] Fix | Delete
<p><?php if ( $fields_args['i_desc'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['i_desc'] ); ?></em><?php endif; ?> <?php echo esc_html( $fields_args['desc'] ) ?></p>
[153] Fix | Delete
<?php endif; ?>
[154] Fix | Delete
</div>
[155] Fix | Delete
[156] Fix | Delete
<?php if ( $fields_args['optin'] === 'yes' ) : ?>
[157] Fix | Delete
<?php
[158] Fix | Delete
if ( ! class_exists( 'Builder_Optin_Service',false ) ){
[159] Fix | Delete
include_once( THEMIFY_BUILDER_INCLUDES_DIR. '/optin-services/base.php' );
[160] Fix | Delete
}
[161] Fix | Delete
$optin_instance = Builder_Optin_Service::get_providers( $fields_args['provider'],true );
[162] Fix | Delete
if ( $optin_instance ) : ?>
[163] Fix | Delete
<div>
[164] Fix | Delete
<label>
[165] Fix | Delete
<input type="hidden" name="optin-provider" value="<?php esc_attr_e( $fields_args['provider'] ); ?>">
[166] Fix | Delete
<?php
[167] Fix | Delete
foreach ( $optin_instance::get_settings() as $provider_field ) :
[168] Fix | Delete
if ( isset( $provider_field['id'] ) && isset( $fields_args[ $provider_field['id'] ] ) ) : ?>
[169] Fix | Delete
<input type="hidden" name="optin-<?php echo $provider_field['id']; ?>" value="<?php esc_attr_e( $fields_args[ $provider_field['id'] ] ); ?>">
[170] Fix | Delete
<?php endif;
[171] Fix | Delete
endforeach;
[172] Fix | Delete
unset($optin_instance);
[173] Fix | Delete
?>
[174] Fix | Delete
<input type="checkbox" name="optin" value="1">
[175] Fix | Delete
<span class="tb_signup_optin"><?php esc_html_e( $fields_args['optin_label'] ) ?></span>
[176] Fix | Delete
</label>
[177] Fix | Delete
</div>
[178] Fix | Delete
<?php endif; ?>
[179] Fix | Delete
<?php endif; ?>
[180] Fix | Delete
[181] Fix | Delete
<?php if ( $fields_args['gdpr'] === 'on' ) : ?>
[182] Fix | Delete
<div>
[183] Fix | Delete
<label>
[184] Fix | Delete
<input type="checkbox" name="gdpr" required="required">
[185] Fix | Delete
<span class="tb_signup_gdpr"><?php esc_html_e( $fields_args['gdpr_label'] ); ?></span>
[186] Fix | Delete
</label>
[187] Fix | Delete
</div>
[188] Fix | Delete
<?php endif; ?>
[189] Fix | Delete
[190] Fix | Delete
<?php if ( ! empty( $fields_args['captcha'] ) ) {
[191] Fix | Delete
echo Themify_Builder_Model::get_captcha_field( $fields_args['captcha'], '<div>', '</div>' );
[192] Fix | Delete
}
[193] Fix | Delete
?>
[194] Fix | Delete
[195] Fix | Delete
<button name="tb_submit"><span class="tf_loader"></span> <?php if ( $fields_args['i_submit'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['i_submit'] ); ?></em><?php endif; ?> <?php echo esc_html( $fields_args['l_submit'] ) ?></button>
[196] Fix | Delete
<input type="hidden" name="tb_post_id" value="<?php echo esc_attr( $builder_id ); ?>">
[197] Fix | Delete
<input type="hidden" name="tb_element_id" value="<?php echo esc_attr( str_replace( 'tb_', '', $element_id ) ); ?>">
[198] Fix | Delete
</form>
[199] Fix | Delete
<?php } // login check ?>
[200] Fix | Delete
<?php } // register check ?>
[201] Fix | Delete
</div><!-- /module signup form -->
[202] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function