date-views-pager.tpl.php in Date 8
Same filename and directory in other branches
Template file for the example display.
Variables available:
$plugin: The pager plugin object. This contains the view.
$plugin->view The view object for this navigation.
$nav_title The formatted title for this view. In the case of block views, it will be a link to the full view, otherwise it will be the formatted name of the year, month, day, or week.
$prev_url $next_url Urls for the previous and next calendar pages. The links are composed in the template to make it easier to change the text, add images, etc.
$prev_options $next_options Query strings and other options for the links that need to be used in the l() function, including rel=nofollow.
File
date_views/theme/date-views-pager.tpl.phpView source
<?php
/**
* @file
* Template file for the example display.
*
* Variables available:
*
* $plugin: The pager plugin object. This contains the view.
*
* $plugin->view
* The view object for this navigation.
*
* $nav_title
* The formatted title for this view. In the case of block
* views, it will be a link to the full view, otherwise it will
* be the formatted name of the year, month, day, or week.
*
* $prev_url
* $next_url
* Urls for the previous and next calendar pages. The links are
* composed in the template to make it easier to change the text,
* add images, etc.
*
* $prev_options
* $next_options
* Query strings and other options for the links that need to
* be used in the l() function, including rel=nofollow.
*/
if (!empty($pager_prefix)) {
print $pager_prefix;
}
?>
<div class="date-nav-wrapper clearfix<?php
if (!empty($extra_classes)) {
print $extra_classes;
}
?>">
<div class="date-nav item-list">
<div class="date-heading">
<h3><?php
print $nav_title;
?></h3>
</div>
<ul class="pager">
<?php
if (!empty($prev_url)) {
?>
<li class="date-prev">
<?php
print l('«' . ($mini ? '' : ' ' . t('Prev', array(), array(
'context' => 'date_nav',
))), $prev_url, $prev_options);
?>
</li>
<?php
}
?>
<?php
if (!empty($next_url)) {
?>
<li class="date-next">
<?php
print l(($mini ? '' : t('Next', array(), array(
'context' => 'date_nav',
)) . ' ') . '»', $next_url, $next_options);
?>
</li>
<?php
}
?>
</ul>
</div>
</div>