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

侧边栏显示异常 #1

Open
wants to merge 1 commit into
base: feature1.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<ul class="widget-list">
<?php $obj = $this->widget('Widget_Contents_Post_Recent', 'pageSize=10000') ?>
<?php if ($obj->have()) : ?>
<? while ($obj->next()) : ?>
<?php while ($obj->next()) : ?>
<?php if ($obj->password == NULL) : ?>
<li class="recent">
<a class="content" href="<?php $obj->permalink(); ?>">
Expand All @@ -44,20 +44,20 @@
</a>
<span class="modified-time"><?php diffTime($obj->modified) ?></span>
</li>
<? else : ?>
<?php else : ?>
<li class="recent locked">
<a class="content" href="<?php $obj->permalink(); ?>">
<?php if ($obj->hidden) : ?>
<p class="article-name"><i class="fa fa-fw fa-lock"></i><?php subText($obj->title, 10) ?></p>
<? else : ?>
<?php else : ?>
<p class="article-name"><i class="fa fa-fw fa-unlock"></i><?php subText($obj->title, 10) ?></p>
<?php endif; ?>
</a>
<span class="modified-time"><?php diffTime($obj->modified) ?></span>
</li>
<?php endif; ?>
<? endwhile; ?>
<? else : ?>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
</ul>
</section>
Expand Down Expand Up @@ -100,4 +100,4 @@
<?php endif; ?>

</div>
</div><!-- end #sidebar -->
</div><!-- end #sidebar -->