Ticket #27055: 27055.20.diff
| File 27055.20.diff, 3.4 KB (added by , 12 years ago) |
|---|
-
wp-admin/js/theme.js
1143 1143 'click .theme-section': 'onSort', 1144 1144 'click .theme-filter': 'onFilter', 1145 1145 'click .more-filters': 'moreFilters', 1146 'click [type="checkbox"]': 'addFilter' 1146 'click .apply-filters': 'addFilter', 1147 'click [type="checkbox"]': 'filtersChecked' 1147 1148 }, 1148 1149 1149 1150 // Handles all the rendering of the public theme directory … … 1284 1285 tags.push( $( item ).prop( 'value' ) ); 1285 1286 }); 1286 1287 1288 $( '.apply-filters' ).find( 'span' ).text( tags.length ); 1289 1287 1290 return tags; 1288 1291 }, 1289 1292 … … 1306 1309 1307 1310 moreFilters: function() { 1308 1311 $( 'body' ).toggleClass( 'more-filters-opened' ); 1312 1313 $( '.feature-name' ).on( 'click', function() { 1314 $( this ).parent().toggleClass( 'open' ); 1315 }); 1309 1316 } 1310 1317 }); 1311 1318 -
wp-admin/css/themes.css
1235 1235 -moz-box-sizing: border-box; 1236 1236 box-sizing: border-box; 1237 1237 float: left; 1238 width: 20%; 1238 width: 19%; 1239 background: #fff; 1240 margin: 0 1% 20px 0; 1241 border: 1px solid #e5e5e5; 1242 -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04); 1243 box-shadow: 0 1px 1px rgba(0,0,0,0.04); 1244 padding: 10px; 1239 1245 } 1240 1246 .more-filters-container .feature-name { 1241 margin-top: 0; 1247 cursor: pointer; 1248 margin: 0; 1249 position: relative; 1242 1250 } 1251 .filters-group .feature-name:after { 1252 color: #aaa; 1253 content: '\f140'; 1254 font: normal 20px/1 'dashicons'; 1255 speak: none; 1256 display: inline-block; 1257 position: absolute; 1258 right: 0; 1259 top: -2px; 1260 -webkit-font-smoothing: antialiased; 1261 -moz-osx-font-smoothing: grayscale; 1262 text-decoration: none !important; 1263 } 1264 .filters-group:hover .feature-name:after { 1265 color: #666; 1266 } 1267 .filters-group.open .feature-name:after { 1268 content: '\f142'; 1269 } 1243 1270 .more-filters-container ol { 1244 1271 list-style-type: none; 1245 margin: 0; 1272 margin: 20px 0 0; 1273 display: none; 1274 font-size: 12px; 1246 1275 } 1276 .filters-group.open ol { 1277 display: block; 1278 } 1279 .apply-filters span { 1280 font-size: 12px; 1281 margin-left: 10px; 1282 opacity: 0.8; 1283 } 1247 1284 1248 1285 .theme-install-php .add-new-theme { 1249 1286 display: none !important; -
wp-admin/theme-install.php
118 118 <a class="theme-section" href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a> 119 119 <a class="theme-section" href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a> 120 120 <div class="theme-top-filters"> 121 < !--<span class="theme-filter" data-filter="photoblogging">Photography</span>122 <span class="theme-filter" data-filter="responsive-layout">Responsive</span> -->123 <a class="more-filters" href="#"><?php _e( ' Feature Filter' ); ?></a>121 <span class="theme-filter" data-filter="photoblogging">Photography</span> 122 <span class="theme-filter" data-filter="responsive-layout">Responsive</span> 123 <a class="more-filters" href="#"><?php _e( 'All' ); ?></a> 124 124 </div> 125 125 <div class="more-filters-container"> 126 126 <?php … … 140 140 } 141 141 ?> 142 142 <br class="clear" /> 143 <a class="apply-filters button button-secondary"><?php _e( 'Apply Filters' ); ?><span>0</span></a> 143 144 </div> 144 145 </div> 145 146 <div class="theme-browser"></div>