WP Review - Version 4.0.7

Version Description

  • Fixed widget title issue
Download this release

Release Info

Developer MyThemeShop
Plugin Icon 128x128 WP Review
Version 4.0.7
Comparing to
See all releases

Code changes from version 4.0.6 to 4.0.7

Files changed (3) hide show
  1. includes/widget.php +8 -6
  2. readme.txt +26 -28
  3. wp-review.php +1 -1
includes/widget.php CHANGED
@@ -31,7 +31,7 @@ class wp_review_tab_widget extends WP_Widget {
31
 
32
  function form( $instance ) {
33
  $instance = wp_parse_args( (array) $instance, array(
34
- 'title' => '',
35
  'tabs' => array('toprated' => 1, 'recent' => 1, 'mostvoted' => 0, 'custom' => 0),
36
  'tab_order' => array('toprated' => 1, 'recent' => 2, 'mostvoted' => 3, 'custom' => 4),
37
  'tab_titles' => array('toprated' => __('Top Rated'), 'recent' => __('Recent'), 'mostvoted' => __('Most Voted'), 'custom' => __('Editor\'s choice')),
@@ -44,13 +44,14 @@ class wp_review_tab_widget extends WP_Widget {
44
  'custom_reviews' => '',
45
  'title_length' => apply_filters( 'wpt_title_length_default', '15' )
46
  ));
 
47
  extract($instance);
48
  ?>
49
  <div class="wp_review_tab_options_form">
50
 
51
  <p>
52
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:','mythemeshop' ); ?></label>
53
- <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
54
  </p>
55
 
56
  <h4><?php _e('Select Tabs', 'wp-review'); ?></h4>
@@ -187,7 +188,7 @@ class wp_review_tab_widget extends WP_Widget {
187
 
188
  function update( $new_instance, $old_instance ) {
189
  $instance = $old_instance;
190
- $instance['title'] = strip_tags( $new_instance['title'] );
191
  $instance['tabs'] = $new_instance['tabs'];
192
  $instance['tab_order'] = $new_instance['tab_order'];
193
  $instance['tab_titles'] = wp_kses_post($new_instance['tab_titles']);
@@ -198,12 +199,13 @@ class wp_review_tab_widget extends WP_Widget {
198
  $instance['thumb_size'] = $new_instance['thumb_size'];
199
  $instance['show_date'] = $new_instance['show_date'];
200
  $instance['custom_reviews'] = $new_instance['custom_reviews'];
 
201
  return $instance;
202
  }
203
  function widget( $args, $instance ) {
204
  extract($args, EXTR_SKIP);
205
  extract($instance, EXTR_SKIP);
206
- $title = apply_filters( 'widget_title', $title );
207
  wp_enqueue_script( 'wp_review_tab_widget' );
208
  wp_enqueue_script( 'wp_review-js' );
209
  wp_enqueue_style( 'wp_review-style' );
@@ -230,7 +232,7 @@ class wp_review_tab_widget extends WP_Widget {
230
 
231
  ?>
232
  <?php echo $before_widget;
233
- if ( ! empty( $title ) ) echo $before_title . $title . $after_title; ?>
234
  <div class="wp_review_tab_widget_content" id="<?php echo $widget_id; ?>_content">
235
  <ul class="wp-review-tabs <?php echo "has-$tabs_count-"; ?>tabs">
236
  <?php foreach ($available_tabs as $tab => $label) : ?>
31
 
32
  function form( $instance ) {
33
  $instance = wp_parse_args( (array) $instance, array(
34
+ 'widget_title' => '',
35
  'tabs' => array('toprated' => 1, 'recent' => 1, 'mostvoted' => 0, 'custom' => 0),
36
  'tab_order' => array('toprated' => 1, 'recent' => 2, 'mostvoted' => 3, 'custom' => 4),
37
  'tab_titles' => array('toprated' => __('Top Rated'), 'recent' => __('Recent'), 'mostvoted' => __('Most Voted'), 'custom' => __('Editor\'s choice')),
44
  'custom_reviews' => '',
45
  'title_length' => apply_filters( 'wpt_title_length_default', '15' )
46
  ));
47
+
48
  extract($instance);
49
  ?>
50
  <div class="wp_review_tab_options_form">
51
 
52
  <p>
53
+ <label for="<?php echo $this->get_field_id( 'widget_title' ); ?>"><?php _e( 'Title:','mythemeshop' ); ?></label>
54
+ <input class="widefat" id="<?php echo $this->get_field_id( 'widget_title' ); ?>" name="<?php echo $this->get_field_name( 'widget_title' ); ?>" type="text" value="<?php echo esc_attr( $widget_title ); ?>" />
55
  </p>
56
 
57
  <h4><?php _e('Select Tabs', 'wp-review'); ?></h4>
188
 
189
  function update( $new_instance, $old_instance ) {
190
  $instance = $old_instance;
191
+ $instance['widget_title'] = strip_tags( $new_instance['widget_title'] );
192
  $instance['tabs'] = $new_instance['tabs'];
193
  $instance['tab_order'] = $new_instance['tab_order'];
194
  $instance['tab_titles'] = wp_kses_post($new_instance['tab_titles']);
199
  $instance['thumb_size'] = $new_instance['thumb_size'];
200
  $instance['show_date'] = $new_instance['show_date'];
201
  $instance['custom_reviews'] = $new_instance['custom_reviews'];
202
+
203
  return $instance;
204
  }
205
  function widget( $args, $instance ) {
206
  extract($args, EXTR_SKIP);
207
  extract($instance, EXTR_SKIP);
208
+ $widget_title = apply_filters( 'widget_title', $widget_title );
209
  wp_enqueue_script( 'wp_review_tab_widget' );
210
  wp_enqueue_script( 'wp_review-js' );
211
  wp_enqueue_style( 'wp_review-style' );
232
 
233
  ?>
234
  <?php echo $before_widget;
235
+ if ( ! empty( $widget_title ) ) echo $before_title . $widget_title . $after_title; ?>
236
  <div class="wp_review_tab_widget_content" id="<?php echo $widget_id; ?>_content">
237
  <ul class="wp-review-tabs <?php echo "has-$tabs_count-"; ?>tabs">
238
  <?php foreach ($available_tabs as $tab => $label) : ?>
readme.txt CHANGED
@@ -3,32 +3,31 @@ Contributors: mythemeshop
3
  Creator's website link: http://mythemeshop.com/plugins/wp-review/
4
  Tags: review, wp review, rating, wp rating, user rating, google rating, star rating, product review
5
  Requires at least: 3.0.1
6
- Tested up to: 4.4
7
- Stable tag: 4.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Create reviews! Choose from Stars, Percentages or Points for review scores. Supports Retina Display, WPMU & Unlimited Color Schemes.
12
 
13
  == Description ==
14
-
15
  [youtube https://www.youtube.com/watch?v=IvJUHKNYAMc]
16
 
17
  = Complete Setup Tutorial =
18
  [youtube https://www.youtube.com/watch?v=NzMe-QY_WZY]
19
 
 
20
 
21
- Did you always want to increase the user interaction on your website by rating products/services/anything? We at <a href="http://mythemeshop.com/">MyThemeShop</a> understand your need, & created a premium Review plugin. We are now distributing it for FREE to give back to the WordPress community. We have been given so much by the WordPress community, it's time to give back.
22
 
23
- **WP Review plugin** is an easy yet powerful way to review content easily, without affecting the speed of your site. If you're a blogger, you probably occasionally review or rank products, services, tools, recipes, or other content on your site. WP Review plugin is a customizable and lightweight way to create reviews, using stars, percentage or point rating, and it includes support for translation, WPMU, Google rich snippets and unlimited colors. Just install it and follow the simple configuration instructions to place it in your desired location.
 
 
 
24
 
25
- = Live Demos =
26
- See WP Review in action on our demo pages:
27
- * <a href="http://demo.mythemeshop.com/point/fatebuntur-stoici-haec-omnia-dicta-esse-praeclare/" target="_blank">Star Review Type</a>
28
- * <a href="http://demo.mythemeshop.com/point/modo-etiam-paulum-ad-dexteram-de-via-declinavi/" target="_blank">Point Review Type</a>
29
- * <a href="http://demo.mythemeshop.com/point/sed-nonne-merninisti-licere-mihi-ista-probare/" target="_blank">Percentage Review Type</a>
30
 
31
- = Why WP Review from <a href="http://mythemeshop.com">MyThemeShop</a>: =
32
  * Fastest review plugin.
33
  * Stars, percentage and point rating system.
34
  * Supports Google Rich Snippets(schema.org)
@@ -39,6 +38,7 @@ See WP Review in action on our demo pages:
39
  * Included tabbed widget to show recent reviews and popular reviews.
40
  * WP Multisite and Multiuser (WPMU / WPMS / WordPress MU) compatible.
41
  * Design it as you want, unlimited color options.
 
42
  * Translation Ready.
43
  * Reviews are displayed to visitors in a friendly format.
44
  * Completely customizable, including which fields to ask for, require, and show.
@@ -46,26 +46,17 @@ See WP Review in action on our demo pages:
46
  * Works with caching plugins and all majority of themes.
47
  * Easy to modify the CSS to better fit your theme style.
48
  * Support for adding your own custom fields.
49
- * Minimalist, lightweight, and efficient code means that your users won’t notice any hiccups.
50
  * Position it above or below the content with ease and no coding.
51
- * Supports Shortcode `[wp-review]` to show review anywhere in post.
52
  * Developer friendly - Useful filters are included! So you can use it in your themes.
53
 
54
  = Support =
 
55
 
56
- All support for this plugin is provided through our forums. If you have not registered yet, you can do so here for **FREE** <br>
57
- <a href=“https://mythemeshop.com/#signup”>https://mythemeshop.com/#signup</a>
58
-
59
- If after checking our Free WordPress video tutorials here:<br>
60
- <a href=“https://mythemeshop.com/wordpress-101/”>https://mythemeshop.com/wordpress-101/</a><br>
61
- &<br>
62
- <a href=“https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/“>https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/</a><br>
63
- <br>
64
- you are still stuck, please feel free to open a new thread, and a member of our support team will be happy to help.<br>
65
 
66
- Support link:<br>
67
- <a href=“https://community.mythemeshop.com/forum/11-free-plugin-support/”>https://community.mythemeshop.com/forum/11-free-plugin-support/</a><br>
68
- <br>
69
 
70
  = Developer Zone =
71
  Yes, this plugin is so developer friendly, so you could use it with any theme you develop. Define default CSS, custom position, one line integration in your theme's code.
@@ -73,12 +64,16 @@ Yes, this plugin is so developer friendly, so you could use it with any theme yo
73
  Show average review in your theme using below function:
74
  `<?php if (function_exists('wp_review_show_total')) wp_review_show_total(); ?>`
75
 
76
- You can find full list of the available filters here <a href="https://github.com/MyThemeShop/WP-Review-by-MyThemeShop/blob/master/filter-list.php" target="_blank">https://github.com/MyThemeShop/WP-Review-by-MyThemeShop/blob/master/filter-list.php</a>.
 
 
 
 
77
 
78
- GitHub link: <a href="https://github.com/MyThemeShop/WP-Review-by-MyThemeShop">https://github.com/MyThemeShop/WP-Review-by-MyThemeShop</a>
79
 
80
  = Feedback =
81
- If you like this plugin, then please leave us a good rating and review.<br> Consider following us on <a rel="author" href="https://plus.google.com/+Mythemeshop/">Google+</a>, <a href="https://twitter.com/MyThemeShopTeam">Twitter</a>, and <a href="https://www.facebook.com/MyThemeShop">Facebook</a>
 
82
 
83
  == Installation ==
84
 
@@ -107,6 +102,9 @@ Please disable all plugins and check if rating is working properly. Then you can
107
 
108
  == Changelog ==
109
 
 
 
 
110
  = 4.0.6 =
111
  * Embedded full video tutorial
112
 
3
  Creator's website link: http://mythemeshop.com/plugins/wp-review/
4
  Tags: review, wp review, rating, wp rating, user rating, google rating, star rating, product review
5
  Requires at least: 3.0.1
6
+ Tested up to: 4.7
7
+ Stable tag: 4.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Create reviews! Choose from Stars, Percentages or Points for review scores. Supports Retina Display, WPMU & Unlimited Color Schemes.
12
 
13
  == Description ==
 
14
  [youtube https://www.youtube.com/watch?v=IvJUHKNYAMc]
15
 
16
  = Complete Setup Tutorial =
17
  [youtube https://www.youtube.com/watch?v=NzMe-QY_WZY]
18
 
19
+ Did you always want to increase the user interaction on your website by rating products/services/anything? We at <a rel="nofollow" href="http://mythemeshop.com/">MyThemeShop</a> understand your need, & created a premium Review plugin. We are now distributing it for FREE to give back to the WordPress community. We have been given so much by the WordPress community, it's time to give back.
20
 
21
+ **WP Review plugin** is an easy yet powerful way to review content easily, without affecting the speed of your site. If you're a blogger, you probably occasionally review or rank products, services, tools, recipes, or other content on your site. <a rel="nofollow" href="https://mythemeshop.com/plugins/wp-review/">WP Review plugin</a> is a customizable and lightweight way to create reviews, using stars, percentage or point rating, and it includes support for translation, WPMU, Google rich snippets and unlimited colors. Just install it and follow the simple configuration instructions to place it in your desired location.
22
 
23
+ Check the live demos of different Review types offered
24
+ * <a rel="nofollow" href="http://demo.mythemeshop.com/point/fatebuntur-stoici-haec-omnia-dicta-esse-praeclare/"><strong>Star Review</strong></a>
25
+ * <a rel="nofollow" href="http://demo.mythemeshop.com/point/modo-etiam-paulum-ad-dexteram-de-via-declinavi/"><strong>Point Review</strong></a>
26
+ * <a rel="nofollow" href="http://demo.mythemeshop.com/point/sed-nonne-merninisti-licere-mihi-ista-probare/"><strong>Percentage Review</strong></a>
27
 
28
+ You can also check <a rel="nfollow" href="https://mythemeshop.com/plugins/wp-review-pro/">WP Review Pro</a> which is one of the best <a rel="nofollow" href="https://mythemeshop.com/plugins/">Premium WordPress Plugins</a> for creating extraordinary reviews on your <a rel="nofollow" href="https://mythemeshop.com/blog/">WordPress blog</a> and website.
 
 
 
 
29
 
30
+ = Why WP Review from <a rel="nofollow" href="http://mythemeshop.com/">MyThemeShop</a>: =
31
  * Fastest review plugin.
32
  * Stars, percentage and point rating system.
33
  * Supports Google Rich Snippets(schema.org)
38
  * Included tabbed widget to show recent reviews and popular reviews.
39
  * WP Multisite and Multiuser (WPMU / WPMS / WordPress MU) compatible.
40
  * Design it as you want, unlimited color options.
41
+ * Easily use it in both Free and <a rel="nofollow" href="https://mythemeshop.com/themes/">Premium WordPress Themes.
42
  * Translation Ready.
43
  * Reviews are displayed to visitors in a friendly format.
44
  * Completely customizable, including which fields to ask for, require, and show.
46
  * Works with caching plugins and all majority of themes.
47
  * Easy to modify the CSS to better fit your theme style.
48
  * Support for adding your own custom fields.
49
+ * Minimalist, lightweight, and efficient code means that your users wonít notice any hiccups.
50
  * Position it above or below the content with ease and no coding.
51
+ * Supports Shortcode [wp-review] to show review anywhere in post.
52
  * Developer friendly - Useful filters are included! So you can use it in your themes.
53
 
54
  = Support =
55
+ All support for this plugin is provided through our forums. If you have not registered yet, you can do so for FREE by <a rel="nofollow" href="https://mythemeshop.com/#signup">**signing up**</a> on our website.
56
 
57
+ You can also check our <a rel="nofollow" href="https://mythemeshop.com/wordpress-101/">WordPress Training videos</a>
 
 
 
 
 
 
 
 
58
 
59
+ If you still feel stuck, please feel free to open a new thread on our <a rel="nofollow" href="https://community.mythemeshop.com/forum/11-free-plugin-support/">Support Forum</a>. A member of our support team will be happy to help.
 
 
60
 
61
  = Developer Zone =
62
  Yes, this plugin is so developer friendly, so you could use it with any theme you develop. Define default CSS, custom position, one line integration in your theme's code.
64
  Show average review in your theme using below function:
65
  `<?php if (function_exists('wp_review_show_total')) wp_review_show_total(); ?>`
66
 
67
+ You can find full list of the available filters here https://github.com/MyThemeShop/WP-Review-by-MyThemeShop/blob/master/filter-list.php.
68
+
69
+ GitHub link: https://github.com/MyThemeShop/WP-Review-by-MyThemeShop
70
+
71
+ You can also use the WP Review plugin for creating product reviews and pair it up with a <a rel="nofollow" href="https://mythemeshop.com/theme-category/wordpress-ecommerce-themes/">WordPress Ecommerce Theme</a> to increase the trust of new users on your website.
72
 
 
73
 
74
  = Feedback =
75
+ If you like this plugin, then please consider leaving us a good rating and a review feedback</a>.
76
+ If would like, you can follow us on <a rel="nofollow" href="https://plus.google.com/+Mythemeshop/">Google+</a>, <a rel="nofollow" href="https://twitter.com/MyThemeShopTeam">Twitter</a>, and <a rel="nofollow" href="https://www.facebook.com/MyThemeShop">Facebook</a>
77
 
78
  == Installation ==
79
 
102
 
103
  == Changelog ==
104
 
105
+ = 4.0.7 =
106
+ * Fixed widget title issue
107
+
108
  = 4.0.6 =
109
  * Embedded full video tutorial
110
 
wp-review.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Review
4
  * Plugin URI: http://mythemeshop.com/plugins/wp-review/
5
  * Description: Create reviews! Choose from stars, percentages or points for review scores. Supports Retina Display, WPMU and Unlimited Color Schemes.
6
- * Version: 4.0.6
7
  * Author: MyThemesShop
8
  * Author URI: http://mythemeshop.com/
9
  *
3
  * Plugin Name: WP Review
4
  * Plugin URI: http://mythemeshop.com/plugins/wp-review/
5
  * Description: Create reviews! Choose from stars, percentages or points for review scores. Supports Retina Display, WPMU and Unlimited Color Schemes.
6
+ * Version: 4.0.7
7
  * Author: MyThemesShop
8
  * Author URI: http://mythemeshop.com/
9
  *