/[drupal]/contributions/themes/light/links.tpl.php
ViewVC logotype

Contents of /contributions/themes/light/links.tpl.php

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


Revision 1.3 - (show annotations) (download) (as text)
Fri Nov 30 21:30:19 2007 UTC (23 months, 4 weeks ago) by nickbits
Branch: MAIN
CVS Tags: DRUPAL-5--1-5, DRUPAL-5--1-7, DRUPAL-5--1-3, HEAD
Branch point for: DRUPAL-6--2
Changes since 1.2: +1 -4 lines
File MIME type: text/x-php
Sidebar changes and typo's
1 <ul>
2 <?php
3 /**
4 * to change the delimiter, just modify the $delimiter value
5 *
6 */
7 foreach ( $links as $lnk ) {
8 // Print the link
9 //print l($lnk['title'], $lnk['href'], $lnk['attributes']);
10 //print ($lnk['href'] ."--". $_GET['q']." ///");
11 /* print_r ($lnk['path']);*/
12 //see http://api.drupal.org/api/function/l/5
13 $class_extra="";
14 if ($lnk['href'] == $_GET['q'])
15 $class_extra = 'active';
16
17 if ($lnk['attributes']['title'])
18 $title = $lnk['attributes']['title'];
19 else
20 $title = $lnk['title'];
21
22 print("<li><a href='/?q=".$lnk['href']."' class='".$attributes['class']." ".$class_extra."' title='".$title ."'><span>".$lnk['title']."</span></a></li>");
23 }
24 // Display the right cap of the 'button bar'
25 //print "]";
26 ?>
27 </ul>

  ViewVC Help
Powered by ViewVC 1.1.2