Browse Source

Add edit link

pull/440/head
danpros 4 years ago
parent
commit
7f85f7d6a2
6 changed files with 7 additions and 1 deletions
  1. +1
    -0
      themes/blog/main.html.php
  2. +1
    -0
      themes/clean/main.html.php
  3. +1
    -0
      themes/logs/main.html.php
  4. +1
    -0
      themes/readable/main.html.php
  5. +1
    -0
      themes/twentyfifteen/main.html.php
  6. +2
    -1
      themes/twentysixteen/main.html.php

+ 1
- 0
themes/blog/main.html.php 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">


+ 1
- 0
themes/clean/main.html.php 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">


+ 1
- 0
themes/logs/main.html.php 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">


+ 1
- 0
themes/readable/main.html.php 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">


+ 1
- 0
themes/twentyfifteen/main.html.php 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; ?>


+ 2
- 1
themes/twentysixteen/main.html.php 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;?>


Loading…
Cancel
Save