Changeset 3337
- Timestamp:
- 06/12/2016 07:58:50 AM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php
r3226 r3337 27 27 */ 28 28 public function widget( $args, $instance ) { 29 $post = get_post(); 30 29 31 echo $args['before_widget']; 30 32 ?> … … 42 44 <li><?php printf( __( 'Last updated: %s ago', 'wporg-plugins' ), '<span itemprop="dateModified" content="' . esc_attr( get_post_modified_time( 'c' ) ) . '">' . human_time_diff( get_post_modified_time() ) . '</span>' ); ?></li> 43 45 <li><?php printf( __( 'Active installs: %s', 'wporg-plugins' ), Template::active_installs( false ) ); ?></li> 44 <li><?php printf( __( 'Category: %s', 'wporg-plugins' ), get_the_term_list( get_post()->ID, 'plugin_category', '', ', ' ) ); ?></li> 45 <?php if ( $built_for = get_the_term_list( get_post()->ID, 'plugin_built_for', '', ', ' ) ) : ?> 46 <?php if ( $categories = get_the_term_list( $post, 'plugin_category', '<div class="tags">', '', '</div>' ) ) : ?> 47 <li><?php printf( __( 'Category: %s', 'wporg-plugins' ), $categories ); ?></li> 48 <?php endif; ?> 49 <?php if ( $built_for = get_the_term_list( $post, 'plugin_built_for', '', ', ' ) ) : ?> 46 50 <li><?php printf( __( 'Designed to work with: %s', 'wporg-plugins' ), $built_for ); ?></li> 47 51 <?php endif; ?> 48 <?php if ( $business_model = get_the_term_list( get_post()->ID, 'plugin_business_model', '', ', ' ) ) : ?>52 <?php if ( $business_model = get_the_term_list( $post, 'plugin_business_model', '', ', ' ) ) : ?> 49 53 <li><?php printf( __( 'Business Model: %s', 'wporg-plugins' ), $business_model ); ?></li> 50 54 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style.css
r3336 r3337 1277 1277 1278 1278 .plugin-meta ul li { 1279 border-top: 1px solid #eee; 1279 1280 padding: 0.5rem 0; 1280 border-top: 1px solid #eee; 1281 } 1282 1283 .plugin-meta ul .tags { 1284 float: right; 1285 text-align: right; 1286 width: 70%; 1287 } 1288 1289 .plugin-meta ul [rel="tag"] { 1290 background: #eee; 1291 border-radius: 2px; 1292 color: #000; 1293 display: inline-block; 1294 font-size: 10.24px; 1295 font-size: 0.64rem; 1296 margin: 2px; 1297 padding: 3px 6px; 1298 position: relative; 1299 white-space: nowrap; 1300 width: auto; 1301 } 1302 1303 .plugin-meta ul [rel="tag"]:hover { 1304 background: #f3f3f3; 1305 } 1306 1307 .plugin-meta ul [rel="tag"]:active { 1308 background: #dfdfdf; 1281 1309 } 1282 1310 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/site/secondary/_widgets.scss
r3261 r3337 99 99 100 100 li { 101 border-top: 1px solid #eee; 101 102 padding: 0.5rem 0; 102 border-top: 1px solid #eee; 103 } 104 105 .tags { 106 float: right; 107 text-align: right; 108 width: 70%; 109 } 110 111 [rel="tag"] { 112 background: #eee; 113 border-radius: 2px; 114 color: #000; 115 display: inline-block; 116 @include font-size( ms-unitless( ms(-4) ) ); 117 margin: 2px; 118 padding: 3px 6px; 119 position: relative; 120 white-space: nowrap; 121 width: auto; 122 123 &:hover { 124 background: #f3f3f3; 125 } 126 &:active { 127 background: #dfdfdf; 128 } 103 129 } 104 130 }
Note: See TracChangeset
for help on using the changeset viewer.