/[drupal]/contributions/themes/webchick/template.php
ViewVC logotype

Contents of /contributions/themes/webchick/template.php

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


Revision 1.4 - (show annotations) (download) (as text)
Thu Nov 8 07:05:45 2007 UTC (2 years ago) by robloach
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -16 lines
File MIME type: text/x-php
#190250: Port to 6.x
1 <?php
2 // $Id $
3
4 /**
5 * @file
6 * File which contains theme overrides for the webchick theme.
7 */
8
9 /*
10 * ABOUT
11 *
12 * webchick's website in Drupal form.
13 */
14
15 /**
16 * Return a menu that outputs the correct HTML for webchick.net .
17 *
18 * @param $links
19 * An array containing the links.
20 * @param $delimiter
21 * The text delimiter to use when outputing the links.
22 * @return a string containing the menu output.
23 */
24 function webchick_links(&$links, $delimiter = '') {
25
26 if (!count($links)) {
27 return '';
28 }
29 $level_tmp = explode('-', key($links));
30 $level = $level_tmp[0];
31 $output = 'hi';//"<ul class=\"links-$level\">\n";
32 $num = count($links);
33 foreach ($links as $index => $link) {
34 $output .= '';//'<li';
35 if (stristr($index, 'active') && $delimiter == '') {
36 $output .= "<span class=\"activelink\">{$link['title']}</span>";
37 }
38 else {
39 if ($num == 1 && $delimiter == '') {
40 $link['attributes'] = array('class' => 'last');
41 }
42 $output .= l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment']);
43 }
44 if ($num > 1) {
45 $output .= $delimiter;
46 }
47 $num--;
48 }
49 return $output;
50 }

  ViewVC Help
Powered by ViewVC 1.1.2