WP Product Review Lite - Version 2.9.1

Version Description

Download this release

Release Info

Developer codeinwp
Plugin Icon WP Product Review Lite
Version 2.9.1
Comparing to
See all releases

Code changes from version 2.8.7 to 2.9.1

admin/inc/config.php CHANGED
@@ -553,57 +553,7 @@
553
 
554
  )
555
 
556
- ) ,
557
-
558
-
559
- array(
560
-
561
- "type"=>"tab",
562
-
563
- "name"=>"Get Pro features",
564
-
565
- "options"=>array(
566
-
567
-
568
-
569
- array(
570
-
571
- "type"=>"title",
572
-
573
- "name"=>"In order to use the PRO features, you have 2 options ( Shortcode can't be used with the powered_by link) :"
574
-
575
- ),
576
- array(
577
-
578
- "type"=>"select",
579
-
580
- "name"=>"Display the Powered by link ?",
581
-
582
- "description"=>"If you wanna use our Preloader functionality and custom icons without paying for the plugin, just activate this box and a nofollow link will be added to your review posts",
583
-
584
- "id"=>"cwppos_show_poweredby",
585
-
586
- "options"=>array("yes"=>"Yes","no"=>"No"),
587
-
588
- "default"=>"no"
589
-
590
- ),
591
- array(
592
-
593
- "type"=>"button",
594
-
595
- "name"=>"Buy the add-ons or the PRO bundle ",
596
-
597
- "description"=>"See the extensions",
598
-
599
- "id"=>"cwppos_show_buypro",
600
-
601
-
602
- "default"=>"no"
603
-
604
- )
605
- )
606
- )
607
 
608
 
609
 
553
 
554
  )
555
 
556
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
557
 
558
 
559
 
admin/inc/render.php CHANGED
@@ -247,7 +247,7 @@
247
  } else {
248
  $html .= "* Currently set to the default styling</span>";
249
  } } else {
250
- $html .= '<span style="color:red;">'. __('You need the custom icon <a style="color:red;" href="http://themeisle.com/plugins/wppr-custom-icon/" target="_blank" >add-on</a> in order to change this.',"cwppos") . "</span>";
251
  }
252
  $html .= "</li>";
253
 
@@ -554,8 +554,8 @@
554
  public function add_button($tabid,$name,$description,$id,$class = ''){
555
  $html = '
556
  <div class="controls '.$class.' ">
557
- <div class="explain">'.$name.'</div><p class="field_description">'.$description.'</p>
558
- <a href="'.get_bloginfo('wpurl') . '/wp-admin/admin.php?page=wp-addons'.'" class="button" style="color:red; text-decoration: none; ">'.$name.'</a>
559
  </div></div>';
560
  $this->tabs[$tabid]["elements"][] = array(
561
  "type"=>"button",
247
  } else {
248
  $html .= "* Currently set to the default styling</span>";
249
  } } else {
250
+ $html .= '<span style="color:red;">'. __('You need the PRO <a style="color:red;" href="http://bit.ly/2bhylar" target="_blank" >add-on</a> in order to change the review icons.',"cwppos") . "</span>";
251
  }
252
  $html .= "</li>";
253
 
