mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 22:23:37 +09:00
Version 1.0.23
This commit is contained in:
@@ -129,6 +129,10 @@
|
||||
margin: 0 5px 0 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-btn-toggle p.um-admin-reset-conditions {
|
||||
margin: 0 0 5px 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-btn-toggle a {
|
||||
text-decoration: none;
|
||||
color: #999;
|
||||
|
||||
@@ -199,6 +199,18 @@ jQuery(document).ready(function() {
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
reset conditions
|
||||
**/
|
||||
jQuery(document).on('click', '.um-admin-reset-conditions a', function(){
|
||||
var content = jQuery(this).parents('.um-admin-btn-content');
|
||||
content.find('.um-admin-cur-condition').slice(1).remove();
|
||||
content.find('input[type=text]').val('');
|
||||
content.find('select').val('');
|
||||
um_admin_live_update_scripts();
|
||||
um_admin_modal_responsive();
|
||||
});
|
||||
|
||||
/**
|
||||
remove a condition
|
||||
**/
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
|
||||
<div class="um-admin-btn-content">
|
||||
|
||||
<p class="um-admin-reset-conditions"><a href="#" class="button button-primary"><?php _e('Reset all rules','ultimatemember'); ?></a></p>
|
||||
<div class="um-admin-clear"></div>
|
||||
|
||||
<?php
|
||||
|
||||
if ( isset( $edit_array['conditions'] ) ){
|
||||
@@ -73,7 +76,7 @@
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
<div class="um-admin-access-roles">
|
||||
|
||||
<h4><?php _e('Select the member roles that can see this content?','ultimatemember'); ?> <?php $this->tooltip( __('If you do not select any role, all members wil be able to view this content','ultimatemember'), 'e'); ?></h4>
|
||||
<h4><?php _e('Select the member roles that can see this content?','ultimatemember'); ?> <?php $this->tooltip( __('If you do not select any role, all members will be able to view this content','ultimatemember'), 'e'); ?></h4>
|
||||
|
||||
<p class="description">
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_login_max_width"><?php _e('Max. Width (px or %)','ultimatemember'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels or percentage relative to its parent, e.g. 600px or 70%', 'e'); ?></label>
|
||||
<p><label for="_um_login_max_width"><?php _e('Max. Width (px)','ultimatemember'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels e.g. 600px', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_login_max_width', null, um_get_option('login_max_width') ); ?>" name="_um_login_max_width" id="_um_login_max_width" />
|
||||
</p>
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_max_width"><?php _e('Max. Width (px or %)','ultimatemember'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels or percentage relative to its parent, e.g. 600px or 70%', 'e'); ?></label>
|
||||
<p><label for="_um_profile_max_width"><?php _e('Max. Width (px)','ultimatemember'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels e.g. 600px', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_max_width', null, um_get_option('profile_max_width') ); ?>" name="_um_profile_max_width" id="_um_profile_max_width" />
|
||||
</p>
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_register_max_width"><?php _e('Max. Width (px or %)','ultimatemember'); ?> <?php $this->tooltip( __('The maximum width of shortcode in pixels or percentage relative to its parent, e.g. 600px or 70%','ultimatemember'), 'e'); ?></label>
|
||||
<p><label for="_um_register_max_width"><?php _e('Max. Width (px)','ultimatemember'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels e.g. 600px', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_max_width', null, um_get_option('register_max_width') ); ?>" name="_um_register_max_width" id="_um_register_max_width" />
|
||||
</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user