-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
主要优化了一些显示问题和新增了归档页(标签云)模板;
- Loading branch information
Weic
committed
May 13, 2017
1 parent
4bafe63
commit 0a1be2e
Showing
11 changed files
with
179 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
/** | ||
* 归档页模板 | ||
* | ||
* @package custom | ||
*/ | ||
?> | ||
<?php $this->need('header.php'); ?> | ||
<div class="body-layout"> | ||
<div class="post-body-layout"> | ||
<div class="post-header"> | ||
<h2><?php $this->title() ?></h2> | ||
</div> | ||
<div class="index-container"> | ||
<div class="post-layout"> | ||
<article class="post-main"> | ||
<section class="archive-page-section"> | ||
<?php $this->widget('Widget_Metas_Category_List')->to($categories); ?> | ||
<?php while ($categories->next()): ?> | ||
<?php $this->widget('Widget_Archive@category-' . $categories->mid, 'pageSize=7&type=category', 'mid=' . $categories->mid)->to($posts); ?> | ||
<div class="archive-categories"> | ||
<?php while ($posts->next()): ?> | ||
<?php if (1 == $posts->sequence): ?> | ||
<h3 class="archive-categories-title"><?php $categories->name(); ?></h3> | ||
<ul> | ||
<!-- <h3 class="archive-categories-title"><?php $categories->name(); ?></h3> --> | ||
<li><?php $posts->date('m-d'); ?> <a class="down-a" href="<?php $posts->permalink(); ?>"><?php $posts->title(43); ?></a></li> | ||
<?php else: ?> | ||
<li><?php $posts->date('m-d'); ?> <a class="down-a" href="<?php $posts->permalink(); ?>"><?php $posts->title(40); ?></a></li> | ||
<?php endif; ?> | ||
<?php endwhile; ?> | ||
</ul> | ||
<div style="clear: both;"></div> | ||
</div> | ||
<?php endwhile; ?> | ||
|
||
<div class="archive-tags"> | ||
<?php $this->widget('Widget_Metas_Tag_Cloud', 'ignoreZeroCount=1&limit=30')->to($tags); ?> | ||
<?php while($tags->next()): ?> | ||
<a style="background-color:rgb(<?php echo(rand(0, 255)); ?>, <?php echo(rand(0,255)); ?>, <?php echo(rand(0, 255)); ?>)" href="<?php $tags->permalink(); ?>" title='<?php $tags->name(); ?>'><?php $tags->name(); ?></a> | ||
<?php endwhile; ?> | ||
</div> | ||
</section> | ||
</article> | ||
</div> | ||
</div> | ||
</div> | ||
<?php $this->need('page-footer.php'); ?> | ||
</div> | ||
<?php $this->need('footer.php'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,6 @@ | |
</div> | ||
</div> | ||
</div> | ||
<?php $this->need('page-footer.php'); ?> | ||
</div> | ||
<?php $this->need('footer.php'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div style="clear:both;"></div> | ||
<footer class="page-footer"> | ||
<p>Copyright @ <?php echo(date("Y")) ?> <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a></p> | ||
<p><?php if ($this->options->socialicp): ?><a target="_blank" href="http://www.miitbeian.gov.cn/"><?php $this->options->socialicp(); ?></a> | <?php endif; ?> | ||
Powered by <a href="http://typecho.org" target="_blank">Typecho</a>,Themes <a target="_blank" href="https://weic96.cn/themes-note/">Note</a>.</p> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,6 @@ | |
</div> | ||
</div> | ||
</div> | ||
<?php $this->need('page-footer.php'); ?> | ||
</div> | ||
<?php $this->need('footer.php'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters