mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- unchecked remember me on login form;
This commit is contained in:
@@ -36,15 +36,16 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
*
|
||||
* @param integer $id
|
||||
* @param string $title
|
||||
* @param bool $checked
|
||||
*/
|
||||
function checkbox( $id, $title ) {
|
||||
?>
|
||||
function checkbox( $id, $title, $checked = true ) {
|
||||
$class = $checked ? 'um-icon-android-checkbox-outline' : 'um-icon-android-checkbox-outline-blank'; ?>
|
||||
|
||||
<div class="um-field um-field-c">
|
||||
<div class="um-field-area">
|
||||
<label class="um-field-checkbox active">
|
||||
<input type="checkbox" name="<?php echo $id; ?>" value="1" checked/>
|
||||
<span class="um-field-checkbox-state"><i class="um-icon-android-checkbox-outline"></i></span>
|
||||
<label class="um-field-checkbox <?php echo ( $checked ) ? 'active' : '' ?>">
|
||||
<input type="checkbox" name="<?php echo $id; ?>" value="1" <?php checked( $checked ) ?> />
|
||||
<span class="um-field-checkbox-state"><i class="<?php echo $class ?>"></i></span>
|
||||
<span class="um-field-checkbox-option"> <?php echo $title; ?></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@@ -420,7 +420,7 @@ function um_add_submit_button_to_login( $args ) {
|
||||
<div class="um-col-alt">
|
||||
|
||||
<?php if ( isset( $args['show_rememberme'] ) && $args['show_rememberme'] ) {
|
||||
echo UM()->fields()->checkbox('rememberme', __('Keep me signed in','ultimate-member') );
|
||||
UM()->fields()->checkbox( 'rememberme', __( 'Keep me signed in', 'ultimate-member' ), false );
|
||||
echo '<div class="um-clear"></div>';
|
||||
} ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user