forked from rtCamp/rtpanel-child-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-custom.php
62 lines (42 loc) · 1.75 KB
/
template-custom.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
<?php
/**
* Template Name: Custom Template
*
* Custom Template Layout
*
* @package rtPanel
*
* @since rtPanelChild 2.0
*/
get_header(); ?>
<section id="content" role="main" class="rtp-grid-8 rtp-custom-page">
<?php rtp_hook_begin_content(); ?>
<?php
/* the loop */
if ( have_posts () ) {
while( have_posts() ) {
the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'rtp-custom-box' ); ?>>
<?php rtp_hook_begin_post(); ?>
<header class="post-header clearfix">
<?php rtp_hook_begin_post_title(); ?>
<h1 class="post-title"><?php the_title(); ?></h1>
<?php rtp_hook_end_post_title(); ?>
<?php rtp_hook_post_meta( 'top' ); ?>
</header><!-- .post-title -->
<div class="post-content clearfix">
<?php rtp_hook_begin_post_content(); ?>
<?php the_content( __( 'Read More →', 'rtPanel' ) ); ?>
<?php rtp_hook_end_post_content(); ?>
</div><!-- .post-content -->
<?php rtp_hook_post_meta( 'bottom' ); ?>
<?php rtp_hook_end_post(); ?>
</article><!-- .rtp-post-box --><?php
// Comment Form
rtp_hook_comments();
}
} ?>
<?php rtp_hook_end_content(); ?>
</section><!-- End of #content -->
<?php rtp_hook_sidebar(); ?>
<?php get_footer(); ?>