v1.0 — 功能完整版本
- 首页: Hero + 编辑推荐 + 近笺卡片 + 微言摘要 - 笺文: 列表 + 分页(头像+作者+日期+浏览量) - 微言: 列表 + 评论折叠 - 拾影: 瀑布流 + 灯箱 - 文章详情: 封面 + 正文 + 评论 - 图片: 缩略图 soft crop,原图裁黑边 - 头像: 本地 SVG 替换 Gravatar - 导航: 激活状态圆点指示 - 安装: 自动创建页面和菜单
This commit is contained in:
+5
-7
@@ -22,13 +22,11 @@ $photo_query = new WP_Query(array(
|
||||
<div class="gallery-masonry">
|
||||
<?php while ($photo_query->have_posts()) : $photo_query->the_post(); ?>
|
||||
<a href="<?php the_permalink(); ?>" class="gallery-item">
|
||||
<div class="gallery-placeholder">
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<?php the_post_thumbnail('medium', array('alt' => get_the_title())); ?>
|
||||
<?php else : ?>
|
||||
<span>空笺</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<?php the_post_thumbnail('medium', array('alt' => get_the_title(), 'class' => 'gallery-img')); ?>
|
||||
<?php else : ?>
|
||||
<span class="gallery-empty">空笺</span>
|
||||
<?php endif; ?>
|
||||
<div class="gallery-caption">
|
||||
<?php the_title(); ?>
|
||||
· <?php the_author_meta('display_name'); ?>
|
||||
|
||||
Reference in New Issue
Block a user