Commits

simplemediacode  committed 4447e3f

= 3.3.1 =

* Review summary fix
* updated: better naming
* updated: review On/Off positions

  • Participants
  • Parent commits bfc86f4

Comments (0)

Files changed (6)

File itemprop_review.php

 	}
 	
 	private function reviewvers(){
-		return '1.0.0';
+		return '1.1.0';
 	}
 
 	public function reviewinit() {
 					$reviewratingrow = '<span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"><meta itemprop="worstRating" content = "1"><meta itemprop="ratingValue" content="'.$itemrating.'"><meta itemprop="bestRating" content="5"></span>';
 				}
 				
+				
+				$review_descr = apply_filters('ipwp_reviewpost_dsc', $reviewpost->post_excerpt); // Extending @since 3.3.1
+				
+				if(!$review_descr){
+					$ipwrp_n = new itempropwp;
+					$review_descr = apply_filters(
+						'ipwp_reviewpost_dsc',
+						$ipwrp_n->ipwp_excerpt_maxchr(
+							get_option('smcipwp_maxlenght'),
+							strip_shortcodes($reviewpost->post_content)
+						)
+					); // Extending @since 3.3.1
+				}
 				$newcontent .= '<span itemprop="review" itemscope itemtype="http://schema.org/Review"><meta itemprop="name" content="'.esc_attr($reviewpost->post_title).'"><meta itemprop="author" content="'.esc_attr(get_the_author_meta( 'display_name', $reviewpost->post_author )).'"><meta itemprop="datePublished" content="'.esc_attr($reviewpost->post_date).'">'
 				.$reviewratingrow.'<span itemprop="itemReviewed" itemscope itemtype="http://schema.org/Product"><meta itemprop="name" content="'.esc_attr($reviewname).'">'
-				.$pricerows.'</span><meta itemprop="description" content="'.esc_attr($reviewpost->post_excerpt).'"></span>';
+				.$pricerows.'</span><meta itemprop="description" content="'.strip_tags(str_replace(array("\r\n", "\n", "\r", "\t"), "", $review_descr)).'"></span>';
 
 				$content = "\n".'<!-- '.IPWPTSN.' '.SMCIPWPV.'/ Review '.$reviewv.' by Rolands Umbrovskis '.IPWPT_HOMEPAGEC.' -->'.$newcontent.'<!-- '.IPWPTSN.' '.SMCIPWPV.'/ Review '.$reviewv.' end -->'."\n";
 			}
 
 		echo '<tr>';
 		echo '<th scope="row"><div class="'.$ipwprprefix.'postcbox-label">';
-		echo '<label for="'.$ipwprprefix.'reviewonoff">'.__("On/Off of item","itempropwp" ).'</label> ';
+			echo '<label for="'.$ipwprprefix.'reviewonoff">'.__("Turn On/Off review mode","itempropwp" ).'</label> ';
 		echo '</div></th>';
 			echo '<td>';
 				echo '<div class="'.$ipwprprefix.'postcbox-input">';
 					echo '<select name="'.$ipwprprefix.'reviewonoff[onoff]" id="'.$ipwprprefix.'reviewonoff">';
-						echo '<option value="on" '.selected($reviewonoff['onoff'], "on", false).'>On</option>';
 						echo '<option value="off" '.selected($reviewonoff['onoff'], "off", false).'>Off</option>';
+						echo '<option value="on" '.selected($reviewonoff['onoff'], "on", false).'>On</option>';
 					echo '</select>';
 				echo '</div>';
 			echo '</td>';

File itempropwp.php

 Plugin Name: itemprop WP for SERP/SEO Rich snippets
 Plugin URI: http://simplemediacode.com/wordpress-pugins/itemprop-wp/?utm_source=wordpress&utm_medium=wpplugin&utm_campaign=itempropWP&utm_content=v-3.3.0-itempropWP_load_widgets
 Description: Add human invisible schema.org itemprop code to images
-Version: 3.3.0
+Version: 3.3.1
 Requires at least: 3.3
 Tested up to: 3.5
 Author: Rolands Umbrovskis
 Copyright (C) 2008-2012, Rolands Umbrovskis - rolands@simplemediacode.com
 
 */
