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

@ -17,17 +17,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++; ?>
<section class="post section <?php echo $class ?>" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<section class="post section" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<div class="section-inner">
<div class="content">
<div class="item">

View file

@ -6,9 +6,9 @@
<div class="section-inner">
<div class="content">
<div class="item" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="Person">
<h2 class="title" itemprop="name"><?php echo $name ?></h2>
<h2 class="title" itemprop="name"><?php echo $author->name ?></h2>
<div class="desc text-left" itemprop="description">
<?php echo $about; ?>
<?php echo $author->about; ?>
</div><!--//desc-->
<h3><?php echo i18n("Post_by_author");?></h3>
<?php if (!empty($posts)) { ?>

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>

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>

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>