<?php

/**
 * Countries_Help_Tour
 *
 * This is the help tour object for the Registration Overview page
 *
 *
 * @package         Countries_Help_Tour
 * @subpackage      includes/core/admin/general_settings/help_tours/Countries_Help_Tour.class.php
 * @author          Darren Ethier
 *
 * ------------------------------------------------------------------------
 */
class Countries_Help_Tour extends EE_Help_Tour
{

    protected function _set_tour_properties()
    {
        $this->_label = __('Countries Tour', 'event_espresso');
        $this->_slug = 'countries-joyride';
    }

    protected function _set_tour_stops()
    {
        $this->_stops = array(
            10 => array(
                'content' => $this->_start(),
            ),
            20 => array(
                'id'      => 'country',
                'content' => $this->_country_selector_stop(),
                'options' => array(
                    'tipLocation'    => 'right',
                    'tipAdjustmentY' => -50,
                    'tipAdjustmentX' => 15,
                ),
            ),
            30 => array(
                'id'      => 'country-details-dv',
                'content' => $this->_country_details_stop(),
                'options' => array(
                    'tipLocation'    => 'top',
                    'tipAdjustmentY' => -80,
                    'tipAdjustmentX' => 0,
                ),
            ),
            40 => array(
                'id'      => 'country-states-settings-dv',
                'content' => $this->_country_states_settings_stop(),
                'options' => array(
                    'tipLocation'    => 'top',
                    'tipAdjustmentY' => -20,
                    'tipAdjustmentX' => 50,
                ),
            ),
        );
    }


    protected function _start()
    {
        $content = '<h3>' . __('Countries Settings', 'event_espresso') . '</h3>';
        $content .= '<p>'
                    . __(
                        'This tour of the Countries Page will go over different areas of the screen to help you understand what they are used for.',
                        'event_espresso'
                    ) . '</p>';
        return $content;
    }

    protected function _country_selector_stop()
    {
        return '<p>'
               . __(
                   'Select the country where your business or organization is located. This affects the currency that is used in Event Espresso.',
                   'event_espresso'
               ) . '</p>';
    }

    protected function _country_details_stop()
    {
        return '<p>' . __('Here you can fine tune country and currency settings.', 'event_espresso') . '</p>';
    }

    protected function _country_states_settings_stop()
    {
        return '<p>'
               . __(
                   'Used in certain areas of the plugin, here you can define what states/provinces will be displayed in case you do not do business in certain areas.',
                   'event_espresso'
               ) . '</p>';
    }
}
