forked from huzikai0424/pomelo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
36 lines (34 loc) · 952 Bytes
/
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
<?php echo get_header(); ?>
<div id="wrap">
<div class="top">
<?php
if(pomelo_option("scene-image"))
$bg_url=pomelo_option("scene-image");
else
$bg_url="https://oijbbaxnm.bkt.clouddn.com/star.jpg";
?>
<div id="bg" style='background: url("<?php echo $bg_url;?>");'></div>
<div class="info">
<div class="info-box">
<div class="blog-name">
<div class="blog-logo">
<img src="<?php echo pomelo_option('head')?>" alt="个人头像">
</div>
<a href="<?php echo home_url();?>"><h1><?php echo bloginfo('name')?></h1></a>
</div>
<div class="motto">
<p><?php echo pomelo_option('admin-desc');?></p>
</div>
</div>
</div>
</div>
<div class="main">
<div class="content">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
</div>
<div id="more"><?php next_posts_link(__('加载更多')); ?></div>
</div>
</div>
<?php echo get_footer();?>