first commit
[step2_drupal.git] / date / theme / date-navigation.tpl.php
blob4e7ffe25941afd0571211116b502f7409bbf69f0
1 <?php
2 // $Id: date-navigation.tpl.php,v 1.1.4.9 2009/02/27 14:17:27 karens Exp $
3 /**
4 * @file
5 * Template to display date navigation links.
7 * $nav_title
8 * The formatted title for this view. In the case of block
9 * views, it will be a link to the full view, otherwise it will
10 * be the formatted name of the year, month, day, or week.
12 * $prev_url
13 * $next_url
14 * Urls for the previous and next calendar pages. The links are
15 * composed in the template to make it easier to change the text,
16 * add images, etc.
18 * $prev_options
19 * $next_options
20 * Query strings and other options for the links that need to
21 * be used in the l() function, including rel=nofollow.
23 * $block:
24 * Whether or not this view is in a block.
26 * $view
27 * The view object for this navigation.
29 * The &nbsp; in the prev and next divs is to be sure they are never
30 * completely empty, needed in some browsers to prop the header open
31 * so the title stays centered.
35 <div class="date-nav clear-block">
36 <div class="date-prev">
37 <?php if (!empty($prev_url)) : ?>
38 <span class="next"> <?php print l('« ' . ($block ? '' : date_t('Prev', 'date_nav')), $prev_url, $prev_options); ?></span>
39 <?php endif; ?>
40 &nbsp;</div>
41 <div class="date-heading">
42 <h3><?php print $nav_title ?></h3>
43 </div>
44 <div class="date-next">&nbsp;
45 <?php if (!empty($next_url)) : ?>
46 <span class="next"> <?php print l(($block ? '' : date_t('Next', 'date_nav')) . '»', $next_url, $next_options); ?></span>
47 <?php endif; ?>
48 </div>
49 </div>