<?php
/**
 * Hooking into VTCore Portfolio plugin to define
 * the default settings for the headline element
 *
 * @author jason.xie@victheme.com
 *
 */
class VTCore_Zeus_Filters_VTCore__Portfolio__Config__Context__Alter
extends VTCore_Wordpress_Models_Hook {

  protected $argument = 2;

  public function hook($context = NULL, $options = NULL) {

    // Only alter if user hasn't change the configuration yet.
    if (empty($options)) {

      $context['grid']['show']['main_title'] = false;
      $context['grid']['show']['main_content'] = false;
      $context['grid']['show']['title'] = false;
      $context['grid']['show']['social'] = false;
      $context['grid']['show']['tags'] = false;
      $context['grid']['show']['date'] = false;
      $context['grid']['pagination'] = '12';

      $context['grid']['images']['width'] = '504';
      $context['grid']['images']['height'] = '284';

      $context['grid']['teaser_column'] = array(
        'columns' => array(
          'mobile' => '6',
          'tablet' => '4',
          'small' => '4',
          'large' => '4',
        ),
      );

      $context['full']['content_column'] = array(
        'columns' => array(
          'mobile' => '12',
          'tablet' => '12',
          'small' => '12',
          'large' => '12',
        ),
      );

      $context['full']['gallery_column'] = array(
        'columns' => array(
          'mobile' => '12',
          'tablet' => '12',
          'small' => '12',
          'large' => '12',
        ),
      );

      $context['full']['project_column'] = array(
        'columns' => array(
          'mobile' => '12',
          'tablet' => '6',
          'small' => '4',
          'large' => '3',
        ),
      );
    }

    return $context;
  }
}