From f6ff15f7faca6bba0c396aff6763deaed6bde691 Sun, 1 Jan 2017 23:17:13 +0100 From: hass Date: Sun, 1 Jan 2017 23:17:03 +0100 Subject: [PATCH] Issue #2839880 by hass: Add date/calendar module template diff --git a/templates/date/date-views-pager.tpl.php b/templates/date/date-views-pager.tpl.php new file mode 100644 index 0000000..dceb60a --- /dev/null +++ b/templates/date/date-views-pager.tpl.php @@ -0,0 +1,51 @@ +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. See theme_date_nav_title() for more + * details. + * - $prev_url: URL to the previous calendar pages. + * - $prev_options: Query strings and other options for the links that need to + * be used in the l() function, including rel="nofollow". + * - $prev_title: Title of the previous calendar page. + * - $prev_label: Name of the previous calendar link. + * - $next_url: URL to the next calendar pages. + * - $next_options: Query strings and other options for the links that need to + * be used in the l() function, including rel="nofollow". + * - $next_title: Title of the next calendar page. + * - $next_label: Name of the next calendar link. + * + * @see template_preprocess_date_views_pager(). + * + * @ingroup templates + */ +?> + + + +
+
+
+
+

+
+
+ +
+
diff --git a/templates/date/date-views-pager.vars.php b/templates/date/date-views-pager.vars.php new file mode 100644 index 0000000..9d41468 --- /dev/null +++ b/templates/date/date-views-pager.vars.php @@ -0,0 +1,27 @@ + 'date_nav')); + + // Next link. + $variables['next_title'] = isset($variables['next_options']['attributes']['title']) ? $variables['next_options']['attributes']['title'] : ''; + $variables['next_label'] = ($variables['mini'] ? '' : t('Next', array(), array('context' => 'date_nav'))) . ' ' . '»'; +}