加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
page-dynamics.php 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
陆之岇 提交于 2021-08-20 18:27 . the reply box follows the comment
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* dynamics
* 动态
* @package custom
*
*/
$this->need('header.php');
$this->need('navigator.php'); ?>
<div id="nabo" class="middle">
<div class="header">
<div class="toolbar">
<div class="toolbar-left"><?php $this->title() ?></div>
</div>
</div>
<div class="article home">
<?php $dyn = Dynamics_Plugin::get();
while ($dyn->dynamics->next()): ?>
<article class="dynamic" itemscope itemtype="http://schema.org/BlogPosting">
<div class="twitter">
<div class="created">
<time datetime="<?php $dyn->dynamics->created('c'); ?>"
itemprop="datePublished"><?php $dyn->dynamics->created(); ?></time>
</div>
<div class="avatar">
<img src="<?php $dyn->dynamics->avatar(100, 'G', 'mm'); ?>" alt="author">
</div>
<div class="display">
<div class="name"><?php $dyn->dynamics->screenName(); ?></div>
</div>
<div class="markdown-body describe">
<?= lazyload_filter($dyn->dynamics->content); ?>
</div>
</div>
</article>
<?php endwhile; ?>
</div>
<div class="navigation">
<?php $dyn->dynamics->navigator('&laquo;', '&raquo;',
3, '...',
'wrapClass=page-navigator'
); ?>
</div>
<?php $this->need('comments.php'); ?>
</div>
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化