wp/wp-content/plugins/portfolio/templates/portfolio.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
     1 <?php
     1 <?php
     2 /*
     2 /**
     3 Template Name: Portfolio template
     3  * Template Name: Portfolio template
     4 * Version: 1.4.7
     4  * Version: 1.4.7
     5 */
     5  */
       
     6 
     6 get_header();
     7 get_header();
     7 $current_theme = get_stylesheet(); ?>
     8 $current_theme = get_stylesheet(); ?>
     8 	<div class="wrap">
     9 	<div class="wrap">
     9 		<div id="primary" class="content-area">
    10 		<div id="primary" class="content-area">
    10 			<div id="container" class="<?php echo in_array( $current_theme, array( 'twentyfourteen', 'twentytwelve' ) ) ? 'site-content' : ''; ?> site-main">
    11 			<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 id="content" class="hentry entry">
    12 					<div class="entry-header<?php echo in_array( $current_theme, array( 'twentytwenty' ) ) ? ' has-text-align-center' : ''; ?>">
    13 					<div class="entry-header<?php echo in_array( $current_theme, array( 'twentytwenty' ) ) ? ' has-text-align-center' : ''; ?>">
    13 						<?php prtfl_template_title(); ?>
    14 						<?php prtfl_template_title(); ?>
    14 					</div>
    15 					</div>
    15                     <div class="portfolio_box entry-content">
    16 					<div class="portfolio_box entry-content">
    16                         <?php do_action( 'bwsplgns_display_pdf_print_buttons', 'top' );
    17 						<?php
       
    18 						do_action( 'bwsplgns_display_pdf_print_buttons', 'top' );
    17 
    19 
    18                         /* Get arguments for WP Query */
    20 						/* Get arguments for WP Query */
    19                         $args = prtfl_get_query_args();
    21 						$args = prtfl_get_query_args();
    20 
    22 
    21                         $second_query = new WP_Query( $args );
    23 						$second_query = new WP_Query( $args );
    22 
    24 
    23                         /* Display template content */
    25 						/* Display template content */
    24                         prtfl_get_content( $second_query );
    26 						prtfl_get_content( $second_query );
    25 
    27 
    26                         wp_reset_query();
    28 						wp_reset_postdata();
       
    29 						wp_reset_query();
    27 
    30 
    28                         do_action( 'bwsplgns_display_pdf_print_buttons', 'bottom' ); ?>
    31 						do_action( 'bwsplgns_display_pdf_print_buttons', 'bottom' );
       
    32 						?>
    29 
    33 
    30                         <!-- Portfolio tmplate pagination -->
    34 						<!-- Portfolio tmplate pagination -->
    31                         <?php prtfl_pro_pagination( $second_query, $args ); ?>
    35 						<?php prtfl_pro_pagination( $second_query, $args ); ?>
    32                     </div><!--.portfolio_box-->
    36 					</div><!--.portfolio_box-->
    33                 </div><!-- #content -->
    37 				</div><!-- #content -->
    34 				<?php comments_template(); ?>
    38 				<?php comments_template(); ?>
    35 			</div><!-- #container -->
    39 			</div><!-- #container -->
    36 		</div><!-- .content-area -->
    40 		</div><!-- .content-area -->
    37 		<?php if( 'twentytwenty' == $current_theme ) {
    41 		<?php
       
    42 		if ( 'twentytwenty' == $current_theme ) {
    38 			get_template_part( 'template-parts/footer-menus-widgets' );
    43 			get_template_part( 'template-parts/footer-menus-widgets' );
    39 		} elseif( 'twentynineteen' != $current_theme ) {
    44 		} elseif ( 'twentynineteen' !== $current_theme ) {
    40 			get_sidebar();
    45 			get_sidebar();
    41 		} ?>
    46 		}
       
    47 		?>
    42 	</div><!-- .wrap -->
    48 	</div><!-- .wrap -->
    43 <?php get_footer(); ?>
    49 <?php get_footer(); ?>