<?php
/**
 * Hooking into vtcore_headline_context_alter to change
 * the default context for headline metabox
 *
 * @author jason.xie@victheme.com
 *
 */
class VTCore_Zeus_Filters_VTCore__Headline__Context__Alter
extends VTCore_Wordpress_Models_Hook {

  protected $argument = 2;
  private $type;

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

    // Check if user has enter any data or not
    if (empty($options)) {
      // Set the default header image for all pages
      $context['general']['enable'] = true;
      $context['background']['image'] = VTCORE_ZEUS_THEME_URL . '/assets/theme/css/images/headline.jpg';
      $context['background']['top'] = 'bottom';
      $context['background']['left'] = 'center';
      $context['background']['width'] = '100%';
      $context['background']['height'] = 'auto';
      $context['background']['repeat'] = 'no-repeat';
    }

    return $context;
  }
}