<!-- Portfolio Title -->
<?php
    $titleLink = $this->getLink($post, 'title');
    $postMetaData = get_post_meta( $post->ID, 'otw_pm_meta_data', true );
?>
	<?php if( !empty( $titleLink ) ){?>
		<?php if( isset( $this->listOptions['title_link'] ) && in_array( $this->listOptions['title_link'], array( 'lightbox' ) ) ){ $sliderImgLink = true;?>
		
			<?php switch( $postMetaData['media_type'] ){
				
				case 'youtube':
				case 'vimeo':
				case 'soundcloud':?>
						<a href="javascript:;" class="otw_portfolio_manager-fancybox-movie" rel="<?php echo esc_attr( $titleLink ) ?>" ><?php echo esc_html( $post->post_title );?></a>
					<?php break;
				default:?>
						<a href="<?php echo esc_attr( $titleLink );?>" class="otw_portfolio_manager-fancybox-img otw-slider-image"><?php echo esc_html( $post->post_title );?></a>
					<?php break;
			}?>
		<?php }elseif( isset( $this->listOptions['title_link'] ) && in_array( $this->listOptions['title_link'], array( 'single' ) ) ){?>
			<a href="<?php echo esc_attr( $titleLink );?>"><?php echo esc_html( $post->post_title );?></a>
		<?php }else{?>
			<?php echo $post->post_title;?>
		<?php }?>
	<?php }else{?>
		<?php echo $post->post_title;?></a>
	<?php }?>