-
Notifications
You must be signed in to change notification settings - Fork 169
/
Copy pathhome.php
65 lines (54 loc) · 2.06 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
<?php
/*
* Template Name: Home
*/
get_header(); ?>
<!-- body -->
<div class="content-full full-width twelve columns">
<!-- inner -->
<div id="content">
<?php the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_content(); ?>
<div id="home-features" class="row">
<aside id="chapter-list" class="four columns">
<h3><?php _e( 'Chapters', 'twentyeleven' ); ?></h3>
<ul>
<?php $chapters = learn_chapter_listing(); ?>
<?php while ( $chapters->have_posts() ) : $chapters->the_post(); ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; wp_reset_postdata(); ?>
</ul>
</aside>
<aside id="recent-updates" class="four columns">
<h3><?php _e( 'Recently Updated', 'twentyeleven' ); ?></h3>
<?php
$recent_updates = new WP_Query( array(
'post_type' => 'page',
'post_limits' => 10,
'order' => 'DESC',
'orderby' => 'modified'
));
?>
<ul>
<?php while ( $recent_updates->have_posts() ) : $recent_updates->the_post(); ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; wp_reset_postdata(); ?>
</ul>
</aside>
<aside id="open-source-content" class="four columns">
<h3><?php _e( 'Open Source Content', 'twentyeleven' ); ?></h3>
<p>
All of the content in this site is completely open source, and we welcome your contribution.
Whether you notice a small improvement that should be made, or want to write entirely new articles, this is one area where feature requests are encouraged!
</p>
<a class="button dark" href="https://github.com/jquery/learn.jquery.com"><i class="icon-github"></i> Open an Issue or Submit a Pull Request</a>
<p class="clearfix">Each of our articles has a link to the raw content on GitHub, and we urge everyone to fork, edit, and help improve this community resource!</p>
</aside>
</div>
</div><!-- #post-<?php the_ID(); ?> -->
</div>
<!-- /inner -->
</div>
<!-- /body -->
<?php get_footer(); ?>