Changeset 3423
- Timestamp:
- 06/18/2016 04:35:50 AM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php
r3351 r3423 42 42 43 43 <ul> 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>45 <li><?php printf( __( 'Active installs: %s', 'wporg-plugins' ), Template::active_installs( false ) ); ?></li>46 <?php if ( $categories = get_the_term_list( $post->ID, 'plugin_category', '<div class="tags">', '', '</div>' ) ) : ?>47 <li><?php printf( _n( 'Category: %s', 'Categories: %s', count( get_the_terms( $post, 'plugin_category' ) ), 'wporg-plugins' ), $categories ); ?></li>48 <?php endif; ?>49 44 <?php if ( $built_for = get_the_term_list( $post->ID, 'plugin_built_for', '', ', ' ) ) : ?> 50 45 <li><?php printf( __( 'Designed to work with: %s', 'wporg-plugins' ), $built_for ); ?></li> 51 46 <?php endif; ?> 52 <?php if ( $business_model = get_the_term_list( $post->ID, 'plugin_business_model', '', ', ' ) ) : ?> 53 <li><?php printf( __( 'Business Model: %s', 'wporg-plugins' ), $business_model ); ?></li> 47 <li><?php printf( __( 'Version: %s', 'wporg-plugins' ), '<strong>' . get_post_meta( $post->ID, 'version', true ) . '</strong>' ); ?></li> 48 <li> 49 <?php 50 printf( __( 'Last updated: %s', 'wporg-plugins' ), 51 /* Translators: Plugin modified time. */ 52 '<strong>' . sprintf( __( '%s ago', 'wporg-plugins' ), '<span itemprop="dateModified" content="' . esc_attr( get_post_modified_time( 'c' ) ) . '">' . human_time_diff( get_post_modified_time() ) . '</span>' ) . '</strong>' 53 ); 54 ?> 55 </li> 56 <li><?php printf( __( 'Active installs: %s', 'wporg-plugins' ), '<strong>' . Template::active_installs( false ) . '</strong>' ); ?></li> 57 <?php if ( $categories = get_the_term_list( $post->ID, 'plugin_category', '<div class="tags">', '', '</div>' ) ) : ?> 58 <li><?php printf( _n( 'Category: %s', 'Categories: %s', count( get_the_terms( $post, 'plugin_category' ) ), 'wporg-plugins' ), $categories ); ?></li> 54 59 <?php endif; ?> 55 60 </ul> -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-support.php
r3344 r3423 9 9 class Support extends \WP_Widget { 10 10 11 /** 12 * Support constructor. 13 */ 11 14 public function __construct() { 12 15 parent::__construct( 'plugin_support', __( 'Plugin Support', 'wporg-plugins' ), array( … … 46 49 echo $args['before_title'] . $title . $args['after_title']; 47 50 48 if ( $resolutions ) : ?> 49 <p> 50 <?php 51 /* translators: 1: Number of resolved threads; 2: Number of all threads; */ 52 printf( _n( 53 '%1$s support thread (of %2$s) in the last two months has been marked resolved.', 54 '%1$s support threads (of %2$s) in the last two months have been marked resolved.', 55 $resolved, 56 'wporg-plugins' 57 ), $resolved, $threads ); 51 if ( $resolutions ) : 58 52 ?> 59 </p> 53 <p class="aside"><?php _e( 'Issues resolved in last two months:', 'wporg-plugins' ); ?></p> 54 <p class="counter-container"> 55 <span class="counter-back"> 56 <span class="counter-bar" style="width: <?php echo esc_attr( 100 * $resolved / $threads ); ?>%;"></span> 57 </span> 58 <span class="counter-count"> 59 <?php 60 /* Translators: 1: AMount of resolved threads; 2: Amount of total threads; */ 61 printf( __( '%1$s out of %2$s'), $resolved, $threads ); 62 ?> 63 </span> 64 </p> 65 66 <?php else: ?> 67 <p><?php _e( 'Got something to say? Need help?', 'wporg-plugins' ); ?></p> 60 68 <?php endif; ?> 61 69 62 <p><?php _e( 'Got something to say? Need help?', 'wporg-plugins' ); ?></p> 63 <p><a class="button" href="<?php echo esc_url( $support_url ); ?>"><?php _e( 'View support forum', 'wporg-plugins' ); ?></a></p> 70 <p> 71 <a class="button" href="<?php echo esc_url( $support_url ); ?>"><?php _e( 'View support forum', 'wporg-plugins' ); ?></a> 72 </p> 64 73 65 74 <?php -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style-rtl.css
r3419 r3423 1529 1529 .plugin-ratings .ratings-list .counter-bar { 1530 1530 display: inline-block; 1531 height: 16px; 1531 1532 height: 1rem; 1532 1533 vertical-align: middle; … … 1551 1552 font-size: 12.8px; 1552 1553 font-size: 0.8rem; 1554 } 1555 1556 .plugin-support .counter-container { 1557 position: relative; 1558 margin-bottom: 16px; 1559 margin-bottom: 1rem; 1560 } 1561 1562 .plugin-support .counter-back, 1563 .plugin-support .counter-bar { 1564 display: inline-block; 1565 height: 30px; 1566 vertical-align: middle; 1567 } 1568 1569 .plugin-support .counter-back { 1570 background-color: #ececec; 1571 width: 100%; 1572 } 1573 1574 .plugin-support .counter-bar { 1575 background-color: #c7e8ca; 1576 display: block; 1577 } 1578 1579 .plugin-support .counter-count { 1580 font-size: 10.24px; 1581 font-size: 0.64rem; 1582 position: absolute; 1583 right: 8px; 1584 top: 8px; 1585 width: 100%; 1586 width: calc(100% - 8px); 1587 } 1588 1589 @media screen and (min-width: 48em) { 1590 .plugin-support .counter-count { 1591 top: 5px; 1592 } 1593 } 1594 1595 .plugin-meta { 1596 margin-top: 32px; 1597 margin-top: 2rem; 1553 1598 } 1554 1599 … … 1564 1609 border-top: 1px solid #eee; 1565 1610 padding: 0.5rem 0; 1611 } 1612 1613 .plugin-meta li strong { 1614 float: left; 1566 1615 } 1567 1616 … … 2160 2209 2161 2210 .single .type-plugin .entry-content .plugin-developers .avatar { 2211 border-radius: 50%; 2162 2212 margin-left: 10px; 2163 2213 vertical-align: middle; 2164 }2165 2166 .single .type-plugin .entry-meta {2167 padding: 0 1.5625rem;2168 2214 } 2169 2215 … … 2171 2217 .single .type-plugin .entry-meta { 2172 2218 float: left; 2173 padding: 0;2174 2219 width: 30%; 2175 2220 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style.css
r3419 r3423 1529 1529 .plugin-ratings .ratings-list .counter-bar { 1530 1530 display: inline-block; 1531 height: 16px; 1531 1532 height: 1rem; 1532 1533 vertical-align: middle; … … 1551 1552 font-size: 12.8px; 1552 1553 font-size: 0.8rem; 1554 } 1555 1556 .plugin-support .counter-container { 1557 position: relative; 1558 margin-bottom: 16px; 1559 margin-bottom: 1rem; 1560 } 1561 1562 .plugin-support .counter-back, 1563 .plugin-support .counter-bar { 1564 display: inline-block; 1565 height: 30px; 1566 vertical-align: middle; 1567 } 1568 1569 .plugin-support .counter-back { 1570 background-color: #ececec; 1571 width: 100%; 1572 } 1573 1574 .plugin-support .counter-bar { 1575 background-color: #c7e8ca; 1576 display: block; 1577 } 1578 1579 .plugin-support .counter-count { 1580 font-size: 10.24px; 1581 font-size: 0.64rem; 1582 position: absolute; 1583 left: 8px; 1584 top: 8px; 1585 width: 100%; 1586 width: calc(100% - 8px); 1587 } 1588 1589 @media screen and (min-width: 48em) { 1590 .plugin-support .counter-count { 1591 top: 5px; 1592 } 1593 } 1594 1595 .plugin-meta { 1596 margin-top: 32px; 1597 margin-top: 2rem; 1553 1598 } 1554 1599 … … 1564 1609 border-top: 1px solid #eee; 1565 1610 padding: 0.5rem 0; 1611 } 1612 1613 .plugin-meta li strong { 1614 float: right; 1566 1615 } 1567 1616 … … 2160 2209 2161 2210 .single .type-plugin .entry-content .plugin-developers .avatar { 2211 border-radius: 50%; 2162 2212 margin-right: 10px; 2163 2213 vertical-align: middle; 2164 }2165 2166 .single .type-plugin .entry-meta {2167 padding: 0 1.5625rem;2168 2214 } 2169 2215 … … 2171 2217 .single .type-plugin .entry-meta { 2172 2218 float: right; 2173 padding: 0;2174 2219 width: 30%; 2175 2220 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/site/primary/_plugin-single.scss
r3405 r3423 164 164 165 165 .avatar { 166 border-radius: 50%; 166 167 margin-right: 10px; 167 168 vertical-align: middle; … … 169 170 } 170 171 } 171 172 .entry-meta { 173 padding: 0 ms(4); 174 175 @media screen and ( min-width: $ms-breakpoint ) { 172 @media screen and ( min-width: $ms-breakpoint ) { 173 .entry-meta { 176 174 float: right; 177 padding: 0;178 175 width: 30%; 179 176 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/site/secondary/_widgets.scss
r3397 r3423 67 67 .counter-bar { 68 68 display: inline-block; 69 height: 16px; 69 70 height: 1rem; 70 71 vertical-align: middle; … … 90 91 .plugin-support { 91 92 @include font-size( ms-unitless( ms(-2) ) ); 93 94 .counter-container { 95 position: relative; 96 margin-bottom: 16px; 97 margin-bottom: 1rem; 98 } 99 100 .counter-back, 101 .counter-bar { 102 display: inline-block; 103 height: 30px; 104 vertical-align: middle; 105 } 106 107 .counter-back { 108 background-color: #ececec; 109 width: 100%; 110 } 111 112 .counter-bar { 113 background-color: #c7e8ca; 114 display: block; 115 } 116 117 .counter-count { 118 @include font-size( ms-unitless( ms(-4) ) ); 119 position: absolute; 120 left: 8px; 121 top: 8px; 122 width: 100%; 123 width: calc(100% - 8px); 124 125 @media screen and ( min-width: $ms-breakpoint ) { 126 top: 5px; 127 } 128 } 92 129 } 93 130 94 131 .plugin-meta { 95 132 @extend .clear; 133 margin-top: 32px; 134 margin-top: 2rem; 96 135 97 136 ul { … … 105 144 border-top: 1px solid #eee; 106 145 padding: 0.5rem 0; 146 147 strong { 148 float: right; 149 } 107 150 } 108 151
Note: See TracChangeset
for help on using the changeset viewer.