| 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 . |
| 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'; |