Add edit link

This commit is contained in:
danpros 2021-03-05 08:31:24 +07:00
commit 7f85f7d6a2
6 changed files with 7 additions and 1 deletions

View file

@ -68,6 +68,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> comments</span></a></span>
<?php } ?>
<?php if (login()) { echo '<span class="edit-link"><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
</footer>
</article>
<?php endforeach; ?>