author | ymh <ymh.work@gmail.com> |
Tue, 27 Sep 2022 16:37:53 +0200 | |
changeset 19 | 3d72ae0968f4 |
parent 16 | a86126ab1dd4 |
child 21 | 48c4eec2b7e6 |
permissions | -rw-r--r-- |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
<?php |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
/* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
Template Name: Portfolio template |
16 | 4 |
* Version: 1.4.7 |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
*/ |
16 | 6 |
get_header(); |
7 |
$current_theme = get_stylesheet(); ?> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
<div class="wrap"> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
<div id="primary" class="content-area"> |
16 | 10 |
<div id="container" class="<?php echo in_array( $current_theme, array( 'twentyfourteen', 'twentytwelve' ) ) ? 'site-content' : ''; ?> site-main"> |
11 |
<div id="content" class="hentry entry"> |
|
12 |
<div class="entry-header<?php echo in_array( $current_theme, array( 'twentytwenty' ) ) ? ' has-text-align-center' : ''; ?>"> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
<?php prtfl_template_title(); ?> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
</div> |
19 | 15 |
<div class="portfolio_box entry-content"> |
16 |
<?php do_action( 'bwsplgns_display_pdf_print_buttons', 'top' ); |
|
16 | 17 |
|
19 | 18 |
/* Get arguments for WP Query */ |
19 |
$args = prtfl_get_query_args(); |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
20 |
|
19 | 21 |
$second_query = new WP_Query( $args ); |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
22 |
|
19 | 23 |
/* Display template content */ |
24 |
prtfl_get_content( $second_query ); |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
25 |
|
19 | 26 |
wp_reset_query(); |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
27 |
|
19 | 28 |
do_action( 'bwsplgns_display_pdf_print_buttons', 'bottom' ); ?> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
29 |
|
19 | 30 |
<!-- Portfolio tmplate pagination --> |
31 |
<?php prtfl_pro_pagination( $second_query, $args ); ?> |
|
32 |
</div><!--.portfolio_box--> |
|
33 |
</div><!-- #content --> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
34 |
<?php comments_template(); ?> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
35 |
</div><!-- #container --> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
36 |
</div><!-- .content-area --> |
16 | 37 |
<?php if( 'twentytwenty' == $current_theme ) { |
38 |
get_template_part( 'template-parts/footer-menus-widgets' ); |
|
39 |
} elseif( 'twentynineteen' != $current_theme ) { |
|
40 |
get_sidebar(); |
|
41 |
} ?> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
42 |
</div><!-- .wrap --> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
43 |
<?php get_footer(); ?> |