-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-powerspeed-portfolio.php
68 lines (59 loc) · 2.17 KB
/
single-powerspeed-portfolio.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
66
67
68
<?php
/**
* The single Portfolio page
*
* Used for displaying single portfolios
*
* @package PowerSpeed
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
get_header(); ?>
<div class="powerspeed-content-area">
<main>
<section class="powerspeed-singles">
<div class="container<?php if(esc_attr(get_theme_mod('powerspeed_section_main_content_fluid', false)) == true) { echo '-fluid'; }?>">
<div class="row">
<div id="powerspeed-main-content" class="powerspeed-single powerspeed-main-content col-12">
<?php
while(have_posts()) {
the_post();
get_template_part('template-parts/content', 'powerspeed-portfolio');
?>
<br class="clearboth" />
<div class="row">
<div class="pages col-12">
<?php
wp_link_pages(array(
'before' => '<nav class="Page navigation"><ul class="pagination justify-content-left"><li class="page-item"><span class="page-link">' . esc_attr(__( 'Pages:', 'powerspeed' )) . '</span></li>',
'after' => '</ul></nav><hr>',
'link_before' => '<span class="page-link">',
'link_after' => '</span>',
'next_or_number' => 'number',
'separator' => '',
'nextpagelink' => __( 'Next', 'powerspeed'),
'previouspagelink' => __( 'Previous', 'powerspeed' ),
'pagelink' => '%',
'echo' => 1
));
?>
</div>
</div>
<div class="row">
<div class="pages col-6 text-left"> <?php previous_post_link(); ?></div>
<div class="pages col-6 text-right"> <?php next_post_link(); ?></div>
</div>
<?php
if( comments_open() || get_comments_number() ) {
comments_template();
}
}
?>
</div>
</div><!-- end .row div -->
</div><!-- end .container div -->
</section>
</main>
</div>
<?php get_footer(); ?>