2021-03-06 07:03:39 +00:00
|
|
|
<?php if (sizeof($this->categories) > 0 || $this->user->uid == $this->authorId) : ?>
|
2023-06-30 08:39:08 +00:00
|
|
|
<div class="joe_detail__category">
|
|
|
|
<?php if (sizeof($this->categories) > 0) : ?>
|
|
|
|
<?php foreach (array_slice($this->categories, 0, 5) as $key => $item) : ?>
|
|
|
|
<a href="<?php echo $item['permalink']; ?>" class="item item-<?php echo $key ?>" title="<?php echo $item['name']; ?>"><?php echo $item['name']; ?></a>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if ($this->user->uid == $this->authorId) : ?>
|
|
|
|
<?php if ($this->is('post')) : ?>
|
|
|
|
<a class="edit" target="_blank" rel="noopener noreferrer" href="<?php $this->options->adminUrl(); ?>write-post.php?cid=<?php echo $this->cid; ?>">编辑文章</a>
|
|
|
|
<?php else : ?>
|
|
|
|
<a class="edit" target="_blank" rel="noopener noreferrer" href="<?php $this->options->adminUrl(); ?>write-page.php?cid=<?php echo $this->cid; ?>">编辑页面</a>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
2021-03-06 07:03:39 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<h1 class="joe_detail__title"><?php $this->title() ?></h1>
|
|
|
|
<div class="joe_detail__count">
|
2023-06-30 08:39:08 +00:00
|
|
|
<div class="joe_detail__count-information">
|
|
|
|
<img width="35" height="35" class="avatar lazyload" src="<?php _getAvatarLazyload(); ?>" data-src="<?php _getAvatarByMail($this->author->mail) ?>" alt="<?php $this->author(); ?>" />
|
|
|
|
<div class="meta">
|
|
|
|
<div class="author">
|
|
|
|
<a class="link" href="<?php $this->author->permalink(); ?>" title="<?php $this->author(); ?>"><?php $this->author(); ?></a>
|
|
|
|
</div>
|
|
|
|
<div class="item">
|
|
|
|
<span class="text"><?php $this->date('Y-m-d'); ?></span>
|
|
|
|
<span class="line">/</span>
|
|
|
|
<span class="text"><?php $this->commentsNum('%d'); ?> 评论</span>
|
|
|
|
<span class="line">/</span>
|
|
|
|
<span class="text" id="Joe_Article_Views"><?php _getViews($this); ?> 阅读</span>
|
|
|
|
<span class="line">/</span>
|
|
|
|
<span class="text" id="Joe_Baidu_Record">正在检测是否收录...</span>
|
|
|
|
</div>
|
2021-03-06 07:03:39 +00:00
|
|
|
</div>
|
2023-06-30 08:39:08 +00:00
|
|
|
</div>
|
|
|
|
<time class="joe_detail__count-created" datetime="<?php $this->date('m/d'); ?>"><?php $this->date('m/d'); ?></time>
|
2021-03-06 07:03:39 +00:00
|
|
|
</div>
|