-
Notifications
You must be signed in to change notification settings - Fork 8
/
page-dynamics.php
54 lines (47 loc) · 1.66 KB
/
page-dynamics.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?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('«', '»',
3, '...',
'wrapClass=page-navigator'
); ?>
</div>
<?php $this->need('comments.php'); ?>
</div>
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>