Move dates into the front matter

This commit is contained in:
Oliver Davies 2020-03-08 14:32:13 +00:00
parent 06acf6f863
commit bdb50d9462
129 changed files with 129 additions and 0 deletions

View file

@ -0,0 +1,25 @@
---
title: Display a Custom Menu in a Drupal 7 Theme Template File
date: 2012-08-18
excerpt: The code needed to display a menu in a Drupal 7 template file.
tags:
- drupal
- drupal-7
- drupal-planet
- php
- aria
---
For reference, this is the code needed to display a menu in a Drupal 7 template file, including the navigation ARIA role.
```language-php
$menu_name = 'menu-footer-menu';
$menu_id = 'footer-menu';
print theme('links', array(
'links' => menu_navigation_links($menu_name),
'attributes' => array(
'id' => $menu_id,
'role' => 'navigation',
'class'=> array('links', 'inline')
)
));
```