forked from trinitrotofu/Bubble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
51 lines (49 loc) · 1.83 KB
/
index.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
<?php
/**
* Typecho 极简风格响应式主题
*
* @package Bubble
* @author TriNitroTofu, Rorical, Boshi, hycqwq
* @version 4.0.2
* @link https://github.com/hyc1230/Bubble
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<main>
<section class="section section-lg section-hero section-shaped" style="height: 100vh;">
<?php printBackground($this->options->indexImage, $this->options->bubbleShow); ?>
<div class="container shape-container d-flex align-items-center py-lg">
<div class="col px-0">
<div class="row align-items-center justify-content-center">
<div class="col-lg-6 text-center">
<div class="index-avatar-container">
<img src="<?php
if ($this->options->avatarUrl == '') {
$this->options->themeUrl("images/avatar.png");
} else {
$this->options->avatarUrl();
}
?>" class="index-avatar">
</div>
<h1 class="text-white"><?php $this->options->title() ?></h1>
<hr/>
<p class="lead text-white"><?php $this->options->description() ?></p>
</div>
</div>
</div>
</div>
</section>
<section class="section section-components bg-secondary content-card-container">
<div class="container container-lg py-5 align-items-center content-card-container">
<!-- Article list -->
<?php $first_flag = true; ?>
<?php while($this->next()): ?>
<?php printAricle($this, $first_flag); $first_flag = false; ?>
<?php endwhile; ?>
<!-- Toggle page -->
<?php printToggleButton($this); ?>
</div>
</section>
<?php if($this->_currentPage>1) echo("<script>$('html,body').animate({ scrollTop: $('.card.shadow.content-card.list-image-card.content-card-head').offset().top}, 500)</script>") ?>
<?php $this->need('footer.php'); ?>