554
  public function add_button($tabid,$name,$description,$id,$class = ''){
555
  $html = '
556
  <div class="controls '.$class.' ">
557
+ <div class="explain">'.$name.'</div>
558
+ <a href="https://themeisle.com/plugins/wp-product-review-pro-add-on/" class="button" style="color:red; text-decoration: none; ">'.$name.'</a>
559
  </div></div>';
560
  $this->tabs[$tabid]["elements"][] = array(
561
  "type"=>"button",
admin/layout/main_page.php CHANGED
@@ -9,11 +9,11 @@
9
 
10
  <img class="theme_options_logo" src="<?php echo plugins_url( 'img/logo.png' , __FILE__ ) . ''; ?>" alt="<?php echo cwppos_config('admin_page_header'); ?>">
11
 
12
- <?php if (!class_exists('CWP_PR_PRO_Core')) { ?><a href="https://themeisle.com/plugins/wp-product-review-pro-add-on/" class="read_docs button" target="_blank" style="color:red;text-decoration: none;"><?php _e("Buy the PRO Add-ons Bundle", "cwppos"); ?></a><?php } ?>
13
 
14
  <a href="https://themeisle.com/allthemes" class="read_docs button" target="_blank" style=" text-decoration: none; "><?php _e("Recommended Review Themes", "cwppos"); ?></a>
15
 
16
- <a href="https://themeisle.com/forums/" target="_blank" class="read_docs button" style="text-decoration: none;"><?php _e("Contact us", "cwppos"); ?></a>
17
 
18
  </h2>
19
  </div>
@@ -50,19 +50,21 @@
50
  <?php foreach ($tabs as $tab) { ?>
51
  <div id="tab-<?php echo $tab['id']; ?>" class="tab-section">
52
  <h2><?php echo $tab['name']; ?></h2>
53
-
54
  <?php foreach($tab['elements'] as $element){ ?>
55
  <?php echo $element['html']; ?>
56
  <?php } ?>
57
-
58
- </div>
59
-
60
-
61
  <?php } ?>
62
 
63
- <div class="clear"></div></div>
 
64
 
65
-
 
66
  </div>
67
 
68
  <div class="save_bar">
@@ -72,10 +74,11 @@
72
 
73
  <span class="spinner spinner-reset" ></span>
74
  <button type="button" class="button submit-button reset-button cwp_reset"><?php _e('Options Reset','cwppos'); ?></button>
75
-
76
-
77
- </div>
78
-
 
79
  </form>
80
 
81
  <div style="clear:both;"></div>
9
 
10
  <img class="theme_options_logo" src="<?php echo plugins_url( 'img/logo.png' , __FILE__ ) . ''; ?>" alt="<?php echo cwppos_config('admin_page_header'); ?>">
11
 
12
+ <?php if (!class_exists('CWP_PR_PRO_Core')) { ?><a href="http://themeisle.com/plugins/wp-product-review/" class="read_docs button" target="_blank" style="color:red;text-decoration: none;"><?php _e("Buy the PRO Add-on", "cwppos"); ?></a><?php } ?>
13
 
14
  <a href="https://themeisle.com/allthemes" class="read_docs button" target="_blank" style=" text-decoration: none; "><?php _e("Recommended Review Themes", "cwppos"); ?></a>
15
 
16
+ <a href="http://themeisle.com/contact/" target="_blank" class="read_docs button" style="text-decoration: none;"><?php _e("Contact us", "cwppos"); ?></a>
17
 
18
  </h2>
19
  </div>
50
  <?php foreach ($tabs as $tab) { ?>
51
  <div id="tab-<?php echo $tab['id']; ?>" class="tab-section">
52
  <h2><?php echo $tab['name']; ?></h2>
53
+
54
  <?php foreach($tab['elements'] as $element){ ?>
55
  <?php echo $element['html']; ?>
56
  <?php } ?>
57
+
58
+ </div>
59
+
60
+
61
  <?php } ?>
62
 
63
+ <div class="clear"></div>
64
+ </div>
65
 
66
+
67
+ <div style="clear:both;"></div>
68
  </div>
69
 
70
  <div class="save_bar">
74
 
75
  <span class="spinner spinner-reset" ></span>
76
  <button type="button" class="button submit-button reset-button cwp_reset"><?php _e('Options Reset','cwppos'); ?></button>
77
+
78
+
79
+ </div>
80
+
81
+ <div style="clear:both;"></div>
82
  </form>
83
 
84
  <div style="clear:both;"></div>
css/dashboard_styles.css CHANGED
@@ -412,84 +412,6 @@ a.preload_info:hover, a.preload_info_upsell:hover {
412
  padding: 0;
413
  }
414
 
415
- .cwp_addons_wrap .products {
416
- overflow: hidden;
417
- }
418
-
419
- .cwp_addons_wrap .products li {
420
- float: left;
421
- margin: 0 1em 1em 0 !important;
422
- padding: 0;
423
- vertical-align: top;
424
- width: 300px;
425
- }
426
-
427
- .cwp_addons_wrap .products li a {
428
- text-decoration: none;
429
- color: inherit;
430
- border: 1px solid #ddd;
431
- display: block;
432
- min-height: 220px;
433
- overflow: hidden;
434
- background: #f5f5f5;
435
- -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .1);
436
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .1);
437
- }
438
-
439
- .cwp_addons_wrap .products li a img {
440
- max-width: 258px;
441
- max-height: 24px;
442
- padding: 17px 20px;
443
- display: block;
444
- margin: 0;
445
- background: #fff;
446
- border-right: 260px solid #fff;
447
- }
448
-
449
- .cwp_addons_wrap .products li a .price, .cwp_addons_wrap .products li a img.extension-thumb + h3 {
450
- display: none;
451
- }
452
-
453
- .cwp_addons_wrap .products li a h3 {
454
- margin: 0 !important;
455
- padding: 20px !important;
456
- background: #fff;
457
- }
458
-
459
- .cwp_addons_wrap .products li a p {
460
- padding: 20px !important;
461
- margin: 0 !important;
462
- height: 70px;
463
- border-top: 1px solid #f1f1f1;
464
- }
465
-
466
- .cwp_addons_wrap .products li a:focus, .cwp_addons_wrap .products li a:hover {
467
- background-color: #fff;
468
- }
469
-
470
- .cwp_addons_wrap .cwp-cta {
471
- margin-left: 25%;
472
- color: #555;
473
- background: #f7f7f7;
474
- -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0, 0, 0, .08);
475
- box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0, 0, 0, .08);
476
- vertical-align: top;
477
- display: inline-block;
478
- text-decoration: none;
479
- font-size: 13px;
480
- line-height: 26px;
481
- height: 28px;
482
- padding: 0 10px 1px;
483
- cursor: pointer;
484
- border: 1px solid #ccc;
485
- -webkit-appearance: none;
486
- -webkit-border-radius: 3px;
487
- border-radius: 3px;
488
- white-space: nowrap;
489
- -webkit-box-sizing: border-box;
490
- -moz-box-sizing: border-box;
491
- box-sizing: border-box;
492
- }
493
  #cwp_add_button{
