mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 05:26:22 +05:30
Add new theme
Add new theme and set the default to when first run.
This commit is contained in:
parent
d8cbaefad2
commit
6e5926f9a4
13 changed files with 1103 additions and 3 deletions
38
themes/logs/profile.html.php
Normal file
38
themes/logs/profile.html.php
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?php if (!empty($breadcrumb)):?><div class="breadcrumb"><?php echo $breadcrumb ?></div><?php endif;?>
|
||||
<div class="profile" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="Person">
|
||||
<h1 class="title-post" itemprop="name"><?php echo $name ?></h1>
|
||||
<div class="bio" itemprop="description"><?php echo $bio ?></div>
|
||||
</div>
|
||||
<h2 class="post-index">Posts by this author</h2>
|
||||
<?php if(!empty($posts)) {?>
|
||||
<ul class="post-list">
|
||||
<?php $i = 0; $len = count($posts);?>
|
||||
<?php foreach($posts as $p):?>
|
||||
<?php
|
||||
if ($i == 0) {
|
||||
$class = 'item first';
|
||||
}
|
||||
elseif ($i == $len - 1) {
|
||||
$class = 'item last';
|
||||
}
|
||||
else {
|
||||
$class = 'item';
|
||||
}
|
||||
$i++;
|
||||
?>
|
||||
<li class="<?php echo $class;?>">
|
||||
<span><a href="<?php echo $p->url?>"><?php echo $p->title ?></a></span> on <span><?php echo date('d F Y', $p->date)?></span> - Posted in <span><?php echo $p->tag ?></span>
|
||||
</li>
|
||||
<?php endforeach;?>
|
||||
</ul>
|
||||
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])):?>
|
||||
<div class="pager">
|
||||
<?php if (!empty($pagination['prev'])):?>
|
||||
<span class="newer" >« <a href="?page=<?php echo $page-1?>" rel="prev">Newer</a></span>
|
||||
<?php endif;?>
|
||||
<?php if (!empty($pagination['next'])):?>
|
||||
<span class="older" ><a href="?page=<?php echo $page+1?>" rel="next">Older</a> »</span>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php } else { echo 'No posts found!'; }?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue