summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathew Winstone2012-11-07 16:26:28 (GMT)
committer Mathew Winstone2012-11-07 16:26:28 (GMT)
commitfd0a6444d239c65644747cb2ff6c4d98648a69d9 (patch)
tree0d864d301e67d64be089eb9915a084c22236ab3d
parenteffc58f55c1bee4daa4e69a24daee1bdb2d47f34 (diff)
Final pass through coder (minor)
-rw-r--r--bvt.module2
-rw-r--r--views-view-bvt-tables.tpl.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/bvt.module b/bvt.module
index 9001abf..c874c10 100644
--- a/bvt.module
+++ b/bvt.module
@@ -281,7 +281,7 @@ function template_preprocess_views_view_bvt_tables(&$vars) {
drupal_add_js('misc/tableheader.js');
$vars['classes_array'][] = "sticky-enabled";
}
- $vars['classes_array'][] = 'cols-'. count($vars['header']);
+ $vars['classes_array'][] = 'cols-' . count($vars['header']);
if (!empty($handler->options['summary'])) {
$vars['attributes_array'] = array('summary' => $handler->options['summary']);
diff --git a/views-view-bvt-tables.tpl.php b/views-view-bvt-tables.tpl.php
index 46b204e..597934a 100644
--- a/views-view-bvt-tables.tpl.php
+++ b/views-view-bvt-tables.tpl.php
@@ -17,7 +17,7 @@
* @ingroup views_templates
*/
?>
-<table <?php if ($classes) { print 'class="'. $classes . '" '; } ?><?php print $attributes; ?>>
+<table <?php if ($classes) : print 'class="'. $classes . '" '; endif; ?><?php print $attributes; ?>>
<?php if (!empty($caption)) : ?>
<caption><?php print $caption; ?></caption>
<?php endif; ?>
@@ -25,7 +25,7 @@
<tr>
<?php foreach ($header as $field => $label): ?>
<?if (!isset($header_columns[$field])): ?>
- <th <?php if ($header_classes[$field]) { print 'class="'. $header_classes[$field] . '" '; } ?>>
+ <th <?php if ($header_classes[$field]) : print 'class="'. $header_classes[$field] . '" ';?>>
<?php print $label; ?>
</th>
<?php else: ?>
@@ -44,7 +44,7 @@
else {
$row_element = 'td';
}
- ?><<?php print $row_element;?> <?php if ($field_classes[$field][$count]) { print 'class="'. $field_classes[$field][$count] . '" '; } ?><?php print drupal_attributes($field_attributes[$field][$count]); ?>>
+ ?><<?php print $row_element;?> <?php if ($field_classes[$field][$count]) : print 'class="'. $field_classes[$field][$count] . '" '; endif; ?><?php print drupal_attributes($field_attributes[$field][$count]); ?>>
<?php print $content; ?>
</<?php print $row_element;?>>
<?php endforeach; ?>