Файл: Twitter.Clone/TWITTER.CLONE/UPLOAD/templates/search.tpl
Строк: 42
{if $logged_user}
<h1>{$results_for} '{$search_word}'
{$num_of_results}</h1>
{else}
<h1
class='header'>{$results_for} '{$search_word}'
{$num_of_results}</h1>
{/if}
{$pages}
{foreach from=$found_users
item=i key=k}
{if $k%2==0} <div class="person gray">
{else} <div class="person"> {/if}
<a
href="profile/{$i->username}"><img
src="avatars_mini/{$i->avatar}"
alt="{$i->username}" class="avatar show_msg_tooltip"
/></a>
<h2><a
href="profile/{$i->username}">{$i->name}
({$i->username})</a></h2>
{if $logged_user &&
$logged_user->id!=$i->id}
<form action=""
method="post">
<input type="hidden"
name="friend_id" value="{$i->id}"
/>
<input type="hidden" name="search_words"
value="{$smarty.post.search_words}" />
{if
$logged_user->has_friend($i->id)}
{if
$logged_user->has_friend_nf($i->id)}
<input
type="submit" name="start_following"
value="{$a_follow} {$i->username}"
class="follow_button" />
{else}
<input
type="submit" name="stop_following"
value="{$a_leave} {$i->username}"
class="follow_button" />
{/if}
<input
type="submit" name="remove_friend"
value="{$a_remove} {$i->username}"
class="follow_button" />
{else}
{if
!$logged_user->i_am_blocked($i->id)}<input type="submit"
name="follow" value="{$a_add} {$i->username}"
class="follow_button"
/>{/if}
{/if}
</form>
{/if}
</div>
{/foreach}
{$pages}