<?php
/**
 * Class for defining the theme areas
 *
 * @author jason.xie@victheme.com
 * @see VTCore_Wordpress_Layout_Area
 *
 */
class VTCore_Zeus_Layout_Areas {

  private $areas = array();

  public function getAreas() {

    // Set theme default regions
    $this->areas = array(
      'header' => array(
        'id' => 'header',
        'name' => __('Header', BASE_THEME),
        'description' => __('Theme top header section.', BASE_THEME),
        'weight' => 0,
      ),
      'slider' => array(
        'id' => 'slider',
        'name' => __('Slider', BASE_THEME),
        'description' => __('Theme slider section.', BASE_THEME),
        'weight' => 1,
      ),
      'maincontent' => array(
        'id' => 'maincontent',
        'name' => __('Main Content', BASE_THEME),
        'description' => __('Theme main content section.', BASE_THEME),
        'weight' => 2,
      ),
      'content_bottom' => array(
        'id' => 'content_bottom',
        'name' => __('Content Bottom', BASE_THEME),
        'description' => __('Theme content bottom section.', BASE_THEME),
        'weight' => 3,
      ),
      'footer' => array(
        'id' => 'footer',
        'name' => __('Footer', BASE_THEME),
        'description' => __('Theme footer section.', BASE_THEME),
        'weight' => 4,
      ),
      'fullfooter' => array(
        'id' => 'fullfooter',
        'name' => __('Full Footer', BASE_THEME),
        'description' => __('Theme full footer section.', BASE_THEME),
        'weight' => 5,
      ),
    );

    // Inject user configured regions from database
    $areas = get_theme_mod('areas', array());
    $this->areas = VTCore_Utility::arrayMergeRecursiveDistinct($areas, $this->areas);

    return $this->areas;
  }
}