Version Description
- 2017-08-26
Download this release
Release Info
Developer | codeinwp |
Plugin | WP Product Review Lite |
Version | 3.0.5 |
Comparing to | |
See all releases |
Code changes from version 3.0.4 to 3.0.5
- CHANGELOG.md +5 -0
- assets/css/frontpage.css +1 -1
- includes/admin/models/class-wppr-review-model.php +3 -2
- includes/class-wppr.php +1 -1
- includes/public/layouts/default-tpl.php +8 -8
- readme.txt +6 -0
- vendor/autoload.php +1 -1
- vendor/autoload_52.php +1 -1
- vendor/composer/autoload_real.php +5 -5
- vendor/composer/autoload_real_52.php +3 -3
- wp-product-review.php +3 -3
CHANGELOG.md
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
|
|
|
|
|
|
|
|
|
|
|
2 |
### v3.0.4 - 2017-08-25
|
3 |
**Changes:**
|
4 |
* Fix for rich snippets schema.
|
1 |
|
2 |
+
### v3.0.5 - 2017-08-26
|
3 |
+
**Changes:**
|
4 |
+
* Fix for review links opening issue.
|
5 |
+
* Fix for comments legacy import.
|
6 |
+
|
7 |
### v3.0.4 - 2017-08-25
|
8 |
**Changes:**
|
9 |
* Fix for rich snippets schema.
|
assets/css/frontpage.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
Version: 3.0.
|
3 |
*/
|
4 |
#review-statistics {
|
5 |
width: 100%;
|
1 |
/*
|
2 |
+
Version: 3.0.5
|
3 |
*/
|
4 |
#review-statistics {
|
5 |
width: 100%;
|
includes/admin/models/class-wppr-review-model.php
CHANGED
@@ -372,8 +372,8 @@ class WPPR_Review_Model extends WPPR_Model_Abstract {
|
|
372 |
for ( $i = 1; $i <= $options_nr; $i ++ ) {
|
373 |
$tmp_name = get_post_meta( $this->ID, 'option_' . $i . '_content', true );
|
374 |
if ( $tmp_name != '' ) {
|
375 |
-
$tmp_score
|
376 |
-
$options[] = array(
|
377 |
'name' => $tmp_name,
|
378 |
'value' => $tmp_score,
|
379 |
);
|
@@ -737,6 +737,7 @@ class WPPR_Review_Model extends WPPR_Model_Abstract {
|
|
737 |
$valid[] = $options;
|
738 |
}
|
739 |
}
|
|
|
740 |
return $valid;
|
741 |
}
|
742 |
|
372 |
for ( $i = 1; $i <= $options_nr; $i ++ ) {
|
373 |
$tmp_name = get_post_meta( $this->ID, 'option_' . $i . '_content', true );
|
374 |
if ( $tmp_name != '' ) {
|
375 |
+
$tmp_score = get_post_meta( $this->ID, 'option_' . $i . '_grade', true );
|
376 |
+
$options[ $i ] = array(
|
377 |
'name' => $tmp_name,
|
378 |
'value' => $tmp_score,
|
379 |
);
|
737 |
$valid[] = $options;
|
738 |
}
|
739 |
}
|
740 |
+
|
741 |
return $valid;
|
742 |
}
|
743 |
|
includes/class-wppr.php
CHANGED
@@ -67,7 +67,7 @@ class WPPR {
|
|
67 |
*/
|
68 |
public function __construct() {
|
69 |
$this->plugin_name = 'wppr';
|
70 |
-
$this->version = '3.0.
|
71 |
|
72 |
$this->load_dependencies();
|
73 |
$this->set_locale();
|
67 |
*/
|
68 |
public function __construct() {
|
69 |
$this->plugin_name = 'wppr';
|
70 |
+
$this->version = '3.0.5';
|
71 |
|
72 |
$this->load_dependencies();
|
73 |
$this->set_locale();
|
includes/public/layouts/default-tpl.php
CHANGED
@@ -16,7 +16,11 @@ $lightbox = '';
|
|
16 |
if ( $review_object->get_click() == 'image' ) {
|
17 |
$lightbox = 'data-lightbox="' . esc_url( $review_object->get_small_thumbnail() ) . '"';
|
18 |
}
|
19 |
-
|
|
|
|
|
|
|
|
|
20 |
$output = '
|
21 |
<section id="review-statistics" class="article-section">
|
22 |
<div class="review-wrap-up cwpr_clearfix" >
|
@@ -28,7 +32,7 @@ $output = '
|
|
28 |
</div><!-- end .cwpr-review-top -->
|
29 |
<div class="review-wu-left">
|
30 |
<div class="rev-wu-image">
|
31 |
-
<a href="' . esc_url( $
|
32 |
</div><!-- end .rev-wu-image -->
|
33 |
<div class="review-wu-grade">
|
34 |
<div class="cwp-review-chart ">
|
@@ -76,18 +80,14 @@ $output .= '
|
|
76 |
foreach ( $review_object->get_cons() as $con ) {
|
77 |
$output .= '<li>' . esc_html( $con ) . '</li>';
|
78 |
}
|
79 |
-
$output
|
80 |
</ul>
|
81 |
</div>
|
82 |
</div><!-- end .review-wu-right -->
|
83 |
</div><!-- end .review-wrap-up -->
|
84 |
</section><!-- end #review-statistics -->
|
85 |
';
|
86 |
-
|
87 |
-
$multiple_affiliates_class = 'affiliate-button';
|
88 |
-
if ( count( $links ) > 1 ) {
|
89 |
-
$multiple_affiliates_class = 'affiliate-button2 affiliate-button';
|
90 |
-
}
|
91 |
foreach ( $links as $title => $link ) {
|
92 |
if ( ! empty( $title ) && ! empty( $link ) ) {
|
93 |
$output .= '
|
16 |
if ( $review_object->get_click() == 'image' ) {
|
17 |
$lightbox = 'data-lightbox="' . esc_url( $review_object->get_small_thumbnail() ) . '"';
|
18 |
}
|
19 |
+
$links = $review_object->get_links();
|
20 |
+
$multiple_affiliates_class = 'affiliate-button';
|
21 |
+
if ( count( $links ) > 1 ) {
|
22 |
+
$multiple_affiliates_class = 'affiliate-button2 affiliate-button';
|
23 |
+
}
|
24 |
$output = '
|
25 |
<section id="review-statistics" class="article-section">
|
26 |
<div class="review-wrap-up cwpr_clearfix" >
|
32 |
</div><!-- end .cwpr-review-top -->
|
33 |
<div class="review-wu-left">
|
34 |
<div class="rev-wu-image">
|
35 |
+
<a href="' . esc_url( reset( $links ) ) . '" ' . $lightbox . ' rel="nofollow" target="_blank"><img src="' . esc_attr( $review_object->get_small_thumbnail() ) . '" alt="' . esc_attr( $review_object->get_name() ) . '" class="photo photo-wrapup wppr-product-image" /></a>
|
36 |
</div><!-- end .rev-wu-image -->
|
37 |
<div class="review-wu-grade">
|
38 |
<div class="cwp-review-chart ">
|
80 |
foreach ( $review_object->get_cons() as $con ) {
|
81 |
$output .= '<li>' . esc_html( $con ) . '</li>';
|
82 |
}
|
83 |
+
$output .= '
|
84 |
</ul>
|
85 |
</div>
|
86 |
</div><!-- end .review-wu-right -->
|
87 |
</div><!-- end .review-wrap-up -->
|
88 |
</section><!-- end #review-statistics -->
|
89 |
';
|
90 |
+
|
|
|
|
|
|
|
|
|
91 |
foreach ( $links as $title => $link ) {
|
92 |
if ( ! empty( $title ) && ! empty( $link ) ) {
|
93 |
$output .= '
|
readme.txt
CHANGED
@@ -67,6 +67,12 @@ If you wanna learn more about the <a href="http://www.codeinwp.com/blog/fastest-
|
|
67 |
* fr_FR translation by Jacques Soule of http://wordpress-pour-vous.com/
|
68 |
|
69 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
= 3.0.4 - 2017-08-25 =
|
71 |
|
72 |
* Fix for rich snippets schema.
|
67 |
* fr_FR translation by Jacques Soule of http://wordpress-pour-vous.com/
|
68 |
|
69 |
== Changelog ==
|
70 |
+
= 3.0.5 - 2017-08-26 =
|
71 |
+
|
72 |
+
* Fix for review links opening issue.
|
73 |
+
* Fix for comments legacy import.
|
74 |
+
|
75 |
+
|
76 |
= 3.0.4 - 2017-08-25 =
|
77 |
|
78 |
* Fix for rich snippets schema.
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitf137aa189ce2b79e78ab9f9810dcd9f8::getLoader();
|
vendor/autoload_52.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit957927ad2f070fc15c58074fba182039::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitc168ee91d26996c9139336b5c6a09a15
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
@@ -42,14 +42,14 @@ class ComposerAutoloaderInitc168ee91d26996c9139336b5c6a09a15
|
|
42 |
|
43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
45 |
-
|
46 |
}
|
47 |
|
48 |
return $loader;
|
49 |
}
|
50 |
}
|
51 |
|
52 |
-
function
|
53 |
{
|
54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
55 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitf137aa189ce2b79e78ab9f9810dcd9f8
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitf137aa189ce2b79e78ab9f9810dcd9f8', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitf137aa189ce2b79e78ab9f9810dcd9f8', 'loadClassLoader'));
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
42 |
|
43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
45 |
+
composerRequiref137aa189ce2b79e78ab9f9810dcd9f8($fileIdentifier, $file);
|
46 |
}
|
47 |
|
48 |
return $loader;
|
49 |
}
|
50 |
}
|
51 |
|
52 |
+
function composerRequiref137aa189ce2b79e78ab9f9810dcd9f8($fileIdentifier, $file)
|
53 |
{
|
54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
55 |
require $file;
|
vendor/composer/autoload_real_52.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
-
class
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitb0d44e7593879a2135d8f28bab187641 {
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
+
class ComposerAutoloaderInit957927ad2f070fc15c58074fba182039 {
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit957927ad2f070fc15c58074fba182039', 'loadClassLoader'), true /*, true */);
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit957927ad2f070fc15c58074fba182039', 'loadClassLoader'));
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
wp-product-review.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Plugin Name: WP Product Review Lite
|
16 |
* Plugin URI: https://themeisle.com/plugins/wp-product-review/
|
17 |
* Description: The highest rated and most complete review plugin, now with rich snippets support. Easily turn your basic posts into in-depth reviews.
|
18 |
-
* Version: 3.0.
|
19 |
* Author: ThemeIsle
|
20 |
* Author URI: https://themeisle.com/
|
21 |
* Requires at least: 3.5
|
@@ -67,7 +67,7 @@ register_deactivation_hook( __FILE__, 'deactivate_wppr' );
|
|
67 |
*/
|
68 |
function run_wppr() {
|
69 |
|
70 |
-
define( 'WPPR_LITE_VERSION', '3.0.
|
71 |
define( 'WPPR_PATH', dirname( __FILE__ ) );
|
72 |
define( 'WPPR_SLUG', 'wppr' );
|
73 |
define( 'WPPR_UPSELL_LINK', 'https://themeisle.com/plugins/wp-product-review/' );
|
@@ -89,7 +89,7 @@ function run_wppr() {
|
|
89 |
*
|
90 |
* @param array $products Array of products.
|
91 |
*
|
92 |
-
* @return array
|
93 |
*/
|
94 |
function wppr_lite_register_sdk( $products ) {
|
95 |
$products[] = __FILE__;
|
15 |
* Plugin Name: WP Product Review Lite
|
16 |
* Plugin URI: https://themeisle.com/plugins/wp-product-review/
|
17 |
* Description: The highest rated and most complete review plugin, now with rich snippets support. Easily turn your basic posts into in-depth reviews.
|
18 |
+
* Version: 3.0.5
|
19 |
* Author: ThemeIsle
|
20 |
* Author URI: https://themeisle.com/
|
21 |
* Requires at least: 3.5
|
67 |
*/
|
68 |
function run_wppr() {
|
69 |
|
70 |
+
define( 'WPPR_LITE_VERSION', '3.0.5' );
|
71 |
define( 'WPPR_PATH', dirname( __FILE__ ) );
|
72 |
define( 'WPPR_SLUG', 'wppr' );
|
73 |
define( 'WPPR_UPSELL_LINK', 'https://themeisle.com/plugins/wp-product-review/' );
|
89 |
*
|
90 |
* @param array $products Array of products.
|
91 |
*
|
92 |
+
* @return array All products registered to sdk.
|
93 |
*/
|
94 |
function wppr_lite_register_sdk( $products ) {
|
95 |
$products[] = __FILE__;
|