494
  font-size:20px;
495
  text-decoration: none;
412
  padding: 0;
413
  }
414
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
415
  #cwp_add_button{
416
  font-size:20px;
417
  text-decoration: none;
inc/cwp-addons.php DELETED
@@ -1,75 +0,0 @@
1
- <?php
2
- /**
3
- * Admin View: Page - Addons
4
- */
5
-
6
-
7
- function cwp_addons() {
8
- ?>
9
-
10
- <div class="cwp_addons_wrap">
11
- <div class="announcement clearfix" style="
12
- width: 99%;
13
- background: no-repeat left -10px top -45px, #f16848;
14
- margin-top: 20px;
15
- float: left;
16
- clear: both;
17
- margin-bottom: 10px;
18
- ">
19
- <h2 style="
20
- width: 75%;
21
- float: left; font-family: &quot;Helvetica Neue&quot;, HelveticaNeue, sans-serif; color: #fff; font-weight: 100; font-size: 17px; line-height: 1;
22
- padding-left: 20px;
23
- ">Get the PRO addons bundle (including all existing add-on and future ones ) starting from $75!</h2>
24
- <a class="show-me" href="https://themeisle.com/plugins/wp-product-review-pro-add-on/?utm_source=addonsadmin&amp;utm_medium=announce&amp;utm_campaign=top" style="
25
- float: right; background: #fff; border-radius: 5px; font-family: &quot;Helvetica Neue&quot;, HelveticaNeue, sans-serif; color: #5c5c5c; text-decoration: none; text-transform: uppercase; padding: 7px 15px; margin-top: 9px; margin-right: 20px; -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; line-height: 1;
26
- ">Show Me</a>
27
- </div>
28
- <div class="icon32 icon32-posts-product" id="icon-woocommerce"><br /></div>
29
- <h2>
30
- <?php esc_html_e( 'WP Product Review Add-ons/Extensions', 'cwppos' ); ?>
31
- <a href="https://themeisle.com/plugins/" class="add-new-h2"><?php esc_html_e( 'See all extensions', 'cwppos' ); ?></a>
32
- </h2><?php
33
- if ( false === ( $addons = get_transient( 'wppr_addons_data' ) ) ) {
34
- $addons_json = wp_remote_get( 'https://themeisle-vertigostudio.netdna-ssl.com/wp-content/uploads/wppr-addons.json', array( 'user-agent' => 'WPPR Addons Page' ) );
35
- if ( ! is_wp_error( $addons_json ) ) {
36
- $addons = json_decode( wp_remote_retrieve_body( $addons_json ) );
37
- if ( $addons ) {
38
- set_transient( 'wppr_addons_data', $addons, 604800 );
39
- }
40
- }
41
- }
42
- //print_r($addons);
43
- /* $addons[0] = array(
44
- "title" => "Custom Icon",
45
- "excerpt" => "This add-on add a custom icon functionality to your review box, so you can add things like star icon, $ icon and much more.",
46
- "link" =>"https://themeisle.com/plugins/WPPR-custom-icon/",
47
- "price" =>"$19"
48
- );*/
49
-
50
- if ( $addons ) : ?>
51
-
52
- <ul class="products"><?php
53
-
54
- foreach ( $addons as $addon ) {
55
-
56
- echo '<li class="product">';
57
-
58
- echo '<a target="_blank" href="' . esc_url( $addon->link ) . '">';
59
- if ( ! empty( $addon->image ) ) {
60
- echo '<img src="' . esc_url($addon->image) . '"/>';
61
- } else {
62
- echo '<h3>' . $addon->title . '</h3>';
63
- }
64
- echo '<span class="price">' . $addon->price . '</span>';
65
- echo '<p>' . $addon->excerpt . '</p>';
66
- echo '<button class="cwp-cta">Get it now for '.$addon->price.'</button>';
67
- echo '</a>';
68
- echo '</li>';
69
- }
70
- ?></ul>
71
- <?php else : ?>
72
- <p><?php printf( __( 'Our catalog of WP Product Review Extensions can be found on ThemeIsle.com here: <a href="%s">WP Product Review Extensions</a>', 'cwppos' ), 'https://themeisle.com/plugins/' ); ?></p>
73
- <?php endif; ?>
74
- </div>
75
- <?php } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/cwp_metabox.php CHANGED
@@ -172,7 +172,7 @@ function cwp_review_meta_boxes(){
172
  <h4><?php _e("Product Options Setting", "cwppos"); ?></h4>
173
  <div class="preloadInfo"><?php _e("Insert your options and their grades. Grading must be done <b><i>from 0 to 100</i></b>.");
174
  if(cwppos("cwppos_show_poweredby") !== 'yes' && !class_exists('CWP_PR_PRO_Core') && !function_exists('wppr_ep_js_preloader'))
175
- _e(" In order to be able to automatically preload your settings from another posts, you need to get the preloader add-on or the PRO bundle add-on", "cwppos"); ?>
176
  </div><?php if(cwppos("cwppos_show_poweredby") === 'yes' || class_exists('CWP_PR_PRO_Core')|| function_exists('wppr_ep_js_preloader')) { ?>
177
  <a href="#" class="preload_info"><?php _e("Preload Info","cwppos"); ?></a>
178
  <?php
@@ -180,7 +180,7 @@ function cwp_review_meta_boxes(){
180
  $pageURL = admin_url('admin.php?page=cwppos_options#tab-upgrade_to_pro');
181
  $pageURL = str_replace(":80","",$pageURL);
182
  ?>
183
- <a href="http://themeisle.com/plugins/wp-product-review-pro-add-on/" target="_blank" class="preload_info_upsell"><?php _e("Preload Info","cwppos"); ?></a>
184
  <?php } ?>
185
  </div><!-- end .review-settings-notice -->
186
  <div class="review-settings-group">
@@ -257,7 +257,7 @@ function cwp_review_meta_boxes(){
257
  </div><!-- end .review-settings group -->
258
  </div>
259
  <?php if(!shortcode_exists("P_REVIEW")): ?>
260
- <label > You can use the shortcode <b>[P_REVIEW]</b> to show a review you already made or <b>[wpr_landing]</b> to display a comparision table of them. The shortcodes are available on the <a target="_blank" href="http://themeisle.com/plugins/wp-product-review-pro-add-on/">Pro Bundle</a><br/><br/></label>
261
  <?php endif; ?>
262
  </div>
263
  <?php
172
  <h4><?php _e("Product Options Setting", "cwppos"); ?></h4>
173
  <div class="preloadInfo"><?php _e("Insert your options and their grades. Grading must be done <b><i>from 0 to 100</i></b>.");
174
  if(cwppos("cwppos_show_poweredby") !== 'yes' && !class_exists('CWP_PR_PRO_Core') && !function_exists('wppr_ep_js_preloader'))
175
+ _e(" In order to be able to automatically load your options from another posts, you need the PRO add-on", "cwppos"); ?>
176
  </div><?php if(cwppos("cwppos_show_poweredby") === 'yes' || class_exists('CWP_PR_PRO_Core')|| function_exists('wppr_ep_js_preloader')) { ?>
177
  <a href="#" class="preload_info"><?php _e("Preload Info","cwppos"); ?></a>
178
  <?php
180
  $pageURL = admin_url('admin.php?page=cwppos_options#tab-upgrade_to_pro');
181
  $pageURL = str_replace(":80","",$pageURL);
182
  ?>
183
+ <a href="http://bit.ly/2aYWkgu" target="_blank" class="preload_info_upsell"><?php _e("View Preload features","cwppos"); ?></a>
184
  <?php } ?>
185
  </div><!-- end .review-settings-notice -->
186
  <div class="review-settings-group">
257
  </div><!-- end .review-settings group -->
258
  </div>
259
  <?php if(!shortcode_exists("P_REVIEW")): ?>
260
+ <label > You can use the shortcode <b>[P_REVIEW]</b> to show a review you already made or <b>[wpr_landing]</b> to display a comparision table of them. The shortcodes are available on the <a target="_blank" href="http://bit.ly/2bpKIlP">Pro Bundle</a><br/><br/></label>
261
  <?php endif; ?>
262
  </div>
263
  <?php
inc/widget-layouts/style 1.php CHANGED
@@ -54,8 +54,12 @@
54
  }
55
  ?>
56
  <p class="wppr-style1-buttons">
57
- <a href='<?php echo $affiliate_link;?>' rel='nofollow' target='_blank' class='wppr-bttn'><?php _e($instance['cwp_tp_buynow'], "cwppos");?></a>
58
- <a href='<?php echo $review_link;?>' rel='nofollow' class='wppr-bttn'><?php _e($instance['cwp_tp_readreview'], "cwppos");?></a>
 
 
 
 
59
  </p>
60
  </div>
61
  <div class="clear"></div>
54
  }
55
  ?>
56
  <p class="wppr-style1-buttons">
57
+ <?php if (!empty($instance['cwp_tp_buynow'])) { ?>
58
+ <a href='<?php echo $affiliate_link;?>' rel='nofollow' target='_blank' class='wppr-bttn'><?php _e($instance['cwp_tp_buynow'], "cwppos");?></a>
59
+ <?php } ?>
60
+ <?php if (!empty($instance['cwp_tp_readreview'])) { ?>
61
+ <a href='<?php echo $review_link;?>' rel='nofollow' class='wppr-bttn'><?php _e($instance['cwp_tp_readreview'], "cwppos");?></a>
62
+ <?php } ?>
63
  </p>
64
  </div>
65
  <div class="clear"></div>
inc/wppr-main.php CHANGED
@@ -135,8 +135,8 @@ function cwppos_show_review($id = "") {
135
  <div class="review-wu-left">
136
  <div class="rev-wu-image">';
137
 
138
- $product_image = get_post_meta($id, "cwp_rev_product_image", true);
139
- $imgurl = get_post_meta($id, "cwp_image_link", true);
140
  $lightbox = "";
141
  $feat_image = wp_get_attachment_url( get_post_thumbnail_id( $id ) );
142
 
@@ -156,15 +156,15 @@ function cwppos_show_review($id = "") {
156
  wp_enqueue_style("img-lightbox-css", WPPR_URL.'/css/lightbox.css' , array(), WPPR_LITE_VERSION );
157
  }
158
  }else{
159
- $product_image = get_post_meta($id, "cwp_product_affiliate_link", true);
160
  }
161
  //print_r($product_image);
162
- $return_string .= '<a href="'.$product_image.'" '.$lightbox.' rel="nofollow" target="_blank"><img itemprop="image" src="'.$product_image_cropped.'" alt="'. get_post_meta($id, "cwp_rev_product_name", true).'" class="photo photo-wrapup wppr-product-image" /></a>';
163
 
164
  $rating = cwppos_calc_overall_rating($id);
165
 
166
  for($i=1; $i<=cwppos("cwppos_option_nr"); $i++) {
167
- ${"option".$i."_content"} = get_post_meta($id, "option_".$i."_content", true);
168
 
169
  if(empty(${"option".$i."_content"})) {
170
  ${"option".$i."_content"} = __("Default Feature ".$i, "cwppos");
@@ -187,7 +187,7 @@ function cwppos_show_review($id = "") {
187
  {
188
  $return_string .= '<span itemscope itemtype="http://schema.org/Review"><span itemprop="author" itemscope itemtype="http://schema.org/Person" >
189
  <meta itemprop="name" content="'.get_the_author().'"/>
190
- </span><span itemprop="itemReviewed" itemscope itemtype="http://schema.org/Product"><meta itemprop="name" content="'.get_post_meta($id,'cwp_rev_product_name',true).'"/></span><div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating" class="cwp-review-percentage" data-percent="';
191
  $return_string .= $rating['overall'] . '"><span itemprop="ratingValue" class="cwp-review-rating">' . $divrating . '</span> <meta itemprop="bestRating" content="10"> </div></span>';
192
 
193
 
@@ -218,14 +218,14 @@ function cwppos_show_review($id = "") {
218
  <div class="pros">';
219
 
220
  for($i=1; $i<=cwppos("cwppos_option_nr"); $i++) {
221
- ${"pro_option_".$i} = get_post_meta($id, "cwp_option_".$i."_pro", true);
222
  if(empty(${"pro_option_".$i})) {
223
  ${"pro_option_".$i} = "" ;
224
  }
225
  }
226
 
227
  for($i=1; $i<=cwppos("cwppos_option_nr"); $i++) {
228
- ${"cons_option_".$i} = get_post_meta($id, "cwp_option_".$i."_cons", true);
229
  if(empty(${"cons_option_".$i})) {
230
  ${"cons_option_".$i} = "";
231
  }
@@ -235,7 +235,7 @@ function cwppos_show_review($id = "") {
235
  $return_string .= apply_filters( 'wppr_review_pros_text',$id, __(cwppos("cwppos_pros_text"), "cwppos")).' <ul>';
236
  for($i=1;$i<=cwppos("cwppos_option_nr");$i++) {
237
  if(!empty(${"pro_option_".$i})) {
238
- $return_string .= ' <li>- '.${"pro_option_".$i}.'</li>';
239
  }
240
  }
241
 
@@ -246,7 +246,7 @@ function cwppos_show_review($id = "") {
246
 
247
  for($i=1;$i<=cwppos("cwppos_option_nr");$i++){
248
  if(!empty(${"cons_option_".$i})) {
249
- $return_string .= ' <li>- '.${"cons_option_".$i}.'</li>';
250
  }
251
 
252
  }
@@ -263,10 +263,10 @@ function cwppos_show_review($id = "") {
263
  $return_string.='<div style="font-size:12px;width:100%;float:right"><p style="float:right;">Powered by <a href="http://wordpress.org/plugins/wp-product-review/" target="_blank" rel="nofollow" > WP Product Review</a></p></div>';
264
  }
265
 
266
- $affiliate_text = get_post_meta($id, "cwp_product_affiliate_text", true);
267
- $affiliate_link = get_post_meta($id, "cwp_product_affiliate_link", true);
268
- $affiliate_text2 = get_post_meta($id, "cwp_product_affiliate_text2", true);
269
- $affiliate_link2 = get_post_meta($id, "cwp_product_affiliate_link2", true);
270
 
271
  if(!empty($affiliate_text2) && !empty($affiliate_link2)) {
272
  $bclass="affiliate-button2 affiliate-button";
@@ -340,7 +340,7 @@ function wppr_get_image_id($post_id, $image_url = "", $size = "thumbnail" ) {
340
  function custom_bar_icon() {
341
  $options = cwppos();
342
 
343
- if ($options['cwppos_show_poweredby']=="yes" || function_exists("wppr_ci_custom_bar_icon") || class_exists('CWP_PR_PRO_Core')) {
344
  wp_register_script("cwp-custom-bar-icon", WPPR_URL.'/javascript/custom-bar-icon.js', false, "1.0", "all");
345
  wp_enqueue_script("cwp-custom-bar-icon");
346
  }
@@ -353,7 +353,7 @@ function cwppos_pac_register() {
353
  function cwp_def_settings() {
354
  global $post;
355
  $options = cwppos();
356
- if (function_exists('wppr_ci_custom_bar_icon') || $options['cwppos_show_poweredby']=="yes") {
357
  $isSetToPro = true;
358
  } else {
359
  $isSetToPro = false;
@@ -403,13 +403,6 @@ function cwppos_pac_print() {
403
 
404
  }
405
 
406
- /**
407
- * Addons menu item
408
- */
409
- function cwp_addons_menu() {
410
- add_submenu_page( 'cwppos_options', __( 'WP Product Review Add-ons/Extensions', 'cwppos_options' ), __( 'Add-ons', 'cwppos' ) , 'manage_options', 'wp-addons', 'cwp_addons');
411
- }
412
-
413
 
414
  function cwppos_dynamic_stylesheet() {
415
  $options = cwppos();
@@ -519,7 +512,6 @@ add_action('init', 'cwppos_pac_register');
519
  add_action('wp_head', 'cwppos_pac_print');
520
  add_action('wp_footer','cwppos_dynamic_stylesheet');
521
  add_action( 'admin_init', 'cwppos_pac_admin_init' );
522
- add_action('admin_menu', 'cwp_addons_menu');
523
  add_action('admin_enqueue_scripts', 'custom_bar_icon');
524
 
525
  if (!class_exists('TAV_Remote_Notification_Client')) require( WPPR_PATH.'/inc/class-remote-notification-client.php' );
@@ -527,4 +519,4 @@ $notification = new TAV_Remote_Notification_Client( 36, '71a28628279f6d55', 'htt
527
 
528
  if (class_exists('CWP_PR_PRO_Core')) $cwp_pr_pro = new CWP_PR_PRO_Core();
529
 
530
- load_plugin_textdomain('cwppos', false, dirname(plugin_basename(WPPR_PATH)).'/languages/');
135
  <div class="review-wu-left">
136
  <div class="rev-wu-image">';
137
 
138
+ $product_image = do_shortcode(get_post_meta($id, "cwp_rev_product_image", true));
139
+ $imgurl = do_shortcode(get_post_meta($id, "cwp_image_link", true));
140
  $lightbox = "";
141
  $feat_image = wp_get_attachment_url( get_post_thumbnail_id( $id ) );
142
 
156
  wp_enqueue_style("img-lightbox-css", WPPR_URL.'/css/lightbox.css' , array(), WPPR_LITE_VERSION );
157
  }
158
  }else{
159
+ $product_image = do_shortcode(get_post_meta($id, "cwp_product_affiliate_link", true));
160
  }
161
  //print_r($product_image);
162
+ $return_string .= '<a href="'.$product_image.'" '.$lightbox.' rel="nofollow" target="_blank"><img itemprop="image" src="'.$product_image_cropped.'" alt="'. do_shortcode(get_post_meta($id, "cwp_rev_product_name", true)).'" class="photo photo-wrapup wppr-product-image" /></a>';
163
 
164
  $rating = cwppos_calc_overall_rating($id);
165
 
166
  for($i=1; $i<=cwppos("cwppos_option_nr"); $i++) {
167
+ ${"option".$i."_content"} = do_shortcode(get_post_meta($id, "option_".$i."_content", true));
168
 
169
  if(empty(${"option".$i."_content"})) {
170
  ${"option".$i."_content"} = __("Default Feature ".$i, "cwppos");
187
  {
188
  $return_string .= '<span itemscope itemtype="http://schema.org/Review"><span itemprop="author" itemscope itemtype="http://schema.org/Person" >
189
  <meta itemprop="name" content="'.get_the_author().'"/>
190
+ </span><span itemprop="itemReviewed" itemscope itemtype="http://schema.org/Product"><meta itemprop="name" content="'.do_shortcode(get_post_meta($id,'cwp_rev_product_name',true)).'"/></span><div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating" class="cwp-review-percentage" data-percent="';
191
  $return_string .= $rating['overall'] . '"><span itemprop="ratingValue" class="cwp-review-rating">' . $divrating . '</span> <meta itemprop="bestRating" content="10"> </div></span>';
192
 
193
 
218
  <div class="pros">';
219
 
220
  for($i=1; $i<=cwppos("cwppos_option_nr"); $i++) {
221
+ ${"pro_option_".$i} = do_shortcode(get_post_meta($id, "cwp_option_".$i."_pro", true));
222
  if(empty(${"pro_option_".$i})) {
223
  ${"pro_option_".$i} = "" ;
224
  }
225
  }
226
 
227
  for($i=1; $i<=cwppos("cwppos_option_nr"); $i++) {
228
+ ${"cons_option_".$i} = do_shortcode(get_post_meta($id, "cwp_option_".$i."_cons", true));
229
  if(empty(${"cons_option_".$i})) {
230
  ${"cons_option_".$i} = "";
231
  }
235
  $return_string .= apply_filters( 'wppr_review_pros_text',$id, __(cwppos("cwppos_pros_text"), "cwppos")).' <ul>';
236
  for($i=1;$i<=cwppos("cwppos_option_nr");$i++) {
237
  if(!empty(${"pro_option_".$i})) {
238
+ $return_string .= ' <li>'.${"pro_option_".$i}.'</li>';
239
  }
240
  }
241
 
246
 
247
  for($i=1;$i<=cwppos("cwppos_option_nr");$i++){
248
  if(!empty(${"cons_option_".$i})) {
249
+ $return_string .= ' <li>'.${"cons_option_".$i}.'</li>';
250
  }
251
 
252
  }
263
  $return_string.='<div style="font-size:12px;width:100%;float:right"><p style="float:right;">Powered by <a href="http://wordpress.org/plugins/wp-product-review/" target="_blank" rel="nofollow" > WP Product Review</a></p></div>';
264
  }
265
 
266
+ $affiliate_text = do_shortcode(get_post_meta($id, "cwp_product_affiliate_text", true));
267
+ $affiliate_link = do_shortcode(get_post_meta($id, "cwp_product_affiliate_link", true));
268
+ $affiliate_text2 = do_shortcode(get_post_meta($id, "cwp_product_affiliate_text2", true));
269
+ $affiliate_link2 = do_shortcode(get_post_meta($id, "cwp_product_affiliate_link2", true));
270
 
271
  if(!empty($affiliate_text2) && !empty($affiliate_link2)) {
272
  $bclass="affiliate-button2 affiliate-button";
340
  function custom_bar_icon() {
341
  $options = cwppos();
342
 
343
+ if (( isset($options['cwppos_show_poweredby']) && $options['cwppos_show_poweredby'] == "yes" ) || function_exists("wppr_ci_custom_bar_icon") || class_exists('CWP_PR_PRO_Core')) {
344
  wp_register_script("cwp-custom-bar-icon", WPPR_URL.'/javascript/custom-bar-icon.js', false, "1.0", "all");
345
  wp_enqueue_script("cwp-custom-bar-icon");
346
  }
353
  function cwp_def_settings() {
354
  global $post;
355
  $options = cwppos();
356
+ if (function_exists('wppr_ci_custom_bar_icon') || ( isset($options['cwppos_show_poweredby']) && $options['cwppos_show_poweredby']=="yes" ) ) {
357
  $isSetToPro = true;
358
  } else {
359
  $isSetToPro = false;
403
 
404
  }
405
 
 
 
 
 
 
 
 
406
 
407
  function cwppos_dynamic_stylesheet() {
408
  $options = cwppos();
512
  add_action('wp_head', 'cwppos_pac_print');
513
  add_action('wp_footer','cwppos_dynamic_stylesheet');
514
  add_action( 'admin_init', 'cwppos_pac_admin_init' );
 
515
  add_action('admin_enqueue_scripts', 'custom_bar_icon');
516
 
517
  if (!class_exists('TAV_Remote_Notification_Client')) require( WPPR_PATH.'/inc/class-remote-notification-client.php' );
519
 
520
  if (class_exists('CWP_PR_PRO_Core')) $cwp_pr_pro = new CWP_PR_PRO_Core();
521
 
522
+ load_plugin_textdomain('cwppos', false, dirname(plugin_basename(WPPR_PATH)).'/languages/');
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: codeinwp,marius2012,marius_codeinwp,hardeepasrani,themeisle,Madali
3
  Tags: review, rating, posts, widget, review blogger, review blogging, affiliate, product reviews,plugin, google rating, product review, rating, review, star rating, user rating, wp rating, wp review, google, hreview,rich snippets,seo,snippet
4
  Author URI: http://themeisle.com
5
  Requires at least: 3.5
6
- Tested up to: 4.5.2
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -72,10 +72,21 @@ If you wanna learn more about the <a href="http://www.codeinwp.com/blog/fastest-
72
 
73
  == Changelog ==
74
 
 
 
 
 
 
 
 
 
 
 
 
75
  **New in 2.8.7**
76
 
77
  - Fixed img tag closing tag issue
78
- - Fixed rich snippet problem when comment influence is off
79
 
80
  **New in 2.8.6**
81
 
3
  Tags: review, rating, posts, widget, review blogger, review blogging, affiliate, product reviews,plugin, google rating, product review, rating, review, star rating, user rating, wp rating, wp review, google, hreview,rich snippets,seo,snippet
4
  Author URI: http://themeisle.com
5
  Requires at least: 3.5
6
+ Tested up to: 4.6
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
72
 
73
  == Changelog ==
74
 
75
+ **New in 2.9.1**
76
+
77
+ - Fixed undefined notice on plugin activation
78
+ - Removed review buttons on links when the values are empty for widgets
79
+
80
+ **New in 2.9.0**
81
+
82
+ - Added shortcode support on all review fields
83
+ - Removed addons page
84
+
85
+
86
  **New in 2.8.7**
87
 
88
  - Fixed img tag closing tag issue
89
+ - Fixed rich snippet problem when comment influence is off
90
 
91
  **New in 2.8.6**
92
 
wp-product-review.php CHANGED
@@ -7,14 +7,14 @@
7
  * @since 1.0.0
8
  *
9
  *
10
- * Plugin Name: WP Product Review
11
  * Description: The highest rated and most complete review plugin, now with rich snippets support. Easily turn your basic posts into in-depth reviews.
12
- * Version: 2.8.7
13
  * Author: Themeisle
14
- * Author URI: https://themeisle.com/
15
- * Plugin URI: https://themeisle.com/plugins/wp-product-review-lite/
16
  * Requires at least: 3.5
17
- * Tested up to: 4.3.1
18
  * Stable tag: trunk
19
  * License: GPLv2 or later
20
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -22,7 +22,7 @@
22
  * Domain Path: /languages
23
  */
24
 
25
- define( 'WPPR_LITE_VERSION','2.8.7' );
26
  define( 'WPPR_PATH',dirname( __FILE__ ) );
27
  define( 'WPPR_URL',plugins_url( 'wp-product-review' ) );
28
 
@@ -35,6 +35,5 @@ if ( wp_get_theme() !== 'Reviewgine Affiliate PRO' ) {
35
  include 'inc/cwp_latest_products_widget.php';
36
  include 'inc/cwp_comment.php';
37
  include 'inc/cwp_js_preloader.php';
38
- include 'inc/cwp-addons.php';
39
  include 'inc/wppr-main.php';
40
  }
7
  * @since 1.0.0
8
  *
9
  *
10
+ * Plugin Name: WP Product Review Lite
11
  * Description: The highest rated and most complete review plugin, now with rich snippets support. Easily turn your basic posts into in-depth reviews.
12
+ * Version: 2.9.1
13
  * Author: Themeisle
14
+ * Author URI: http://themeisle.com/
15
+ * Plugin URI: http://themeisle.com/plugins/wp-product-review/
16
  * Requires at least: 3.5
17
+ * Tested up to: 4.6
18
  * Stable tag: trunk
19
  * License: GPLv2 or later
20
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
22
  * Domain Path: /languages
23
  */
24
 
25
+ define( 'WPPR_LITE_VERSION','2.9.1' );
26
  define( 'WPPR_PATH',dirname( __FILE__ ) );
27
  define( 'WPPR_URL',plugins_url( 'wp-product-review' ) );
28
 
35
  include 'inc/cwp_latest_products_widget.php';
36
  include 'inc/cwp_comment.php';
37
  include 'inc/cwp_js_preloader.php';
 
38
  include 'inc/wppr-main.php';
39
  }