<?php

if( !defined( 'MAP_PLUGIN_NAME' ) )
{
	exit('Not allowed.');
}

$locale = MyAgilePrivacy::get_locale();

$installa_map_url = 'https://www.myagileprivacy.com/en/helpdesk/how-to-install-myagileprivacy-on-your-website/';
$cookie_shied_url = 'https://www.myagileprivacy.com/en/helpdesk/how-to-automatically-detect-and-block-cookies-with-cookie-shield/';
$moduli_norma_url = 'https://www.myagileprivacy.com/en/helpdesk/how-to-bring-contact-forms-into-gdpr-compliance/';

$cache_wprocket_url = 'https://www.myagileprivacy.com/en/helpdesk/how-to-configure-wp-rocket-with-my-agile-privacy/';
$cache_siteground_url = 'https://www.myagileprivacy.com/en/helpdesk/how-to-configure-siteground-optimizer-with-my-agile-privacy/';
$cache_optimizepress_url = 'https://www.myagileprivacy.com/en/helpdesk/how-to-configure-optimize-press-with-my-agile-privacy/';
$cache_w3totalcache_url = 'https://www.myagileprivacy.com/en/helpdesk/how-to-configure-w3-total-cache-with-my-agile-privacy/';
$cache_speedycache_url = 'https://www.myagileprivacy.com/en/helpdesk/how-to-configure-speedy-cache-with-my-agile-privacy/';
$cache_litespeed_url = 'https://www.myagileprivacy.com/en/helpdesk/how-to-configure-litespeed-cache-with-my-agile-privacy/';
$cache_generic_url = 'https://www.myagileprivacy.com/en/helpdesk/do-you-use-another-cache-plugin/';

$scheda_tecnica_url = 'https://www.myagileprivacy.com/en/technical-sheet/';
$sito_multilingue_url = 'https://www.myagileprivacy.com/en/helpdesk/how-to-configure-my-agile-privacy-for-multi-language-websites/';

$sito_area_faq_url = 'https://www.myagileprivacy.com/en/helpdesk/post-installation-frequently-asked-questions/';
$sito_area_privata_url = 'https://www.myagileprivacy.com/en/helpdesk/guide-to-using-the-private-area/';

$personalizzazione_cookie_banner = 'https://www.myagileprivacy.com/en/helpdesk/how-to-customise-the-my-agile-privacy-cookie-banner/';

$consent_mode_v2 = 'https://www.myagileprivacy.com/en/supporting-consent-mode-v2-what-it-is-and-how-to-implement-it-gdpr-compliant-with-my-agile-privacy/';

$cmode_uet = 'https://www.myagileprivacy.com/en/how-to-implement-microsoft-consent-mode-with-my-agile-privacy/';
$cmode_clarity = 'https://www.myagileprivacy.com/en/how-to-implement-clarity-consent-mode-with-my-agile-privacy/';

$policy_customization = 'https://www.myagileprivacy.com/en/helpdesk/guide-to-using-the-my-agile-privacy-policy-assistant/';


