| 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>
|