Ticket #38561: 38561.diff
File 38561.diff, 3.0 KB (added by , 8 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
885 885 margin-bottom: 8px; 886 886 } 887 887 888 .customize-control-header .uploaded {889 margin-bottom: 18px;890 }891 892 888 .customize-control-header .uploaded button:not(.random), 893 889 .customize-control-header .default button:not(.random) { 894 890 width: 100%; … … 1053 1049 100% { color: #d4b146; } 1054 1050 } 1055 1051 1052 .customize-control-header .choices-group { 1053 margin-top: 18px; 1054 } 1055 1056 1056 .customize-control-header .choice { 1057 1057 position: relative; 1058 1058 display: block; -
src/wp-includes/customize/class-wp-customize-header-image-control.php
208 208 <?php endif; ?> 209 209 </div> 210 210 <div class="choices"> 211 <span class="customize-control-title header-previously-uploaded"> 212 <?php _ex( 'Previously uploaded', 'custom headers' ); ?> 213 </span> 214 <div class="uploaded"> 215 <div class="list"> 211 <div class="choices-group"> 212 <span class="customize-control-title header-previously-uploaded"> 213 <?php _ex( 'Previously uploaded', 'custom headers' ); ?> 214 </span> 215 <div class="uploaded"> 216 <div class="list"> 217 </div> 216 218 </div> 217 219 </div> 218 <span class="customize-control-title header-default"> 219 <?php _ex( 'Suggested', 'custom headers' ); ?> 220 </span> 221 <div class="default"> 222 <div class="list"> 220 <div class="choices-group"> 221 <span class="customize-control-title header-default"> 222 <?php _ex( 'Suggested', 'custom headers' ); ?> 223 </span> 224 <div class="default"> 225 <div class="list"> 226 </div> 223 227 </div> 224 228 </div> 225 229 </div> -
src/wp-includes/js/customize-views.js
173 173 api.HeaderTool.ChoiceListView = wp.Backbone.View.extend({ 174 174 initialize: function() { 175 175 this.listenTo(this.collection, 'add', this.addOne); 176 this.listenTo(this.collection, 'remove', this.render); 177 this.listenTo(this.collection, 'sort', this.render); 176 this.listenTo(this.collection, 'remove sort', this.render); 178 177 this.listenTo(this.collection, 'change', this.toggleList); 179 178 this.render(); 180 179 }, … … 193 192 }, 194 193 195 194 toggleList: function() { 196 var title = this.$el.parents().prev('.customize-control-title'),197 randomButton = this.$el.find('.random').parent();198 195 if (this.collection.shouldHideTitle()) { 199 t itle.add(randomButton).hide();196 this.$el.closest('.choices-group').hide(); 200 197 } else { 201 t itle.add(randomButton).show();198 this.$el.closest('.choices-group').show(); 202 199 } 203 200 } 204 201 });