Remove dates from post filenames
This commit is contained in:
parent
755db43747
commit
81597404c5
109 changed files with 110 additions and 11 deletions
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
title: Display a Custom Menu in a Drupal 7 Theme Template File
|
||||
date: '2012-08-18'
|
||||
description: For reference, this is the code needed to display a menu in a Drupal 7 template file.
|
||||
slug: display-custom-menu-drupal-7-theme-template-file
|
||||
tags:
|
||||
- drupal
|
||||
- drupal-7
|
||||
- drupal-planet
|
||||
- php
|
||||
- aria
|
||||
use: [posts]
|
||||
---
|
||||
{% block excerpt %}
|
||||
For reference, this is the code needed to display a menu in a Drupal 7 template file, including the navigation ARIA role.
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
```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')
|
||||
)
|
||||
));
|
||||
```
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue