Changeset 398357
- Timestamp:
- 06/17/2011 01:09:32 PM (15 years ago)
- Location:
- simplemap/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
simplemap.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simplemap/trunk/readme.txt
r385672 r398357 6 6 Requires at least: 2.8 7 7 Tested up to: 3.2 8 Stable tag: 2.2. 38 Stable tag: 2.2.4 9 9 10 10 SimpleMap is an easy-to-use international store locator plugin that uses Google Maps to display information directly on your WordPress site. … … 86 86 87 87 == Changelog == 88 89 = 2.2.4 = 90 * Updating POT files 91 * Notice of premium service cost increase on June 25, 2011. 88 92 89 93 = 2.2.3 = -
simplemap/trunk/simplemap.php
r385672 r398357 2 2 /* 3 3 Plugin Name: SimpleMap 4 Version: 2.2. 34 Version: 2.2.4 5 5 Plugin URI: http://simplemap-plugin.com/ 6 6 Author: Glenn Ansley … … 20 20 21 21 // Plugin Version Number 22 define( 'SIMPLEMAP_VERSION', '2.2. 3' );22 define( 'SIMPLEMAP_VERSION', '2.2.4' ); 23 23 24 24 if ( !defined( 'WP_PLUGIN_DIR' ) ) { … … 116 116 $simplemap_ps = new FT_Premium_Support_Client( $config ); 117 117 118 /** 119 * Adds discount notice to plugin on upgrade 120 */ 121 function sm_call_discount() { 122 123 // Kill notice 124 if ( isset( $_GET['remove_sm_discount'] ) ) 125 update_option( 'sm_show_discount', SIMPLEMAP_VERSION ); 126 127 if ( version_compare( get_option( 'sm_show_discount' ), SIMPLEMAP_VERSION, '<' ) ) 128 add_action( 'admin_notices', 'sm_discount_notice' ); 129 130 } 131 add_action( 'admin_init', 'sm_call_discount' ); 132 133 /** 134 * This displays the option to purchase with discount 135 */ 136 function sm_discount_notice() { 137 138 $link = 'http://simplemap-plugin.com/2011/06/premium-support-price-increase/'; 139 $no_thanks = 'plugins.php?remove_sm_discount'; 140 echo "<div class='update-nag'>" . sprintf( __( "SimpleMap Premium Support is increasing from 30.00 a year to $42.00 a year on June 25! Puchase it now before the price increases.<br /><a href='%s' target='_blank'>Purchase for $30 now</a> | <a href='%s'>Remove notification</a>." ), $link, $no_thanks ) . "</div>"; 141 142 } 143 144 118 145 ?>
Note: See TracChangeset
for help on using the changeset viewer.