/[drupal]/contributions/themes/MyDrupal_Universal/search-theme-form.tpl.php
ViewVC logotype

Contents of /contributions/themes/MyDrupal_Universal/search-theme-form.tpl.php

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


Revision 1.1 - (show annotations) (download) (as text)
Sat Apr 28 04:02:13 2007 UTC (2 years, 7 months ago) by taherk
Branch: MAIN
CVS Tags: DRUPAL-5--1-1, DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5
File MIME type: text/x-php
*** empty log message ***
1 <?php
2 global $user;
3
4 if (!$user->uid) {
5 $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>';
6 $message .= '<div>' . t('<a href="@password">Request New Password</a>', array('@password' => url('user/password'))) . '</div>';
7 }
8 else {
9 $message .= '<div>' . t('Welcome @user', array('@user' => $user->name)) . '</div>';
10 $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>';
11 }
12 ?>
13
14 <div class="welcome"><?php print $message ?></div>
15 <div class="search-form">
16 <div class="title"><?php print t('Search the Site:') ?></div>
17 <?php print drupal_render($form['search_theme_form_keys']) ?>
18 <?php print drupal_render($form['submit']) ?>
19 <?php print drupal_render($form) ?>
20 <div class="advanced"><?php print l(t('Advanced'), 'search') ?></div>
21 </div>

  ViewVC Help
Powered by ViewVC 1.1.2