-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.php
90 lines (84 loc) · 3.13 KB
/
home.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<div id="headline" class="row">
<div id="picnews" class="span8">
<?php get_template_part('templates/content', 'picnews'); ?>
</div>
<div class="news span4" id="cgsnews">
<?php echo cgs_posts_list( "cgsnews", array('numberposts'=>18) ); ?>
</div>
</div> <!-- headline -->
<hr />
<div id="main">
<ul class="thumbnails" id="piclinks">
<li class="span3">
<a href="/index.php/products/a380">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/img/video.jpg" alt="A380" class="thumbnail">
</a>
</li>
<li class="span3">
<a href="/index.php/category/party">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/img/xxsbd.jpg" alt="学习十八大" class="thumbnail">
</a>
</li>
<li class="span3">
<a href="<?php echo get_category_link(7); ?>">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/img/czzl.jpg" alt="成长之路" class="thumbnail">
</a>
</li>
<li class="span3">
<a href="/index.php/briefing">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/img/cgsyk.jpg" alt="CGS月刊" class="thumbnail">
</a>
</li>
</ul>
<div class="row">
<div class="news span4">
<div class="well well-header">
<h1>南航动态</h1>
</div>
<?php echo cgs_posts_list_ul( "", array('post_type'=>'industrylink', 'numberposts'=>10, 'readmore'=>false) ); ?>
</div>
<div class="news span4">
<?php echo cgs_posts_list( "focus", array('numberposts'=>10) ); ?>
</div>
<div class="span4">
<div class="well well-header">
<a href="#"><h1>CGS光荣榜</h1></a>
</div>
<?php get_template_part("templates/content", "star"); ?>
</div>
</div>
<?php $fwpp = get_page_by_path('fwpp'); ?>
<?php if ($fwpp):
$args = array(
'post_parent' => $fwpp->ID,
'order' => 'ASC'
);
$fwpp_pages = get_children( $args );
?>
<ul class="thumbnails" id="fwpp">
<?php foreach ($fwpp_pages as $pg): ?>
<li class="span3">
<a href="<?php echo get_page_link($pg->ID); ?>">
<h3><?php echo apply_filters( 'the_title', $pg->post_title ); ?></h3>
<?php echo get_the_post_thumbnail( $post_id = $pg->ID, $size = 'thumb270' ); ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<hr />
<div class="row">
<div class="news span3">
<?php echo cgs_posts_list( "partynews", array('numberposts'=>5) ); ?>
</div>
<div class="news span3">
<?php echo cgs_posts_list( "depnews", array('numberposts'=>5) ); ?>
</div>
<div class="news span3">
<?php echo cgs_posts_list( "team", array('numberposts'=>5) ); ?>
</div>
<div class="news span3">
<?php echo cgs_posts_list( "staff", array('numberposts'=>5) ); ?>
</div>
</div> <!-- row -->
</div> <!-- main -->