-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.php
More file actions
48 lines (48 loc) · 1.49 KB
/
page.php
File metadata and controls
48 lines (48 loc) · 1.49 KB
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
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
if ( has_post_thumbnail() ) :
?>
<style>
.nav-bar{ display:none;}
</style>
<header class="site-header" style=" height:30%;">
<div class="site-header-inner" style="
animation: bgcolor 5s;
-moz-animation: bgcolor 5s;
-webkit-animation: bgcolor 5s;
-o-animation: bgcolor 5s;
background-color: rgba(0,0,0,0.15);">
<h1 style=" color:#fff;" class="animated fadeInDown"><?php the_title(); ?></h1>
</div><!-- /.site-header-inner -->
</header>
<?php endif;?>
<div class="main">
<div class="content-widescreen">
<div class="crumbs_patch"
<?php if(has_post_thumbnail()):?>
style="margin-top:1.5rem;"
<?php endif;?>
>
<?php if(function_exists('cmp_breadcrumbs')) cmp_breadcrumbs();?></div>
<section class="posts">
<div class="posts-inner">
<article class="post text">
<?php if(!has_post_thumbnail()):?><h1 itemprop="name"><?php the_title(); ?></h1>
<?php endif;?>
<?php the_content(); ?>
</article>
</div><!-- /.posts-inner -->
</section><!-- /.posts -->
<div class="post-comment">
<?php comments_template(); ?>
</div>
</section><!-- /.posts -->
<?php endwhile; ?>
<?php endif; ?>
</div>
<div class="clear"></div>
<a href="#" id="top" tilte="返回顶部"> <i class="fa fa-chevron-up fa-2x"> </i></a>
</div>
<?php get_footer(); ?>