删除似乎过时的 itemscope 等属性
This commit is contained in:
parent
2523139dfa
commit
b506b69050
6
page.php
6
page.php
|
@ -6,10 +6,10 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="col mt-5" id="main" role="main">
|
<div class="col mt-5" id="main" role="main">
|
||||||
<article itemscope itemtype="http://schema.org/BlogPosting">
|
<article>
|
||||||
<h1 class="font-weight-bold post-title" itemprop="name headline"><?php $this->title() ?></h1>
|
<h1 class="font-weight-bold post-title"><?php $this->title() ?></h1>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="post-content" itemprop="articleBody">
|
<div class="post-content">
|
||||||
<?php $this->content(); ?>
|
<?php $this->content(); ?>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
17
post.php
17
post.php
|
@ -2,24 +2,20 @@
|
||||||
<?php $this->need('header.php'); ?>
|
<?php $this->need('header.php'); ?>
|
||||||
|
|
||||||
<div class="col mt-5" id="main" role="main">
|
<div class="col mt-5" id="main" role="main">
|
||||||
<article itemscope itemtype="http://schema.org/BlogPosting">
|
<article>
|
||||||
<?php if ($this->fields->headPic !=''): ?>
|
<?php if ($this->fields->headPic !=''): ?>
|
||||||
<img src=<?php $this->fields->headPic(); ?> class="img-fluid mx-auto d-block shadow rounded mb-3" alt="<?php $this->title(); ?>">
|
<img src=<?php $this->fields->headPic(); ?> class="img-fluid mx-auto d-block shadow rounded mb-3" alt="<?php $this->title(); ?>">
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<h1 class="font-weight-bold post-title" itemprop="name headline"><?php $this->title() ?></h1>
|
<h1 class="font-weight-bold post-title"><?php $this->title() ?></h1>
|
||||||
<div>
|
<div>
|
||||||
<span class="text-gray">
|
<span class="text-gray">
|
||||||
<i class="far fa-calendar-alt ml-1 mr-1"></i>
|
<i class="far fa-calendar-alt ml-1 mr-1"></i>
|
||||||
<time class="lately" datetime="<?php $this->date('c'); ?>" itemprop="datePublished" pubdate>Lately</time> |
|
<time class="lately" datetime="<?php $this->date('c'); ?>" pubdate>Lately</time> |
|
||||||
<time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date('Y-m-d D h:iA'); ?></time>
|
<time datetime="<?php $this->date('c'); ?>"><?php $this->date('Y-m-d D h:iA'); ?></time>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<?php
|
<?php $date1=date_create(date('c',$this->date->timeStamp)); $date2=date_create(date('c')); $days=date_diff($date1,$date2); ?>
|
||||||
$date1=date_create(date('c',$this->date->timeStamp));
|
|
||||||
$date2=date_create(date('c'));
|
|
||||||
$days=date_diff($date1,$date2);
|
|
||||||
?>
|
|
||||||
<?php if ($this->options->oldPosts == 'able' && $days->format('%a') > 365): ?>
|
<?php if ($this->options->oldPosts == 'able' && $days->format('%a') > 365): ?>
|
||||||
<div class="alert alert-primary shadow mb-5" role="alert">
|
<div class="alert alert-primary shadow mb-5" role="alert">
|
||||||
这是一篇发布于 <?php echo $days->format('%a'); ?> 天以前的旧文。其中的部分内容可能已经过时。
|
这是一篇发布于 <?php echo $days->format('%a'); ?> 天以前的旧文。其中的部分内容可能已经过时。
|
||||||
|
@ -28,10 +24,9 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="post-content" itemprop="articleBody">
|
<div class="post-content">
|
||||||
<?php $this->content(); ?>
|
<?php $this->content(); ?>
|
||||||
</div>
|
</div>
|
||||||
<!--<p itemprop="keywords" class="post-tags"><?php _e('标签: '); ?><?php $this->tags(', ', true, 'none'); ?></p>-->
|
|
||||||
</article>
|
</article>
|
||||||
<hr>
|
<hr>
|
||||||
<span>
|
<span>
|
||||||
|
|
Loading…
Reference in New Issue