Commits

simplemediacode  committed 59776ce

admin

  • Participants
  • Parent commits 6a6cc6b

Comments (0)

Files changed (2)

File admin/adminipwp.php

 /*
  * itempropwp Admin interface
  * @since 3.1.4
- * @version 1.0
+ * @version 1.1.0
 */
 add_action('admin_menu', 'smc_ipwp_admin_menu');
 
 	register_setting( 'smcipwp-settings', 'smcipwp_maxlenght' );
 	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 */
 }
 
 function smcipwp_settings(){ ?><div class="wrap"><div class="icon32" id="icon-tools"><br /></div>
 $smcipwp_maxlenght = get_option('smcipwp_maxlenght');
 $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 */
 
 if(!$smcipwp_maxlenght||$smcipwp_maxlenght==''){
 	$smcipwp_maxlenght = '170'; /* well, we need some value anyway */
 		<th valign="top"><?php _e('Show dateModified?','itempropwp');?></th>
 		<td valign="top"><input type="checkbox" id="smcipwp_datemodified" name="smcipwp_datemodified" <?php checked($smcipwp_datemodified,'on') ?> /></td>
 	</tr>
+<?php 
+/* 
+Per post options 
+@since 1.5.0 
+*/
+?>
+	<tr>
+		<th valign="top"><?php _e('Per post options','itempropwp');?></th>
+		<td valign="top"><input type="checkbox" id="smcipwp_perpostopt" name="smcipwp_perpostopt" <?php checked($smcipwp_perpostopt,'on') ?> /></td>
+	</tr>
  </table>
     <p class="submit"><input type="submit" class="button-primary" value="<?php _e('Save Changes','itempropwp') ?>" /></p>
 </form>

File itempropwp.php

 <?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.1.4.1-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.1.4.2-itempropWP_load_widgets
 Description: Add human invisible schema.org itemprop code to images
-Version: 3.1.4.1
+Version: 3.1.4.2
 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.1.4.1'); // location general @since 1.0
+	define('SMCIPWPV','3.1.4.2'); // 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