<?php
/**
 * Class for registering the help pages url
 *
 * Entries should have :
 *   title    :  The link title
 *   url      :  The link url
 *   target   :  The link target
 *   type     :  The link type
 *
 *
 * @available constant :
 *     VTCORE_ZEUS_HELP_URL for the theme main help url.
 *
 * @author jason.xie@victheme.com
 * @used in theme options help button and help panels
 *
 */
class VTCore_Zeus_Assistance {

  protected $context;

  public function __construct() {

    $this->context = array(

      'documentation' => array(
        'title' => __('Read Theme Documentation', BASE_THEME),
        'url' => 'http://documentation.victheme.com/' . BASE_THEME . '/index.html',
        'target' => '_blank',
        'type' => 'link',
      ),


      'logo' => array(
        'title' => __('How to change logo', BASE_THEME),
        'url' => 'https://vimeo.com/106099990',
        'target' => '_blank',
        'type' => 'video',
      ),

      'copyright' => array(
        'title' => __('How to change copyright text', BASE_THEME),
        'url' => 'https://vimeo.com/106139945',
        'target' => '_blank',
        'type' => 'video',
      ),

      'favicon' => array(
        'title' => __('How to change favicon', BASE_THEME),
        'url' => 'https://vimeo.com/106099991',
        'target' => '_blank',
        'type' => 'video',
      ),


      'sidebar_position_blog'  => array(
        'title' => __('How to configure sidebar position', BASE_THEME),
        'url' => 'https://vimeo.com/106153839',
        'target' => '_blank',
        'type' => 'video',
      ),

      'change_theme_style'  => array(
        'title' => __('How to change theme style', BASE_THEME),
        'url' => 'https://vimeo.com/106153840',
        'target' => '_blank',
        'type' => 'video',
      ),

      'configure404'  => array(
        'title' => __('How to configure page 404', BASE_THEME),
        'url' => 'https://vimeo.com/97198351',
        'target' => '_blank',
        'type' => 'video',
      ),

      'pagelayout'  => array(
        'title' => __('How to configure page grid layout', BASE_THEME),
        'url' => 'https://vimeo.com/106153838',
        'target' => '_blank',
        'type' => 'video',
      ),

      'slick_menu' => array(
        'title' => __('How to enable or disable mobile menu', BASE_THEME),
        'url' => 'https://vimeo.com/106139947',
        'target' => '_blank',
        'type' => 'video'
      ),

      'headline_image' => array(
        'title' => __('How to change headline image', BASE_THEME),
        'url' => 'https://vimeo.com/106153841',
        'target' => '_blank',
        'type' => 'video',
      ),

      'portfolio_edit' => array(
        'title' => __('How to add or edit portfolio', BASE_THEME),
        'url' => 'https://vimeo.com/106097491',
        'target' => '_blank',
        'type' => 'video'
      ),

      'visualbackend' => array(
        'title' => __('How to use visual composer backend editor', BASE_THEME),
        'url' => 'https://vimeo.com/106097492',
        'target' => '_blank',
        'type' => 'video',
      ),

      'visualfrontend' => array(
        'title' => __('How to use visual composer frontend editor', BASE_THEME),
        'url' => 'https://vimeo.com/106099989',
        'target' => '_blank',
        'type' =>'video',
      ),

      'visualbackground' => array(
        'title' => __('How to add or change main background image', BASE_THEME),
        'url' => 'https://vimeo.com/106153842',
        'target' => '_blank',
        'type' =>'video',
      ),

      'import_demo' => array(
        'title' => __('How to import demo contents', BASE_THEME),
        'url' => 'https://vimeo.com/106182916',
        'target' => '_blank',
        'type' =>'video',
      ),

      'create_posts' => array(
        'title' => __('How to create posts', BASE_THEME),
        'url' => 'https://vimeo.com/106097490',
        'target' => '_blank',
        'type' =>'video',
      ),


      'excerpt' => array(
        'title' => __('How to hide / show elements', BASE_THEME),
        'url' => 'https://vimeo.com/106139943',
        'target' => '_blank',
        'type' =>'video',
      ),

      'configure_footer' => array(
        'title' => __('How to configure footer element', BASE_THEME),
        'url' => 'https://vimeo.com/106139946',
        'target' => '_blank',
        'type' =>'video',
      ),


    );

  }


  public function getAssistanceItems() {
    return $this->context;
  }

  public function getAssistanceItem($type, $key) {
    return isset($this->context[$type][$key]) ? $this->context[$type][$key] : false;
  }

}