File: /home/vmasmheia229/domains/cindymuscarello.com/html/wp-content/themes/kathy/template-all-works.php
<?php
/**
* Template Name: All Works with Category Menu
* Description: This template is for showing all of your works with category menu
*
* @since 1.0.0
*/
get_header(); ?>
<?php if ( function_exists( 'uxb_port_init_plugin' ) ) : ?>
<?php
$show_category_menu_class = '';
$show_category_menu = kathy_is_portfolio_category_menu_displayed();
if ( ! $show_category_menu ) {
$show_category_menu_class = 'no-category-menu';
}
$active_term_id = kathy_get_active_term_id();
?>
<div class="portfolio-container <?php echo esc_attr( $show_category_menu_class ); ?>">
<?php
if ( post_password_required() ) {
get_template_part( 'template-parts/content-password' );
} else {
echo '<section class="portfolio-list-section">';
if ( $show_category_menu ) {
// Display portfolio category menus
get_template_part( 'template-parts/portfolio-category-menu' );
} else {
// Otherwise, display only the active term's title
$term = get_term( $active_term_id );
echo '<h1 class="post-title">' . esc_html( $term->name ) . '</h1>';
}
// Display portfolio items
get_template_part( 'template-parts/portfolio-listing' );
echo '</section>';
}
?>
</div>
<?php endif; ?>
<?php get_footer(); ?>