This repository has been archived by the owner on May 29, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pre: ver0.6 add a project information page. add and fix some bugs. up…
…date readme.
- Loading branch information
Showing
4 changed files
with
57 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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') ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters