Version 1.0.23

This commit is contained in:
ultimatemember
2015-01-25 19:59:18 +02:00
parent 2c3cf6ea8c
commit 33617b72c5
24 changed files with 227 additions and 44 deletions
+4
View File
@@ -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;
+12
View File
@@ -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
**/
+4 -1
View File
@@ -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>
+1 -1
View File
@@ -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">
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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>