/[drupal]/contributions/sandbox/fgm/directory/directory_parents.tpl.php
ViewVC logotype

Contents of /contributions/sandbox/fgm/directory/directory_parents.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Mon Feb 9 07:43:05 2009 UTC (9 months, 2 weeks ago) by fgm
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-php
Initial commit of the code built at FOSDEM and finished in the Thalys on the way back.
1 <?php
2 // $Id$
3 /**
4 * @file
5 * The template for the parents and current directory level.
6 *
7 * Note that this template does not actually output any HTML
8 *
9 * @copyright (c) 2009 Ouest Systèmes Informatiques (OSInet)
10 * @author Frédéric G. MARAND
11 * @license General Public License version 2 and later
12 */
13
14 $arBreadcrumbs = array
15 (
16 l(t('Home'), '<front>'),
17 l(t('Directory'), 'directory'),
18 );
19 if ($term)
20 {
21 drupal_set_title($term->name);
22 array_push($parents, $term->name);
23 $arBreadcrumbs = array_merge($arBreadcrumbs, $parents);
24 }
25 drupal_set_breadcrumb($arBreadcrumbs);

  ViewVC Help
Powered by ViewVC 1.1.2