- unchecked remember me on login form;

This commit is contained in:
nikitasinelnikov
2018-12-05 11:25:43 +02:00
parent 61be7257c1
commit 4d95fd7541
3 changed files with 15 additions and 6 deletions
+6 -5
View File
@@ -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>
+1 -1
View File
@@ -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>';
} ?>