-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
87 lines (69 loc) · 2.57 KB
/
index.php
File metadata and controls
87 lines (69 loc) · 2.57 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
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
<?php
/**
* General template.
*
* Use as template for posts, pages, and custom post types where no set unique template.
*
* @package CodeAndBeauty
*/
get_header(); ?>
<section class="section">
<div class="container">
<div class="with-right-sidebar">
<div class="main-container">
<?php if ( have_posts() ) : ?>
<?php if ( is_archive() || is_category() || is_tag() ) : ?>
<header class="page-header">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<p class="page-description">', '</p>' );
?>
</header>
<?php endif; ?>
<?php
while ( have_posts() ) :
the_post();
/**
* To override this template in a child-theme, create a file called
* `templates/content/content-{post_type}.php` and it will be use instead.
*/
get_template_part( 'templates/content/content', get_post_type() );
if ( is_singular() ) :
/**
* Add comments template
*/
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
the_post_navigation( array(
'prev_text' => '<span class="screen-reader-text">' . __( 'Previous Post', 'TEXTDOMAIN' ) . '</span><span class="nav-subtitle"><i class="fa fa-long-arrow-left"></i></span> <span class="nav-title">%title</span>',
'next_text' => '<span class="screen-reader-text">' . __( 'Next Post', 'TEXTDOMAIN' ) . '</span><span class="nav-subtitle"><i class="fa fa-long-arrow-right"></i></span> <span class="nav-title">%title</span>',
) );
endif;
endwhile;
if ( ! is_singular() ) :
the_posts_pagination( array(
'prev_text' => '<span class="screen-reader-text">' . __( 'Previous page', 'ui' ) . '</span><span class="meta-prev"><i class="fa fa-long-arrow-left"></i></span>',
'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'ui' ) . '</span><span class="meta-next"><i class="fa fa-long-arrow-right"></i></span>',
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'ui' ) . ' </span>',
) );
endif;
?>
<?php else : ?>
<?php
/**
* To override this template in a child-theme, create a template called
* `templates/contents/content-none.php` and it will be use instead.
*/
get_template_part( 'templates/content/content', 'none' );
?>
<?php endif; ?>
</div>
<div class="right-container">
<?php get_sidebar( 'right' ); ?>
</div>
</div>
</div>
</section>
<?php
get_footer();