//per lang helpdesk defs
if( $locale && $locale == 'it_IT' )
{
	$installa_map_url = 'https://www.myagileprivacy.com/helpdesk/come-installare-myagileprivacy-sul-tuo-sito-web/';
	$cookie_shied_url = 'https://www.myagileprivacy.com/helpdesk/come-rilevare-e-bloccare-i-cookie-automaticamente-con-il-cookie-shield/';
	$moduli_norma_url = 'https://www.myagileprivacy.com/helpdesk/come-mettere-a-norma-gdpr-i-moduli-di-contatto/';

	$cache_wprocket_url = 'https://www.myagileprivacy.com/helpdesk/come-configurare-wp-rocket-con-my-agile-privacy/';
	$cache_siteground_url = 'https://www.myagileprivacy.com/helpdesk/come-configurare-siteground-optimizer-con-my-agile-privacy/';
	$cache_optimizepress_url = 'https://www.myagileprivacy.com/helpdesk/come-configurare-optimize-press-con-my-agile-privacy/';
	$cache_w3totalcache_url = 'https://www.myagileprivacy.com/helpdesk/come-configurare-w3-total-cache-con-my-agile-privacy/';
	$cache_speedycache_url = 'https://www.myagileprivacy.com/helpdesk/come-configurare-speedy-cache-con-my-agile-privacy/';
	$cache_litespeed_url = 'https://www.myagileprivacy.com/helpdesk/come-configurare-litespeed-cache-con-my-agile-privacy/';
	$cache_generic_url = 'https://www.myagileprivacy.com/helpdesk/utilizzi-un-altro-plugin-di-cache/';

	$scheda_tecnica_url = 'https://www.myagileprivacy.com/scheda-e-informazioni-tecniche-myagileprivacy/';
	$sito_multilingue_url = 'https://www.myagileprivacy.com/helpdesk/come-configurare-my-agile-privacy-per-siti-web-multi-lingue/';

	$sito_area_faq_url = 'https://www.myagileprivacy.com/helpdesk/domande-frequenti-post-installazione/';
	$sito_area_privata_url = 'https://www.myagileprivacy.com/helpdesk/guida-allutilizzo-dellarea-privata/';

	$personalizzazione_cookie_banner = 'https://www.myagileprivacy.com/helpdesk/come-personalizzare-il-cookie-banner-di-my-agile-privacy/';

	$consent_mode_v2 = 'https://www.myagileprivacy.com/supporto-alla-consent-mode-v2-cose-e-come-implementarla-a-norma-gdpr-con-my-agile-privacy/';

	$cmode_uet = 'https://www.myagileprivacy.com/come-implementare-microsoft-consent-mode-con-my-agile-privacy/';
	$cmode_clarity = 'https://www.myagileprivacy.com/come-implementare-clarity-consent-mode-con-my-agile-privacy/';

	$policy_customization = 'https://www.myagileprivacy.com/helpdesk/guida-personalizzazione-policy-gdpr-lpd-ccpa-pipeda-lgpd-my-agile-privacy/';
}
?>

<div class="row">
	<div class="col-12">
		<p><?php echo wp_kses_post( __( 'Follow the guides found in this section to install and configure My Agile Privacy®, and bring your website into compliance in a few simple steps.', 'MAP_txt' ) ); ?></p>
	</div>
</div>

