HEX
Server: Apache
System: Linux p3plzcpnl489526.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: vmasmheia229 (9244908)
PHP: 7.4.33
Disabled: NONE
Upload Files
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(); ?>