PATH:
home
/
letacommog
/
rachat-or-bourgenbresse
/
wp-content
/
themes
/
dt-the7
<?php /* Template Name: Portfolio - masonry & grid */ /** * Portfolio masonry layout. * * @package presscore * @since presscore 0.1 */ // File Security Check if ( ! defined( 'ABSPATH' ) ) { exit; } global $post; $config = Presscore_Config::get_instance(); $config->set( 'template', 'portfolio' ); add_action('presscore_before_main_container', 'presscore_page_content_controller', 15); get_header(); if ( presscore_is_content_visible() ): ?> <!-- Content --> <div id="content" class="content" role="main"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); // main loop do_action( 'presscore_before_loop' ); if ( post_password_required() ) { the_content(); } else { // backup config $config_backup = $config->get(); /////////////////////// // Posts Filer // /////////////////////// presscore_display_posts_filter( array( 'post_type' => 'dt_portfolio', 'taxonomy' => 'dt_portfolio_category' ) ); // fullwidth wrap open if ( $config->get( 'full_width' ) ) { echo '<div class="full-width-wrap">'; } // masonry container open echo '<div ' . presscore_masonry_container_class( array( 'wf-container' ) ) . presscore_masonry_container_data_atts() . '>'; $page_query = presscore_get_filtered_posts( array( 'post_type' => 'dt_portfolio', 'taxonomy' => 'dt_portfolio_category' ) ); if ( $page_query->have_posts() ) { while( $page_query->have_posts() ) { $page_query->the_post(); // populate post config presscore_populate_portfolio_config(); presscore_get_template_part( 'mod_portfolio', 'masonry/project' ); } wp_reset_postdata(); } // masonry container close echo '</div>'; // fullwidth wrap close if ( $config->get( 'full_width' ) ) { echo '</div>'; } ///////////////////// // Pagination // ///////////////////// presscore_complex_pagination( $page_query ); // restore config $config->reset( $config_backup ); } do_action( 'presscore_after_loop' ); endwhile; endif; // main loop ?> </div><!-- #content --> <?php do_action('presscore_after_content'); endif; // if content visible get_footer(); ?>
[+]
..
[-] header-main.php
[edit]
[-] rtl.css
[edit]
[+]
images
[+]
template-parts
[-] functions.php
[edit]
[-] footer.php
[edit]
[-] style.css
[edit]
[-] license.txt
[edit]
[-] 404.php
[edit]
[-] content-single-team.php
[edit]
[+]
languages
[-] content-single-testimonials.php
[edit]
[-] post template.php.php
[edit]
[-] comments.php
[edit]
[-] GPL.txt
[edit]
[-] index.php
[edit]
[-] wpml-config.xml
[edit]
[-] template-blog-masonry.php
[edit]
[-] sidebar-footer.php
[edit]
[+]
js
[-] header-single.php
[edit]
[-] template-team.php
[edit]
[-] template-blog-list.php
[edit]
[-] content-testimonials.php
[edit]
[+]
inc
[+]
plugins
[-] template-portfolio-masonry.php
[edit]
[-] template-microsite.php
[edit]
[-] image.php
[edit]
[-] .htaccess
[edit]
[-] content-single.php
[edit]
[-] no-results.php
[edit]
[-] page.php
[edit]
[-] search.php
[edit]
[-] template-portfolio-list.php
[edit]
[+]
css
[-] template-albums.php
[edit]
[-] searchform.php
[edit]
[-] screenshot.png
[edit]
[-] single.php
[edit]
[+]
woocommerce
[-] content-single-gallery.php
[edit]
[-] template-testimonials.php
[edit]
[-] template-albums-jgrid.php
[edit]
[-] header.php
[edit]
[-] editor-style.css
[edit]
[-] template-portfolio-jgrid.php
[edit]
[-] content-single-portfolio.php
[edit]
[-] archive.php
[edit]
[-] template-media-jgrid.php
[edit]
[+]
fonts
[-] sidebar.php
[edit]