Просмотр файла template_c/60d178b5094debc4e77ba94d20e7f4acc479169c.file.photo.tpl.php

Размер файла: 21.38Kb
<?php /* Smarty version Smarty3-b8, created on 2013-03-09 07:58:48
         compiled from "template/m/photo.tpl" */ ?>
<?php /*%%SmartyHeaderCode:477513aebb8718428-50832710%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '60d178b5094debc4e77ba94d20e7f4acc479169c' => 
    array (
      0 => 'template/m/photo.tpl',
      1 => 1362815923,
    ),
  ),
  'nocache_hash' => '477513aebb8718428-50832710',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_smarty_tpl->getVariable('do')->value=='add'){?>
<?php if ($_smarty_tpl->getVariable('msg')->value){?>
<div class="error"><?php echo $_smarty_tpl->getVariable('msg')->value;?>
</div>
<?php }?>
<form action="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&amp;do=add<?php if ($_smarty_tpl->getVariable('alid')->value){?>&amp;alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
<?php }?>&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
" method="post" enctype="multipart/form-data">
<div class="shader">
  <?php echo Lang(array('p'=>"album_name"),$_smarty_tpl->smarty,$_smarty_tpl);?>
:<br/>
  <input type="text" name="album" maxlength="15"<?php if ($_smarty_tpl->getVariable('album')->value){?> value="<?php echo $_smarty_tpl->getVariable('album')->value;?>
"<?php }else{ ?><?php if ($_smarty_tpl->getVariable('albinfo')->value['album']){?> value="<?php echo $_smarty_tpl->getVariable('albinfo')->value['album'];?>
"<?php }?><?php }?>/>
</div>
<div class="shade">
  <?php echo Lang(array('p'=>"photo_name"),$_smarty_tpl->smarty,$_smarty_tpl);?>
:<br/>
  <input type="text" name="photo" maxlength="15" <?php if ($_smarty_tpl->getVariable('photo')->value){?>value="<?php echo $_smarty_tpl->getVariable('photo')->value;?>
"<?php }?>/><br/>
  <?php echo Lang(array('p'=>"select_photo"),$_smarty_tpl->smarty,$_smarty_tpl);?>
:<br/>
  <input type="file" name="uphoto" accept="image/*,image/gif,image/png,image/jpeg"/>
  <input type="submit" class="register" value="<?php echo Lang(array('p'=>"upload"),$_smarty_tpl->smarty,$_smarty_tpl);?>
"/>
</div>
</form>
<?php }else{ ?>
<?php if ($_smarty_tpl->getVariable('pid')->value){?>
<?php  $_smarty_tpl->tpl_vars['ph'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['phID'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('photo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['ph']->key => $_smarty_tpl->tpl_vars['ph']->value){
 $_smarty_tpl->tpl_vars['phID']->value = $_smarty_tpl->tpl_vars['ph']->key;
?>
<div class="photo">
<div style="text-align:center;">
<img src="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=tub&amp;img=photo/<?php echo $_smarty_tpl->getVariable('ph')->value['url'];?>
&amp;y=225&amp;x=450&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
" alt=""/>
</div>
<?php if ($_smarty_tpl->getVariable('pageCount')->value>0){?>
<?php if ($_smarty_tpl->getVariable('next')->value){?>
<a style="color: #FFFFFF;" href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&amp;pid=<?php echo $_smarty_tpl->getVariable('pid')->value;?>
&amp;pg=<?php echo $_smarty_tpl->getVariable('next')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"previous"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a> <?php }?>
<?php if ($_smarty_tpl->getVariable('prev')->value){?><a <?php if ($_smarty_tpl->getVariable('next')->value){?>style="float: right; padding-right: 5px; color: #FFFFFF;" <?php }else{ ?>style="color: #FFFFFF;"<?php }?>
href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&amp;pid=<?php echo $_smarty_tpl->getVariable('pid')->value;?>
&amp;pg=<?php echo $_smarty_tpl->getVariable('prev')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"next"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a><?php }?><?php }?>
</div>
<div class="blank">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&amp;id=<?php echo $_smarty_tpl->getVariable('ph')->value['userid'];?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('ph')->value['username'];?>
</a> &#187;
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&amp;id=<?php echo $_smarty_tpl->getVariable('ph')->value['userid'];?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"photos"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a> &#187;
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&amp;alid=<?php echo $_smarty_tpl->getVariable('ph')->value['albumid'];?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('ph')->value['album'];?>
</a> &nbsp; <span style="color: #8f8f8f;"><?php echo $_smarty_tpl->getVariable('ph')->value['uptm'];?>
 <?php echo Lang(array('p'=>"ago"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</span>
</div>
<?php if ($_smarty_tpl->getVariable('ph')->value['userid']==$_smarty_tpl->getVariable('userlog')->value['id']){?>
<?php if ($_smarty_tpl->getVariable('ph')->value['profile']!=$_smarty_tpl->getVariable('phID')->value||$_smarty_tpl->getVariable('ph')->value['cover']!=$_smarty_tpl->getVariable('phID')->value){?>
<div class="blank"><?php echo Lang(array('p'=>"set_as"),$_smarty_tpl->smarty,$_smarty_tpl);?>
: <?php if ($_smarty_tpl->getVariable('ph')->value['profile']!=$_smarty_tpl->getVariable('phID')->value){?><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&amp;do=prf&amp;pid=<?php echo $_smarty_tpl->getVariable('phID')->value;?>
">Profile Photo</a> &nbsp; <?php }?>
<?php if ($_smarty_tpl->getVariable('ph')->value['cover']!=$_smarty_tpl->getVariable('phID')->value){?><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&amp;do=alb&amp;pid=<?php echo $_smarty_tpl->getVariable('phID')->value;?>
">Album Cover</a><?php }?></div>
<?php }?>
<?php }?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=lke&amp;pid=<?php echo $_smarty_tpl->getVariable('phID')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php if ($_smarty_tpl->getVariable('ph')->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> &nbsp; 
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=sae&amp;pid=<?php echo $_smarty_tpl->getVariable('phID')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">Share</a> &nbsp;<?php if ($_smarty_tpl->getVariable('ph')->value['userid']!=$_smarty_tpl->getVariable('userlog')->value['id']){?> 
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=lke&amp;cid=<?php echo $_smarty_tpl->getVariable('comID')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">Report</a> &nbsp; 
<?php }?>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
photo/<?php echo $_smarty_tpl->getVariable('ph')->value['url'];?>
"><?php echo Lang(array('p'=>"view"),$_smarty_tpl->smarty,$_smarty_tpl);?>
 <?php echo Lang(array('p'=>"full"),$_smarty_tpl->smarty,$_smarty_tpl);?>
 <?php echo Lang(array('p'=>"size"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php }} ?>
<?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'];?>
&amp;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 }else{ ?>
<?php if ($_smarty_tpl->getVariable('alid')->value){?>
<div class="shade">
<?php  $_smarty_tpl->tpl_vars['al'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['alID'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('albumphoto')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['al']->key => $_smarty_tpl->tpl_vars['al']->value){
 $_smarty_tpl->tpl_vars['alID']->value = $_smarty_tpl->tpl_vars['al']->key;
?>
<a class="photos" href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&amp;pid=<?php echo $_smarty_tpl->getVariable('alID')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">
<img src="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=tub&amp;img=photo/<?php echo $_smarty_tpl->getVariable('al')->value['url'];?>
&amp;y=56&amp;x=75&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
" alt=""/></a>
<?php }} ?>
</div>
<div class="blank"><b><?php echo $_smarty_tpl->getVariable('albinfo')->value['album'];?>
</b> <?php echo Lang(array('p'=>"BY"),$_smarty_tpl->smarty,$_smarty_tpl);?>
 <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&amp;id=<?php echo $_smarty_tpl->getVariable('albinfo')->value['userid'];?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('albuser')->value;?>
</a><br/>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=lke&amp;alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php if ($_smarty_tpl->getVariable('albinfo')->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('userlog')->value['id']==$_smarty_tpl->getVariable('albinfo')->value['userid']){?> &nbsp; <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&amp;do=add&amp;alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"add"),$_smarty_tpl->smarty,$_smarty_tpl);?>
 <?php echo Lang(array('p'=>"photo"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a><?php }?></div>
<?php if ($_smarty_tpl->getVariable('lk')->value){?>
<div class="shader">
<?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'];?>
&amp;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 }else{ ?>
<div class="blank"><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&amp;id=<?php echo $_smarty_tpl->getVariable('id')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><b><?php echo $_smarty_tpl->getVariable('aluser')->value;?>
</a></b><br/>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&amp;do=abt&amp;id=<?php echo $_smarty_tpl->getVariable('id')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"about"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
 &nbsp; <b>Photos</b>
 &nbsp; <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=fnd&amp;fid=<?php echo $_smarty_tpl->getVariable('id')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"friends"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php if ($_smarty_tpl->getVariable('Count')->value==0){?>
<div class="error">
<?php echo Lang(array('p'=>"no_album"),$_smarty_tpl->smarty,$_smarty_tpl);?>

</div>
<?php }?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&amp;do=add&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"create_album"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php  $_smarty_tpl->tpl_vars['alb'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['albID'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('album')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['alb']->key => $_smarty_tpl->tpl_vars['alb']->value){
 $_smarty_tpl->tpl_vars['albID']->value = $_smarty_tpl->tpl_vars['alb']->key;
?>
<div class="blank">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&amp;alid=<?php echo $_smarty_tpl->getVariable('alb')->value['albumid'];?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">
<img style="float: left; margin-right: 5px;" src="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=tub&amp;img=photo/<?php echo $_smarty_tpl->getVariable('alb')->value['cover'];?>
&amp;y=100&amp;x=100&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
" alt=""/> 
<b><?php echo $_smarty_tpl->getVariable('alb')->value['album'];?>
</b></a>
<?php echo $_smarty_tpl->getVariable('alb')->value['amount'];?>
 <?php if ($_smarty_tpl->getVariable('alb')->value['amount']==1){?><?php echo Lang(array('p'=>"photo"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?><?php if ($_smarty_tpl->getVariable('alb')->value['amount']>1){?><?php echo Lang(array('p'=>"photos"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?><br/>
<span style="color: #8f8f8f;"><?php echo $_smarty_tpl->getVariable('alb')->value['uptm'];?>
 <?php echo Lang(array('p'=>"ago"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</span>
<div style="clear: both;"></div>
</div>
<hr/>
<?php }} ?>
<?php if ($_smarty_tpl->getVariable('prev')->value){?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&amp;id=<?php echo $_smarty_tpl->getVariable('id')->value;?>
&amp;pg=<?php echo $_smarty_tpl->getVariable('prev')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"see_more_albums"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php }?>
<?php }?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('alid')->value||$_smarty_tpl->getVariable('pid')->value){?>
<?php if ($_smarty_tpl->getVariable('alid')->value){?>
<?php if ($_smarty_tpl->getVariable('prev')->value){?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&amp;alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
&amp;pg=<?php echo $_smarty_tpl->getVariable('prev')->value;?>
&amp;sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"see_more_photos"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php }?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('newer')->value){?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho<?php if ($_smarty_tpl->getVariable('pid')->value){?>&amp;pid=<?php echo $_smarty_tpl->getVariable('pid')->value;?>
<?php }else{ ?><?php if ($_smarty_tpl->getVariable('alid')->value){?>&amp;alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
<?php }?><?php }?>&amp;page=<?php echo $_smarty_tpl->getVariable('newer')->value;?>
&amp;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&amp;id=<?php echo $_smarty_tpl->getVariable('co')->value['userid'];?>
&amp;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> &nbsp; 
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=lke<?php if ($_smarty_tpl->getVariable('pid')->value){?>&amp;pid=<?php echo $_smarty_tpl->getVariable('pid')->value;?>
<?php }else{ ?><?php if ($_smarty_tpl->getVariable('alid')->value){?>&amp;alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
<?php }?><?php }?>&amp;cid=<?php echo $_smarty_tpl->getVariable('comID')->value;?>
&amp;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=pho<?php if ($_smarty_tpl->getVariable('pid')->value){?>&amp;pid=<?php echo $_smarty_tpl->getVariable('pid')->value;?>
<?php }else{ ?><?php if ($_smarty_tpl->getVariable('alid')->value){?>&amp;alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
<?php }?><?php }?>&amp;page=<?php echo $_smarty_tpl->getVariable('older')->value;?>
&amp;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=pho<?php if ($_smarty_tpl->getVariable('pid')->value){?><?php  $_smarty_tpl->tpl_vars['ph'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['phID'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('photo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['ph']->key => $_smarty_tpl->tpl_vars['ph']->value){
 $_smarty_tpl->tpl_vars['phID']->value = $_smarty_tpl->tpl_vars['ph']->key;
?>&amp;pid=<?php echo $_smarty_tpl->getVariable('phID')->value;?>
<?php }} ?><?php }else{ ?>
<?php if ($_smarty_tpl->getVariable('alid')->value){?>&amp;alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
<?php }?><?php }?>&amp;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" style="vertical-align: top;" class="login" value="<?php echo Lang(array('p'=>"comment"),$_smarty_tpl->smarty,$_smarty_tpl);?>
"/>
  </div>
</form>
<?php }?>
<?php }?>