Plugin Directory

Changeset 1243575


Ignore:
Timestamp:
09/11/2015 06:14:53 PM (11 years ago)
Author:
dyerware
Message:

v0.9

Location:
easy-review-builder-for-wordpress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • easy-review-builder-for-wordpress/trunk/easy-review-builder.php

    r788429 r1243575  
    22/*
    33Plugin Name: Easy Review Builder
    4 Version: 0.8
     4Version: 0.9
    55Plugin URI: http://www.dyerware.com/main/products/easy-review-builder
    66Description: Creates a customizable star-based review summary table from a shortcode
     
    88Author URI: http://www.dyerware.com
    99*/
    10 /*  Copyright © 2009, 2010, 2011, 2012, 2013  dyerware
     10/*  Copyright © 2009, 2010, 2011, 2012, 2013, 2014, 2015 dyerware
    1111    Support: support@dyerware.com
    1212
     
    232232                'icon' => $this->DEF_ICON,
    233233                'summary' => $this->DEF_SUMMARY,
     234                'score' => -1,
    234235                'cat1title' => NULL,
    235236                'cat2title' => NULL,
     
    261262        // Translate strings to numerics
    262263        array_walk($chartConfig, array($this, 'translate_numerics'));
    263               
     264             
    264265        $this->reviewNum++;
    265         $reviewDiv = 'easyReviewDiv' . $this->reviewNum;
     266          $reviewDiv = 'easyReviewDiv' . $this->reviewNum;
    266267   
    267268        $ratingMax = (int)$chartConfig["ratingmax"];
     269      $ratingScore= (int)$chartConfig["score"];
     270
    268271        if ($ratingMax > 15)
    269272           $ratingMax = 15;
     
    390393            $average = 0;
    391394           }
    392    
     395
     396           // Does user wish to override the average?
     397           if ($ratingScore >= 0 && $ratingScore <= $ratingMax)
     398           {
     399             $average = $ratingScore;
     400           }
     401
    393402           if ($average < round($average))
    394403               $halfStar = TRUE;
  • easy-review-builder-for-wordpress/trunk/readme.txt

    r788429 r1243575  
    55Tags: star,stars,review,reviews,rating,ratings,mobile,shortcode,dyerware
    66Requires at least: 2.8
    7 Tested up to: 3.5
    8 Stable tag: 0.8
     7Tested up to: 4.3
     8Stable tag: 0.9
    99
    1010Create attractive star ratings for reviews.  Supports multiple rating categories and an optional auto-calculated summary. 
     
    6161== Upgrade Notice ==
    6262
     63= 0.9 =
     64 * New optional argument to override the automatic average with your own.  If you do not want the computed average in your review conclusion, simply specify your own with the shortcode argument: score
     65
    6366= 0.8 =
    6467 * Small adjustment to HTML for table layout issues experienced with Chrome
    6568
    6669= 0.7 =
    67  * New transarency admin option for reviews with custom background colors.  Set the transparency from 0 to 1 where 0 = completely transparent and 1 (the default) completely opaque.
     70 * New transparency admin option for reviews with custom background colors.  Set the transparency from 0 to 1 where 0 = completely transparent and 1 (the default) completely opaque.
    6871 * CSS defense against some more aggressive themes
    6972
Note: See TracChangeset for help on using the changeset viewer.