????
| Current Path : /home2/morganrand/www/wp-content/themes/wanderfuls/partials/ |
| Current File : /home2/morganrand/www/wp-content/themes/wanderfuls/partials/password-protection-form.php |
<?php
/**
* Custom WordPress password protection form output
*
* @package Wanderfuls WordPress theme
* @subpackage Partials
* @version 3.0.6
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Add label based on post ID
$post_id = tb_global_obj( 'post_id' );
$rand = $post_id ? $post_id : rand();
$label = 'pwbox-'. $rand;
// Main classes
$classes = 'password-protection-box clr';
// Add container for full-screen layout to center it
if ( 'full-screen' == tb_global_obj( 'post_layout' ) ) {
$classes .= ' container';
} ?>
<div class="<?php echo esc_attr( $classes ); ?>">
<form action="<?php echo esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ); ?>" method="post">
<h2><?php echo __( 'Password Protected', 'tb' ); ?></h2>
<p><?php echo __( 'This content is password protected. To view it please enter your password below:', 'tb' ); ?></p>
<input name="post_password" id="<?php echo $label; ?>" type="password" size="20" maxlength="20" placeholder="<?php echo __( 'Password', 'tb' ); ?>" /><input type="submit" name="Submit" value="<?php echo esc_attr__( 'Submit', 'tb' ); ?>" />
</form>
</div><!-- .<?php echo esc_attr( $classes ); ?> -->