Skip to content

Commit 0ec865c

Browse files
committed
learn.jquery.com: Cleanup
1 parent 1a10267 commit 0ec865c

File tree

1 file changed

+21
-27
lines changed

1 file changed

+21
-27
lines changed

themes/learn.jquery.com/content-page.php

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
<?php
2-
/**
3-
* The template used for displaying page content in page.php
4-
*/
5-
?>
6-
71
<?php $next_prev_arr = get_next_prev_post(); ?>
82
<?php echo jq_post_heirarchy(); ?>
93
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
104
<header class="entry-header">
115
<h1 class="entry-title"><?php the_title(); ?></h1>
12-
</header><!-- .entry-header -->
6+
</header>
137

148
<div class="entry-content">
159
<?php the_content(); ?>
@@ -19,7 +13,7 @@
1913
<?php wp_list_pages("title_li=&sort_column=menu_order&child_of=" . $post->ID); ?>
2014
</ul>
2115
<?php }?>
22-
</div><!-- .entry-content -->
16+
</div>
2317

2418
<hr>
2519

@@ -53,28 +47,28 @@
5347
</aside>
5448
<aside class="github-feedback six columns">
5549
<h3>Suggestions, Problems, Feedback?</h3>
56-
<a class="button dark" href="<?php echo jq_get_github_url(); ?>"><i class="icon-github"></i> Open an Issue or Submit a Pull Request on GitHub</a>
50+
<a class="button dark" href="<?php echo jq_get_github_url(); ?>"><i class="icon-github"></i> Open an Issue or Submit a Pull Request on GitHub</a>
5751
</aside>
5852

5953
<?php if (isset($next_prev_arr['prev']) || isset($next_prev_arr['next']) ): ?>
6054
<div class="bottom-links row">
61-
<?php if (isset($next_prev_arr['prev'])): ?>
62-
<div class="prev six columns">
63-
<a href="<?php echo $next_prev_arr['prev']->guid; ?>">
64-
<i class="icon-chevron-left"></i>
65-
<?php echo $next_prev_arr['prev']->post_title; ?>
66-
</a>
67-
</div>
68-
<?php endif; ?>
69-
<?php if (isset($next_prev_arr['next'])): ?>
70-
<div class="next six columns">
71-
<a href="<?php echo $next_prev_arr['next']->guid; ?>">
72-
<?php echo $next_prev_arr['next']->post_title; ?>
73-
<i class="icon-chevron-right"></i>
74-
</a>
75-
</div>
76-
<?php endif; ?>
55+
<?php if (isset($next_prev_arr['prev'])): ?>
56+
<div class="prev six columns">
57+
<a href="<?php echo $next_prev_arr['prev']->guid; ?>">
58+
<i class="icon-chevron-left"></i>
59+
<?php echo $next_prev_arr['prev']->post_title; ?>
60+
</a>
61+
</div>
62+
<?php endif; ?>
63+
<?php if (isset($next_prev_arr['next'])): ?>
64+
<div class="next six columns">
65+
<a href="<?php echo $next_prev_arr['next']->guid; ?>">
66+
<?php echo $next_prev_arr['next']->post_title; ?>
67+
<i class="icon-chevron-right"></i>
68+
</a>
69+
</div>
70+
<?php endif; ?>
7771
</div>
7872
<?php endif; ?>
79-
</div><!-- .entry-meta -->
80-
</article><!-- #post-<?php the_ID(); ?> -->
73+
</div>
74+
</article>

0 commit comments

Comments
 (0)