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

  public function hook($context = NULL) {

    if (!$options = get_option('vtcore_headline_config', false)) {

      // Set the default image for all pages
      foreach ($context as $key => $data) {
        $context[$key]['general']['enable'] = true;
        $context[$key]['background']['image'] = VTCORE_ZEUS_THEME_URL . '/assets/theme/css/images/headline.jpg';
        $context[$key]['background']['top'] = 'bottom';
        $context[$key]['background']['left'] = 'center';
        $context[$key]['background']['width'] = '100%';
        $context[$key]['background']['height'] = 'auto';
        $context[$key]['background']['repeat'] = 'no-repeat';
      }
    }

    return $context;
  }
}