Plugin Directory

Changeset 1513389


Ignore:
Timestamp:
10/12/2016 01:37:20 PM (9 years ago)
Author:
commercepundit
Message:

Added custom analytics and other bug fixes

Location:
cp-image-gallery/trunk
Files:
134 added
1 edited

Legend:

Unmodified
Added
Removed
  • cp-image-gallery/trunk/cp-image-gallery.php

    r1455099 r1513389  
    1111License URI: http://www.opensource.org/licenses/gpl-license.php
    1212*/
     13// Create a helper function for easy SDK access.
     14function cig_fs() {
     15    global $cig_fs;
    1316
     17    if ( ! isset( $cig_fs ) ) {
     18        // Include Freemius SDK.
     19        require_once dirname(__FILE__) . '/freemius/start.php';
     20
     21        $cig_fs = fs_dynamic_init( array(
     22            'id'                => '466',
     23            'slug'              => 'cp-image-gallery',
     24            'type'              => 'plugin',
     25            'public_key'        => 'pk_0c44b918c344ee5077308d01fb51f',
     26            'is_premium'        => false,
     27            'has_addons'        => false,
     28            'has_paid_plans'    => false,
     29            'menu'              => array(
     30                'slug'       => 'cp-image-gallery',
     31                'account'    => false,
     32                'contact'    => false,
     33                'support'    => false,
     34            ),
     35        ) );
     36    }
     37
     38    return $cig_fs;
     39}
     40
     41// Init Freemius.
     42cig_fs();
    1443// Exit if accessed directly
    1544if ( ! defined( 'ABSPATH' ) ) exit;
Note: See TracChangeset for help on using the changeset viewer.