1
0
orblog-legacy/private/templates/comment.php

36 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2024-07-13 18:19:16 +02:00
<?php
/*-----------------------------------------------------------------------------
orblog - Simple blog for hidden networks.
Version: 0.1
Git: https://code.fossee.net/chicory/orblog-legacy
Copyright: chicory@fossee.net 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>