summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.18/sites/all/modules/views/theme/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.18/sites/all/modules/views/theme/theme.inc')
-rw-r--r--kolab.org/www/drupal-7.18/sites/all/modules/views/theme/theme.inc29
1 files changed, 21 insertions, 8 deletions
diff --git a/kolab.org/www/drupal-7.18/sites/all/modules/views/theme/theme.inc b/kolab.org/www/drupal-7.18/sites/all/modules/views/theme/theme.inc
index 52598d5..e7f7a15 100644
--- a/kolab.org/www/drupal-7.18/sites/all/modules/views/theme/theme.inc
+++ b/kolab.org/www/drupal-7.18/sites/all/modules/views/theme/theme.inc
@@ -649,8 +649,17 @@ function template_preprocess_views_view_table(&$vars) {
}
$vars['classes_array'][] = 'cols-'. count($vars['header']);
+ // Add the summary to the list if set.
if (!empty($handler->options['summary'])) {
- $vars['attributes_array'] = array('summary' => $handler->options['summary']);
+ $vars['attributes_array'] = array('summary' => filter_xss_admin($handler->options['summary']));
+ }
+
+ // Add the caption to the list if set.
+ if (!empty($handler->options['caption'])) {
+ $vars['caption'] = filter_xss_admin($handler->options['caption']);
+ }
+ else {
+ $vars['caption'] = '';
}
}
@@ -762,8 +771,18 @@ function template_preprocess_views_view_grid(&$vars) {
}
$vars['rows'] = $rows;
$vars['class'] = 'views-view-grid cols-' . $columns;
+
+ // Add the summary to the list if set.
if (!empty($handler->options['summary'])) {
- $vars['attributes_array'] = array('summary' => $handler->options['summary']);
+ $vars['attributes_array'] = array('summary' => filter_xss_admin($handler->options['summary']));
+ }
+
+ // Add the caption to the list if set.
+ if (!empty($handler->options['caption'])) {
+ $vars['caption'] = filter_xss_admin($handler->options['caption']);
+ }
+ else {
+ $vars['caption'] = '';
}
}
@@ -1021,19 +1040,13 @@ function theme_views_mini_pager($vars) {
$tags = $vars['tags'];
$element = $vars['element'];
$parameters = $vars['parameters'];
- $quantity = $vars['quantity'];
- // Calculate various markers within this pager piece:
- // Middle is used to "center" pages around the current page.
- $pager_middle = ceil($quantity / 2);
// current is the page we are currently paged to
$pager_current = $pager_page_array[$element] + 1;
// max is the maximum page number
$pager_max = $pager_total[$element];
// End of marker calculations.
-
-
if ($pager_total[$element] > 1) {
$li_previous = theme('pager_previous',