Update themes

This commit is contained in:
danpros 2024-01-10 17:21:40 +07:00
commit bb83ba8be5
6 changed files with 10 additions and 28 deletions

View file

@ -10,17 +10,8 @@
</div>
</div>
<?php endif; ?>
<?php $i = 0; $len = count($posts); ?>
<?php foreach ($posts as $p): ?>
<?php if ($i == 0) {
$class = 'post first';
} elseif ($i == $len - 1) {
$class = 'post last';
} else {
$class = 'post';
}
$i++; ?>
<div class="<?php echo $class ?>" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<div class="post" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<div class="main">
<?php if (!empty($p->link)) { ?>
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->link ?>"><?php echo $p->title ?> &rarr;</a></h2>

View file

@ -4,8 +4,8 @@
<?php endif; ?>
<div class="profile-wrapper" itemprop="accountablePerson" itemscope="itemscope">
<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 $about ?></div>
<h1 class="title-post" itemprop="name"><?php echo $author->name ?></h1>
<div class="bio" itemprop="description"><?php echo $$author->about ?></div>
</div>
</div>
<h2 class="post-index"><?php echo i18n("Post_by_author");?></h2>