Merge pull request #80 from jonfalcon/master

Fix telno input styles
This commit is contained in:
Ultimate Member
2016-01-30 12:46:05 +02:00
3 changed files with 38 additions and 28 deletions
+27 -26
View File
@@ -1,39 +1,39 @@
<?php
$metabox = new UM_Admin_Metabox();
do_action('um_admin_before_access_settings', $metabox);
?>
<h4><?php _e('Apply custom access settings?','ultimatemember'); ?> <?php $this->tooltip( __('Switch to yes to override global access settings','ultimatemember'), 'e'); ?></h4>
<p>
<span><?php $metabox->ui_on_off('_um_custom_access_settings', 0, true, 1, '_um_custom_access_settings', 'xxx'); ?> </span>
</p>
<div class="_um_custom_access_settings">
<h4><?php _e('Content Availability','ultimatemember'); ?> <?php $this->tooltip( __('Who can access this content?','ultimatemember'), 'e'); ?></h4>
<p class="um-conditional-radio-group description" data-cond1="2" data-cond1-show="um-admin-access-roles" data-cond2="1" data-cond2-show="um-admin-access-loggedout">
<?php $value = get_post_meta($post->ID, '_um_accessible', true); ?>
<label><input type="radio" name="_um_accessible" value="0" <?php if (!isset($value) || $value == 0 ) echo 'checked="checked"'; ?> /> <?php _e('Content accessible to Everyone','ultimatemember'); ?></label><br />
<label><input type="radio" name="_um_accessible" value="1" <?php if (isset($value)) checked(1, $value); ?> /> <?php _e('Content accessible to Logged Out Users','ultimatemember'); ?></label><br />
<label><input type="radio" name="_um_accessible" value="2" <?php if (isset($value)) checked(2, $value); ?> /> <?php _e('Content accessible to Logged In Users','ultimatemember'); ?></label>
<?php do_action( 'um_admin_extend_access_settings' ); ?>
</p>
<div class="um-admin-access-loggedout">
<h4><label for="_um_access_redirect2"><?php _e('Redirect URL','ultimatemember'); ?></label> <?php $this->tooltip( __('This is the URL that user is redirected to If he is not permitted to view this content','ultimatemember'), 'e'); ?></h4>
<p class="description">
<?php $value = get_post_meta($post->ID, '_um_access_redirect2', true); ?>
<input type="text" name="_um_access_redirect2" id="_um_access_redirect2" value="<?php if ( isset( $value ) ) echo $value; ?>" class="widefat" />
@@ -41,31 +41,32 @@
</p>
</div>
<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 will be able to view this content','ultimatemember'), 'e'); ?></h4>
<p class="description">
<?php $value = get_post_meta($post->ID, '_um_access_roles', true); ?>
<input type="hidden" name="_um_access_roles[]" value="0">
<?php foreach($ultimatemember->query->get_roles() as $role_id => $role) { ?>
<label><input type="checkbox" name="_um_access_roles[]" value="<?php echo $role_id; ?>" <?php if ( ( isset( $value ) && is_array( $value ) && in_array($role_id, $value ) ) || ( isset( $value ) && $role_id == $value ) ) echo 'checked="checked"'; ?> /> <?php echo $role; ?></label><br />
<?php } ?>
</p>
<h4><label for="_um_access_redirect"><?php _e('Redirect URL','ultimatemember'); ?></label> <?php $this->tooltip( __('This is the URL that user is redirected to If he is not permitted to view this content','ultimatemember'), 'e'); ?></h4>
<p class="description">
<?php $value = get_post_meta($post->ID, '_um_access_redirect', true); ?>
<input type="text" name="_um_access_redirect" id="_um_access_redirect" value="<?php if ( isset( $value ) ) echo $value; ?>" class="widefat" />
</p>
</div>
</div>
</div>
+5 -1
View File
@@ -381,6 +381,7 @@ p.um-notice.warning {
}
.um-form input[type=text],
.um-form input[type=tel],
.um-form input[type=number],
.um-form input[type=password] {
padding: 0 12px !important;
@@ -407,6 +408,7 @@ p.um-notice.warning {
}
.um-form input[type=text]:focus,
.um-form input[type=tel]:focus,
.um-form input[type=number]:focus,
.um-form input[type=password]:focus,
.um-form textarea:focus {
@@ -415,9 +417,11 @@ p.um-notice.warning {
}
.um-form input[type=text].um-iconed,
.um-form input[type=tel].um-iconed,
.um-form input[type=password].um-iconed { padding-left: 44px !important }
.um-form input[type=text].um-error,
.um-form input[type=tel].um-error,
.um-form input[type=password].um-error { border-color: #C74A4A !important }
.um-form textarea {
@@ -737,4 +741,4 @@ span.um-req {
margin: 0 0 0 8px;
font-size: 14px;
display: inline-block;
}
}
+6 -1
View File
@@ -146,6 +146,7 @@ print ".um-$form_id.um .um-button.um-alt,
if ( $form_border ) {
print "
.um-$form_id.um .um-form input[type=text],
.um-$form_id.um .um-form input[type=tel],
.um-$form_id.um .um-form input[type=number],
.um-$form_id.um .um-form input[type=password],
.um-$form_id.um .um-form textarea,
@@ -167,6 +168,7 @@ print "
if ( $form_border_hover ) {
print "
.um-$form_id.um .um-form input[type=text]:focus,
.um-$form_id.um .um-form input[type=tel]:focus,
.um-$form_id.um .um-form input[type=number]:focus,
.um-$form_id.um .um-form input[type=password]:focus,
.um-$form_id.um .um-form textarea:focus {
@@ -178,6 +180,7 @@ print "
if ( $form_bg_color ) {
print "
.um-$form_id.um .um-form input[type=text],
.um-$form_id.um .um-form input[type=tel],
.um-$form_id.um .um-form input[type=number],
.um-$form_id.um .um-form input[type=password],
.um-$form_id.um .um-form textarea,
@@ -192,6 +195,7 @@ print "
if ( $form_bg_color_focus ) {
print "
.um-$form_id.um .um-form input[type=text]:focus,
.um-$form_id.um .um-form input[type=tel]:focus,
.um-$form_id.um .um-form input[type=number]:focus,
.um-$form_id.um .um-form input[type=password]:focus,
.um-$form_id.um .um-form textarea:focus {
@@ -270,6 +274,7 @@ if ( $form_text_color ) {
print "
.um-$form_id.um .um-form input[type=text],
.um-$form_id.um .um-form input[type=tel],
.um-$form_id.um .um-form input[type=password],
.um-$form_id.um .um-form textarea
{
@@ -298,4 +303,4 @@ print "
}
?>
</style>
</style>