'aigpl-plugin-notice'), admin_url('plugins.php') );
$notice_transient = get_transient( 'aigpl_install_notice' );
if( $notice_transient == false && $pagenow == 'plugins.php' && file_exists( $dir ) && current_user_can( 'install_plugins' ) ) {
echo '
'.sprintf( __('Thank you for activating %s', 'album-and-image-gallery-plus-lightbox'), 'Album and Image Gallery Plus Lightbox').'.
'.sprintf( __('It looks like you had PRO version %s of this plugin activated. To avoid conflicts the extra version has been deactivated and we recommend you delete it.', 'album-and-image-gallery-plus-lightbox'), '(Album and Image Gallery Plus Lightbox PRO)' ).'
';
}
}
add_action( 'admin_notices', 'aigpl_plugin_admin_notice');
/**
* Plugin Setup (On Deactivation)
*
* Delete plugin options.
*
* @package Album and Image Gallery Plus Lightbox
* @since 1.0.0
*/
function aigpl_uninstall() {
// IMP need to flush rules for custom registered post type
flush_rewrite_rules();
}
// Taking some globals
global $aigpl_gallery_render;
// Functions file
require_once( AIGPL_DIR . '/includes/aigpl-functions.php' );
// Plugin Post Type File
require_once( AIGPL_DIR . '/includes/aigpl-post-types.php' );
// Admin Class File
require_once( AIGPL_DIR . '/includes/admin/class-aigpl-admin.php' );
// Script Class File
require_once( AIGPL_DIR . '/includes/class-aigpl-script.php' );
// Shortcode File
require_once( AIGPL_DIR . '/includes/shortcode/aigpl-gallery.php' );
require_once( AIGPL_DIR . '/includes/shortcode/aigpl-gallery-slider.php' );
require_once( AIGPL_DIR . '/includes/shortcode/aigpl-gallery-album.php' );
require_once( AIGPL_DIR . '/includes/shortcode/aigpl-gallery-album-slider.php' );
// How it work file, Load admin files
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
require_once( AIGPL_DIR . '/includes/admin/aigpl-how-it-work.php' );
}
/* Plugin Wpos Analytics Data Starts */
function wpos_analytics_anl29_load() {
require_once dirname( __FILE__ ) . '/wpos-analytics/wpos-analytics.php';
$wpos_analytics = wpos_anylc_init_module( array(
'id' => 29,
'file' => plugin_basename( __FILE__ ),
'name' => 'Album and Image Gallery Plus Lightbox',
'slug' => 'album-and-image-gallery-plus-lightbox',
'type' => 'plugin',
'menu' => 'edit.php?post_type=aigpl_gallery',
'text_domain' => 'album-and-image-gallery-plus-lightbox',
'promotion' => array(
'bundle' => array(
'name' => 'Download FREE 50+ Plugins, 10+ Themes and Dashboard Plugin',
'desc' => 'Download FREE 50+ Plugins, 10+ Themes and Dashboard Plugin',
'file' => 'https://www.wponlinesupport.com/latest/wpos-free-50-plugins-plus-12-themes.zip'
)
),
'offers' => array(
'trial_premium' => array(
'image' => 'http://analytics.wponlinesupport.com/?anylc_img=29',
'link' => 'http://analytics.wponlinesupport.com/?anylc_redirect=29',
'desc' => 'Or start using the plugin from admin menu',
)
),
));
return $wpos_analytics;
}
// Init Analytics
wpos_analytics_anl29_load();
/* Plugin Wpos Analytics Data Ends */