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/wp-conte.../plugins/themify-.../template...
File: template-login.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Template Login
[2] Fix | Delete
*
[3] Fix | Delete
* This template can be overridden by copying it to your child_theme_folder/themify-builder/template-login.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
'content_text' => '',
[16] Fix | Delete
'logout_link' => '',
[17] Fix | Delete
'logout_redirect' => '',
[18] Fix | Delete
'alignment' => '',
[19] Fix | Delete
'remember_me_display' => 'show',
[20] Fix | Delete
'redirect_to' => add_query_arg( 'login_success', 1 ),
[21] Fix | Delete
'fail_action' => 'r',
[22] Fix | Delete
'redirect_fail' => '',
[23] Fix | Delete
'msg_fail' => '',
[24] Fix | Delete
'icon_username' => '',
[25] Fix | Delete
'icon_password' => '',
[26] Fix | Delete
'icon_remember' => '',
[27] Fix | Delete
'icon_log_in' => '',
[28] Fix | Delete
'icon_forgotten_password' => '',
[29] Fix | Delete
'label_username' => '',
[30] Fix | Delete
'label_password' => '',
[31] Fix | Delete
'label_remember' => '',
[32] Fix | Delete
'label_log_in' => '',
[33] Fix | Delete
'label_forgotten_password' => '',
[34] Fix | Delete
'css' => '',
[35] Fix | Delete
'lostpasswordform_redirect_to' => '',
[36] Fix | Delete
'lostpasswordform_icon_username' => '',
[37] Fix | Delete
'lostpasswordform_icon_reset' => '',
[38] Fix | Delete
'lostpasswordform_label_username' => '',
[39] Fix | Delete
'lostpasswordform_label_reset' => '',
[40] Fix | Delete
'animation_effect' => ''
[41] Fix | Delete
);
[42] Fix | Delete
$fields_args['alignment']=$fields_args['alignment']==='' || 'left'=== $fields_args['alignment']?'':('center'=== $fields_args['alignment']?'tb_login_c':'tf_right');
[43] Fix | Delete
$container_class = apply_filters( 'themify_builder_module_classes', array(
[44] Fix | Delete
'module',
[45] Fix | Delete
'module-' . $mod_name,
[46] Fix | Delete
$element_id,
[47] Fix | Delete
$fields_args['css']
[48] Fix | Delete
), $mod_name, $element_id, $fields_args );
[49] Fix | Delete
[50] Fix | Delete
if(!empty($fields_args['global_styles']) && Themify_Builder::$frontedit_active===false){
[51] Fix | Delete
$container_class[] = $fields_args['global_styles'];
[52] Fix | Delete
}
[53] Fix | Delete
$container_props = apply_filters( 'themify_builder_module_container_props', self::parse_animation_effect($fields_args,array(
[54] Fix | Delete
'class' => implode( ' ', $container_class),
[55] Fix | Delete
)), $fields_args, $mod_name, $element_id );
[56] Fix | Delete
[57] Fix | Delete
if(Themify_Builder::$frontedit_active===false){
[58] Fix | Delete
$container_props['data-lazy']=1;
[59] Fix | Delete
}
[60] Fix | Delete
self::sticky_element_props($container_props, $fields_args);
[61] Fix | Delete
?>
[62] Fix | Delete
<!-- module login -->
[63] Fix | Delete
<div <?php echo themify_get_element_attributes($container_props); ?>>
[64] Fix | Delete
<div class="tb_login_wrap <?php echo $fields_args['alignment'];?>">
[65] Fix | Delete
<?php $container_props=$container_class=$args=null;
[66] Fix | Delete
echo Themify_Builder_Component_Module::get_module_title($fields_args);
[67] Fix | Delete
?>
[68] Fix | Delete
[69] Fix | Delete
<?php if ( is_user_logged_in() && ! Themify_Builder_Model::is_front_builder_activate() ) :
[70] Fix | Delete
global $current_user;
[71] Fix | Delete
$fields_args['content_text'] = str_replace(
[72] Fix | Delete
[ '%username%', '%display_name%', '%first_name%', '%last_name%', '%email%' ],
[73] Fix | Delete
[ $current_user->user_login, $current_user->display_name, $current_user->user_firstname, $current_user->user_lastname, $current_user->user_email ],
[74] Fix | Delete
$fields_args['content_text']
[75] Fix | Delete
);
[76] Fix | Delete
echo apply_filters( 'themify_builder_module_content', $fields_args['content_text'] );
[77] Fix | Delete
if ( $fields_args['logout_link'] === 'show' ) {
[78] Fix | Delete
echo ' <a href="' . wp_logout_url( $fields_args['logout_redirect'] ) . '">' . __( 'Logout', 'themify' ) . '</a>';
[79] Fix | Delete
}
[80] Fix | Delete
?>
[81] Fix | Delete
[82] Fix | Delete
<?php else : ?>
[83] Fix | Delete
<?php if ( $fields_args['fail_action'] === 'm' && isset( $_GET['login_error'] ) ) : ?>
[84] Fix | Delete
<div class="tb_login_error"><?php echo esc_html( $fields_args['msg_fail'] ) ?></div>
[85] Fix | Delete
<?php endif; ?>
[86] Fix | Delete
[87] Fix | Delete
<form class="tb_login_form tf_clearfix tf_box tf_clear" name="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ) ?>" method="post">
[88] Fix | Delete
<p class="tb_login_username">
[89] Fix | Delete
<label>
[90] Fix | Delete
<?php if ( $fields_args['icon_username'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['icon_username'] ); ?></em><?php endif; ?>
[91] Fix | Delete
<span class="tb_login_username_text"><?php echo esc_html( $fields_args['label_username'] ) ?></span>
[92] Fix | Delete
<input type="text" name="log" required="required">
[93] Fix | Delete
</label>
[94] Fix | Delete
</p>
[95] Fix | Delete
<p class="tb_login_password">
[96] Fix | Delete
<label>
[97] Fix | Delete
<?php if ( $fields_args['icon_password'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['icon_password'] ); ?></em><?php endif; ?>
[98] Fix | Delete
<span class="tb_login_password_text"><?php echo esc_html( $fields_args['label_password'] ) ?></span>
[99] Fix | Delete
<input type="password" name="pwd" required="required" autocomplete="current-password">
[100] Fix | Delete
</label>
[101] Fix | Delete
</p>
[102] Fix | Delete
<div class="tb_login_links tf_box tf_clear">
[103] Fix | Delete
<?php if ( $fields_args['icon_forgotten_password'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['icon_forgotten_password'] ); ?></em><?php endif; ?>
[104] Fix | Delete
<a href="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>"><?php echo esc_html( $fields_args['label_forgotten_password'] ); ?></a>
[105] Fix | Delete
</div>
[106] Fix | Delete
[107] Fix | Delete
<?php
[108] Fix | Delete
/** This action is documented in wp-login.php */
[109] Fix | Delete
do_action( 'login_form' );
[110] Fix | Delete
?>
[111] Fix | Delete
[112] Fix | Delete
<?php if ( $fields_args['remember_me_display'] === 'show' ) : ?>
[113] Fix | Delete
<p class="tb_login_remember tf_left tf_box">
[114] Fix | Delete
<label>
[115] Fix | Delete
<input name="rememberme" type="checkbox" value="forever">
[116] Fix | Delete
<?php if ( $fields_args['icon_remember'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['icon_remember'] ); ?></em><?php endif; ?>
[117] Fix | Delete
<span class="tb_login_remember_text"><?php echo esc_html( $fields_args['label_remember'] ); ?></span>
[118] Fix | Delete
</label>
[119] Fix | Delete
</p>
[120] Fix | Delete
<?php endif; ?>
[121] Fix | Delete
<p class="tb_login_submit tf_right">
[122] Fix | Delete
<button name="wp-submit">
[123] Fix | Delete
<?php if ( $fields_args['icon_log_in'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['icon_log_in'] ); ?></em><?php endif; ?>
[124] Fix | Delete
<?php echo esc_html( $fields_args['label_log_in'] ) ?>
[125] Fix | Delete
</button>
[126] Fix | Delete
<input type="hidden" name="redirect_to" value="<?php echo esc_url( $fields_args['redirect_to'] ) ?>">
[127] Fix | Delete
<input type="hidden" name="tb_login" value="1">
[128] Fix | Delete
[129] Fix | Delete
<?php if ( $fields_args['fail_action'] === 'c' && ! empty( $fields_args['redirect_fail'] ) ) : ?>
[130] Fix | Delete
<input type="hidden" name="tb_redirect_fail" value="<?php echo esc_url( $fields_args['redirect_fail'] ) ?>">
[131] Fix | Delete
<?php elseif ( $fields_args['fail_action'] === 'm' ) : ?>
[132] Fix | Delete
<input type="hidden" name="tb_redirect_fail" value="<?php echo esc_url( add_query_arg( 'login_error', 1 ) ) ?>">
[133] Fix | Delete
<?php endif; ?>
[134] Fix | Delete
</p>
[135] Fix | Delete
[136] Fix | Delete
</form>
[137] Fix | Delete
[138] Fix | Delete
<form class="tb_lostpassword_form tf_clearfix tf_box tf_clear" name="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post" style="display:none">
[139] Fix | Delete
<p class="tb_lostpassword_username">
[140] Fix | Delete
<label>
[141] Fix | Delete
<?php if ( $fields_args['lostpasswordform_icon_username'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['lostpasswordform_icon_username'] ); ?></em><?php endif; ?>
[142] Fix | Delete
<span class="tb_lostpassword_username_text"><?php echo esc_html( $fields_args['lostpasswordform_label_username'] ) ?></span>
[143] Fix | Delete
<input type="text" name="user_login" required="required">
[144] Fix | Delete
</label>
[145] Fix | Delete
</p>
[146] Fix | Delete
[147] Fix | Delete
<?php
[148] Fix | Delete
/** This action is documented in wp-login.php */
[149] Fix | Delete
do_action( 'lostpassword_form' );
[150] Fix | Delete
?>
[151] Fix | Delete
[152] Fix | Delete
<?php if ( ! empty( $fields_args['lostpasswordform_redirect_to'] ) ) : ?>
[153] Fix | Delete
<input type="hidden" name="redirect_to" value="<?php echo esc_attr( $fields_args['lostpasswordform_redirect_to'] ); ?>">
[154] Fix | Delete
<?php endif; ?>
[155] Fix | Delete
<p class="tb_lostpassword_submit tf_right">
[156] Fix | Delete
<button><?php if ( $fields_args['lostpasswordform_icon_reset'] !== '' ) : ?><em><?php echo themify_get_icon( $fields_args['lostpasswordform_icon_reset'] ); ?></em><?php endif; ?> <?php echo esc_html( $fields_args['lostpasswordform_label_reset'] ) ?></button>
[157] Fix | Delete
</p>
[158] Fix | Delete
[159] Fix | Delete
<div class="tb_login_links tf_left tf_box">
[160] Fix | Delete
<a href="<?php echo esc_url( site_url( 'wp-login.php' ) ); ?>"><?php echo esc_html( $fields_args['label_log_in'] ); ?></a>
[161] Fix | Delete
</div>
[162] Fix | Delete
</form>
[163] Fix | Delete
[164] Fix | Delete
<?php endif; ?>
[165] Fix | Delete
</div>
[166] Fix | Delete
</div><!-- /module login -->
[167] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function