Changeset 7416
- Timestamp:
- 07/10/2018 11:40:09 PM (6 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/archive.php
r6456 r7416 2 2 get_header(); 3 3 4 // order the displayed posts by the ratings average5 global $query_string;6 query_posts( $query_string . '&meta_key=ratings_average&orderby=meta_value_num' );7 4 ?> 8 5 <div id="pagebody"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php
r7290 r7416 235 235 add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); 236 236 237 // Switch ratings image to stars_showcase238 function wpsc_postratings_image( $option ) { return 'stars_showcase'; }239 add_filter( 'pre_option_postratings_image', 'wpsc_postratings_image' );240 241 237 // Use ... in excerpts 242 238 add_filter( 'excerpt_more', create_function( '$more', 'return "...";' ) ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php
r7290 r7416 104 104 <?php 105 105 the_tags( '<ul class="wpsc-tags"><li>', '</li><li>', '</li></ul>' ); 106 if ( function_exists( 'the_ratings' ) ) the_ratings();107 106 ?> 108 107 </li> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-right.php
r7320 r7416 3 3 <div class="currentSiteRating"> 4 4 <p class="button"><a href="http://<?php get_site_domain( false ); ?>"><?php _e( 'Visit Site', 'wporg-showcase' ); ?></a></p> 5 6 <h4><?php _e( 'Rating', 'wporg-showcase' ); ?></h4>7 <?php the_ratings(); ?>8 <p class='rating-descrip'><?php _e( 'Rate this site based on their implementation and use of WordPress.', 'wporg-showcase' ); ?></p>9 5 10 6 <?php wp_flavors(); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/style.css
r6456 r7416 91 91 } 92 92 93 div.post-ratings {94 height: 50px;95 }96 97 93 h4 { 98 94 border-bottom:1px solid #DEDEDE; … … 181 177 } 182 178 183 table.most-votes, table.top-rated {184 padding: 0;185 margin-bottom: 22px;186 }187 188 table.most-votes, table.top-rated td {189 valign: top;190 line-height: 16px;191 }192 193 .most-rated {194 background: #F5F5F5;195 -moz-border-radius: 3px;196 -khtml-border-radius: 3px;197 -webkit-border-radius: 3px;198 border-radius: 3px;199 border: 1px solid #ccc;200 padding: 0;201 margin: 1px 2px 0 0;202 display: block;203 text-align: center;204 font-weight: bold;205 width: 50px;206 line-height: 14px;207 color: #797979;208 font-size: 11px;209 }210 211 .top-rated img.post-ratings-image {212 height: 10px;213 width: 10px;214 margin-top: 3px;215 }216 217 .top-rated-stars {218 width: 54px;219 }220 221 179 ul#flavors { 222 180 margin: 0; … … 324 282 .nextprev { 325 283 margin-bottom: 20px; 326 }327 328 .post-ratings-text {329 padding-left: 8px;330 284 } 331 285 … … 812 766 font-style: normal; 813 767 font-weight: bold; 814 }815 816 .wpsc-recent>li .post-ratings {817 position: absolute;818 bottom: 0;819 height:auto;820 border-top: 1px #EFEFEF solid;821 padding: 5px 0 0 0;822 text-align: right;823 width: 80%;824 margin-left: 5%;825 }826 827 /* Ratings */828 829 #pagebody .post-ratings img,830 #pagebody .post-ratings-loading img,831 #pagebody .post-ratings-image img {832 padding: 5px 2px 0 0; /* was margin */833 float: left;834 width:12px;835 height:12px;836 768 } 837 769
Note: See TracChangeset
for help on using the changeset viewer.