forked from Innei/Typecho-Theme-Paul
-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-works_info.php
36 lines (36 loc) · 1.48 KB
/
page-works_info.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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php
/**
* 作品介绍页
*
* @author innei
* @package custom
*/
?>
<?php $this->need('header.php') ?>
<?php $parse = json_decode($this->text, true) ?>
<main>
<nav class="navigation">
<a href="javascript:window.history.back()" class="active">返回</a>
</nav>
<section class="page">
<section class="project-head">
<?php $parse['project_img']?print_r('<img src="'.$parse['project_img'].'" />'):print_r('<img src="'.$this->options->themeUrl.'/src/img/Kico.jpg"/>') ?>
<h1><?php $this->title() ?></h1>
<p><?php print_r($parse['info']) ?></p>
<p>
<?php $parse['url'] ? print_r('<a href="' . $parse['url'] . '" class="btn blue" target="_blank">预览站点</a>') : print_r('<button class="btn blue" disabled>此项目不提供预览</button>') ?>
<?php $parse['doc_url'] ? print_r('<a href="' . $parse['url'] . '" class="btn blue" target="_blank">文档站点</a>') : print_r('') ?>
</p>
</section>
<section class="project-screenshot">
<?php foreach ($parse['imgs'] as $key => $url):
print_r('<img src="' . $url . '"/>');
endforeach;
?>
</section>
<article>
<?php print_r($parse['body']) ?>
</section>
</main>
<?php $this->need('footer.php') ?>