<?php
/* Prohibit direct script loading */
defined('ABSPATH') || die('No direct script access allowed!');
wp_enqueue_style('wpms-tippy-style');
wp_enqueue_style('wpms-mytippy-style');
wp_enqueue_script('wpms-tippy-core');
wp_enqueue_script('wpms-tippy');
wp_enqueue_script('wpms-my-tippy');

$image_src = WPMETASEO_ADDON_PLUGIN_URL . 'inc/install-wizard/content/welcome-illustration/welcome-illustration.png';
$srcset2x  = WPMETASEO_ADDON_PLUGIN_URL . 'inc/install-wizard/content/welcome-illustration/welcome-illustration@2x.png';
$srcset3x  = WPMETASEO_ADDON_PLUGIN_URL . 'inc/install-wizard/content/welcome-illustration/welcome-illustration@3x.png';
$lefts     = array(
    array(
        'title' => __('Google Search Console Keywords', 'wpmsPro'),
        'help'  => __('During the content edition, WP Meta SEO will detect similar keywords with the Google Search Console and return suggestions based on that', 'wpmsPro')
    ),
    array(
        'title' => __('Duplicate meta checker', 'wpmsPro'),
        'help'  => __('Check and fix in one click duplicate meta from the bulk meta editor', 'wpmsPro')
    ),
    array(
        'title' => __('404 errors autoindex', 'wpmsPro'),
        'help'  => __('Automatically run 404 error check in your content and make redirect', 'wpmsPro')
    ),
    array(
        'title' => __('Email report with WP Meta SEO data', 'wpmsPro'),
        'help'  => __('Send Email report with custom content and WP Meta SEO content (404 errors, missing meta...)', 'wpmsPro')
    ),
    array(
        'title' => __('Email Report With Analytics', 'wpmsPro'),
        'help'  => __('Send Email report with Google Analytics data set of your choice', 'wpmsPro')
    ),
    array(
        'title' => __('Custom post type sitemap (WooCommerce...)', 'wpmsPro'),
        'help'  => __('Use WordPress Custom Post Type as sitemap source. For example add automatically WooCommerce content in your XML/HTML sitemaps', 'wpmsPro')
    ),
    array(
        'title' => __('Sitemap automatic submission', 'wpmsPro'),
        'help'  => __('Automatically submit your sitemap to the Google Search Console and index your page URLs faster', 'wpmsPro')
    )
);

$rights = array(
    array(
        'title' => __('Sitemap link checker', 'wpmsPro'),
        'help'  => __('Run automatic sitemap link check to detect errors on sitemap links', 'wpmsPro')
    ),
    array(
        'title' => __('SEO for WPML and Polylang', 'wpmsPro'),
        'help'  => __('Filter your content by language in the meta and image bulk edition. Generate sitemap by WPML and Polylang languages', 'wpmsPro')
    ),
    array(
        'title' => __('Redirect rules and custom redirect', 'wpmsPro'),
        'help'  => __('Add rules to automatically redirect a set of URL, a custom URL or 404 errors', 'wpmsPro')
    ),
    array(
        'title' => __('Google search console 404 redirect', 'wpmsPro'),
        'help'  => __('Import 404 errors from the Google Search Console and redirect them', 'wpmsPro')
    ),
    array(
        'title' => __('WooCommerce SEO Optimization', 'wpmsPro'),
        'help'  => __('Edit the meta information for the WooCommerce product category listing', 'wpmsPro')
    ),
    array(
        'title' => __('Redirect with link manager', 'wpmsPro'),
        'help'  => __('Redirect using the WordPress link manager', 'wpmsPro')
    ),
    array(
        'title' => __('Google Local Business', 'wpmsPro'),
        'help'  => __('Add Google Business Local Information for your website and get your business information displayed in search results', 'wpmsPro')
    )
);
?>
<div class="dashboard">
    <div class="better-top">
        <img src="<?php echo esc_url($image_src); ?>"
             srcset="<?php echo esc_url($srcset2x); ?> 2x,<?php echo esc_url($srcset3x); ?> 3x"
             class="Illustration_Welcome">
        <h1 class="top_h1"><?php esc_html_e('Get More SEO Performance', 'wpmsPro') ?></h1>
        <h1 class="top_h1 wpms-no-margin"><?php esc_html_e('with WP Meta SEO PRO ADDON', 'wpmsPro') ?></h1>
    </div>

    <div class="wpms_width_100 wpms_left p-tb-20 addon-feature">
        <div class="better-layout wpms_left">
            <?php
            foreach ($lefts as $left) :
                ?>
                <div class="ju-settings-option">
                    <div class="wpms_row_full">
                        <label class="ju-setting-label label-dash-widgets"
                               data-tippy="<?php echo esc_html($left['title']); ?>"><?php echo esc_html($left['title']); ?></label>
                        <div class="right-checkbox">
                            <div class="panel-addon"><?php esc_html_e('Pro addon feature', 'wpmsPro'); ?></div>
                        </div>
                    </div>
                    <p class="description p-d-20"><?php echo esc_html($left['help']); ?></p>
                </div>
            <?php endforeach; ?>
        </div>

        <div class="better-layout wpms_right">
            <?php
            foreach ($rights as $right) :
                ?>
                <div class="ju-settings-option">
                    <div class="wpms_row_full">
                        <label class="ju-setting-label label-dash-widgets"
                               data-tippy="<?php echo esc_html($right['title']); ?>"><?php echo esc_html($right['title']); ?></label>
                        <div class="right-checkbox">
                            <div class="panel-addon"><?php esc_html_e('Pro addon feature', 'wpmsPro'); ?></div>
                        </div>
                    </div>
                    <p class="description p-d-20"><?php echo esc_html($right['help']); ?></p>
                </div>
            <?php endforeach; ?>
        </div>
    </div>
</div>