Commits

simplemediacode committed 231b3ef

removed whitespaces

Comments (0)

Files changed (2)

 ### Example:
 
 	<span itemscope itemtype="http://schema.org/Article" class="itempropwp-wrap">
-	<!-- Itemprop WP 3.1.3 by Rolands Umbrovskis http://umbrovskis.com -->
+	<!-- Itemprop WP 3.2.1 by Rolands Umbrovskis http://umbrovskis.com -->
 	 <meta itemprop="name" content="Title of the Article" />
 	 <meta itemprop="url" content="http://fulllink.example.com/seo-optimized-article/" />
 	 <meta itemprop="image" content="http://fulllink.example.com/seo-optimized-article/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.1.3 by Rolands Umbrovskis http://umbrovskis.com end -->
+	<!-- Itemprop WP 3.2.1 by Rolands Umbrovskis http://umbrovskis.com end -->
 	</span>
 
 ### How does it work?
 
 ## Changelog
 
+### 3.2.1
+
+* updated: whitespaces in code removed
+
 ### 3.2.0
 
 * updated: admin interface for options
 <?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.2.0-itempropWP_load_widgets
+Plugin URI: http://simplemediacode.com/wordpress-pugins/itemprop-wp/?utm_source=wordpress&utm_medium=wpplugin&utm_campaign=itempropWP&utm_content=v-3.2.1-itempropWP_load_widgets
 Description: Add human invisible schema.org itemprop code to images
-Version: 3.2.0
+Version: 3.2.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.2.0'); // location general @since 1.0
+	define('SMCIPWPV','3.2.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_posth){
-					$ipwp_image = "\n\t".'<meta itemprop="image" content="'.esc_url($ipwp_posth).'" />'."\n\t";
+					$ipwp_image = '<meta itemprop="image" content="'.esc_url($ipwp_posth).'" />'."\n\t";
 				}
 	
 				if(!$ipwp_post_dsc){
 				}
 				
 				if(get_option('smcipwp_showcommcount')=='on'){
-					$showcommcount = "\n\t".'<meta itemprop="interactionCount" content="UserComments:'.esc_attr($thisipwp_post->comment_count).'" />';
+					$showcommcount = '<meta itemprop="interactionCount" content="UserComments:'.esc_attr($thisipwp_post->comment_count).'" />';
 				}
 				if($ipwpdatemodified=='on'){
-					$ipwp_datemodified= "\n\t".'<meta itemprop="dateModified" content="'.esc_attr($thisipwp_post->post_modified).'" />';
+					$ipwp_datemodified= '<meta itemprop="dateModified" content="'.esc_attr($thisipwp_post->post_modified).'" />';
 				}
 
-				$content = $content.'<span itemscope itemtype="http://schema.org/Article" class="itempropwp-wrap">
-<!-- ItemProp WP '.SMCIPWPV.' by Rolands Umbrovskis http://umbrovskis.com -->
-	<meta itemprop="name" content="'.esc_attr($thisipwp_post->post_title).'" />
-	<meta itemprop="url" content="'.esc_url(get_permalink()).'" />'
-	.$ipwp_image.
-	'<meta itemprop="author" content="'.get_author_posts_url($thisipwp_post-> post_author).'" />
-	<meta itemprop="description" content="'.strip_tags(str_replace(array("\r\n", "\n", "\r", "\t"), "", $ipwp_post_dsc)).'"/>
-	<meta itemprop="datePublished" content="'.esc_attr($thisipwp_post->post_date).'" />'
+				$content = $content.'<span itemscope itemtype="http://schema.org/Article" class="itempropwp-wrap"><!-- ItemProp WP '.SMCIPWPV.' by Rolands Umbrovskis http://umbrovskis.com -->
+	<meta itemprop="name" content="'.esc_attr($thisipwp_post->post_title).'" /><meta itemprop="url" content="'.esc_url(get_permalink()).'" />'
+	.$ipwp_image.'<meta itemprop="author" content="'.get_author_posts_url($thisipwp_post-> post_author).'" /><meta itemprop="description" content="'.strip_tags(str_replace(array("\r\n", "\n", "\r", "\t"), "", $ipwp_post_dsc)).'"/><meta itemprop="datePublished" content="'.esc_attr($thisipwp_post->post_date).'" />'
 	.$ipwp_datemodified
-	.$showcommcount.'
-<!-- ItemProp WP '.SMCIPWPV.' by Rolands Umbrovskis http://umbrovskis.com end -->
-</span>';
+	.$showcommcount.'<!-- ItemProp WP '.SMCIPWPV.' by Rolands Umbrovskis http://umbrovskis.com end --></span>';
 				return $content;
 			}
 			return $content;