Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
UI | whisper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingSky-CN committed Oct 25, 2019
1 parent 49e9892 commit 1d7c98a
Showing 1 changed file with 13 additions and 28 deletions.
41 changes: 13 additions & 28 deletions page-whisper.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,37 +61,22 @@ function threadedComments($comments, $options) {
<?php } ?>
<div id="main">
<?php if (!empty($this->options->Breadcrumbs) && in_array('Pageshow', $this->options->Breadcrumbs)): ?>
<div class="breadcrumbs">
<a href="<?php $this->options->siteUrl(); ?>">首页</a> &raquo; <?php $this->title() ?>
<div class="mdui-card" style="margin-top:20px;background-color: rgba(180, 180, 180, 0.25);">
<span class="mdui-chip-icon" style="border-radius:2px;"><i class="mdui-icon material-icons">chevron_right</i></span>
<span class="mdui-chip-title">
<a href="<?php $this->options->siteUrl(); ?>">首页</a> &raquo; <?php $this->title() ?>
</span>
</div>
<?php endif; ?>
<article class="post">
<h1 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1>
<div class="post-content mdui-typo">
<?php $this->content(); ?>
<div class="mdui-card" style="margin-top:20px;">
<div class="mdui-card-primary">
<div class="mdui-card-primary-title"><?php $this->title() ?></div>
<div class="mdui-card-primary-subtitle">Archives</div>
</div>
<div class="mdui-card-content mdui-typo" style="padding: 0px 16px 16px 16px;">
<?php $this->content(); ?>
</div>
</div>
<?php
// linceses
$linceses = $this->fields->linceses;
if ($linceses && $linceses != 'NONE') {
$linceseslist = array(
'BY' => '署名 4.0 国际 (CC BY 4.0)',
'BY-SA' => '署名-相同方式共享 4.0 国际 (CC BY-SA 4.0)',
'BY-ND' => '署名-禁止演绎 4.0 国际 (CC BY-ND 4.0)',
'BY-NC' => '署名-非商业性使用 4.0 国际 (CC BY-NC 4.0)',
'BY-NC-SA' => '署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)',
'BY-NC-ND' => '署名-非商业性使用-禁止演绎 4.0 国际 (CC BY-NC-ND 4.0)');
$lincesestext = $linceseslist[$linceses];
?>
<div class="copyright">本篇文章采用 <a rel="noopener" href="https://creativecommons.org/licenses/<?=strtolower($linceses)?>/4.0/deed.zh" target="_blank" class="external"><?=$lincesestext?></a> 许可协议进行许可。
</div>
<?php
} else {
?>
<div class="copyright">本篇文章未指定许可协议。
</div>
<?php }; ?>
</article>
<div id="comments" class="whisper<?php if($this->user->pass('editor', true)): ?> permission<?php endif; ?>">
<?php $this->comments()->to($comments); ?>
<?php if ($comments->have()): ?>
Expand Down

0 comments on commit 1d7c98a

Please sign in to comment.