Skip to content
Snippets Groups Projects
Commit 08bd3069 authored by Karen Stevenson's avatar Karen Stevenson
Browse files

Keep year out of mini navigation title, and make sure it is a link to the view.

parent 68a7726a
No related branches found
No related tags found
No related merge requests found
......@@ -329,15 +329,18 @@ function theme_calendar_nav_title($type, $view, $link = FALSE, $format = NULL) {
$url = $real_url .'/'. $view->year;
break;
case 'month':
$title = date_format_date($view->min_date, 'custom', !empty($format) ? $format : 'F Y');
$format = !empty($format) ? $format : (!$view->mini ? 'F Y' : 'F');
$title = date_format_date($view->min_date, 'custom', $format);
$url = $real_url .'/'. $view->year .'/'. $view->month;
break;
case 'day':
$title = date_format_date($view->min_date, 'custom', !empty($format) ? $format : 'l, F j Y');
$format = !empty($format) ? $format : (!$view->mini ? 'l, F j Y' : 'l, F j');
$title = date_format_date($view->min_date, 'custom', $format);
$url = $real_url .'/'. $view->year .'/'. $view->month .'/'. $view->day;
break;
case 'week':
$title = t('Week of @date', array('@date' => date_format_date($view->min_date, 'custom', !empty($format) ? $format : 'F j Y')));
$format = !empty($format) ? $format : (!$view->mini ? 'F j Y' : 'F j');
$title = t('Week of @date', array('@date' => date_format_date($view->min_date, 'custom', $format)));
$url = $real_url .'/'. $view->year .'/'. $view->week;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment