Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $is_elementor_page = arts_is_built_with_elementor();
- $masthead_template = '';
- $post_type = get_post_type();
- $portfolio_nav_enabled = get_theme_mod( 'portfolio_nav_enabled', true );
- $portfolio_nav_style = get_theme_mod( 'portfolio_nav_style', 'portfolio-auto-scroll' );
- $portfolio_nav_post_types = get_theme_mod( 'portfolio_nav_post_types', array( 'arts_portfolio_item' ) );
- $has_bottom_navigation = $is_elementor_page && $portfolio_nav_enabled && in_array( $post_type, $portfolio_nav_post_types );
- if ( $is_elementor_page ) {
- $masthead_template = 'elementor-' . arts_get_document_option( 'page_masthead_layout' );
- }
- get_header();
- /**
- * Page Masthead
- */
- get_template_part( 'template-parts/masthead/masthead', esc_attr( $masthead_template ) );
- the_post();
- ?>
- <?php if ( ! $is_elementor_page ) : ?>
- <section class="section py-medium section-blog">
- <div class="container">
- <div class="row justify-content-center">
- <div class="col">
- <div class="post">
- <div class="post__content clearfix">
- <?php the_content(); ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
- <?php else : ?>
- <?php the_content(); ?>
- <?php endif; ?>
- <?php if ( comments_open() || get_comments_number() ) : ?>
- <!-- post comments -->
- <div class="post__comments mt-small" data-barba-prevent="all">
- <?php comments_template(); ?>
- </div>
- <!-- - post comments -->
- <?php endif; ?>
- <?php
- /**
- * Page Bottom Navigation
- */
- if ( $has_bottom_navigation ) {
- get_template_part( 'template-parts/nav/nav', esc_attr( $portfolio_nav_style ) );
- }
- get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement