mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 04:56:23 +05:30
Improve the teaser
Improve the teaser
This commit is contained in:
parent
2422c40013
commit
72cf924c1c
13 changed files with 143 additions and 120 deletions
|
|
@ -473,7 +473,7 @@ aside .archive, aside .tagcloud {
|
|||
margin-left: 10px;
|
||||
}
|
||||
|
||||
aside .archive ul li, aside .tagcloud ul li {
|
||||
aside .archive ul li ul, aside .tagcloud ul li {
|
||||
margin-left:30px;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,17 +3,17 @@
|
|||
<?php foreach($posts as $p):?>
|
||||
<?php
|
||||
if ($i == 0) {
|
||||
$class = 'first';
|
||||
$class = 'post first';
|
||||
}
|
||||
elseif ($i == $len - 1) {
|
||||
$class = 'last';
|
||||
$class = 'post last';
|
||||
}
|
||||
else {
|
||||
$class = '';
|
||||
$class = 'post';
|
||||
}
|
||||
$i++;
|
||||
?>
|
||||
<div class="post <?php echo $class ?>" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
|
||||
<div class="<?php echo $class ?>" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
|
||||
<div class="main">
|
||||
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->url?>"><?php echo $p->title ?></a></h2>
|
||||
<div class="date"><span itemprop="datePublished"><?php echo date('d F Y', $p->date)?></span> - Posted in <span itemprop="articleSection"><?php echo $p->tag ?></span> by <span itemprop="author"><a href="<?php echo $p->authorurl ?>"><?php echo $p->author ?></a></span><?php if (disqus_count() == true):?> - <span><a href="<?php echo $p->url?>#disqus_thread">Comments</a></span><?php endif;?></div>
|
||||
|
|
|
|||
|
|
@ -2,53 +2,46 @@
|
|||
<?php if(login()) { echo tab($p);} ?>
|
||||
<div class="post" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
|
||||
<div class="main">
|
||||
<?php if ($type == 'blogpost'):?>
|
||||
<a name="more"></a>
|
||||
<?php endif;?>
|
||||
<a name="more"></a>
|
||||
<h1 class="title-post" itemprop="name"><?php echo $p->title ?></h1>
|
||||
<?php if ($type == 'blogpost'):?>
|
||||
<div class="date"><span itemprop="datePublished"><a href="<?php echo $p->archive ?>" title="Show all posts made on this day"><?php echo date('d F Y', $p->date)?></a></span> - Posted in <span itemprop="articleSection"><?php echo $p->tag ?></span> by <span itemprop="author"><a href="<?php echo $p->authorurl ?>"><?php echo $p->author ?></a></span> - <span><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span></div>
|
||||
<?php endif;?>
|
||||
<div class="date">
|
||||
<span itemprop="datePublished"><a href="<?php echo $p->archive ?>" title="Show all posts made on this day"><?php echo date('d F Y', $p->date)?></a></span> - Posted in
|
||||
<span itemprop="articleSection"><?php echo $p->tag ?></span> by
|
||||
<span itemprop="author"><a href="<?php echo $p->authorurl ?>"><?php echo $p->author ?></a></span> -
|
||||
<span><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span>
|
||||
</div>
|
||||
<div class="post-body" itemprop="articleBody">
|
||||
<?php echo $p->body; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($type == 'blogpost'):?>
|
||||
<div class="separator">→</div>
|
||||
<div class="share-box">
|
||||
<?php if (config('author.info') == 'true'):?>
|
||||
<?php echo $authorinfo ?>
|
||||
<?php endif;?>
|
||||
<div class="share">
|
||||
<h4>Share this post</h4>
|
||||
<a class="twitter" target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title?>">Twitter</a>
|
||||
<a class="facebook" target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title?>">Facebook</a>
|
||||
<a class="googleplus" target="_blank" href="https://plus.google.com/share?url=<?php echo $p->url ?>">Google+</a>
|
||||
</div>
|
||||
<div class="separator">→</div>
|
||||
<div class="share-box">
|
||||
<?php if (config('author.info') == 'true'):?>
|
||||
<?php echo $authorinfo ?>
|
||||
<?php endif;?>
|
||||
<div class="share">
|
||||
<h4>Share this post</h4>
|
||||
<a class="twitter" target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title?>">Twitter</a>
|
||||
<a class="facebook" target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title?>">Facebook</a>
|
||||
<a class="googleplus" target="_blank" href="https://plus.google.com/share?url=<?php echo $p->url ?>">Google+</a>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php if ($type == 'blogpost'):?><?php echo get_related($p->tag)?><?php endif;?>
|
||||
</div>
|
||||
<?php echo get_related($p->tag)?>
|
||||
<div class="comments border">
|
||||
<?php if ($type == 'blogpost'):?>
|
||||
<?php if (disqus(null, null) == true):?>
|
||||
<div id="disqus_thread"></div>
|
||||
<?php endif;?>
|
||||
<?php if (disqus(null, null) == true):?>
|
||||
<div id="disqus_thread"></div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php if ($type == 'blogpost'):?>
|
||||
<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>
|
||||
<?php endif;?>
|
||||
<?php if ($type == 'blogpost'):?>
|
||||
<?php if (disqus(null, null) == true):?>
|
||||
<?php echo disqus($p->title, $p->url) ?>
|
||||
<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>
|
||||
<?php if (disqus(null, null) == true):?>
|
||||
<?php echo disqus($p->title, $p->url) ?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
|
|
@ -10,17 +10,17 @@
|
|||
<?php foreach($posts as $p):?>
|
||||
<?php
|
||||
if ($i == 0) {
|
||||
$class = 'first';
|
||||
$class = 'item first';
|
||||
}
|
||||
elseif ($i == $len - 1) {
|
||||
$class = 'last';
|
||||
$class = 'item last';
|
||||
}
|
||||
else {
|
||||
$class = '';
|
||||
$class = 'item';
|
||||
}
|
||||
$i++;
|
||||
?>
|
||||
<li>
|
||||
<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;?>
|
||||
|
|
|
|||
10
themes/clean/static.html.php
Normal file
10
themes/clean/static.html.php
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?php if (!empty($breadcrumb)):?><div class="breadcrumb" xmlns:v="http://rdf.data-vocabulary.org/#"><?php echo $breadcrumb ?></div><?php endif;?>
|
||||
<?php if(login()) { echo tab($p);} ?>
|
||||
<div class="post" itemprop="WebPage" itemscope="itemscope" itemtype="http://schema.org/WebPage">
|
||||
<div class="main">
|
||||
<h1 class="title-post" itemprop="name"><?php echo $p->title ?></h1>
|
||||
<div class="post-body" itemprop="mainContentOfPage">
|
||||
<?php echo $p->body; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue