Improve user role

This commit is contained in:
danpros 2024-03-30 11:49:22 +07:00
commit c8e8bee51b
15 changed files with 1350 additions and 912 deletions

View file

@ -86,7 +86,7 @@
<?php } elseif (facebook()) { ?>
<span class="comments-link"><a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> <?php echo i18n('Comments');?></span></a></span>
<?php } ?>
<?php if (login()) { echo '<span class="edit-link"><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
<?php if (authorized($p)) { echo '<span class="edit-link"><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
</footer>
</article>
<?php endforeach; ?>