Plugin Directory

Changeset 1517287


Ignore:
Timestamp:
10/18/2016 12:13:56 PM (9 years ago)
Author:
commercepundit
Message:

Updated Code for analytics and added Security Patch

Location:
cp-simple-newsletter/trunk
Files:
266 added
1 edited

Legend:

Unmodified
Added
Removed
  • cp-simple-newsletter/trunk/cp-simple-newsletter.php

    r1418555 r1517287  
    44Plugin URI: http://example.com
    55Description: Simple Newsletter form with sortcode to show anywhere on website.
    6 Version: 1.0
     6Version: 1.1
    77Author: Commercepundit
    88Author URI: http://www.commercepundit.com/
     
    1818$newsletter_table_db_version = '1.1'; // version changed from 1.0 to 1.1
    1919
     20
     21// Create a helper function for easy SDK access.
     22function csn_fs() {
     23    global $csn_fs;
     24
     25    if ( ! isset( $csn_fs ) ) {
     26        // Include Freemius SDK.
     27        require_once dirname(__FILE__) . '/freemius/start.php';
     28
     29        $csn_fs = fs_dynamic_init( array(
     30            'id'                => '482',
     31            'slug'              => 'cp-simple-newsletter',
     32            'type'              => 'plugin',
     33            'public_key'        => 'pk_151f04d12a8ee77aca5b5aef629b9',
     34            'is_premium'        => false,
     35            'has_addons'        => false,
     36            'has_paid_plans'    => false,
     37            'menu'              => array(
     38                'slug'       => 'cp-simple-newsletter',
     39                'contact'    => false,
     40                'support'    => false,
     41            ),
     42        ) );
     43    }
     44
     45    return $csn_fs;
     46}
     47
     48// Init Freemius.
     49csn_fs();
    2050/**
    2151 * register_activation_hook implementation
Note: See TracChangeset for help on using the changeset viewer.