diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2019-07-11 18:55:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-11 18:55:48 +0800 |
| commit | 27efb0e429817141e6009f0aefc79bdea17890fa (patch) | |
| tree | 219d496cd79eebc34e2926672c139d19fb761563 /index.php | |
| parent | 79f92a1658063b9edbe2a1a9bd7a3dc57e1ce420 (diff) | |
๐ The first release of Miracles ๐
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/index.php b/index.php new file mode 100644 index 0000000..df98bc2 --- /dev/null +++ b/index.php @@ -0,0 +1,65 @@ +<?php +/** + * You're the miracles. + * + * @package Miracles + * @author Eltrac + * @version 1.0 + * @link https://guhub.cn + */ +if (!defined('__TYPECHO_ROOT_DIR__')) exit; +$this->need('includes/head.php'); +$this->need('includes/header.php'); +?> + + <main class="main-container container"> + <div class="post-list"> + <?php while($this->next()): ?> + <br /> + <!-- ็ต่็ซฏๅก็ --> + <div class="post-item large-screen"> + <div class="container-fluid"><div class="row"> + <div class="col-md-6 post-banner-box"> + <a href="<?php $this->permalink(); ?>" class="post-link"> + <div class="post-banner"> + <img src="<?php if($this->fields->banner && $this->fields->banner=!''): ?><?php echo $this->fields->banner(); ?><?php else: ?><?php Utils::indexTheme('images/postbg/'); ?><?php echo rand(1,rand(1,rand(1,10))); ?>.jpg<?php endif; ?>"> + </div> + </a> + </div> + <div class="col-md-6 post-item-content"> + <a href="<?php $this->permalink(); ?>" class="post-link"> + <h1 class="post-title"><?php $this->sticky(); ?><?php $this->title(); ?></h1> + </a> + <p class="post-excerpt"><?php $this->excerpt(); ?></p> + <p class="post-meta"><i class="iconfont icon-block"></i> <?php $this->category(','); ?> <i class="iconfont icon-comments"></i> <?php $this->commentsNum('None', 'Only 1', '%d'); ?> <i class="iconfont icon-clock"></i> <?php $this->date(); ?></p> + <p class="post-button-box"><a href="<?php $this->permalink(); ?>" class="post-button">Read More</a></p> + </div> + </div></div> + </div> + <!-- ็งปๅจ็ซฏๅก็ --> + <div class="post-item small-screen"> + <div class="post-banner-box-ss"> + <div class="post-banner-ss"> + <img src="<?php if($this->fields->banner && $this->fields->banner=!''): ?><?php echo $this->fields->banner(); ?><?php else: ?><?php Utils::indexTheme('images/postbg/'); ?><?php echo rand(1,rand(1,rand(1,10))); ?>.jpg<?php endif; ?>"> + </div> + </div> + <div class="post-item-content-ss"> + <a href="<?php $this->permalink(); ?>" class="post-link"> + <h1 class="post-title-ss"><?php $this->sticky(); ?><?php $this->title(); ?></h1> + </a> + <p class="post-excerpt"><?php $this->excerpt(); ?></p> + <p class="post-meta"><i class="iconfont icon-block"></i> <?php $this->category(','); ?> <i class="iconfont icon-comments"></i> <?php $this->commentsNum('None', 'Only 1', '%d'); ?> <i class="iconfont icon-clock"></i> <?php $this->date(); ?></p> + </div> + </div> + <br /> + <?php endwhile; ?> + + <div class="post-pagenav"> + <span class="post-pagenav-left"><?php $this->pageLink('<i class="iconfont icon-chevron-left"></i>'); ?></span> + <span class="post-pagenav-right"><?php $this->pageLink('<i class="iconfont icon-chevron-right"></i>','next'); ?></span> + </div> + </div> + </main> + + +<?php $this->need('includes/footer.php'); ?>
\ No newline at end of file |
