| 1 |
<?php
|
| 2 |
// $Id: template.php,v 1.1 2006/06/18 23:53:25 Gurpartap Exp $
|
| 3 |
|
| 4 |
function phptemplate_search_theme_form($form) {
|
| 5 |
return _phptemplate_callback('search-box', array('form' => $form));
|
| 6 |
}
|
| 7 |
|
| 8 |
function aquasoft_primary_links() {
|
| 9 |
$links = menu_primary_links();
|
| 10 |
if ($links) {
|
| 11 |
foreach ($links as $link) {
|
| 12 |
$cssid = str_replace(' ', '_', strip_tags($link));
|
| 13 |
$output .= '<li id="'.$cssid.'">' . $link . '</li>';
|
| 14 |
};
|
| 15 |
$output .= '</ul>';
|
| 16 |
}
|
| 17 |
return $output;
|
| 18 |
}
|
| 19 |
|
| 20 |
function aquasoft_footer_primary_links() {
|
| 21 |
$links = menu_primary_links();
|
| 22 |
$imgurl = base_path() . drupal_get_path('theme', 'aquasoft') .'/images/';
|
| 23 |
if ($links) {
|
| 24 |
$output .= '<ul><li id="fcurrent"><a href="' . base_path() . '">Home</a></li><li><img src="' . $imgurl . 'navsep.gif" alt="" /></li></ul>';
|
| 25 |
$output .= '<ul>';
|
| 26 |
foreach ($links as $link) {
|
| 27 |
$output .= '<li class="tbforum">' . $link . '</li>';
|
| 28 |
};
|
| 29 |
$output .= '</ul>';
|
| 30 |
}
|
| 31 |
return $output;
|
| 32 |
}
|
| 33 |
|
| 34 |
/*function phptemplate_stylesheet_import($stylesheet, $media = 'all') {
|
| 35 |
if (strpos($stylesheet, 'misc/drupal.css') == 0) {
|
| 36 |
return theme_stylesheet_import($stylesheet, $media);
|
| 37 |
}
|
| 38 |
}*/
|
| 39 |
|
| 40 |
/*function aquasoft_regcp() {
|
| 41 |
global $user;
|
| 42 |
global $node;
|
| 43 |
if (!$user->uid) {
|
| 44 |
$ureg = base_path() . '/user/register';
|
| 45 |
print '<li id="Register"><a href="'.$ureg .'" title="">Register</a></li>';
|
| 46 |
|
| 47 |
return $output;
|
| 48 |
}
|
| 49 |
else
|
| 50 |
if ($user->uid) {
|
| 51 |
$ureg = base_path() . '/user/' . print $node->uid;
|
| 52 |
print '<li id="User_CP"><a href="'.$ureg .'" title="">User CP</a></li>';
|
| 53 |
|
| 54 |
}
|
| 55 |
}*/
|