1
0
orblog-legacy/private/templates/comment.php
2025-08-23 18:33:45 +03:00

36 lines
1.2 KiB
PHP

<?php
/*-----------------------------------------------------------------------------
orblog - Simple blog for hidden networks.
Version: 0.1
Git: https://git.runx.zip/chicory/orblog-legacy
Copyright: chicory@runx.zip 2020
License: http://www.apache.org/licenses/LICENSE-2.0
-----------------------------------------------------------------------------*/
?>
<div class="title">
<div class="title_tab">
<?=$_TPL['time']?>
</div>
<div class="title_etc">
<?php if(!$_TPL['admin']) { ?>
<?=$_LANG['by_guest']?>
<?php }else{ ?>
<?=$_LANG['by_admin']?>
<?php } ?>
<?php if($_TPL['post_id']) { ?>
[ <a href="index.php?view=post&id=<?=$_TPL['post_id']?>"><?=$_LANG['goto_post']?></a> ]
<?php } ?>
<?php if($_SESSION['admin']) { ?>
[ <a href="index.php?view=admin&page=comments&action=delete_comment&id=<?=$_TPL['cid']?>&post=<?=$_TPL['pid']?>"><?=$_LANG['delete']?></a> ]
<?php } ?>
</div>
</div>
<div class="clear"></div>
<div class="comment_content">
<?=$_TPL['text']?>
</div>