=== modified file 'STARTERKIT/templates/README.txt' --- STARTERKIT/templates/README.txt 2009-11-08 18:28:49 +0000 +++ STARTERKIT/templates/README.txt 2010-01-12 12:57:56 +0000 @@ -19,6 +19,7 @@ Located in zen/templates: block.tpl.php comment-wrapper.tpl.php comment.tpl.php + views-view.tpl.php Located in /modules/aggregator: aggregator-feed-source.tpl.php === modified file 'template.php' --- template.php 2009-11-05 13:13:45 +0000 +++ template.php 2010-01-12 13:54:13 +0000 @@ -185,6 +185,10 @@ function zen_preprocess(&$vars, $hook) { else { $vars['classes_array'] = array($hook); } + // Add support for Skinr + if (!empty($vars['skinr']) && array_key_exists('classes_array', $vars)) { + $vars['classes_array'][] = $vars['skinr']; + } } /** @@ -420,6 +424,23 @@ function zen_preprocess_block(&$vars, $h } /** + * Override or insert variables into the views-view templates. + * + * @param $vars + * An array of variables to pass to the theme template. + * @param $hook + * The name of the template being rendered ("views-view" in this case.) + */ +function zen_preprocess_views_view(&$vars, $hook) { + // Add the default Views classes. + $vars['classes_array'][0] = 'view'; // Replace "views-view". + $vars['classes_array'][] = 'view-' . $vars['css_name']; + $vars['classes_array'][] = 'view-id-' . $vars['name']; + $vars['classes_array'][] = 'view-display-id-' . $vars['display_id']; + $vars['classes_array'][] = 'view-dom-id-' . $vars['dom_id']; +} + +/** * Override or insert variables into templates after preprocess functions have run. * * @param $vars === added file 'templates/views-view.tpl.php' --- templates/views-view.tpl.php 1970-01-01 00:00:00 +0000 +++ templates/views-view.tpl.php 2010-01-12 13:44:25 +0000 @@ -0,0 +1,94 @@ + +
+ + + + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ +
+ +
+ + + + + + + +
+ +
+ + + + + + + + + + + +
+ +
+ + +