Commit 622fb79 1 parent 6694c39 commit 622fb79 Copy full SHA for 622fb79
File tree 4 files changed +25
-22
lines changed
4 files changed +25
-22
lines changed Original file line number Diff line number Diff line change 31
31
</div>
32
32
</div>
33
33
<?php
34
+ get_sidebar ();
34
35
get_footer ();
Original file line number Diff line number Diff line change 107
107
}
108
108
} else {
109
109
get_template_part ( 'template-parts/content ' , 'none ' );
110
-
111
110
}
112
-
113
111
?>
114
112
115
113
</main><!-- #main -->
Original file line number Diff line number Diff line change 13
13
<div class="row">
14
14
<div class="col-12">
15
15
<main id="primary" class="site-main archive">
16
- <?php if ( have_posts () ) : ?>
16
+ <?php if ( have_posts () ) { ?>
17
17
18
18
<header class="page-header mb-5 text-center">
19
19
<?php
77
77
'next_text ' => __ ( 'next ' , 'sunflower ' ),
78
78
);
79
79
80
- printf (
81
- '<div class="d-flex justify-content-around mt-3 mb-5"><div class="sunflower-pagination">%s</div></div> ' ,
82
- wp_kses_post ( paginate_links ( $ sunflower_args ) )
83
- );
84
-
85
- else :
86
-
87
- get_template_part ( 'template-parts/content ' , 'none ' );
80
+ $ sunflower_paginated_links = paginate_links ( $ sunflower_args );
88
81
89
- endif ;
90
- ?>
82
+ if ( $ sunflower_paginated_links ) {
83
+ printf (
84
+ '<div class="d-flex justify-content-around mt-3 mb-5"><div class="sunflower-pagination">%s</div></div> ' ,
85
+ wp_kses_post ( $ sunflower_paginated_links )
86
+ );
87
+ }
88
+ } else {
89
+ get_template_part ( 'template-parts/content ' , 'none ' );
90
+ }
91
+ ?>
91
92
92
93
</main><!-- #main -->
93
94
</div>
94
95
</div>
95
96
</div>
96
97
<?php
98
+ get_sidebar ();
97
99
get_footer ();
Original file line number Diff line number Diff line change 14
14
<div class="col-12">
15
15
<main id="primary" class="site-main archive">
16
16
17
- <?php if ( have_posts () ) : ?>
17
+ <?php if ( have_posts () ) { ?>
18
18
19
19
<header class="page-header text-center">
20
20
<h1 class="page-title">
74
74
'next_text ' => __ ( 'next ' , 'sunflower ' ),
75
75
);
76
76
77
- printf (
78
- '<div class="d-flex justify-content-around mt-3 mb-5"><div class="sunflower-pagination">%s</div></div> ' ,
79
- wp_kses_post ( paginate_links ( $ sunflower_args ) )
80
- );
81
-
82
- else :
77
+ $ sunflower_paginated_links = paginate_links ( $ sunflower_args );
83
78
79
+ if ( $ sunflower_paginated_links ) {
80
+ printf (
81
+ '<div class="d-flex justify-content-around mt-3 mb-5"><div class="sunflower-pagination">%s</div></div> ' ,
82
+ wp_kses_post ( $ sunflower_paginated_links )
83
+ );
84
+ }
85
+ } else {
84
86
get_template_part ( 'template-parts/content ' , 'none ' );
85
-
86
- endif ;
87
+ }
87
88
?>
88
89
89
90
</main><!-- #main -->
90
91
</div>
91
92
</div>
92
93
</div>
93
94
<?php
95
+ get_sidebar ();
94
96
get_footer ();
You can’t perform that action at this time.
0 commit comments