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/content-portfolio.php
<?php
/**
 * The default template for displaying summary for portfolio
 *
 * @package WordPress
 * @subpackage Skylab
 * @since Skylab 1.0
 */
?>
	
	<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
		<div class="content-wrapper">
	
			<?php if ( has_post_thumbnail() ) : ?>
				<div class="post-thumbnail clearfix">
				
				<?php $portfolio_custom_url = get_post_meta( get_the_ID(), 'mega_portfolio_custom_url', true ); ?>
				<?php $portfolio_highlight_color = get_post_meta( get_the_ID(), 'portfolio_highlight_color', true ); ?>
				<?php $rgb = hex2rgb( $portfolio_highlight_color ); ?>
				<?php $opacity = .95; ?>
				<?php $rgba = "rgba(" . $rgb[0] . ", " . $rgb[1] . ", " . $rgb[2] . ", " . $opacity . ")"; ?>
				
				<?php $portfolio_title_position = ot_get_option( 'portfolio_title_position' ); ?>
				
				<a href="<?php if ( ! empty( $portfolio_custom_url ) ) echo $portfolio_custom_url; else the_permalink(); ?>" rel="bookmark">
						
						<?php the_post_thumbnail( 'full' ); ?>
				
						<div class="portfolio-view-wrapper">
							<div class="portfolio-view" style="background-color: <?php echo $portfolio_highlight_color; ?>; background-color: <?php echo $rgba; ?>">
								<div class="portfolio-view-content">
									<header class="entry-header">
										<h1><?php the_title(); ?></h1>
									</header><!-- .entry-header -->
									
									<?php $portfolio_meta = ot_get_option( 'portfolio_meta' ); ?>
									<?php if ( $portfolio_meta == 'categories' ) { ?>
										<?php echo custom_taxonomies_terms_links(); ?>
									<?php } else if ( $portfolio_meta == 'excerpt' ) { ?>
										<div class="entry-excerpt"><?php the_excerpt(); ?></div>
									<?php } else { ?>
										<div class="entry-excerpt"><?php the_excerpt(); ?></div>
										<?php echo custom_taxonomies_terms_links(); ?>
									<?php } ?>
								</div>
							</div>
						</div>
					</a>
				</div>
			<?php endif; // End if ( has_post_thumbnail() ) ?>

		</div><!-- .content-wrapper -->
	</article><!-- #post-<?php the_ID(); ?> -->