-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplate.php
More file actions
33 lines (28 loc) · 769 Bytes
/
template.php
File metadata and controls
33 lines (28 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* @file
* MyTheme preprocess functions and theme function overrides.
*/
/**
* Prepares variables for node templates.
*
* @see node.tpl.php
*/
function mytheme_preprocess_node(&$variables) {
$variables['classes'][] = 'content';
}
/**
* Overrides theme_breadcrumb().
*/
function mytheme_breadcrumb($variables) {
$breadcrumb = $variables['breadcrumb'];
$output = '';
if (!empty($breadcrumb)) {
// Add useful aria-label for screen-readers.
$output .= '<nav role="navigation" class="breadcrumb" aria-label="Website Orientation">';
// Remove core's confusing you-are-here heading for screen-readers.
$output .= '<ol><li>' . implode(' » </li><li>', $breadcrumb) . '</li></ol>';
$output .= '</nav>';
}
return $output;
}