<div class="row">
	<div class="col-sm-8">
		<div class="card-group">
			<div class="card rounded-3 p-0 mx-1">
				<div class="card-header bg-transparent"><h5 class="pt-2"><?php echo wp_kses_post( __( 'Start from here', 'MAP_txt' ) ); ?></h5></div>

				<div class="card-body">
					<p>
						<?php echo wp_kses_post( __( 'My Agile Privacy® is currently the easiest-to-configure Cookie Banner on the market, promising genuine compliance and adherence to the regulations as required by the Data Protection Authority.', 'MAP_txt' ) ); ?><br><br>
						<?php echo wp_kses_post( __( 'We have created a truly simple configuration process: to bring your website into compliance, you just need to follow the three steps outlined below.', 'MAP_txt' ) ); ?>

					</p>

					<p><a target="_blank" href="<?php echo esc_attr( $installa_map_url ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'Install and configure My Agile Privacy®', 'MAP_txt' ) ); ?></a></p>
					<p><a target="_blank" href="<?php echo esc_attr( $cookie_shied_url ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'Detect and automatically block cookies with Cookie Shield', 'MAP_txt' ) ); ?></a></p>
					<p><a target="_blank" href="<?php echo esc_attr( $moduli_norma_url ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'Adapt the contact forms to GDPR', 'MAP_txt' ) ); ?></a></p>

					<hr>

					<p>

						<?php echo wp_kses_post( __( 'Customizations', 'MAP_txt' ) ); ?>

						<br>

						<a target="_blank" href="<?php echo esc_attr( $personalizzazione_cookie_banner ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'Customize cookie banner, text and translations, and user notifications', 'MAP_txt' ) ); ?></a>
					</p>

					<hr>

					<p>

						<?php echo wp_kses_post( __( 'Google Consent Mode V2', 'MAP_txt' ) ); ?>

						<br>

						<a target="_blank" href="<?php echo esc_attr( $consent_mode_v2 ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'How to implement Google Consent Mode V2 on your website', 'MAP_txt' ) ); ?></a>
					</p>

					<p>

						<?php echo wp_kses_post( __( 'Microsoft Consent Mode', 'MAP_txt' ) ); ?>

						<br>

						<a target="_blank" href="<?php echo esc_attr( $cmode_uet ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'How to implement Microsoft Consent Mode on your website', 'MAP_txt' ) ); ?></a>
					</p>

					<p>

						<?php echo wp_kses_post( __( 'Clarity Consent Mode', 'MAP_txt' ) ); ?>

						<br>

						<a target="_blank" href="<?php echo esc_attr( $cmode_clarity ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'How to implement Clarity Consent Mode on your website', 'MAP_txt' ) ); ?></a>
					</p>


					<hr>

					<p>

						<?php echo wp_kses_post( __( 'GDPR, CCPA, nLPD, PIPEDA, LGPD: Which privacy regulations should I choose and how do I customize the policies?', 'MAP_txt' ) ); ?>

						<br>

						<a target="_blank" href="<?php echo esc_attr( $policy_customization ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'Learn how to customize your Privacy Policies', 'MAP_txt' ) ); ?></a>
					</p>



				</div>


			</div>

			<div class="card rounded-3 p-0 mx-1">
				<div class="card-header bg-transparent"><h5 class="pt-2"><?php echo wp_kses_post( __( 'Do you use a cache plugin?', 'MAP_txt' ) ); ?></h5></div>
				<div class="card-body">
					<p>
						<?php echo wp_kses_post( __( 'My Agile Privacy® works correctly with most cache plugins available on the market.', 'MAP_txt' ) ); ?><br><br>
						<?php echo wp_kses_post( __( 'Below are the configuration guides for the most commonly used ones. Make sure to follow the instructions to ensure compliance and performance.', 'MAP_txt' ) ); ?>
					</p>
					<p><a target="_blank" href="<?php echo esc_attr( $cache_wprocket_url ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'How to configure WP Rocket with My Agile Privacy®', 'MAP_txt' ) ); ?></a></p>
					<p><a target="_blank" href="<?php echo esc_attr( $cache_siteground_url ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'How to configure Siteground Optimizer with My Agile Privacy®', 'MAP_txt' ) ); ?></a></p>
					<p><a target="_blank" href="<?php echo esc_attr( $cache_optimizepress_url ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'How to configure Optimize Press with My Agile Privacy®', 'MAP_txt' ) ); ?></a></p>
					<p><a target="_blank" href="<?php echo esc_attr( $cache_w3totalcache_url ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'How to configure W3 Total Cache with My Agile Privacy®', 'MAP_txt' ) ); ?></a></p>
					<p><a target="_blank" href="<?php echo esc_attr( $cache_speedycache_url ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'How to configure Speedy Cache with My Agile Privacy®', 'MAP_txt' ) ); ?></a></p>
					<p><a target="_blank" href="<?php echo esc_attr( $cache_litespeed_url ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'How to configure LiteSpeed Cache with My Agile Privacy®', 'MAP_txt' ) ); ?></a></p>
					<p><a target="_blank" href="<?php echo esc_attr( $cache_generic_url ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'Do you use another cache plugin?', 'MAP_txt' ) ); ?></a></p>
				</div>
			</div>
		</div>
		
		<div class="card-group">

			<div class="card rounded-3 p-0 mx-1">
				<div class="card-header bg-transparent"><h5 class="pt-2"><?php echo wp_kses_post( __( 'Do you have a multilingual website?', 'MAP_txt' ) ); ?></h5></div>
				<div class="card-body">
					<p>
						<?php echo wp_kses_post( __( 'My Agile Privacy® is compatible with the main multilingual plugins for WordPress and provides ready-made translations for elements such as the cookie banner, policies, and individual cookies in multiple languages.', 'MAP_txt' ) ); ?><br><br>
						<?php echo wp_kses_post( __( 'Depending on the license you have purchased, you will have access to one or more languages.', 'MAP_txt' ) ); ?><br>
						<?php echo wp_kses_post( sprintf(__( 'For the updated list and implementation instructions, please refer to the <a href="%s" target="_blank">technical sheet.</a>', 'MAP_txt' ), esc_attr( $scheda_tecnica_url )) ); ?><br><br>
						<?php echo wp_kses_post( __( 'Follow these implementation guides for a correct display of textual content.', 'MAP_txt' ) ); ?>
					</p>
					<p><a target="_blank" href="<?php echo esc_attr( $sito_multilingue_url ); ?>" ><i class="fa-regular fa-link orange-icon"></i> <?php echo wp_kses_post( __( 'How to configure My Agile Privacy® for multilingual websites', 'MAP_txt' ) ); ?></a></p>
				</div>
	
			</div>
			<div>	
				<div class="card rounded-3 mx-1">
					<div class="row">
						<div class="col-2 align-self-center"><i class="fa-regular fa-circle-question fa-2xl orange-icon"></i></div>
						<div class="col-10">
							<h5><?php echo wp_kses_post( __( 'Questions?', 'MAP_txt' ) ); ?></h5>
							<p><?php echo wp_kses_post( __( 'Visit our FAQ section to view answers to the most common post-installation questions.', 'MAP_txt' ) ); ?></p>
							<a target="_blank" href="<?php echo esc_attr( $sito_area_faq_url ); ?>" class="btn btn-outline-orange"><?php echo wp_kses_post( __( 'Go to the FAQ', 'MAP_txt' ) ); ?></a>
						</div>
					</div>
				</div>
				<div class="card rounded-3 mx-1">
					<div class="row">
						<div class="col-2 align-self-center"><i class="fa-regular fa-user-unlock fa-2xl orange-icon"></i></div>
						<div class="col-10">
							<h5><?php echo wp_kses_post( __( 'Subscription management and bulk operations', 'MAP_txt' ) ); ?></h5>
							<p><?php echo wp_kses_post( __( "Discover how to manage your subscription and multiple installations through the dedicated private area.", 'MAP_txt' ) ); ?></p>
							<a target="_blank" href="<?php echo esc_attr( $sito_area_privata_url ); ?>" class="btn btn-outline-orange"><?php echo wp_kses_post( __( "Go to the guide related to the private area.", 'MAP_txt' ) ); ?></a>
						</div>
					</div>
				</div>	
			</div>

		</div>

	</div> <!-- col-sm-8 -->

	<div class="col-sm-4">
		<img src="<?php echo esc_attr( plugin_dir_url( __DIR__ ) ); ?>../img/fox-helpdesk.png" class="img-fluid" alt="">

		<?php
			$admin_lang = MyAgilePrivacy::get_locale();

			$helpdesk_href = ( $admin_lang == 'it_IT' ) ? 'https://www.myagileprivacy.com/helpdesk/' : 'https://www.myagileprivacy.com/en/helpdesk/';
			$contact_href = ( $admin_lang == 'it_IT' ) ? 'https://www.myagileprivacy.com/contattaci/' : 'https://www.myagileprivacy.com/en/contact-us/';
		?>

		<div class="text-center mt-4">
			<strong><?php echo wp_kses_post( __( 'Need more help?', 'MAP_txt' ) ); ?></strong><br>
			<a href="<?php echo esc_attr( $helpdesk_href ); ?>" class="link-secondary"><?php echo wp_kses_post( __( 'Go to the Helpdesk on the website', 'MAP_txt' ) ); ?></a> <?php echo wp_kses_post( __( 'or', 'MAP_txt' ) ); ?> <a href="<?php echo esc_attr( $contact_href ); ?>" class="link-secondary"><?php echo wp_kses_post( __( 'Contact us', 'MAP_txt' ) ); ?></a>
		</div>
	</div> <!-- col-sm-4 -->

</div>