Hi, I'm trying to the convert the Internet Services theme for use in Drupal 6 and I've been successful for the most part. The one thing that I can't figure out for the life of me is the custom search bar. In the 5.x version of the theme, the search bar was being called in template.php by the following lines and is defined by the following code in search-theme-form.tpl.php :
function phptemplate_search_theme_form($form) {
return _phptemplate_callback('search-theme-form', array('form' => $form));
}
search-theme-form.tpl.php :
global $user;
if (!$user->uid) {
$message .= '<div>' . t('Please <a href="@login">Login</a> or <a href="@register">Register</a>', array('@login' => url('user/login'), '@register' => url('user/register'))) . '</div>';
$message .= '<div>' . t('<a href="@password">Request New Password</a>', array('@password' => url('user/password'))) . '</div>';
}
else {
$message .= '<div>' . t('Welcome @user', array('@user' => $user->name)) . '</div>';
$message .= '<div>' . t('<a href="@view">View</a> | <a href="@edit">Edit</a> | <a href="@logout">Logout</a>', array('@view' => url('user/' . $user->uid), '@edit' => url('user/' . $user->uid . '/edit'), '@logout' => url('logout'))) . '</div>';
}