first import
This commit is contained in:
1155
sites/all/modules/views/theme/theme.inc
Normal file
1155
sites/all/modules/views/theme/theme.inc
Normal file
File diff suppressed because it is too large
Load Diff
80
sites/all/modules/views/theme/views-exposed-form.tpl.php
Normal file
80
sites/all/modules/views/theme/views-exposed-form.tpl.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* This template handles the layout of the views exposed filter form.
|
||||
*
|
||||
* Variables available:
|
||||
* - $widgets: An array of exposed form widgets. Each widget contains:
|
||||
* - $widget->label: The visible label to print. May be optional.
|
||||
* - $widget->operator: The operator for the widget. May be optional.
|
||||
* - $widget->widget: The widget itself.
|
||||
* - $sort_by: The select box to sort the view using an exposed form.
|
||||
* - $sort_order: The select box with the ASC, DESC options to define order. May be optional.
|
||||
* - $items_per_page: The select box with the available items per page. May be optional.
|
||||
* - $offset: A textfield to define the offset of the view. May be optional.
|
||||
* - $reset_button: A button to reset the exposed filter applied. May be optional.
|
||||
* - $button: The submit button for the form.
|
||||
*
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
<?php if (!empty($q)): ?>
|
||||
<?php
|
||||
// This ensures that, if clean URLs are off, the 'q' is added first so that
|
||||
// it shows up first in the URL.
|
||||
print $q;
|
||||
?>
|
||||
<?php endif; ?>
|
||||
<div class="views-exposed-form">
|
||||
<div class="views-exposed-widgets clearfix">
|
||||
<?php foreach ($widgets as $id => $widget): ?>
|
||||
<div id="<?php print $widget->id; ?>-wrapper" class="views-exposed-widget views-widget-<?php print $id; ?>">
|
||||
<?php if (!empty($widget->label)): ?>
|
||||
<label for="<?php print $widget->id; ?>">
|
||||
<?php print $widget->label; ?>
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($widget->operator)): ?>
|
||||
<div class="views-operator">
|
||||
<?php print $widget->operator; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<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)): ?>
|
||||
<div class="views-exposed-widget views-widget-sort-by">
|
||||
<?php print $sort_by; ?>
|
||||
</div>
|
||||
<div class="views-exposed-widget views-widget-sort-order">
|
||||
<?php print $sort_order; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($items_per_page)): ?>
|
||||
<div class="views-exposed-widget views-widget-per-page">
|
||||
<?php print $items_per_page; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($offset)): ?>
|
||||
<div class="views-exposed-widget views-widget-offset">
|
||||
<?php print $offset; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="views-exposed-widget views-submit-button">
|
||||
<?php print $button; ?>
|
||||
</div>
|
||||
<?php if (!empty($reset_button)): ?>
|
||||
<div class="views-exposed-widget views-reset-button">
|
||||
<?php print $reset_button; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
19
sites/all/modules/views/theme/views-more.tpl.php
Normal file
19
sites/all/modules/views/theme/views-more.tpl.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Theme the more link.
|
||||
*
|
||||
* - $view: The view object.
|
||||
* - $more_url: the url for the more link.
|
||||
* - $link_text: the text for the more link.
|
||||
*
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
|
||||
<div class="more-link">
|
||||
<a href="<?php print $more_url ?>">
|
||||
<?php print $link_text; ?>
|
||||
</a>
|
||||
</div>
|
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Template for each "box" on the display query edit screen.
|
||||
*/
|
||||
?>
|
||||
<div class="<?php print $classes; ?>" <?php print $attributes; ?>>
|
||||
<?php print $item_help_icon; ?>
|
||||
<?php if(!empty($actions)) : ?>
|
||||
<?php print $actions; ?>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($title)) : ?>
|
||||
<h3><?php print $title; ?></h3>
|
||||
<?php endif; ?>
|
||||
<?php print $content; ?>
|
||||
</div>
|
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Template for each row inside the "boxes" on the display query edit screen.
|
||||
*/
|
||||
?>
|
||||
<div class="views-display-setting <?php print $classes; ?> <?php print $zebra; ?> clearfix" <?php print $attributes; ?>>
|
||||
<?php if ($description): ?>
|
||||
<span class="label"><?php print $description; ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if ($settings_links): ?>
|
||||
<?php print $settings_links; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
45
sites/all/modules/views/theme/views-ui-edit-item.tpl.php
Normal file
45
sites/all/modules/views/theme/views-ui-edit-item.tpl.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* This template handles the printing of fields/filters/sort criteria/arguments or relationships.
|
||||
*/
|
||||
?>
|
||||
<?php print $rearrange; ?>
|
||||
<?php print $add; ?>
|
||||
<div class="views-category-title<?php
|
||||
if ($overridden) {
|
||||
print ' overridden';
|
||||
}
|
||||
if ($defaulted) {
|
||||
print ' defaulted';
|
||||
}
|
||||
?>">
|
||||
<?php print $item_help_icon; ?>
|
||||
<?php print $title; ?>
|
||||
</div>
|
||||
|
||||
<div class="views-category-content<?php
|
||||
if ($overridden) {
|
||||
print ' overridden';
|
||||
}
|
||||
if ($defaulted) {
|
||||
print ' defaulted';
|
||||
}
|
||||
?>">
|
||||
<?php if (!empty($no_fields)): ?>
|
||||
<div><?php print t('The style selected does not utilize fields.'); ?></div>
|
||||
<?php elseif (empty($fields)): ?>
|
||||
<div><?php print t('None defined'); ?></div>
|
||||
<?php else: ?>
|
||||
<?php foreach ($fields as $pid => $field): ?>
|
||||
<?php if (!empty($field['links'])): ?>
|
||||
<?php print $field['links']; ?>
|
||||
<?php endif; ?>
|
||||
<div class="<?php print $field['class']; if (!empty($field['changed'])) { print ' changed'; } ?>">
|
||||
<?php print $field['title']; ?>
|
||||
<?php print $field['info']; ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
46
sites/all/modules/views/theme/views-ui-edit-view.tpl.php
Normal file
46
sites/all/modules/views/theme/views-ui-edit-view.tpl.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Template for the primary view editing window.
|
||||
*/
|
||||
?>
|
||||
<div class="views-edit-view">
|
||||
<?php if ($locked): ?>
|
||||
<div class="view-locked">
|
||||
<?php print t('This view is being edited by user !user, and is therefore locked from editing by others. This lock is !age old. Click here to <a href="!break">break this lock</a>.', array('!user' => $locked, '!age' => $lock_age, '!break' => $break)); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="views-basic-info clearfix<?php if (!empty($view->changed)) { print " changed"; }?>">
|
||||
<?php if (!is_numeric($view->vid)): ?>
|
||||
<div class="view-changed view-new"><?php print t('New view'); ?></div>
|
||||
<?php else: ?>
|
||||
<div class="view-changed"><?php print t('Changed view'); ?></div>
|
||||
<?php endif; ?>
|
||||
<div class="views-quick-links">
|
||||
<?php print $quick_links ?>
|
||||
</div>
|
||||
<?php print t('View %name, displaying items of type <strong>@base</strong>.',
|
||||
array('%name' => $view->name, '@base' => $base_table)); ?>
|
||||
</div>
|
||||
|
||||
<?php print $tabs; ?>
|
||||
|
||||
<div id="views-ajax-form">
|
||||
<div id="views-ajax-title">
|
||||
<?php // This is initially empty ?>
|
||||
</div>
|
||||
<div id="views-ajax-pad">
|
||||
<?php /* This is sent in because it is also sent out through settings and
|
||||
needs to be consistent. */ ?>
|
||||
<?php print $message; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php print $save_button ?>
|
||||
|
||||
<h2><?php print t('Live preview'); ?></h2>
|
||||
<div id='views-live-preview'>
|
||||
<?php print $preview ?>
|
||||
</div>
|
||||
</div>
|
25
sites/all/modules/views/theme/views-view-field.tpl.php
Normal file
25
sites/all/modules/views/theme/views-view-field.tpl.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @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; ?>
|
36
sites/all/modules/views/theme/views-view-fields.tpl.php
Normal file
36
sites/all/modules/views/theme/views-view-fields.tpl.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Default simple view template to all the fields as a row.
|
||||
*
|
||||
* - $view: The view in use.
|
||||
* - $fields: an array of $field objects. Each one contains:
|
||||
* - $field->content: The output of the field.
|
||||
* - $field->raw: The raw data for the field, if it exists. This is NOT output safe.
|
||||
* - $field->class: The safe class id to use.
|
||||
* - $field->handler: The Views field handler object controlling this field. Do not use
|
||||
* var_export to dump this object, as it can't handle the recursion.
|
||||
* - $field->inline: Whether or not the field should be inline.
|
||||
* - $field->inline_html: either div or span based on the above flag.
|
||||
* - $field->wrapper_prefix: A complete wrapper containing the inline_html to use.
|
||||
* - $field->wrapper_suffix: The closing tag for the wrapper.
|
||||
* - $field->separator: an optional separator that may appear before a field.
|
||||
* - $field->label: The wrap label text to use.
|
||||
* - $field->label_html: The full HTML of the label to use including
|
||||
* configured element type.
|
||||
* - $row: The raw result object from the query, with all data it fetched.
|
||||
*
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
<?php foreach ($fields as $id => $field): ?>
|
||||
<?php if (!empty($field->separator)): ?>
|
||||
<?php print $field->separator; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php print $field->wrapper_prefix; ?>
|
||||
<?php print $field->label_html; ?>
|
||||
<?php print $field->content; ?>
|
||||
<?php print $field->wrapper_suffix; ?>
|
||||
<?php endforeach; ?>
|
32
sites/all/modules/views/theme/views-view-grid.tpl.php
Normal file
32
sites/all/modules/views/theme/views-view-grid.tpl.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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
|
||||
* columns.
|
||||
*
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
<?php if (!empty($title)) : ?>
|
||||
<h3><?php print $title; ?></h3>
|
||||
<?php endif; ?>
|
||||
<table class="<?php print $class; ?>"<?php print $attributes; ?>>
|
||||
<?php if (!empty($caption)) : ?>
|
||||
<caption><?php print $caption; ?></caption>
|
||||
<?php endif; ?>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($rows as $row_number => $columns): ?>
|
||||
<tr <?php if ($row_classes[$row_number]) { print 'class="' . $row_classes[$row_number] .'"'; } ?>>
|
||||
<?php foreach ($columns as $column_number => $item): ?>
|
||||
<td <?php if ($column_classes[$row_number][$column_number]) { print 'class="' . $column_classes[$row_number][$column_number] .'"'; } ?>>
|
||||
<?php print $item; ?>
|
||||
</td>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
25
sites/all/modules/views/theme/views-view-grouping.tpl.php
Normal file
25
sites/all/modules/views/theme/views-view-grouping.tpl.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @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>
|
||||
<div class="view-grouping-content">
|
||||
<?php print $content; ?>
|
||||
</div>
|
||||
</div>
|
21
sites/all/modules/views/theme/views-view-list.tpl.php
Normal file
21
sites/all/modules/views/theme/views-view-list.tpl.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Default simple view template to display a list of rows.
|
||||
*
|
||||
* - $title : The title of this group of rows. May be empty.
|
||||
* - $options['type'] will either be ul or ol.
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
<?php print $wrapper_prefix; ?>
|
||||
<?php if (!empty($title)) : ?>
|
||||
<h3><?php print $title; ?></h3>
|
||||
<?php endif; ?>
|
||||
<?php print $list_type_prefix; ?>
|
||||
<?php foreach ($rows as $id => $row): ?>
|
||||
<li class="<?php print $classes_array[$id]; ?>"><?php print $row; ?></li>
|
||||
<?php endforeach; ?>
|
||||
<?php print $list_type_suffix; ?>
|
||||
<?php print $wrapper_suffix; ?>
|
18
sites/all/modules/views/theme/views-view-row-comment.tpl.php
Normal file
18
sites/all/modules/views/theme/views-view-row-comment.tpl.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Default simple view template to display a single comment.
|
||||
*
|
||||
* Rather than doing anything with this particular template, it is more
|
||||
* efficient to use a variant of the comment.tpl.php based upon the view,
|
||||
* which will be named comment-view-VIEWNAME.tpl.php. This isn't actually
|
||||
* a views template, which is why it's not used here, but is a template
|
||||
* 'suggestion' given to the comment template, and is used exactly
|
||||
* the same as any other variant of the comment template file, such as
|
||||
* node-nodeTYPE.tpl.php
|
||||
*
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
<?php print $comment; ?>
|
15
sites/all/modules/views/theme/views-view-row-rss.tpl.php
Normal file
15
sites/all/modules/views/theme/views-view-row-rss.tpl.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Default view template to display a item in an RSS feed.
|
||||
*
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
<item>
|
||||
<title><?php print $title; ?></title>
|
||||
<link><?php print $link; ?></link>
|
||||
<description><?php print $description; ?></description>
|
||||
<?php print $item_elements; ?>
|
||||
</item>
|
20
sites/all/modules/views/theme/views-view-rss.tpl.php
Normal file
20
sites/all/modules/views/theme/views-view-rss.tpl.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Default template for feed displays that use the RSS style.
|
||||
*
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
<?php print "<?xml"; ?> version="1.0" encoding="utf-8" <?php print "?>"; ?>
|
||||
<rss version="2.0" xml:base="<?php print $link; ?>"<?php print $namespaces; ?>>
|
||||
<channel>
|
||||
<title><?php print $title; ?></title>
|
||||
<link><?php print $link; ?></link>
|
||||
<description><?php print $description; ?></description>
|
||||
<language><?php print $langcode; ?></language>
|
||||
<?php print $channel_elements; ?>
|
||||
<?php print $items; ?>
|
||||
</channel>
|
||||
</rss>
|
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @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.
|
||||
*
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
<?php foreach ($rows as $id => $row): ?>
|
||||
<?php print (!empty($options['inline']) ? '<span' : '<div') . ' class="views-summary views-summary-unformatted">'; ?>
|
||||
<?php if (!empty($row->separator)) { print $row->separator; } ?>
|
||||
<a href="<?php print $row->url; ?>"<?php print !empty($row_classes[$id]) ? ' class="' . $row_classes[$id] . '"' : ''; ?>><?php print $row->link; ?></a>
|
||||
<?php if (!empty($options['count'])): ?>
|
||||
(<?php print $row->count; ?>)
|
||||
<?php endif; ?>
|
||||
<?php print !empty($options['inline']) ? '</span>' : '</div>'; ?>
|
||||
<?php endforeach; ?>
|
20
sites/all/modules/views/theme/views-view-summary.tpl.php
Normal file
20
sites/all/modules/views/theme/views-view-summary.tpl.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Default simple view template to display a list of summary lines.
|
||||
*
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
<div class="item-list">
|
||||
<ul class="views-summary">
|
||||
<?php foreach ($rows as $id => $row): ?>
|
||||
<li><a href="<?php print $row->url; ?>"<?php print !empty($row_classes[$id]) ? ' class="'. $row_classes[$id] .'"' : ''; ?>><?php print $row->link; ?></a>
|
||||
<?php if (!empty($options['count'])): ?>
|
||||
(<?php print $row->count?>)
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
48
sites/all/modules/views/theme/views-view-table.tpl.php
Normal file
48
sites/all/modules/views/theme/views-view-table.tpl.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Template to display a view as a table.
|
||||
*
|
||||
* - $title : The title of this group of rows. May be empty.
|
||||
* - $header: An array of header labels keyed by field id.
|
||||
* - $caption: The caption for this table. May be empty.
|
||||
* - $header_classes: An array of header classes keyed by field id.
|
||||
* - $fields: An array of CSS IDs to use for each field id.
|
||||
* - $classes: A class or classes to apply to the table, based on settings.
|
||||
* - $row_classes: An array of classes to apply to each row, indexed by row
|
||||
* number. This matches the index in $rows.
|
||||
* - $rows: An array of row items. Each row is an array of content.
|
||||
* $rows are keyed by row number, fields within rows are keyed by field ID.
|
||||
* - $field_classes: An array of classes to apply to each field, indexed by
|
||||
* field id, then row number. This matches the index in $rows.
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
<table <?php if ($classes) { print 'class="'. $classes . '" '; } ?><?php print $attributes; ?>>
|
||||
<?php if (!empty($title) || !empty($caption)) : ?>
|
||||
<caption><?php print $caption . $title; ?></caption>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($header)) : ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<?php foreach ($header as $field => $label): ?>
|
||||
<th <?php if ($header_classes[$field]) { print 'class="'. $header_classes[$field] . '" '; } ?>>
|
||||
<?php print $label; ?>
|
||||
</th>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php endif; ?>
|
||||
<tbody>
|
||||
<?php foreach ($rows as $row_count => $row): ?>
|
||||
<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; ?>
|
||||
</td>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
17
sites/all/modules/views/theme/views-view-unformatted.tpl.php
Normal file
17
sites/all/modules/views/theme/views-view-unformatted.tpl.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Default simple view template to display a list of rows.
|
||||
*
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
<?php if (!empty($title)): ?>
|
||||
<h3><?php print $title; ?></h3>
|
||||
<?php endif; ?>
|
||||
<?php foreach ($rows as $id => $row): ?>
|
||||
<div<?php if ($classes_array[$id]) { print ' class="' . $classes_array[$id] .'"'; } ?>>
|
||||
<?php print $row; ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
90
sites/all/modules/views/theme/views-view.tpl.php
Normal file
90
sites/all/modules/views/theme/views-view.tpl.php
Normal file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Main view template.
|
||||
*
|
||||
* Variables available:
|
||||
* - $classes_array: An array of classes determined in
|
||||
* template_preprocess_views_view(). Default classes are:
|
||||
* .view
|
||||
* .view-[css_name]
|
||||
* .view-id-[view_name]
|
||||
* .view-display-id-[display_name]
|
||||
* .view-dom-id-[dom_id]
|
||||
* - $classes: A string version of $classes_array for use in the class attribute
|
||||
* - $css_name: A css-safe version of the view name.
|
||||
* - $css_class: The user-specified classes names, if any
|
||||
* - $header: The view header
|
||||
* - $footer: The view footer
|
||||
* - $rows: The results of the view query, if any
|
||||
* - $empty: The empty text to display if the view is empty
|
||||
* - $pager: The pager next/prev links to display, if any
|
||||
* - $exposed: Exposed widget form/info to display
|
||||
* - $feed_icon: Feed icon to display, if any
|
||||
* - $more: A link to view more, if any
|
||||
*
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
<div class="<?php print $classes; ?>">
|
||||
<?php print render($title_prefix); ?>
|
||||
<?php if ($title): ?>
|
||||
<?php print $title; ?>
|
||||
<?php endif; ?>
|
||||
<?php print render($title_suffix); ?>
|
||||
<?php if ($header): ?>
|
||||
<div class="view-header">
|
||||
<?php print $header; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($exposed): ?>
|
||||
<div class="view-filters">
|
||||
<?php print $exposed; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($attachment_before): ?>
|
||||
<div class="attachment attachment-before">
|
||||
<?php print $attachment_before; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($rows): ?>
|
||||
<div class="view-content">
|
||||
<?php print $rows; ?>
|
||||
</div>
|
||||
<?php elseif ($empty): ?>
|
||||
<div class="view-empty">
|
||||
<?php print $empty; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($pager): ?>
|
||||
<?php print $pager; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($attachment_after): ?>
|
||||
<div class="attachment attachment-after">
|
||||
<?php print $attachment_after; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($more): ?>
|
||||
<?php print $more; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($footer): ?>
|
||||
<div class="view-footer">
|
||||
<?php print $footer; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($feed_icon): ?>
|
||||
<div class="feed-icon">
|
||||
<?php print $feed_icon; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div><?php /* class view */ ?>
|
Reference in New Issue
Block a user