-
Notifications
You must be signed in to change notification settings - Fork 1
/
archive-jetpack-portfolio.php
67 lines (54 loc) · 2.6 KB
/
archive-jetpack-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
<?php
/* ------------------------------------------------------------------------- *
* Template name: Portfolio Page
/* ------------------------------------------------------------------------- */
/**
* Filtered CSS classes
* ------
* section#section-portfolio-page: grid-wrap sec-portfolio
* div#container: grid-container grid-1 padding-small clearfix
* div#sec-portfolio-wrap: js-masonry grid-masonry-wrap
* ------
*/
// Header and Footer templates
$businessx_header_tmpl = apply_filters( 'businessx_header___tmpl', '' );
$businessx_footer_tmpl = apply_filters( 'businessx_footer___tmpl', '' );
// Header
get_header( $businessx_header_tmpl );
// Variables
$bx_pp_id = apply_filters( 'businessx_portfolio_page_masonry_script___id', 'sec-portfolio-wrap' );
// Title
//businessx_get_heading_templ( 'archive-portfolio', 'full-width' );
get_template_part( 'partials/headings/archive-portfolio-heading', 'full-width' );
?>
<section id="section-portfolio-page" class="<?php businessx_occ( 'businessx_portfolio_page___section_classes' ); ?>">
<?php do_action( 'businessx_portfolio_page__inner_wrapper_top' ); ?>
<div class="<?php businessx_occ( 'businessx_portfolio_page___container_classes' ); ?>">
<?php do_action( 'businessx_portfolio_page__inner_container_top' ); ?>
<div id="<?php echo esc_attr( $bx_pp_id ); ?>" class="<?php businessx_occ( 'businessx_portfolio_page___wrap_classes' ); ?>" data-masonry-options='<?php businessx_portfolio_page_masonry_options(); ?>'>
<?php do_action( 'businessx_portfolio_page__inner_items_wrap_top' ); ?>
<?php
if ( have_posts() ) : while ( have_posts() ) : the_post();
// Get portfolio item template
get_template_part( 'partials/posts/content', apply_filters( 'businessx_portfolio_page___templ', 'portfolio-page' ) );
endwhile;
businessx_paged( '<nav class="posts-pagination grid-col grid-4x-col fw-bold ta-center clearfix" role="navigation">' );
wp_reset_postdata();
else :
?>
<p class="ta-center grid-col msg-info alert alert-warning">
<?php printf( __( 'Ready to publish your first project? <a href="%1$s">Get started here</a>.', 'businessx' ), esc_url( admin_url( 'post-new.php?post_type=jetpack-portfolio' ) ) ); ?>
</p>
<?php
endif; // Query
?>
<?php do_action( 'businessx_portfolio_page__inner_items_wrap_bottom' ); ?>
</div>
<?php do_action( 'businessx_portfolio_page__inner_container_bottom' ); ?>
</div>
<?php do_action( 'businessx_portfolio_page__inner_wrapper_bottom' ); ?>
</section>
<?php do_action( 'businessx_portfolio_page__after_wrapper' ); ?>
<?php
// Footer
get_footer( $businessx_footer_tmpl ); ?>