--- a/wp/wp-content/plugins/portfolio/templates/portfolio-post.php Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-content/plugins/portfolio/templates/portfolio-post.php Tue Dec 15 13:49:49 2020 +0100
@@ -1,24 +1,31 @@
<?php
/*
* Template - Portfolio post
-* Version: 1.4.6
+* Version: 1.4.7
*/
-get_header(); ?>
+get_header();
+$current_theme = get_stylesheet(); ?>
<div class="wrap">
<div id="primary" class="content-area">
- <div id="container" class="<?php if ( 'twentyfourteen' == get_stylesheet() || 'twentytwelve' == get_stylesheet() ) echo 'site-content'; ?> site-main">
- <div id="content" class="hentry">
- <div class="breadcrumbs home_page_title entry-header">
- <?php prtfl_post_template_title(); ?>
- </div>
- <?php do_action( 'bwsplgns_display_pdf_print_buttons', 'top' );
+ <div id="container" class="<?php echo in_array( $current_theme, array( 'twentyfourteen', 'twentytwelve' ) ) ? 'site-content' : ''; ?> site-main">
+ <div id="content" class="hentry entry">
+ <?php if( 'twentynineteen' != $current_theme ) { ?>
+ <div class="breadcrumbs entry-header<?php echo in_array( $current_theme, array( 'twentytwenty' ) ) ? ' has-text-align-center' : ''; ?>">
+ <?php prtfl_post_template_title(); ?>
+ </div>
+ <?php }
+ do_action( 'bwsplgns_display_pdf_print_buttons', 'top' );
/* Display template content */
- echo prtfl_post_get_content();
+ prtfl_post_get_content();
do_action( 'bwsplgns_display_pdf_print_buttons', 'bottom' ); ?>
</div><!-- #content -->
</div><!-- #container -->
</div><!-- .content-area -->
- <?php get_sidebar(); ?>
+ <?php if( 'twentytwenty' == $current_theme ) {
+ get_template_part( 'template-parts/footer-menus-widgets' );
+ } elseif( 'twentynineteen' != $current_theme ) {
+ get_sidebar();
+ } ?>
</div><!-- .wrap -->
<?php get_footer(); ?>
\ No newline at end of file