Update themes

This commit is contained in:
danpros 2024-01-10 17:13:04 +07:00
commit cc6a797629
23 changed files with 187 additions and 66 deletions

View file

@ -2,15 +2,13 @@
<?php if (!empty($breadcrumb)): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<?php if (config('category.info') === 'true'):?>
<?php if (!empty($category)): ?>
<div class="category">
<h2 class="category-title"><?php echo $category->title;?></h2>
<div class="category-content">
<?php echo $category->body; ?>
</div>
<?php if (!empty($category)): ?>
<div class="category">
<h2 class="category-title"><?php echo $category->title;?></h2>
<div class="category-content">
<?php echo $category->body; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php $i = 0; $len = count($posts); ?>
<?php foreach ($posts as $p): ?>
@ -38,7 +36,7 @@
<?php } elseif (facebook()) { ?> -
<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>
<?php } ?>
<?php if (login()) { echo ' - <span><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
<?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

@ -10,4 +10,12 @@
<?php echo $p->body; ?>
</div>
</div>
<div class="postnav">
<?php if (!empty($next)): ?>
<span><a href="<?php echo($next['url']); ?>" class="pagination-arrow newer" rel="next"><?php echo($next['title']); ?></a></span>
<?php endif; ?>
<?php if (!empty($prev)): ?>
<span><a href="<?php echo($prev['url']); ?>" class="pagination-arrow older" rel="prev"><?php echo($prev['title']); ?></a></span>
<?php endif; ?>
</div>
</div>