Plugin Directory

Changeset 398357


Ignore:
Timestamp:
06/17/2011 01:09:32 PM (15 years ago)
Author:
blepoxp
Message:

Updating trunk to generate new POT file

Location:
simplemap/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simplemap/trunk/readme.txt

    r385672 r398357  
    66Requires at least: 2.8
    77Tested up to: 3.2
    8 Stable tag: 2.2.3
     8Stable tag: 2.2.4
    99
    1010SimpleMap is an easy-to-use international store locator plugin that uses Google Maps to display information directly on your WordPress site.
     
    8686
    8787== Changelog ==
     88
     89= 2.2.4 =
     90* Updating POT files
     91* Notice of premium service cost increase on June 25, 2011.
    8892
    8993= 2.2.3 =
  • simplemap/trunk/simplemap.php

    r385672 r398357  
    22/*
    33Plugin Name: SimpleMap
    4 Version: 2.2.3
     4Version: 2.2.4
    55Plugin URI: http://simplemap-plugin.com/
    66Author: Glenn Ansley
     
    2020
    2121    // Plugin Version Number
    22     define( 'SIMPLEMAP_VERSION', '2.2.3' );
     22    define( 'SIMPLEMAP_VERSION', '2.2.4' );
    2323
    2424    if ( !defined( 'WP_PLUGIN_DIR' ) ) {
     
    116116        $simplemap_ps = new FT_Premium_Support_Client( $config );
    117117
     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
    118145?>
Note: See TracChangeset for help on using the changeset viewer.