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(); ?> -->