View file template/m/home.tpl

File size: 3.35Kb
{foreach from=$notify item=no key=notID}
{if $no.uptm==0}
<div class="notify">{/if}
<a href="{$selfurl}?ac=nfc&amp;id={$notID}&amp;sid={$sid}">{$no.fromname}{if $no.amount > 0}{if $no.amount == 1} {lng p="and"} {/if}
{if $no.amount == 2}, {/if}{$no.fromname1} {if $no.amount > 2} {lng p="and"} {$no.amoun} {lng p="others"}{/if}
{if $no.from2} {lng p="and"} {$no.fromname2}{/if}{/if} 
{if $no.do == 0}like your{if $no.cid > 0} comment
{else}
{if $no.wid > 0} post{/if}
{if $no.pid > 0} photo{/if}
{if $no.alid > 0} album{/if}
{/if}
{else}
{if $no.do==1}
commented on {if $no.who == $userlog.id}your{else}{$no.whoname}'s{/if}
{if $no.wid > 0} post{/if}
{if $no.pid > 0} photo{/if}
{if $no.alid > 0} album{/if}
{else}
{if $no.do==3}
posted on your wall
{else}
{if $no.do==4}
accepted your friend request
{/if}
{/if}
{/if}
{/if}
{if $no.uptm==0}
</a>
</div>
{else}
<hr/>
{/if}
{/foreach}
{if $update}
<div class="notify">
<a href="{$selfurl}?ac=prf&amp;do=abt&amp;sid={$sid}">{lng p="getting_started"}</a>
</div>
{/if}
{if $friend}
{foreach from=$friendrequest item=fr key=frID}
<div class="notify">
<a href="{$selfurl}?ac=prf&amp;id={$fr.userid}&amp;sid={$sid}">{$fr.user}</a> {lng p="want_friend"} 
<a href="{$selfurl}?ac=fnd&amp;id={$fr.userid}&amp;sid={$sid}">{lng p="confirm"}</a> &nbsp; <a href="">{lng p="reject"}</a>
</div>
{/foreach}
{/if}
<form action="{$selfurl}?ac=hme&amp;sid={$sid}" method="post">
<div class="shade">
{lng p="whats_on_your_mind"}?<br/>
<textarea name="post" cols="30" rows="3"></textarea>
<input type="submit" class="login" style="vertical-align: top;" value="{lng p="share"}"/>
<br/>
<a href="{$selfurl}?ac=nfc&amp;sid={$sid}">{lng p="notifications"}</a> &nbsp; <a href="">{lng p="pages"}</a> &nbsp; 
<a href="{$selfurl}?ac=gop&amp;sid={$sid}">{lng p="groups"}</a> &nbsp; <a href="{$selfurl}?ac=dcs&amp;sid={$sid}">{lng p="discussion"}</a> 
</div>
</form>
{if $Count == 0}
<div class="err">
{lng p="no_feeds"}
</div>
{/if}
{foreach from=$feed item=fe key=feedID}
<div class="blank">
<div>
<b><a href="{$selfurl}?ac=prf&amp;id={$fe.userid}&amp;sid={$sid}">{$fe.username}</a>
{if $fe.shrid}</b> via <b><a href="{$selfurl}?ac=prf&amp;id={$fe.suserid}&amp;sid={$sid}">{$fe.suser}</a>{/if}
{if $fe.grid}</b> &#187; <b><a href="{$selfurl}?ac=gop&amp;id={$fe.grid}&amp;sid={$sid}">{$fe.grname}</a>{/if}</b><br/>
{$fe.message}
</div>
{if $fe.shrid}
<div>
<span style="color: #8f8f8f;">{$fe.smessage}</span>
</div>
{/if}
<span style="color: #8f8f8f;">{$fe.dtm} ago</span> &nbsp;
{if $fe.like > 0}
<a href="{$selfurl}?ac=cmt&amp;stid={$feedID}&amp;sid={$sid}">{if $fe.like == 1}{$fe.like} {lng p="like"}{else}{if $fe.like > 1}{$fe.like} {lng p="likes"}{/if}{/if}</a> &nbsp; {/if}
<a href="{$selfurl}?ac=lke&amp;wid={$feedID}&amp;sid={$sid}">{if $fe.ulike > 0}{lng p="unlike"}{else}{lng p="like"}{/if}</a> &nbsp;
<a href="{$selfurl}?ac=cmt&amp;stid={$feedID}&amp;sid={$sid}">{if $fe.comment == 0}{lng p="comment"}{else}{if $fe.comment==1}{$fe.comment} {lng p="comment"}
{else}{if $fe.comment > 1}{$fe.comment} {lng p="comments"}{/if}{/if}{/if}</a> &nbsp; 
{if $fe.userid != $userlog.id} &nbsp; <a href="{$selfurl}?ac=sae&amp;stid={$feedID}">{lng p="share"}</a>{/if}<br/>
</div>
{/foreach}
{if $older}
<div class="shade">
<a href="{$selfurl}?ac=hme&amp;pg={$older}&amp;sid={$sid}">{lng p="see_more_feeds"}</a>
</div>
{/if}