summaryrefslogtreecommitdiff
path: root/page-links.php
blob: 80dde3a1d5cf7f94d8453ff2ca70742f5159ba00 (plain)
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
<?php
/**
 * 友链页面
 *
 * @package custom
 */

if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('includes/header.php');?>

<div class="col-12" id="main" role="main">
    <article class="post post-atpage" itemscope itemtype="http://schema.org/BlogPosting">
        <div class="post-header">
            <h1 class="post-title post-title-atpage page-title-atpage" itemprop="name headline"><?php $this->title() ?></h1>
        </div>
        <div class="links-container container-fluid">
            <?php if(Utils::isPluginAvailable('Links')) {
            Links_Plugin::output('<a href="{url}" target="_blank" title="{title}" class="links-item" no-linkTarget>
                <div class="links-content">
                    <section class="links-avatar">
                        <img src="'.Utils::indexThemeUrl('assets/loading.gif').'" data-src="{image}" class="links-img lazy" />
                    </section>
                    <section class="links-profile">
                        <h4 class="links-name">{name}</h4>
                        <p class="links-description">{title}</p>
                    </section>
                </div>
            </a>'); }
            else {
                echo 'Links 插件未启用,若要使用友情连接功能,请安装并启用 Links 插件。';
            }?>
        </div>
        <div class="post-content" itemprop="articleBody">
            <?php $this->content(); ?>
        </div>
    </article>
    <?php $this->need('includes/comments.php'); ?>
</div>

<?php $this->need('includes/footer.php'); ?>