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

@ -66,6 +66,7 @@
<?php } elseif (facebook()) { ?>
with <i class="fa fa-comments"></i> <a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> comments</span></a>
<?php } ?>
<?php if (login()) { echo ' - <span><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
</p>
</div>
<div class="desc text-left" itemprop="articleBody">

View file

@ -37,6 +37,7 @@
<?php } elseif (facebook()) { ?> -
<a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> Comments</span></a>
<?php } ?>
<?php if (login()) { echo ' - <span><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
</div>
<?php if (!empty($p->image)) { ?>
<div class="featured-image">

View file

@ -37,6 +37,7 @@
<?php } elseif (facebook()) { ?> -
<a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> Comments</span></a>
<?php } ?>
<?php if (login()) { echo ' - <span><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
</div>
<?php if (!empty($p->image)) { ?>
<div class="featured-image">

View file

@ -37,6 +37,7 @@
<?php } elseif (facebook()) { ?> -
<a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> Comments</span></a>
<?php } ?>
<?php if (login()) { echo ' - <span><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
</div>
<?php if (!empty($p->image)) { ?>
<div class="featured-image">

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; ?>

View file

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