<?php
/**
 * Plugin Name: Dynamic Product Categories Design
 * Requires Plugins: woocommerce
 * Description: WooCommerce plugin extension to design product categories section in a nice slider and grid layout.
 * Author: DynamicWebLab
 * Author URI:  https://dynamicweblab.com
 * Version: 1.1.16
 * License: GPL2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: dynamic-product-categories-design
 * Domain Path: /languages/
 * @fs_premium_only  /pro
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( function_exists( 'dpcd_fs' ) ) {
    dpcd_fs()->set_basename( true, __FILE__ );
}else{
    /**
     * DO NOT REMOVE THIS IF, IT IS ESSENTIAL FOR THE
     * `function_exists` CALL ABOVE TO PROPERLY WORK.
     */
    if ( !function_exists( 'dpcd_fs' ) ) {
		// Create a helper function for easy SDK access.
		function dpcd_fs() {
			global $dpcd_fs;
	
			if ( !isset( $dpcd_fs ) ) {
				// Activate multisite network integration.
				if ( ! defined( 'WP_FS__PRODUCT_17067_MULTISITE' ) ) {
					define( 'WP_FS__PRODUCT_17067_MULTISITE', true );
				}
	
				// Include Freemius SDK.
				require_once dirname( __FILE__ ) . '/vendor/freemius/start.php';
				$dpcd_fs = fs_dynamic_init( array(
					'id'                  => '17067',
					'slug'                => 'dynamic-product-categories-design',
					'type'                => 'plugin',
					'public_key'          => 'pk_a9ec96ccf01cc93d0984a6f4fae5f',
					'is_premium'     	  => true,
                    'premium_suffix' 	  => 'Pro',
                    'has_addons'     	  => false,
                    'has_paid_plans' 	  => false,
                    'is_live'        	  => true,
                    'trial'          	  => array(
                        'days'               => 7,
                        'is_require_payment' => true,
                    ),
					'menu'                => array(
						'first-path'      => 'edit.php?post_type=dpcd_category_design&page=dpcd_get_help',
						'contact'    	  => false,
                        'support'    	  => false,
					),
				) );
			}
	
			return $dpcd_fs;
		}
	
		// Init Freemius.
		dpcd_fs();
		// Signal that SDK was initiated.
		do_action( 'dpcd_fs_loaded' );
	}
	// ... Your plugin's main file logic ...
	require_once dirname( __FILE__ ) . '/Core.php';

	register_activation_hook( __FILE__, [ \dpcdCategoryDesign\DPCD_Categories_Design::class, 'activate' ] );
}
