Размер файла: 6.29Kb
<?php /* Smarty version Smarty3-b8, created on 2013-03-09 10:11:33
compiled from "template/m/notification.tpl" */ ?>
<?php /*%%SmartyHeaderCode:29281513b0ad5b07cb0-49440599%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'46a9ce8a9e22291826638e48812feb203f651bab' =>
array (
0 => 'template/m/notification.tpl',
1 => 1362823889,
),
),
'nocache_hash' => '29281513b0ad5b07cb0-49440599',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div class="shade"><b><?php echo Lang(array('p'=>"notifications"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</b></div>
<?php $_smarty_tpl->tpl_vars['no'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['notID'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('notify')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['no']->key => $_smarty_tpl->tpl_vars['no']->value){
$_smarty_tpl->tpl_vars['notID']->value = $_smarty_tpl->tpl_vars['no']->key;
?>
<div class="blank">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('no')->value['from'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('no')->value['fromname'];?>
</a><?php if ($_smarty_tpl->getVariable('no')->value['amount']>0){?><?php if ($_smarty_tpl->getVariable('no')->value['amount']==1){?> <?php echo Lang(array('p'=>"and"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('no')->value['amount']==2){?>, <?php }?><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('no')->value['from1'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('no')->value['fromname1'];?>
</a> <?php if ($_smarty_tpl->getVariable('no')->value['amount']>2){?> <?php echo Lang(array('p'=>"and"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<a href=""><?php echo $_smarty_tpl->getVariable('no')->value['amoun'];?>
<?php echo Lang(array('p'=>"others"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a><?php }?><?php if ($_smarty_tpl->getVariable('no')->value['from2']){?> <?php echo Lang(array('p'=>"and"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('no')->value['from2'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('no')->value['fromname2'];?>
</a><?php }?><?php }?>
<?php if ($_smarty_tpl->getVariable('no')->value['do']==0){?>like your<?php if ($_smarty_tpl->getVariable('no')->value['cid']>0){?> <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=<?php if ($_smarty_tpl->getVariable('no')->value['wid']){?>cmt<?php }?><?php if ($_smarty_tpl->getVariable('no')->value['pid']||$_smarty_tpl->getVariable('no')->value['alid']){?>pho<?php }?>
<?php if ($_smarty_tpl->getVariable('no')->value['wid']){?>&stid=<?php echo $_smarty_tpl->getVariable('no')->value['wid'];?>
<?php }?><?php if ($_smarty_tpl->getVariable('no')->value['pid']){?>&pid=<?php echo $_smarty_tpl->getVariable('no')->value['pid'];?>
<?php }?><?php if ($_smarty_tpl->getVariable('no')->value['alid']){?>&alid=<?php echo $_smarty_tpl->getVariable('no')->value['alid'];?>
<?php }?>&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">comment</a>
<?php }else{ ?>
<?php if ($_smarty_tpl->getVariable('no')->value['wid']>0){?> <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=cmt&stid=<?php echo $_smarty_tpl->getVariable('no')->value['wid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">post</a><?php }?>
<?php if ($_smarty_tpl->getVariable('no')->value['pid']>0){?> <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&pid=<?php echo $_smarty_tpl->getVariable('no')->value['pid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">photo</a><?php }?>
<?php if ($_smarty_tpl->getVariable('no')->value['alid']>0){?> <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&alid=<?php echo $_smarty_tpl->getVariable('no')->value['alid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">album</a><?php }?>
<?php }?>
<?php }else{ ?>
<?php if ($_smarty_tpl->getVariable('no')->value['do']==1){?>
commented on <?php if ($_smarty_tpl->getVariable('no')->value['who']==$_smarty_tpl->getVariable('userlog')->value['id']){?>your<?php }else{ ?><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('no')->value['who'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('no')->value['whoname'];?>
</a>'s<?php }?>
<?php if ($_smarty_tpl->getVariable('no')->value['wid']>0){?> <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=cmt&stid=<?php echo $_smarty_tpl->getVariable('no')->value['wid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">post</a><?php }?>
<?php if ($_smarty_tpl->getVariable('no')->value['pid']>0){?> <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&pid=<?php echo $_smarty_tpl->getVariable('no')->value['pid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">photo</a><?php }?>
<?php if ($_smarty_tpl->getVariable('no')->value['alid']>0){?> <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&alid=<?php echo $_smarty_tpl->getVariable('no')->value['alid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">album</a><?php }?>
<?php }else{ ?>
<?php if ($_smarty_tpl->getVariable('no')->value['do']==3){?>
posted on your <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('no')->value['userid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">wall</a>
<?php }else{ ?>
<?php if ($_smarty_tpl->getVariable('no')->value['do']==4){?>
accepted your friend request
<?php }?>
<?php }?>
<?php }?>
<?php }?>
</div>
<hr/>
<?php }} ?>