summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.15/sites/all/modules/views/theme
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.15/sites/all/modules/views/theme')
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/theme.inc114
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-exposed-form.tpl.php9
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-more.tpl.php5
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-display-tab-bucket.tpl.php2
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-display-tab-setting.tpl.php2
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-edit-item.tpl.php4
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-edit-view.tpl.php3
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-field.tpl.php41
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-fields.tpl.php3
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grid.tpl.php7
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grouping.tpl.php31
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-list.tpl.php3
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-row-comment.tpl.php3
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-row-rss.tpl.php3
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-rss.tpl.php3
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-summary-unformatted.tpl.php5
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-summary.tpl.php5
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-table.tpl.php5
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-unformatted.tpl.php5
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view.tpl.php5
20 files changed, 162 insertions, 96 deletions
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/theme.inc b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/theme.inc
index eaf8d2d..52598d5 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/theme.inc
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/theme.inc
@@ -1,10 +1,8 @@
<?php
/**
- * @file theme.inc
- *
- * An array of preprocessors to fill variables for templates and helper
- * functions to make theming easier.
+ * @file
+ * Preprocessors and helper functions to make theming easier.
*/
/**
@@ -55,6 +53,8 @@ function template_preprocess_views_view(&$vars) {
$vars['display_id'] = $view->current_display;
// Basic classes
+ $vars['css_class'] = '';
+
$vars['classes_array'] = array();
$vars['classes_array'][] = 'view';
$vars['classes_array'][] = 'view-' . drupal_clean_css_identifier($vars['name']);
@@ -72,7 +72,7 @@ function template_preprocess_views_view(&$vars) {
$vars['header'] = $view->display_handler->render_area('header', $empty);
$vars['footer'] = $view->display_handler->render_area('footer', $empty);
if ($empty) {
- $vars['empty'] = $view->display_handler->render_area('empty');
+ $vars['empty'] = $view->display_handler->render_area('empty', $empty);
}
$vars['exposed'] = !empty($view->exposed_widgets) ? $view->exposed_widgets : '';
@@ -113,7 +113,7 @@ function template_preprocess_views_view(&$vars) {
// we set up a hash with the current time, $dom_id, to issue a "unique" identifier for
// each view. This identifier is written to both Drupal.settings and the DIV
// wrapper.
- $vars['dom_id'] = !empty($view->dom_id) ? $view->dom_id : md5($view->name . REQUEST_TIME . rand());
+ $vars['dom_id'] = $view->dom_id;
$vars['classes_array'][] = 'view-dom-id-' . $vars['dom_id'];
}
@@ -186,7 +186,7 @@ function template_preprocess_views_view_fields(&$vars) {
foreach ($view->field as $id => $field) {
// render this even if set to exclude so it can be used elsewhere.
$field_output = $view->style_plugin->get_field($view->row_index, $id);
- $empty = $field_output !== 0 && empty($field_output);
+ $empty = $field->is_value_empty($field_output, $field->options['empty_zero']);
if (empty($field->options['exclude']) && (!$empty || (empty($field->options['hide_empty']) && empty($vars['options']['hide_empty'])))) {
$object = new stdClass();
$object->handler = &$view->field[$id];
@@ -470,6 +470,9 @@ function template_preprocess_views_view_table(&$vars) {
$options = $view->style_plugin->options;
$handler = $view->style_plugin;
+ $default_row_class = isset($options['default_row_class']) ? $options['default_row_class'] : TRUE;
+ $row_class_special = isset($options['row_class_special']) ? $options['row_class_special'] : TRUE;
+
$fields = &$view->field;
$columns = $handler->sanitize_columns($options['columns'], $fields);
@@ -533,6 +536,10 @@ function template_preprocess_views_view_table(&$vars) {
}
$vars['header_classes'][$field] .= $class;
}
+ // Add a CSS align class to each field if one was set
+ if (!empty($options['info'][$field]['align'])) {
+ $vars['header_classes'][$field] .= ' ' . drupal_clean_css_identifier($options['info'][$field]['align']);
+ }
// Add a header label wrapper if one was selected.
if ($vars['header'][$field]) {
@@ -598,24 +605,34 @@ function template_preprocess_views_view_table(&$vars) {
$empty &= empty($columns[$column]);
}
if ($empty) {
- foreach ($vars['rows'] as $num => &$columns) {
- unset($columns[$column]);
+ foreach ($vars['rows'] as $num => &$column_items) {
+ unset($column_items[$column]);
unset($vars['header'][$column]);
}
}
}
}
+ // Hide table header if all labels are empty.
+ if (!array_filter($vars['header'])) {
+ $vars['header'] = array();
+ }
+
$count = 0;
foreach ($vars['rows'] as $num => $row) {
- $vars['row_classes'][$num][] = ($count++ % 2 == 0) ? 'odd' : 'even';
+ $vars['row_classes'][$num] = array();
+ if ($row_class_special) {
+ $vars['row_classes'][$num][] = ($count++ % 2 == 0) ? 'odd' : 'even';
+ }
if ($row_class = $handler->get_row_class($num)) {
$vars['row_classes'][$num][] = $row_class;
}
}
- $vars['row_classes'][0][] = 'views-row-first';
- $vars['row_classes'][count($vars['row_classes']) - 1][] = 'views-row-last';
+ if ($row_class_special) {
+ $vars['row_classes'][0][] = 'views-row-first';
+ $vars['row_classes'][count($vars['row_classes']) - 1][] = 'views-row-last';
+ }
$vars['classes_array'] = array('views-table');
if (empty($vars['rows']) && !empty($options['empty_table'])) {
@@ -645,6 +662,8 @@ function template_preprocess_views_view_grid(&$vars) {
$result = $view->result;
$options = $view->style_plugin->options;
$handler = $view->style_plugin;
+ $default_row_class = isset($options['default_row_class']) ? $options['default_row_class'] : TRUE;
+ $row_class_special = isset($options['row_class_special']) ? $options['row_class_special'] : TRUE;
$columns = $options['columns'];
@@ -670,7 +689,7 @@ function template_preprocess_views_view_grid(&$vars) {
}
if ($row) {
// Fill up the last line only if it's configured, but this is default.
- if (!empty($handler->options['fill_single_line']) || count($rows)) {
+ if (!empty($handler->options['fill_single_line']) && count($rows)) {
for ($i = 0; $i < ($columns - $col_count); $i++) {
$row[] = '';
}
@@ -710,22 +729,30 @@ function template_preprocess_views_view_grid(&$vars) {
// Apply the row classes
foreach ($rows as $row_number => $row) {
$row_classes = array();
- $row_classes[] = 'row-' . ($row_number + 1);
- if ($row_number == 0) {
- $row_classes[] = 'row-first';
+ if ($default_row_class) {
+ $row_classes[] = 'row-' . ($row_number + 1);
}
- if (count($rows) == ($row_number + 1)) {
- $row_classes[] = 'row-last';
+ if ($row_class_special) {
+ if ($row_number == 0) {
+ $row_classes[] = 'row-first';
+ }
+ if (count($rows) == ($row_number + 1)) {
+ $row_classes[] = 'row-last';
+ }
}
$vars['row_classes'][$row_number] = implode(' ', $row_classes);
foreach ($rows[$row_number] as $column_number => $item) {
$column_classes = array();
- $column_classes[] = 'col-'. ($column_number + 1);
- if ($column_number == 0) {
- $column_classes[] = 'col-first';
+ if ($default_row_class) {
+ $column_classes[] = 'col-'. ($column_number + 1);
}
- elseif (count($rows[$row_number]) == ($column_number + 1)) {
- $column_classes[] = 'col-last';
+ if ($row_class_special) {
+ if ($column_number == 0) {
+ $column_classes[] = 'col-first';
+ }
+ elseif (count($rows[$row_number]) == ($column_number + 1)) {
+ $column_classes[] = 'col-last';
+ }
}
if (isset($row_indexes[$row_number][$column_number]) && $column_class = $view->style_plugin->get_row_class($row_indexes[$row_number][$column_number])) {
$column_classes[] = $column_class;
@@ -746,22 +773,30 @@ function template_preprocess_views_view_grid(&$vars) {
function template_preprocess_views_view_unformatted(&$vars) {
$view = $vars['view'];
$rows = $vars['rows'];
+ $style = $view->style_plugin;
+ $options = $style->options;
$vars['classes_array'] = array();
$vars['classes'] = array();
+ $default_row_class = isset($options['default_row_class']) ? $options['default_row_class'] : FALSE;
+ $row_class_special = isset($options['row_class_special']) ? $options['row_class_special'] : FALSE;
// Set up striping values.
$count = 0;
$max = count($rows);
foreach ($rows as $id => $row) {
$count++;
- $vars['classes'][$id][] = 'views-row';
- $vars['classes'][$id][] = 'views-row-' . $count;
- $vars['classes'][$id][] = 'views-row-' . ($count % 2 ? 'odd' : 'even');
- if ($count == 1) {
- $vars['classes'][$id][] = 'views-row-first';
+ if ($default_row_class) {
+ $vars['classes'][$id][] = 'views-row';
+ $vars['classes'][$id][] = 'views-row-' . $count;
}
- if ($count == $max) {
- $vars['classes'][$id][] = 'views-row-last';
+ if ($row_class_special) {
+ $vars['classes'][$id][] = 'views-row-' . ($count % 2 ? 'odd' : 'even');
+ if ($count == 1) {
+ $vars['classes'][$id][] = 'views-row-first';
+ }
+ if ($count == $max) {
+ $vars['classes'][$id][] = 'views-row-last';
+ }
}
if ($row_class = $view->style_plugin->get_row_class($id)) {
@@ -769,7 +804,7 @@ function template_preprocess_views_view_unformatted(&$vars) {
}
// Flatten the classes to a string for each row for the template file.
- $vars['classes_array'][$id] = implode(' ', $vars['classes'][$id]);
+ $vars['classes_array'][$id] = isset($vars['classes'][$id]) ? implode(' ', $vars['classes'][$id]) : '';
}
}
@@ -818,7 +853,7 @@ function template_preprocess_views_view_rss(&$vars) {
// The RSS 2.0 "spec" doesn't indicate HTML can be used in the description.
// We strip all HTML tags, but need to prevent double encoding from properly
// escaped source data (such as &amp becoming &amp;amp;).
- $vars['description'] = check_plain(decode_entities(strip_tags($options['description'])));
+ $vars['description'] = check_plain(decode_entities(strip_tags($style->get_description())));
if ($view->display_handler->get_option('sitename_title')) {
$title = variable_get('site_name', 'Drupal');
@@ -901,16 +936,23 @@ function template_preprocess_views_exposed_form(&$vars) {
}
$widget = new stdClass;
// set up defaults so that there's always something there.
- $widget->label = $widget->operator = $widget->widget = NULL;
+ $widget->label = $widget->operator = $widget->widget = $widget->description = NULL;
$widget->id = isset($form[$info['value']]['#id']) ? $form[$info['value']]['#id'] : '';
+
if (!empty($info['label'])) {
- $widget->label = $info['label'];
+ $widget->label = check_plain($info['label']);
}
if (!empty($info['operator'])) {
$widget->operator = drupal_render($form[$info['operator']]);
}
+
$widget->widget = drupal_render($form[$info['value']]);
+
+ if (!empty($info['description'])) {
+ $widget->description = check_plain($info['description']);
+ }
+
$vars['widgets'][$id] = $widget;
}
@@ -1053,7 +1095,7 @@ function theme_views_container($variables) {
}
/**
- * @defgroup views_templates Views' template files
+ * @defgroup views_templates Views template files
* @{
* All views templates can be overridden with a variety of names, using
* the view, the display ID of the view, the display type of the view,
@@ -1095,6 +1137,6 @@ function theme_views_container($variables) {
* Important! When adding a new template to your theme, be sure to flush the
* theme registry cache!
*
- * @see _views_theme_functions
+ * @see _views_theme_functions()
* @}
*/
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-exposed-form.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-exposed-form.tpl.php
index 1112a7c..bdd570c 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-exposed-form.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-exposed-form.tpl.php
@@ -1,7 +1,7 @@
<?php
+
/**
- * @file views-exposed-form.tpl.php
- *
+ * @file
* This template handles the layout of the views exposed filter form.
*
* Variables available:
@@ -43,6 +43,11 @@
<div class="views-widget">
<?php print $widget->widget; ?>
</div>
+ <?php if (!empty($widget->description)): ?>
+ <div class="description">
+ <?php print $widget->description; ?>
+ </div>
+ <?php endif; ?>
</div>
<?php endforeach; ?>
<?php if (!empty($sort_by)): ?>
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-more.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-more.tpl.php
index 43b5221..0b7080b 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-more.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-more.tpl.php
@@ -1,7 +1,8 @@
<?php
+
/**
- * @file views-more.tpl.php
- * Theme the more link
+ * @file
+ * Theme the more link.
*
* - $view: The view object.
* - $more_url: the url for the more link.
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-display-tab-bucket.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-display-tab-bucket.tpl.php
index 6fa850e..6d51a1d 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-display-tab-bucket.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-display-tab-bucket.tpl.php
@@ -1,7 +1,7 @@
<?php
/**
- * @file views-ui-display-tab-bucket.tpl.php
+ * @file
* Template for each "box" on the display query edit screen.
*/
?>
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-display-tab-setting.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-display-tab-setting.tpl.php
index dd5c985..3d13e12 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-display-tab-setting.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-display-tab-setting.tpl.php
@@ -1,7 +1,7 @@
<?php
/**
- * @file views-ui-display-tab-setting.tpl.php
+ * @file
* Template for each row inside the "boxes" on the display query edit screen.
*/
?>
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-edit-item.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-edit-item.tpl.php
index a82aca9..bf90ec1 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-edit-item.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-edit-item.tpl.php
@@ -1,7 +1,7 @@
<?php
+
/**
- * @file views-ui-edit-item.tpl.php
- *
+ * @file
* This template handles the printing of fields/filters/sort criteria/arguments or relationships.
*/
?>
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-edit-view.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-edit-view.tpl.php
index 592ce58..5c3732c 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-edit-view.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-ui-edit-view.tpl.php
@@ -1,6 +1,7 @@
<?php
+
/**
- * @file views-ui-edit-view.tpl.php
+ * @file
* Template for the primary view editing window.
*/
?>
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-field.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-field.tpl.php
index 6bd6656..91d92ee 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-field.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-field.tpl.php
@@ -1,22 +1,25 @@
<?php
- /**
- * This template is used to print a single field in a view. It is not
- * actually used in default Views, as this is registered as a theme
- * function which has better performance. For single overrides, the
- * template is perfectly okay.
- *
- * Variables available:
- * - $view: The view object
- * - $field: The field handler object that can process the input
- * - $row: The raw SQL result that can be used
- * - $output: The processed output that will normally be used.
- *
- * When fetching output from the $row, this construct should be used:
- * $data = $row->{$field->field_alias}
- *
- * The above will guarantee that you'll always get the correct data,
- * regardless of any changes in the aliasing that might happen if
- * the view is modified.
- */
+
+/**
+ * @file
+ * This template is used to print a single field in a view.
+ *
+ * It is not actually used in default Views, as this is registered as a theme
+ * function which has better performance. For single overrides, the template is
+ * perfectly okay.
+ *
+ * Variables available:
+ * - $view: The view object
+ * - $field: The field handler object that can process the input
+ * - $row: The raw SQL result that can be used
+ * - $output: The processed output that will normally be used.
+ *
+ * When fetching output from the $row, this construct should be used:
+ * $data = $row->{$field->field_alias}
+ *
+ * The above will guarantee that you'll always get the correct data,
+ * regardless of any changes in the aliasing that might happen if
+ * the view is modified.
+ */
?>
<?php print $output; ?>
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-fields.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-fields.tpl.php
index 6d431b4..ae3a4c6 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-fields.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-fields.tpl.php
@@ -1,6 +1,7 @@
<?php
+
/**
- * @file views-view-fields.tpl.php
+ * @file
* Default simple view template to all the fields as a row.
*
* - $view: The view in use.
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grid.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grid.tpl.php
index b5dbfac..cd8d39e 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grid.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grid.tpl.php
@@ -1,6 +1,7 @@
<?php
+
/**
- * @file views-view-grid.tpl.php
+ * @file
* Default simple view template to display a rows in a grid.
*
* - $rows contains a nested array of rows. Each row contains an array of
@@ -15,9 +16,9 @@
<table class="<?php print $class; ?>"<?php print $attributes; ?>>
<tbody>
<?php foreach ($rows as $row_number => $columns): ?>
- <tr class="<?php print $row_classes[$row_number]; ?>">
+ <tr <?php if ($row_classes[$row_number]) { print 'class="' . $row_classes[$row_number] .'"'; } ?>>
<?php foreach ($columns as $column_number => $item): ?>
- <td class="<?php print $column_classes[$row_number][$column_number]; ?>">
+ <td <?php if ($column_classes[$row_number][$column_number]) { print 'class="' . $column_classes[$row_number][$column_number] .'"'; } ?>>
<?php print $item; ?>
</td>
<?php endforeach; ?>
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grouping.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grouping.tpl.php
index caffc5f..ebf7bc2 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grouping.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grouping.tpl.php
@@ -1,18 +1,21 @@
<?php
- /**
- * This template is used to print a single grouping in a view. It is not
- * actually used in default Views, as this is registered as a theme
- * function which has better performance. For single overrides, the
- * template is perfectly okay.
- *
- * Variables available:
- * - $view: The view object
- * - $grouping: The grouping instruction.
- * - $grouping_level: Integer indicating the hierarchical level of the grouping.
- * - $rows: The rows contained in this grouping.
- * - $title: The title of this grouping.
- * - $content: The processed content output that will normally be used.
- */
+
+/**
+ * @file
+ * This template is used to print a single grouping in a view.
+ *
+ * It is not actually used in default Views, as this is registered as a theme
+ * function which has better performance. For single overrides, the template is
+ * perfectly okay.
+ *
+ * Variables available:
+ * - $view: The view object
+ * - $grouping: The grouping instruction.
+ * - $grouping_level: Integer indicating the hierarchical level of the grouping.
+ * - $rows: The rows contained in this grouping.
+ * - $title: The title of this grouping.
+ * - $content: The processed content output that will normally be used.
+ */
?>
<div class="view-grouping">
<div class="view-grouping-header"><?php print $title; ?></div>
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-list.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-list.tpl.php
index b1d66f4..601279a 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-list.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-list.tpl.php
@@ -1,6 +1,7 @@
<?php
+
/**
- * @file views-view-list.tpl.php
+ * @file
* Default simple view template to display a list of rows.
*
* - $title : The title of this group of rows. May be empty.
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-row-comment.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-row-comment.tpl.php
index 627f5f7..7fe2e81 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-row-comment.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-row-comment.tpl.php
@@ -1,6 +1,7 @@
<?php
+
/**
- * @file views-view-row-comment.tpl.php
+ * @file
* Default simple view template to display a single comment.
*
* Rather than doing anything with this particular template, it is more
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-row-rss.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-row-rss.tpl.php
index 03c6acf..01e0696 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-row-rss.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-row-rss.tpl.php
@@ -1,6 +1,7 @@
<?php
+
/**
- * @file views-view-row-rss.tpl.php
+ * @file
* Default view template to display a item in an RSS feed.
*
* @ingroup views_templates
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-rss.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-rss.tpl.php
index 10800b2..18ca73e 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-rss.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-rss.tpl.php
@@ -1,6 +1,7 @@
<?php
+
/**
- * @file views-view-rss.tpl.php
+ * @file
* Default template for feed displays that use the RSS style.
*
* @ingroup views_templates
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-summary-unformatted.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-summary-unformatted.tpl.php
index 632d334..306d76f 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-summary-unformatted.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-summary-unformatted.tpl.php
@@ -1,7 +1,8 @@
<?php
+
/**
- * @file views-view-summary-unformatted.tpl.php
- * Default simple view template to display a group of summary lines
+ * @file
+ * Default simple view template to display a group of summary lines.
*
* This wraps items in a span if set to inline, or a div if not.
*
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-summary.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-summary.tpl.php
index 3ee25bb..22969eb 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-summary.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-summary.tpl.php
@@ -1,7 +1,8 @@
<?php
+
/**
- * @file views-view-summary.tpl.php
- * Default simple view template to display a list of summary lines
+ * @file
+ * Default simple view template to display a list of summary lines.
*
* @ingroup views_templates
*/
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-table.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-table.tpl.php
index 28138db..a9abcd3 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-table.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-table.tpl.php
@@ -1,6 +1,7 @@
<?php
+
/**
- * @file views-view-table.tpl.php
+ * @file
* Template to display a view as a table.
*
* - $title : The title of this group of rows. May be empty.
@@ -34,7 +35,7 @@
<?php endif; ?>
<tbody>
<?php foreach ($rows as $row_count => $row): ?>
- <tr class="<?php print implode(' ', $row_classes[$row_count]); ?>">
+ <tr <?php if ($row_classes[$row_count]) { print 'class="' . implode(' ', $row_classes[$row_count]) .'"'; } ?>>
<?php foreach ($row as $field => $content): ?>
<td <?php if ($field_classes[$field][$row_count]) { print 'class="'. $field_classes[$field][$row_count] . '" '; } ?><?php print drupal_attributes($field_attributes[$field][$row_count]); ?>>
<?php print $content; ?>
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-unformatted.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-unformatted.tpl.php
index 89b35aa..4f4558e 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-unformatted.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-unformatted.tpl.php
@@ -1,6 +1,7 @@
<?php
+
/**
- * @file views-view-unformatted.tpl.php
+ * @file
* Default simple view template to display a list of rows.
*
* @ingroup views_templates
@@ -10,7 +11,7 @@
<h3><?php print $title; ?></h3>
<?php endif; ?>
<?php foreach ($rows as $id => $row): ?>
- <div class="<?php print $classes_array[$id]; ?>">
+ <div <?php if ($classes_array[$id]) { print 'class="' . $classes_array[$id] .'"'; } ?>>
<?php print $row; ?>
</div>
<?php endforeach; ?>
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view.tpl.php
index 94393ee..579cf12 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view.tpl.php
@@ -1,7 +1,8 @@
<?php
+
/**
- * @file views-view.tpl.php
- * Main view template
+ * @file
+ * Main view template.
*
* Variables available:
* - $classes_array: An array of classes determined in