<?php
use com\cminds\maplocations\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('cmloc_AddWizardMenu', 1);
$cminds_plugin_config = array(
	'plugin-is-pro'				 => App::isPro(),
	'plugin-has-addons'      => TRUE,
	'plugin-addons'        => array(
		array(
			'title' => 'Registration and Invitation Codes',
			'description' => 'Manage user registration forms with invitation codes and control access. Simplify login and registration processes using Ajax based solution.',
			'link' => 'https://wordpress.org/plugins/cm-invitation-codes/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPUserRegistrationAndInvitationCodesS.png',
		),
		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' => 'Business Directory Plugin',
			'description' => 'Create and manage a business directory with this business listings plugin. List businesses, add details, and help users find services.',
			'link' => 'https://wordpress.org/plugins/cm-business-directory/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPBusinessDirectoryS.png',
		),
		array(
			'title' => 'Popup Banners',
			'description' => 'Create and customize popups. Display messages, Call to actions, promotions, or announcements to engage visitors and boost interaction.',
			'link' => 'https://wordpress.org/plugins/cm-pop-up-banners/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPPopUpBannersS.png',
		),
		array(
			'title' => 'Search and Replace Plugin',
			'description' => 'Search and replace words, phrases, and HTML within your website posts and pages.',
			'link' => 'https://wordpress.org/plugins/cm-on-demand-search-and-replace/',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPOnDemandSearchandReplaceS.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',
		),
	),
	'plugin-specials'        => array(
		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' => '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',
		),
		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' => 'Booking Calendar',
			'description' => 'Enable customers to effortlessly schedule appointments and make payments directly through your website.',
			'link' => 'https://www.cminds.com/wordpress-plugins-library/schedule-appointments-manage-bookings-plugin-wordpress/?discount=CMINDS10',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPBookingCalendarS.png',
		),
		array(
			'title' => 'Questions and Answers Plugin',
			'description' => 'Experience a mobile-responsive discussion forum where members can post questions, answers, and comments, with integrated payment support.',
			'link' => 'https://www.cminds.com/cm-answer-store-page-content/?discount=CMINDS10',
			'image' => plugin_dir_url( __FILE__ ) . 'views/icons/WPQuestionsAndAnswersS.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-upgrade-text'           => 'Good Reasons to Upgrade to Pro',
    'plugin-upgrade-text-list'      => array(
        array( 'title' => 'Introduction to the locations manager', 'video_time' => '0:00' ),
        array( 'title' => 'Multiple templates for locations index', 'video_time' => 'More' ),
        array( 'title' => 'Support video and images', 'video_time' => 'More' ),
        array( 'title' => 'Choose custom location icon', 'video_time' => 'More' ),
        array( 'title' => 'Import locations from CSV', 'video_time' => '1:15' ),
        array( 'title' => 'Tags and categories support', 'video_time' => '1:27' ),
        array( 'title' => 'Zip search support', 'video_time' => '1:45' ),
        array( 'title' => 'Customize labels and messages', 'video_time' => '2:00' ),
    ),
    'plugin-upgrade-video-height'   => 240,
    'plugin-upgrade-videos'         => array(
        array( 'title' => 'Map Locations Premium Features', 'video_id' => '146739374' ),
    ),
	'plugin-version'					=> App::VERSION,
	'plugin-abbrev'						=> App::PREFIX,
	'plugin-parent-abbrev'				=> '',
	'plugin-affiliate'					=> '',
	'plugin-campign'					=> '?utm_source=locationfree&utm_campaign=freeupgrade',
	'plugin-redirect-after-install'		=> $activation_redirect_wizard ? admin_url( 'admin.php?page=cmloc_setup_wizard' ) : admin_url( 'admin.php?page=cmloc-settings' ),
	'plugin-show-guide'                 => TRUE,
	'plugin-guide-text'                 => '    <div style="display:block">
	<ol>
	<li>Go to the plugin <strong>"Setting"</strong></li>
	<li>Get a  <strong>Google Maps Server APP Key</strong> and add it to the plugin settings. </li>
	<li>From the plugin settings click on the <strong>user dashboard</strong> link</li>
	<li>Add your first location. You need to pin the location on the Google map and you can also add a description and images.</li>
	<li><strong>View</strong> the location</li>
	<li>In the <strong>Plugin Settings</strong> you can click on the link of all locations to view them all on one map.</li>
	<li><strong>Troubleshooting:</strong> Make sure that you are using Post name permalink structure in the WP Admin Settings -> Permalinks.</li>
	<li><strong>Troubleshooting:</strong> If post type archive does not show up or displays 404 then install Rewrite Rules Inspector plugin and use the Flush rules button.</li>
	<li><strong>Troubleshooting:</strong> Get the Google Maps Server APP Key. Plugin will not work without it.</li>
	</ol>
	</div>',
	'plugin-guide-video-height'         => 240,
	'plugin-guide-videos'               => array(
		array( 'title' => 'Installation tutorial', 'video_id' => '160220318' ),
	),
	'plugin-show-shortcodes'	 => TRUE,
	'plugin-shortcodes'			 => '<p>You can use the following available shortcodes.</p>',
	'plugin-shortcodes-action'	 => 'cmloc_display_supported_shortcodes',
	'plugin-settings-url' 		 => admin_url( 'admin.php?page=cmloc-settings' ),
	'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::PLUGIN_NAME,
	'plugin-license-name'		 => App::PLUGIN_NAME,
	'plugin-slug'				 => App::PREFIX,
	'plugin-short-slug'			 => App::PREFIX,
	'plugin-parent-short-slug'	 => '',
	'plugin-menu-item'			 => App::PREFIX,
	'plugin-textdomain'			 => '',
	'plugin-userguide-key'		 => '2723-cm-map-locations-cmml-free-version-tutorial',
	'plugin-store-url'			 => 'https://www.cminds.com/wordpress-plugins-library/multiple-locations-google-maps/?utm_source=locationfree&utm_campaign=freeupgrade&upgrade=1',
	'plugin-support-url'		 => 'https://www.cminds.com/contact/',
	'plugin-review-url'			 => 'https://www.cminds.com/wordpress-plugins-library/multiple-locations-google-maps//#reviews',
	'plugin-changelog-url'		 => 'https://www.cminds.com/wordpress-plugins-library/multiple-locations-google-maps/',
	'plugin-video-tutorials-url' => 'https://www.videolessonsplugin.com/video-lesson/lesson/google-map-locations-plugin/',
	'plugin-licensing-aliases'	 => App::getLicenseAdditionalNames(),
	'plugin-compare-table'		 => $plugin_compare_table,
);