Changeset 9639
- Timestamp:
- 03/24/2015 03:02:10 AM (10 years ago)
- Location:
- trunk/src/bp-xprofile
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/admin/css/admin.css
r9084 r9639 1 1 /* Profile field group main admin page */ 2 #tabs-bottom { 3 background: #f5f5f5; 4 height: 32px; 5 border: 1px solid #dedede; 2 @-webkit-keyframes tab-throb { 3 from { box-shadow: 0 0 10px #1e8cbe; } 4 50% { box-shadow: 0 0 00px #1e8cbe; } 5 to { box-shadow: 0 0 10px #1e8cbe; } 6 } 7 @-moz-keyframes tab-throb { 8 from { box-shadow: 0 0 10px #1e8cbe; } 9 50% { box-shadow: 0 0 00px #1e8cbe; } 10 to { box-shadow: 0 0 10px #1e8cbe; } 11 } 12 13 #profile-field-form { 14 margin-top: 12px; 6 15 } 7 16 … … 10 19 } 11 20 p.nofields { 12 margin: 20px 20px0;21 margin: 20px 0 0; 13 22 } 14 23 … … 25 34 margin-bottom: -1px; 26 35 } 27 ul#field-group-tabs li.ui-state-hover a {28 background-color: #fafafa;29 }30 36 ul#field-group-tabs li.ui-state-hover a.ui-tab { 31 border-color: #dedede #dedede #f5f5f5 #dedede;32 37 color: #d54e21; 33 38 } 34 ul#field-group-tabs li.ui-state-acceptable a.ui-tab { 35 border-color: #5a5 #5a5 #ccc #5a5; 36 color: #8a8; 37 background-color: #efe; 39 ul#field-group-tabs li.ui-state-acceptable:not(.ui-state-active) a.ui-tab { 40 -webkit-animation: tab-throb 2s infinite; 41 animation: tab-throb 2s infinite; 38 42 } 39 43 ul#field-group-tabs li.drop-candidate a.ui-tab { 40 background-color: #ffc;41 border-color: # aa5 #aa5 #ccc #aa5;42 color: # aa8;44 background-color: transparent; 45 border-color: #000 #000 #ccc #000; 46 color: #000; 43 47 } 44 48 ul#field-group-tabs li a.ui-tab { … … 46 50 display: block; 47 51 margin-top: 3px; 48 padding: 5px 10px 5px; 49 border: 1px solid #dedede; 50 border-bottom: none; 52 padding: 5px 10px 6px; 53 border: 1px solid #e5e5e5; 51 54 background-color: #f5f5f5; 52 55 text-decoration: none; … … 57 60 /* Selected tab */ 58 61 ul#field-group-tabs li.ui-state-active a.ui-tab { 59 background-color: #f 5f5f5;60 margin-top: -1px;62 background-color: #fff; 63 margin-top: 0px; 61 64 padding: 7px 10px 7px; 62 border: 1px solid #dedede;63 65 border-bottom: 1px solid transparent; 64 66 color: #000; … … 67 69 /* Toolbar */ 68 70 .tab-toolbar { 69 background: #f5f5f5; 70 border-width: 0 0 1px; 71 border-color: #dedede; 71 clear: left; 72 background: #fff; 73 border-width: 1px; 74 border-color: #e5e5e5; 72 75 border-style: solid; 76 -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); 77 box-shadow: 0 1px 1px rgba(0,0,0,0.04); 73 78 padding: 10px; 79 margin-bottom: 10px; 74 80 } 75 81 … … 86 92 float: right; 87 93 line-height: 28px; 88 margin: 0 10px 0 0; 89 } 90 91 div.tab-wrapper { 92 background-color: #fff; 93 border: 1px solid #dedede; 94 border-bottom: none; 94 } 95 96 div.field-group { 95 97 clear: left; 96 padding-bottom: 20px; 97 } 98 99 .tab-wrapper fieldset { 98 } 99 100 .field-group { 101 cursor: default; 102 border: 1px solid #e5e5e5; 103 background: #fff; 104 -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); 105 box-shadow: 0 1px 1px rgba(0,0,0,0.04); 106 margin-top: 10px; 107 padding: 0 20px 20px; 108 } 109 .field-group .xprofile-field { 100 110 position: relative; 101 cursor: default; 102 } 103 .tab-wrapper fieldset legend { 104 font-weight: bold; 105 } 106 .tab-wrapper .xprofile-field { 107 position: relative; 108 } 109 .tab-wrapper fieldset fieldset { 111 } 112 .field-group fieldset { 110 113 position: relative; 111 114 border: 1px solid #ddd; 112 margin: 20px 20px0;115 margin: 20px 0 0; 113 116 cursor: move; 114 117 background: #fafafa; 115 118 padding: 10px 0 0 ; 116 119 } 117 .tab-wrapper fieldset fieldset legend { 118 position: absolute; 119 top: 10px; 120 left: 10px; 121 padding: 0; 122 } 123 .field-group fieldset:hover { 124 border-color: #999; 125 } 126 fieldset div.field-wrapper { 127 padding: 25px 10px 10px; 120 .field-group fieldset legend { 121 position: absolute; 122 top: 10px; 123 left: 10px; 124 padding: 0; 128 125 } 129 126 fieldset.radio div div label, … … 134 131 fieldset.clear-value { 135 132 margin-left: 10px; 133 } 134 fieldset div.field-wrapper { 135 padding: 25px 10px 10px; 136 136 } 137 137 .field-group div.actions { … … 145 145 .field-group div.actions input { 146 146 float: none; 147 } 148 .field-group fieldset:hover { 149 border-color: #999; 147 150 } 148 151 .field-group fieldset:hover div.actions { -
trunk/src/bp-xprofile/bp-xprofile-admin.php
r9471 r9639 73 73 </h2> 74 74 75 <p><?php echo sprintf( __( 'Fields in the "%s" group will appear on the signup page.', 'buddypress' ), esc_html( stripslashes( bp_get_option( 'bp-xprofile-base-group-name' ) ) ) ) ?></p>76 77 75 <form action="" id="profile-field-form" method="post"> 78 76 … … 86 84 87 85 <div id="message" class="<?php echo $type; ?> fade"> 88 <p><?php echo esc_html( esc_attr( $message )); ?></p>86 <p><?php echo esc_html( $message ); ?></p> 89 87 </div> 90 88 … … 96 94 <?php if ( !empty( $groups ) ) : foreach ( $groups as $group ) : ?> 97 95 98 <li id="group_<?php echo $group->id; ?>"><a href="#tabs-<?php echo $group->id; ?>" class="ui-tab"><?php echo esc_attr( $group->name ); ?><?php if ( !$group->can_delete ) : ?> <?php _e( '(Primary)', 'buddypress'); endif; ?></a></li> 96 <li id="group_<?php echo esc_attr( $group->id ); ?>"> 97 <a href="#tabs-<?php echo esc_attr( $group->id ); ?>" class="ui-tab"> 98 <?php echo esc_attr( $group->name ); ?> 99 100 <?php if ( !$group->can_delete ) : ?> 101 <?php _e( '(Primary)', 'buddypress'); ?> 102 <?php endif; ?> 103 104 <span class="spinner"></span> 105 </a> 106 </li> 99 107 100 108 <?php endforeach; endif; ?> … … 108 116 </noscript> 109 117 110 <div id="tabs-<?php echo $group->id; ?>" class="tab-wrapper">118 <div id="tabs-<?php echo esc_attr( $group->id ); ?>" class="tab-wrapper"> 111 119 <div class="tab-toolbar"> 112 120 <div class="tab-toolbar-left"> … … 116 124 <?php if ( $group->can_delete ) : ?> 117 125 118 <a class="confirm submitdelete deletion ajax-option-delete" href="users.php?page=bp-profile-setup&mode=delete_group&group_id=<?php echo esc_attr( $group->id ); ?>"><?php _e( 'Delete Group', 'buddypress' ); ?></a> 126 <div class="delete-button"> 127 <a class="confirm submitdelete deletion ajax-option-delete" href="users.php?page=bp-profile-setup&mode=delete_group&group_id=<?php echo esc_attr( $group->id ); ?>"><?php _e( 'Delete Group', 'buddypress' ); ?></a> 128 </div> 119 129 120 130 <?php endif; ?> … … 135 145 </div> 136 146 137 <fieldset id="<?php echo $group->id; ?>" class="connectedSortable field-group"> 138 139 <?php if ( $group->description ) : ?> 140 141 <legend><?php echo esc_attr( $group->description ) ?></legend> 142 143 <?php endif; 147 <?php if ( ! empty( $group->description ) ) : ?> 148 149 <p><?php echo esc_html( $group->description ); ?></p> 150 151 <?php endif; ?> 152 153 <fieldset id="<?php echo esc_attr( $group->id ); ?>" class="connectedSortable field-group"> 154 <legend class="screen-reader-text"><?php printf( esc_html__( 'Fields for "%s" Group', 'buddypress' ), $group->name ); ?></legend> 155 156 <?php 144 157 145 158 if ( !empty( $group->fields ) ) : … … 150 163 151 164 $class = ''; 152 if ( !$field->can_delete )165 if ( empty( $field->can_delete ) ) { 153 166 $class = ' core nodrag'; 154 155 /* This function handles the WYSIWYG profile field 156 * display for the xprofile admin setup screen 157 */ 167 } 168 169 /** 170 * This function handles the WYSIWYG profile field 171 * display for the xprofile admin setup screen 172 */ 158 173 xprofile_admin_field( $field, $group, $class ); 159 174 … … 167 182 168 183 </fieldset> 184 185 <?php if ( empty( $group->can_delete ) ) : ?> 186 187 <p><?php esc_html_e( '* Fields in this group appear on the signup page.', 'buddypress' ); ?></p> 188 189 <?php endif; ?> 190 169 191 </div> 170 192 … … 176 198 <?php endif; ?> 177 199 178 <div id="tabs-bottom"> </div>179 200 </div> 180 201 </form>
Note: See TracChangeset
for help on using the changeset viewer.