HEX
Server: Apache
System: Linux p3plzcpnl489499.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: dwauav0tm6jp (6177017)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/dwauav0tm6jp/hosted/jeffreyjhart_com/wp-content/themes/skylab/page-portfolio-fixed-width.php
<?php
/**
 * Template Name: Portfolio (Fixed Width)
 * Description: A Page Template that adds a portfolio (fixed width) to pages
 *
 * @package WordPress
 * @subpackage Skylab
 * @since Skylab 1.0
 */

get_header(); ?>

	<div id="main" class="clearfix">

		<div id="primary" class="clearfix">
				<header class="entry-header">
					<h1 class="entry-title-lead"><?php echo the_title();?></h1>
				</header><!-- .entry-header -->
			
			<div id="content" role="main">
			
			<?php  if ( !empty( $post->post_content ) ) : ?>
				<div class="page-content">
					<?php while ( have_posts() ) : the_post(); ?>
						<?php the_content(); ?>
					<?php endwhile; // end of the loop. ?>
				</div>
			<?php endif; ?>
			
			<?php $portfolios_per_page = ot_get_option( 'portfolios_per_page' ); ?>
			
			<?php
			$portfolio_title_position = ot_get_option( 'portfolio_title_position' );
			if ( ! empty( $portfolio_title_position ) ) {
				$portfolio_title_position_class = 'title-visible';
			} else {
				$portfolio_title_position_class = 'title-hidden';
			}
			?>
			
			<?php
			$portfolio_columns = ot_get_option( 'portfolio_columns' );
			if ( $portfolio_columns == 'portfolio_four_columns' )
				$portfolio_columns_class = 'col4';
			else 
				$portfolio_columns_class = 'col3';
			?>
			
				<div id="block-portfolio-fixed-width" class="clearfix">
				
					<?php $portfolio_filtering = ot_get_option( 'portfolio_filtering' ); ?>
				
					<?php if ( ! empty( $portfolio_filtering ) ) : ?>
					
						<?php $wp_list_categories = wp_list_categories( array( 'title_li' => '', 'show_option_none' => '', 'taxonomy' => 'portfolio-category', 'walker' => new Walker_Portfolio_Category(), 'orderby' => 'name', 'style' => 'none', 'echo' => 0 ) ); ?>
						
						<?php if ( ! empty( $wp_list_categories ) ) : ?>
						
							<nav id="filters" class="clearfix option-set">
								<?php $sep = '<span class="sep"></span>'; ?>
								<?php $wp_list_categories = str_replace( '<br />', $sep, $wp_list_categories ); ?>
								<a href="#" data-filter="*" class="selected"><?php _e( 'All', 'mega' ) ?></a>
								<?php echo $sep; ?>
												
								<?php
								if ( $sep != '' ) {
									$wp_list_categories = strrev( $wp_list_categories );
									$sep = strrev( $sep );
									$wp_list_categories = explode( $sep, $wp_list_categories, 2 );
									$wp_list_categories = implode( '', $wp_list_categories );
									$wp_list_categories = strrev( $wp_list_categories );
								}
								?>
												
								<?php echo $wp_list_categories; ?>
							</nav>
						
						<?php endif; // End if ( ! empty( $wp_list_categories ) ) ?>
						
					<?php endif; // End if ( ! empty( $portfolio_filtering ) ) ?>
					
					<div id="portfolio-fixed-width" class="<?php echo $portfolio_columns_class; ?> <?php echo $portfolio_title_position_class; ?> clearfix">	
						<?php $wp_query = new WP_Query(); ?>
						<?php $wp_query->query('post_type=portfolio&posts_per_page='.$portfolios_per_page.'&post_status=publish'.'&paged='.$paged); ?>
							
						<?php if ( $wp_query->have_posts() ) : ?>

							<?php if ( ! empty( $portfolio_title_position ) ) { ?>
								<?php /* Start the Loop */ ?>
								<?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>

									<?php get_template_part( 'content-portfolio-title-visible' ); ?>

								<?php endwhile; ?>
									
								<?php //wp_reset_query(); ?>
							<?php } else { ?>
							
								<?php /* Start the Loop */ ?>
								<?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>

									<?php get_template_part( 'content-portfolio' ); ?>

								<?php endwhile; ?>
								
							<?php } ?>
							
						<?php else : ?>
									
							<div class="entry-content clearfix">
								<p class="no-found"><?php _e( 'No portfolios found, please add some portfolios.', 'mega' ); ?></p>
							</div><!-- .entry-content -->

						<?php endif; ?>
					</div><!-- #portfolio -->	
					
					<?php $portfolio_pagination = ot_get_option( 'portfolio_pagination' ); ?>
					<?php if ( ! empty( $portfolio_pagination ) ) { ?>
						<?php mega_pagination_content_nav( 'nav-pagination' ); ?>
					<?php } ?>
					
					<?php wp_reset_query(); ?>
					
				</div><!-- #block-portfolio-fixed-width -->
			
			</div><!-- #content -->
		</div><!-- #primary -->
		
<?php get_footer(); ?>