-	define('SMCIPWPV','3.3.0'); // location general @since 1.0
+	define('SMCIPWPV','3.3.1'); // location general @since 1.0
 	define('SMCIPWPM',dirname(__FILE__)); // location general @since 1.0
 	define('SMCIPWPF','itempropwp'); // location folder @since 1.0 
 	define('IPWPT',__('itemprop WP for SERP/SEO Rich snippets','itempropwp')); // Name @since 1.1
 				}
 	
 				if(!$ipwp_post_dsc){
-		$ipwp_n = new itempropwp;
-		$ipwp_post_dsc = apply_filters('ipwp_post_dsc', $ipwp_n->ipwp_excerpt_maxchr(get_option('smcipwp_maxlenght'), strip_shortcodes($thisipwp_post->post_content) )); // Extending @since 3.1
+					$ipwp_n = new itempropwp;
+					$ipwp_post_dsc = apply_filters('ipwp_post_dsc', $ipwp_n->ipwp_excerpt_maxchr(get_option('smcipwp_maxlenght'), strip_shortcodes($thisipwp_post->post_content) )); // Extending @since 3.1
 				}
 				
 				if(get_option('smcipwp_showcommcount')=='on'){

File lang/itempropwp-lv.mo

Binary file modified.

File lang/itempropwp-lv.po

 "Project-Id-Version: itempropwp\n"
 "Report-Msgid-Bugs-To: webapp@mediabox.lv\n"
 "POT-Creation-Date: 2010-03-10 06:11+0000\n"
-"PO-Revision-Date: 2012-11-30 01:06+0200\n"
+"PO-Revision-Date: 2013-01-18 18:55+0200\n"
 "Last-Translator: rolandinsh <rolands@mediabox.lv>\n"
 "Language-Team: Latvian <rolands@mediabox.lv>\n"
 "Language: lv\n"
 msgid "Leave empty and we will use default author page link %s"
 msgstr "Atstāj tukšu un izmantosim noklusēto autora saiti %s"
 
+msgid "%s Review"
+msgstr "%s Atsauksmes"
+
 msgid "Support for version %s"
 msgstr "%s versijas atbalsts"
+
+msgid "Name of item"
+msgstr "Produkta nosaukums"
+
+msgid "Price of item"
+msgstr "Cena"
+
+msgid "Currency of item"
+msgstr "Valūta"
+
+msgid "Rating of item"
+msgstr "Preces novērtējums"
+
+msgid "Turn On/Off review mode"
+msgstr "Ieslēgt/izslēgts atsauksmes iespējas"

File lang/itempropwp.pot

 msgid "Rating of item"
 msgstr ""
 
+msgid "Turn On/Off review mode"
+msgstr ""
+
 Tags: SEO, schema, schema.org, itemprop, schema.org itemprop, images, microdata, rich snippets, richsnippets, SERP, html5, structured data
 Requires at least: 3.3
 Tested up to: 3.5
-Stable tag: 3.3.0
+Stable tag: 3.3.1
 License: simplemediacode
 License URI: http://simplemediacode.com/license/gpl/
 
 
 `
 <span itemscope itemtype="http://schema.org/Article" class="itempropwp-wrap">
-<!-- Itemprop WP 3.3.0 by Rolands Umbrovskis http://umbrovskis.com -->
+<!-- Itemprop WP 3.3.1 by Rolands Umbrovskis http://umbrovskis.com -->
  <meta itemprop="name" content="Title of the Article" />
  <meta itemprop="url" content="http://example.com/seo-optimized-article/" />
  <meta itemprop="image" content="http://example.com/images/example.jpg" />
  <meta itemprop="datePublished" content="2012-09-13 19:17:21" />
  <meta itemprop="dateModified" content="2012-09-29 13:33:25" />
  <meta itemprop="interactionCount" content="UserComments:356" />
-<!-- Itemprop WP 3.3.0 by Rolands Umbrovskis http://umbrovskis.com end -->
+<!-- Itemprop WP 3.3.1 by Rolands Umbrovskis http://umbrovskis.com end -->
 </span>
 `
 
 
 This asumes that Your page is not fully integrated with HTML5's data properties for microdata. This plugin will create small code inside Your `full content`, with extra microdata from schema.org. This will be ONLY on singular pages - post, page or your custom post type.
 
+
 Once we are on singular page:
 
-# NEW in 3.3.0 Review.
 # we will extract from it EXCERPT.
 # If You haven't provided excerpt, plugin will look-up for post content, and downsize it to 170 symbols up to full word.
 # If your content consist ONLY of shortcode, it will strip it out, and leave empty content. :(
 
 == Changelog ==
 
+= 3.3.1  =
+
+* Review summary fix
+* updated: better naming
+* updated: review On/Off positions 
+
 = 3.3.0  =
 
 * new: itemprop="review"
 
 == Upgrade Notice ==
 
+= 3.3.1  =
+
+* Review summary fix
+* updated: better naming
+* updated: review On/Off positions 
+
 = 3.3.0  =
 
 * new: itemprop="review"
 * updated: admin interface for options
 
-= 3.2.0  =
-
-* updated: admin interface for options
-* new: CSS class for wrapper
 
 == Screenshots ==
 1. 3.0 Full futured example http://simplemediacode.com/wordpress-pugins/itemprop-wp/