Skip to content

Commit

Permalink
LUGG-1080 Change pager title to h1 (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelamnr committed Mar 26, 2018
1 parent 9e716c3 commit 4b63c1b
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions templates/date-views-pager.tpl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?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.
*/
?>
<?php if (!empty($pager_prefix)) : ?>
<?php print $pager_prefix; ?>
<?php endif; ?>
<div class="date-nav-wrapper clearfix<?php if (!empty($extra_classes)): print $extra_classes; endif; ?>">
<div class="date-nav item-list">
<div class="date-heading">
<h1><?php print $nav_title ?></h1>
</div>
<ul class="pager">
<?php if (!empty($prev_url)) : ?>
<li class="date-prev">
<?php
$text = '&laquo;';
$text .= $mini ? '' : ' ' . t('Prev', array(), array('context' => 'date_nav'));
print l(t($text), $prev_url, $prev_options);
?>
</li>
<?php endif; ?>
<?php if (!empty($next_url)) : ?>
<li class="date-next">
<?php print l(($mini ? '' : t('Next', array(), array('context' => 'date_nav')) . ' ') . '&raquo;', $next_url, $next_options); ?>
</li>
<?php endif; ?>
</ul>
</div>
</div>

0 comments on commit 4b63c1b

Please sign in to comment.