<?php /* Smarty version Smarty3-b8, created on 2013-03-09 08:10:02
compiled from "template/m/comment.tpl" */ ?>
<?php /*%%SmartyHeaderCode:30825513aee5a422d94-25791894%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'358f1e957fd2ca09bb6899789b954386075143d5' =>
array (
0 => 'template/m/comment.tpl',
1 => 1362816595,
),
),
'nocache_hash' => '30825513aee5a422d94-25791894',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_smarty_tpl->getVariable('tinf')->value['userid']){?>
<div class="comment"><b><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('tinf')->value['userid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('tinf')->value['username'];?>
</a>
<?php if ($_smarty_tpl->getVariable('tinf')->value['shrid']){?></b> via <b><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('tinf')->value['suserid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('tinf')->value['suser'];?>
</a><?php }?>
<?php if ($_smarty_tpl->getVariable('tinf')->value['grid']){?></b> » <b><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=gop&id=<?php echo $_smarty_tpl->getVariable('tinf')->value['grid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('tinf')->value['grname'];?>
</a><?php }?></b><br/>
<?php echo $_smarty_tpl->getVariable('tinf')->value['message'];?>
<br/>
<?php if ($_smarty_tpl->getVariable('tinf')->value['shrid']){?>
<span style="color: #FF8040;">
<?php echo $_smarty_tpl->getVariable('tinf')->value['smessage'];?>
</span>
<?php }?>
</div>
<div class="shader">
<span style="color: #8f8f8f;"><?php echo $_smarty_tpl->getVariable('tinf')->value['dtm'];?>
ago</span>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=lke&wid=<?php echo $_smarty_tpl->getVariable('stid')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php if ($_smarty_tpl->getVariable('tinf')->value['ulike']>0){?><?php echo Lang(array('p'=>"unlike"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }else{ ?><?php echo Lang(array('p'=>"like"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?></a>
<?php if ($_smarty_tpl->getVariable('tinf')->value['userid']!=$_smarty_tpl->getVariable('userlog')->value['id']){?><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=sae&stid=<?php echo $_smarty_tpl->getVariable('stid')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">Share</a> <?php }?>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=lke&cid=<?php echo $_smarty_tpl->getVariable('comID')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">Report</a> </div>
<?php if ($_smarty_tpl->getVariable('lk')->value){?>
<div class="shade">
<?php $_smarty_tpl->tpl_vars['lke'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['lkeID'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('like')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['lke']->key => $_smarty_tpl->tpl_vars['lke']->value){
$_smarty_tpl->tpl_vars['lkeID']->value = $_smarty_tpl->tpl_vars['lke']->key;
?>
<?php if ($_smarty_tpl->getVariable('userlog')->value['id']==$_smarty_tpl->getVariable('lke')->value['userid']){?>You<?php }else{ ?><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('lke')->value['userid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('lke')->value['name'];?>
</a><?php }?>
<?php if ($_smarty_tpl->getVariable('lke')->value['amount']==1){?> <?php echo Lang(array('p'=>"and"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?><?php if ($_smarty_tpl->getVariable('lke')->value['amount']==2){?>, <?php }?>
<?php if ($_smarty_tpl->getVariable('lke')->value['amount']>2){?> <?php echo Lang(array('p'=>"and"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<a href=""><?php echo $_smarty_tpl->getVariable('lke')->value['amoun'];?>
<?php echo Lang(array('p'=>"others"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a><?php }?>
<?php }} ?> <?php echo Lang(array('p'=>"like_this"),$_smarty_tpl->smarty,$_smarty_tpl);?>
.
</div>
<?php }?>
<?php if ($_smarty_tpl->getVariable('newer')->value){?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=cmt&stid=<?php echo $_smarty_tpl->getVariable('stid')->value;?>
&pg=<?php echo $_smarty_tpl->getVariable('newer')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"view"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php echo Lang(array('p'=>"previous"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php echo Lang(array('p'=>"comments"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php }?>
<?php $_smarty_tpl->tpl_vars['co'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['comID'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('comment')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['co']->key => $_smarty_tpl->tpl_vars['co']->value){
$_smarty_tpl->tpl_vars['comID']->value = $_smarty_tpl->tpl_vars['co']->key;
?>
<div class="blank">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('co')->value['userid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('co')->value['username'];?>
</a>
<?php echo $_smarty_tpl->getVariable('co')->value['message'];?>
<br/>
<span style="color: #8f8f8f;"><?php echo $_smarty_tpl->getVariable('co')->value['dtm'];?>
ago</span> <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=lke&stid=<?php echo $_smarty_tpl->getVariable('stid')->value;?>
&cid=<?php echo $_smarty_tpl->getVariable('comID')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php if ($_smarty_tpl->getVariable('co')->value['ulike']>0){?><?php echo Lang(array('p'=>"unlike"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }else{ ?><?php echo Lang(array('p'=>"like"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?></a>
</div>
<hr/>
<?php }} ?>
<?php if ($_smarty_tpl->getVariable('older')->value){?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=cmt&stid=<?php echo $_smarty_tpl->getVariable('stid')->value;?>
&pg=<?php echo $_smarty_tpl->getVariable('older')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"view"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php echo Lang(array('p'=>"next"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php echo Lang(array('p'=>"comments"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php }?>
<form action="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=cmt&stid=<?php echo $_smarty_tpl->getVariable('stid')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
" method="post">
<div class="shade">
<?php echo Lang(array('p'=>"write_comment"),$_smarty_tpl->smarty,$_smarty_tpl);?>
...<br/>
<textarea name="comment" cols="30" rows="2"></textarea>
<input type="submit" class="login" style="vertical-align: top;" value="<?php echo Lang(array('p'=>"comment"),$_smarty_tpl->smarty,$_smarty_tpl);?>
"/>
</div>
</form>
<?php }else{ ?>
<div class="error">
Post doesn't exist
</div>
<?php }?>