Making WordPress.org

Changeset 7416


Ignore:
Timestamp:
07/10/2018 11:40:09 PM (6 years ago)
Author:
obenland
Message:

Showcase: Remove star ratings from site

Fixes #3706.

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  
    22get_header();
    33
    4 // order the displayed posts by the ratings average
    5 global $query_string;
    6 query_posts( $query_string . '&meta_key=ratings_average&orderby=meta_value_num' );
    74?>
    85<div id="pagebody">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php

    r7290 r7416  
    235235add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
    236236
    237 // Switch ratings image to stars_showcase
    238 function wpsc_postratings_image( $option ) { return 'stars_showcase'; }
    239     add_filter( 'pre_option_postratings_image', 'wpsc_postratings_image' );
    240 
    241237// Use ... in excerpts
    242238add_filter( 'excerpt_more', create_function( '$more', 'return "...";' ) );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php

    r7290 r7416  
    104104                    <?php
    105105                        the_tags( '<ul class="wpsc-tags"><li>', '</li><li>', '</li></ul>' );
    106                         if ( function_exists( 'the_ratings' ) ) the_ratings();
    107106                    ?>
    108107                </li>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-right.php

    r7320 r7416  
    33            <div class="currentSiteRating">
    44                <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>
    95
    106                <?php wp_flavors(); ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/style.css

    r6456 r7416  
    9191}
    9292
    93 div.post-ratings {
    94     height: 50px;
    95 }
    96 
    9793h4 {
    9894    border-bottom:1px solid #DEDEDE;
     
    181177}
    182178
    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 
    221179ul#flavors {
    222180    margin: 0;
     
    324282.nextprev {
    325283    margin-bottom: 20px;
    326 }
    327 
    328 .post-ratings-text {
    329     padding-left: 8px;
    330284}
    331285
     
    812766    font-style: normal;
    813767    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;
    836768}
    837769
Note: See TracChangeset for help on using the changeset viewer.