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

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

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

revision 1.3, Sat Oct 20 17:53:30 2007 UTC revision 1.4, Thu Nov 8 07:05:45 2007 UTC
# Line 11  Line 11 
11   *   *
12   *  webchick's website in Drupal form.   *  webchick's website in Drupal form.
13   */   */
   
 /*  
  * Declare the available regions implemented by this engine.  
  *  
  * @return  
  *    An array of regions.  The first array element will be used as the default region for themes.  
  *    Each array element takes the format: variable_name => t('human readable name')  
  */  
 function webchick_regions() {  
   return array(  
     'content_top' => t('content top'),  
     'content_bottom' => t('content bottom'),  
   );  
 }  
14    
15  /**  /**
16    * Return a menu that outputs the correct HTML for webchick.net .    * Return a menu that outputs the correct HTML for webchick.net .
# Line 35  function webchick_regions() { Line 21  function webchick_regions() {
21    *   The text delimiter to use when outputing the links.    *   The text delimiter to use when outputing the links.
22    * @return a string containing the menu output.    * @return a string containing the menu output.
23    */    */
24  function webchick_menu_links($links, $delimiter = '') {  function webchick_links(&$links, $delimiter = '') {
25    
26    if (!count($links)) {    if (!count($links)) {
27      return '';      return '';
28    }    }
29    $level_tmp = explode('-', key($links));    $level_tmp = explode('-', key($links));
30    $level = $level_tmp[0];    $level = $level_tmp[0];
31    $output = '';//"<ul class=\"links-$level\">\n";    $output = 'hi';//"<ul class=\"links-$level\">\n";
32    $num = count($links);    $num = count($links);
33    foreach ($links as $index => $link) {    foreach ($links as $index => $link) {
34      $output .= '';//'<li';      $output .= '';//'<li';

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.2