1 <?php |
1 <?php |
2 /* |
2 /* |
3 Template Name: Portfolio template |
3 Template Name: Portfolio template |
4 * Version: 1.4.6 |
4 * Version: 1.4.7 |
5 */ |
5 */ |
6 get_header(); ?> |
6 get_header(); |
|
7 $current_theme = get_stylesheet(); ?> |
7 <div class="wrap"> |
8 <div class="wrap"> |
8 <div id="primary" class="content-area"> |
9 <div id="primary" class="content-area"> |
9 <div id="container" class="<?php if ( 'twentyfourteen' == get_stylesheet() || 'twentytwelve' == get_stylesheet() ) echo 'site-content'; ?> site-main"> |
10 <div id="container" class="<?php echo in_array( $current_theme, array( 'twentyfourteen', 'twentytwelve' ) ) ? 'site-content' : ''; ?> site-main"> |
10 <div id="content" class="hentry"> |
11 <div id="content" class="hentry entry"> |
11 <div class="breadcrumbs home_page_title entry-header"> |
12 <div class="entry-header<?php echo in_array( $current_theme, array( 'twentytwenty' ) ) ? ' has-text-align-center' : ''; ?>"> |
12 <?php prtfl_template_title(); ?> |
13 <?php prtfl_template_title(); ?> |
13 </div> |
14 </div> |
14 <?php |
15 <?php do_action( 'bwsplgns_display_pdf_print_buttons', 'top' ); |
|
16 |
15 /* Get arguments for WP Query */ |
17 /* Get arguments for WP Query */ |
16 $args = prtfl_get_query_args(); |
18 $args = prtfl_get_query_args(); |
17 |
|
18 do_action( 'bwsplgns_display_pdf_print_buttons', 'top' ); |
|
19 |
19 |
20 $second_query = new WP_Query( $args ); |
20 $second_query = new WP_Query( $args ); |
21 |
21 |
22 /* Display template content */ |
22 /* Display template content */ |
23 echo prtfl_get_content( $second_query ); |
23 prtfl_get_content( $second_query ); |
24 |
24 |
25 wp_reset_query(); |
25 wp_reset_query(); |
26 |
26 |
27 do_action( 'bwsplgns_display_pdf_print_buttons', 'bottom' ); ?> |
27 do_action( 'bwsplgns_display_pdf_print_buttons', 'bottom' ); ?> |
28 </div><!-- #content --> |
28 </div><!-- #content --> |
31 <?php prtfl_pro_pagination( $second_query, $args ); ?> |
31 <?php prtfl_pro_pagination( $second_query, $args ); ?> |
32 |
32 |
33 <?php comments_template(); ?> |
33 <?php comments_template(); ?> |
34 </div><!-- #container --> |
34 </div><!-- #container --> |
35 </div><!-- .content-area --> |
35 </div><!-- .content-area --> |
36 <?php get_sidebar(); ?> |
36 <?php if( 'twentytwenty' == $current_theme ) { |
|
37 get_template_part( 'template-parts/footer-menus-widgets' ); |
|
38 } elseif( 'twentynineteen' != $current_theme ) { |
|
39 get_sidebar(); |
|
40 } ?> |
37 </div><!-- .wrap --> |
41 </div><!-- .wrap --> |
38 <?php get_footer(); ?> |
42 <?php get_footer(); ?> |