<?php
use com\cminds\registration\controller\SettingsController;
use com\cminds\registration\App;
ob_start();
include plugin_dir_path(__FILE__) . 'views/plugin_compare_table.php';
$plugin_compare_table = ob_get_contents();
ob_end_clean();
$activation_redirect_wizard = get_option('cmreg_AddWizardMenu', 1);
$cminds_plugin_config = array(
    'plugin-is-pro'                 => App::isPro(),
    'plugin-has-addons'             => TRUE,
    'plugin-is-addon'               => FALSE,
    'plugin-version'                => App::VERSION,
    'plugin-abbrev'                 => App::PREFIX,
    'plugin-affiliate'              => '',
    'plugin-redirect-after-install' => $activation_redirect_wizard ? admin_url( 'admin.php?page=cmreg_setup_wizard' ) : admin_url( 'admin.php?page=' . SettingsController::getMenuSlug() ),
    'plugin-settings-url'           => admin_url( 'admin.php?page=' . SettingsController::getMenuSlug() ),
    'plugin-show-guide'             => TRUE,
    'plugin-campign'				=> '?utm_source=cmregfree&utm_campaign=freeupgrade',
    'plugin-guide-text'             => '    <div style="display:block">
        <ol>
            <li>Go to <strong>"Plugin Settings"</strong> and configure the desired behavior of the login and logout</li>
            <li>Use the css class <strong>"cmreg-login-click"</strong> and add it to a link in your site navigation</li>
            <li>Alternatively use the shortcode  <strong>"[cmreg-login]Login[/cmreg-login]" </strong> in your site side bar widget.</li>
            <li><strong>Troubleshooting:</strong> Make sure your site does not have any JavaScript error which might prevent registraion popup from appearing</li>
        </ol>
    </div>',
    'plugin-guide-video-height'     => 240,
    'plugin-guide-videos'           => array(
        array( 'title' => 'Installation tutorial', 'video_id' => '158514902' ),
    ),
    'plugin-addons'                 => array(
        array(
			'title' => 'Email Blacklist Registration',
			'description' => 'Block unwanted email registrations on your site with this email blacklist plugin. Protect your site by preventing spam sign-ups.',
			'link' => 'https://wordpress.org/plugins/cm-email-blacklist/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPEmailDomainBlacklistS.png',
		),
		array(
			'title' => 'Custom Reports Plugin',
			'description' => 'Generate custom reports and get efficient analytics for your site with the custom reports plugin. Filter data and create tailored reports.',
			'link' => 'https://wordpress.org/plugins/cm-custom-reports/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPReportsS.png',
		),
		array(
			'title' => 'Questions and Answers Forum',
			'description' => 'Manage Q&A forums with the WordPress questions and answers plugin. Let users ask questions, provide answers, and engage with your community.',
			'link' => 'https://wordpress.org/plugins/cm-answers/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPQuestionsAndAnswersS.png',
		),
		array(
			'title' => 'Header and Footer Plugin',
			'description' => 'Add custom CSS and JavaScript to headers and footers on your site with the header and footer plugin for enhanced control and design.',
			'link' => 'https://wordpress.org/plugins/cm-header-footer-script-loader/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPHeaderAndFooterScriptLoaderS.png',
		),
		array(
			'title' => 'Video Lessons Manager',
			'description' => 'Create and display video lessons on your site by importing Vimeo videos. Organize content and track students with this efficient LMS plugin.',
			'link' => 'https://wordpress.org/plugins/cm-video-lesson-manager/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPVideoLessonsManagerS.png',
		),
		array(
			'title' => 'Map Locations Manager',
			'description' => 'Display locations on an interactive map with Google Maps. Use as a store locator, showcase business locations, and improve navigation.',
			'link' => 'https://wordpress.org/plugins/cm-map-locations/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPMapLocationsandStoreLocaterS.png',
		),
    ),
	'plugin-specials'        => array(
		array(
			'title' => 'Secure Login 2FA Authentication',
			'description' => 'Offers a robust solution for WordPress two-factor authentication and provide a better account security for your WordPress users.',
			'link' => 'https://www.cminds.com/wordpress-plugins-library/secure-login-two-factor-authentication-wordpress/?discount=CMINDS10',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPSecureLoginAndTwoFactorS.png',
		),
		array(
			'title' => 'Site Access and Content Restriction',
			'description' => 'A robust membership solution and content restriction plugin that supports role-based access to content on your WordPress website.',
			'link' => 'https://www.cminds.com/wordpress-plugins-library/membership-plugin-for-wordpress/?discount=CMINDS10',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPSiteRestrictionS.png',
		),
		array(
			'title' => 'Map Routes Manager',
			'description' => 'Draw map routes and generate a catalog of routes and trails with points of interest using Google maps.',
			'link' => 'https://www.cminds.com/wordpress-plugins-library/google-maps-routes-manager-plugin-for-wordpress-by-creativeminds/?discount=CMINDS10',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPMapRoutesManagerS.png',
		),
		array(
			'title' => 'MicroPayments Digital Wallet',
			'description' => 'MicroPayments establishes a digital wallet system, allowing users to seamlessly exchange points for goods, gift points, or directly purchase points using credit cards.',
			'link' => 'https://www.cminds.com/wordpress-plugins-library/micropayments/?discount=CMINDS10',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/MicropaymentsS.png',
		),
		array(
			'title' => 'Download Manager Plugin',
			'description' => 'Download Manager plugin provides a secure file-sharing directory for easy uploading, downloading, and sharing of files, videos, and images.',
			'link' => 'https://www.cminds.com/wordpress-plugins-library/downloadsmanager/?discount=CMINDS10',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPDownloadManagerS.png',
		),
		array(
			'title' => 'Reviews and Rating Plugin',
			'description' => 'Allow visitors and users to submit reviews and ratings, and display them on any product, posts, or pages.',
			'link' => 'https://www.cminds.com/wordpress-plugins-library/customer-reviews-plugin-wordpress/?discount=CMINDS10',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPCustomerReviewsS.png',
		),
	),
	'plugin-bundles'        => array(
		array(
			'title' => '99+ Free Pass Plugins Suite',
			'description' => 'Get all CM 99+ WordPress plugins and addons. Includes unlimited updates and one year of priority support.',
			'link' => 'https://www.cminds.com/wordpress-plugins-library/cm-wordpress-plugins-yearly-membership/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPBundleWPSuiteS.png',
		),
		array(
			'title' => 'Essential Publishing Plugin Package',
			'description' => 'Enhance your WordPress publishing with a bundle of seven plugins that elevate content generation, presentation, and user engagement on your site.',
			'link' => 'https://www.cminds.com/wordpress-plugins-library/essential-wordpress-publishing-tools-bundle/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPBundlePublishingS.png',
		),
		array(
			'title' => 'Essential Content Marketing Tools',
			'description' => 'Enhance your WordPress content marketing with seven plugins for improved content generation, presentation, and user engagement.',
			'link' => 'https://www.cminds.com/wordpress-plugins-library/essential-wordpress-content-marketing-tools-bundle/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPBundleContentS.png',
		),
		array(
			'title' => 'Essential Security Plugins',
			'description' => 'Enhance your WordPress security with a bundle of five plugins that provide additional ways to protect your content and site from spammers, hackers, and exploiters.',
			'link' => 'https://www.cminds.com/wordpress-plugins-library/essential-wordpress-security-tools-plugin-bundle/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPBundleSecurityS.png',
		),
	),
	'plugin-services'        => array(
		array(
			'title' => 'WordPress Custom Hourly Support',
			'description' => 'Hire our expert WordPress developers on an hourly basis, offering a-la-carte service to craft your custom WordPress solution.',
			'link' => 'https://www.cminds.com/wordpress-services/wordpress-custom-hourly-support-package/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPServicesHourlySupportS.png',
		),
		array(
			'title' => 'Performance and Optimization Analysis',
			'description' => 'Receive a comprehensive review of your WordPress website with optimization suggestions to enhance its speed and performance.',
			'link' => 'https://www.cminds.com/wordpress-services/wordpress-performance-and-speed-optimization-analysis-service/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPServicesPerformanceS.png',
		),
		array(
			'title' => 'WordPress Plugin Installation',
			'description' => 'We offer professional installation and configuration of plugins or add-ons on your site, tailored to your specified requirements.',
			'link' => 'https://www.cminds.com/wordpress-services/plugin-installation-service-for-wordpress-by-creativeminds/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPServicesExtensionInstallationS.png',
		),
		array(
			'title' => 'WordPress Consulting',
			'description' => 'Purchase consulting hours to receive assistance in designing or planning your WordPress solution. Our expert consultants are here to help bring your vision to life.',
			'link' => 'https://www.cminds.com/wordpress-services/consulting-planning-hourly-support-service-wordpress-creativeminds/#description',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPServicesConsultingS.png',
		),
	),
    'plugin-show-shortcodes'        => TRUE,
    'plugin-shortcodes'             => '<p>You can use the following available shortcodes.</p>',
    'plugin-shortcodes-action'      => 'cmreg_display_available_shortcodes',
    'plugin-parent-abbrev'          => '',
    'plugin-file'                   => App::getPluginFile(),
    'plugin-dir-path'               => plugin_dir_path( App::getPluginFile() ),
    'plugin-dir-url'                => plugin_dir_url( App::getPluginFile() ),
    'plugin-basename'               => plugin_basename( App::getPluginFile() ),
    'plugin-icon'                   => '',
    'plugin-name'                   => App::getPluginName( true ),
    'plugin-license-name'           => App::getPluginName( true ),
    'plugin-slug'                   => App::PREFIX,
    'plugin-short-slug'             => App::PREFIX,
    'plugin-parent-short-slug'      => '',
    'plugin-menu-item'              => App::SLUG,
    'plugin-textdomain'             => '',
    'plugin-userguide-key'          => '2722-cm-registration-cmreg-getting-started-free-version-tutorial',
    'plugin-store-url'              => 'https://www.cminds.com/wordpress-plugins-library/registration-and-invitation-codes-plugin-for-wordpress/?utm_source=cmreg&utm_campaign=freeupgrade&upgrade=1',
    'plugin-support-url'            => 'https://www.cminds.com/contact/',
    'plugin-video-tutorials-url'    => 'https://www.videolessonsplugin.com/video-lesson/lesson/user-registration-invitation-codes-plugin/',
    'plugin-review-url'             => 'https://www.cminds.com/wordpress-plugins-library/registration-and-invitation-codes-plugin-for-wordpress/',
    'plugin-changelog-url'          => 'https://www.cminds.com/wordpress-plugins-library/registration-and-invitation-codes-plugin-for-wordpress/',
    'plugin-licensing-aliases'      => App::getLicenseAdditionalNames(),
    'plugin-upgrade-text'           => 'Reasons to upgrade to pro',
    'plugin-upgrade-text-list'      => array(
        array( 'title' => 'Introduction', 'video_time' => '0:00' ),
        array( 'title' => 'reCaptcha Support', 'video_time' => '0:27' ),
        array( 'title' => 'Email verification support', 'video_time' => '0:41' ),
        array( 'title' => 'Customize registration email notifications ', 'video_time' => '0:56' ),
        array( 'title' => 'Customize labels and messages', 'video_time' => '1:08' ),
        array( 'title' => 'Invitations codes support', 'video_time' => '1:15' ),
        array( 'title' => 'Registration form builder', 'video_time' => 'More' ),
        array( 'title' => 'Assign a role after registration', 'video_time' => 'More' ),
    ),
    'plugin-upgrade-video-height'   => 240,
    'plugin-upgrade-videos'         => array(
        array( 'title' => 'Registration Premium Features', 'video_id' => '157189342' ),
    ),
    'plugin-compare-table'          => $plugin_compare_table,
);