| Server IP : 172.67.159.97 / Your IP : 216.73.217.154 Web Server : nginx/1.24.0 System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/rebeccaone.com/wp-content/plugins/cornerstone/includes/views/partials/ |
Upload File : |
<?php
// =============================================================================
// VIEWS/PARTIALS/LOGIN.PHP
// -----------------------------------------------------------------------------
// Login partial.
// =============================================================================
GLOBAL $user_login;
// Prepare Attr Values
// -------------------
$action = esc_url( site_url( 'wp-login.php' ) );
$value_user = esc_attr( $user_login );
$value_submit = esc_html__( 'Login', 'cornerstone' );
$value_hidden = esc_url( get_permalink() );
// Prepare Atts
// ------------
$atts_form = array(
'class' => 'x-login',
'action' => $action,
'method' => 'post'
);
$atts_input_user = array(
'type' => 'text',
'name' => 'log',
'id' => 'log',
'value' => $value_user
);
$atts_input_pass = array(
'type' => 'password',
'name' => 'pwd',
'id' => 'pwd'
);
$atts_input_submit = array(
'class' => 'x-login-submit',
'type' => 'submit',
'name' => 'submit',
'value' => $value_submit
);
$atts_input_hidden = array(
'type' => 'hidden',
'name' => 'redirect_to',
'value' => $value_hidden
);
// Output
// ------
?>
<form <?php echo cs_atts( $atts_form ); ?>>
<h4 class="x-login-title">Login</h4>
<div>
<label><?php esc_html__( 'Username', 'cornerstone' ); ?></label>
<input <?php echo cs_atts( $atts_input_user ); ?>>
</div>
<div>
<label><?php esc_html__( 'Password', 'cornerstone' ); ?></label>
<input <?php echo cs_atts( $atts_input_pass ); ?>>
</div>
<div>
<input <?php echo cs_atts( $atts_input_submit ); ?>>
</div>
<input <?php echo cs_atts( $atts_input_hidden ); ?>>
</form>