You are here

theme.inc in Rotor Banner 7

Same filename and directory in other branches
  1. 6.2 theme/theme.inc

theme.inc Preprocessing for views themes.

File

theme/theme.inc
View source
<?php

/**
 * @file theme.inc
 * Preprocessing for views themes.
 */

/**
 * Preprocess the primary theme implementation for a view.
 */
function template_preprocess_rotor_view_rotor(&$vars) {
  $view = $vars['view'];
  $vars['css_name'] = views_css_safe($view->name);
  $vars['name'] = $view->name;
  $vars['display_id'] = $view->current_display;
  $vars['style'] = '';
  if ($vars['options']['width'] > 0) {
    $vars['style'] .= ' width: ' . $vars['options']['width'] . 'px;';
  }
  if ($vars['options']['height'] > 0) {
    $vars['style'] .= ' height: ' . $vars['options']['height'] . 'px;';
  }
}

Functions

Namesort descending Description
template_preprocess_rotor_view_rotor Preprocess the primary theme implementation for a view.