1. simplemediacode
  2. itempropwp

Commits

simplemediacode  committed edc7d27

fixer:20121115

  • Participants
  • Parent commits 231b3ef
  • Branches master

Comments (0)

Files changed (5)

File admin/adminipwp.php

View file
 	register_setting( 'smcipwp-settings', 'smcipwp_showcommcount' );
 	register_setting( 'smcipwp-settings', 'smcipwp_datemodified' );
 	register_setting( 'smcipwp-settings', 'smcipwp_perpostopt' ); /* Per post options @since 1.5.0 */
+	register_setting( 'smcipwp-settings', 'smcipwp_author_link' ); /* Per post options @since 3.3.0 */
 }
 
 function smcipwp_settings(){ ?><div class="wrap"><img src="<?php echo SMCIPWPURL;?>assets/img/itempropwp-icon-64.jpg" alt="itempropWP" style="float: left; display:inline; margin-right:10px;" />
 $smcipwp_showcommcount = get_option('smcipwp_showcommcount');
 $smcipwp_datemodified = get_option('smcipwp_datemodified');
 $smcipwp_perpostopt=  get_option('smcipwp_perpostopt'); /* Per post options @since 1.5.0 */
+$smcipwp_author_link=  get_option('smcipwp_author_link'); /* Per post options @since 3.3.0 */
+
 
 if(!$smcipwp_maxlenght||$smcipwp_maxlenght==''){
 	$smcipwp_maxlenght = '170'; /* well, we need some value anyway */
 	</tr>
 <?php 
 /* 
+Single author link
+@since 3.3.0
+*/
+$iareuserdata = wp_get_current_user(); /* I.R. :) */
+$iareuser = $iareuserdata->user_login; /* I.R. Baboon :) */
+?>
+	<tr>
+		<th valign="top"><?php _e('Author link','itempropwp');?></th>
+		<td valign="top">
+			<input type="text" id="smcipwp_author_link" name="smcipwp_author_link" value="<?php echo $smcipwp_author_link;?>" /><br />
+			<?php _e('if there is only 1 author and You would like to link to ano ther author page in itemprop','itempropwp');?>. 
+			<?php 
+			printf(
+				__( 'leave empty and we will use default author page link %s','itempropwp' ),
+				get_home_url().'/author/'.$iareuser
+			);
+			?>
+		</td>
+	</tr>
+<?php 
+/* 
 Per post options 
 @since 1.5.0 
 */

File lang/itempropwp-lv.mo

Binary file modified.

File lang/itempropwp-lv.po

View file
 "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-10-05 19:31+0200\n"
+"PO-Revision-Date: 2012-11-07 10:58+0200\n"
 "Last-Translator: rolandinsh <rolands@mediabox.lv>\n"
 "Language-Team: Latvian <rolands@mediabox.lv>\n"
 "MIME-Version: 1.0\n"
 msgstr "Rādīt komentāru skaitu?"
 
 msgid "Show dateModified?"
-msgstr ""
+msgstr "Rādīt dateModified?"
 
 msgid "Save Changes"
 msgstr "Saglabāt izmaiņas"
 
+msgid "Author link"
+msgstr "Autora lapas saite"
+
+msgid "if there is only 1 author and You would like to link to another author page in itemprop"
+msgstr "ja ir tikai 1 autors un vēlies norādīt citu autora profila lapu savā itemprop"
+

File lang/itempropwp.pot

View file
 
 msgid "Save Changes"
 msgstr ""
+
+msgid "Author link"
+msgstr ""
+
+msgid "if there is only 1 author and You would like to link to another author page in itemprop"
+msgstr ""
+
+

File readme.txt

View file
 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.2.0
+Stable tag: 3.2.1
 License: simplemediacode
 License URI: http://simplemediacode.com/license/gpl/
 
 
 `
 <span itemscope itemtype="http://schema.org/Article" class="itempropwp-wrap">
-<!-- Itemprop WP 3.1.4.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://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.1.4.3 by Rolands Umbrovskis http://umbrovskis.com end -->
+<!-- Itemprop WP 3.2.1 by Rolands Umbrovskis http://umbrovskis.com end -->
 </span>
 `