Created
February 22, 2016 17:40
-
-
Save wpbean/ed98c9724c6fbda0ad34 to your computer and use it in GitHub Desktop.
WPB Filterable Portfolio quickview Image only
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $post; | |
$id = $post->ID; | |
$external_url_btn_text = wpb_fp_get_option( 'wpb_fp_view_portfolio_btn_text_', 'wpb_fp_advanced', 'View Portfolio' ); | |
$view_portfolio_btn_target = wpb_fp_get_option( 'wpb_fp_view_portfolio_btn_target', 'wpb_fp_advanced', 'new' ); | |
$btn_target = ''; | |
if( $view_portfolio_btn_target && $view_portfolio_btn_target == 'new' ){ | |
$btn_target = 'target="_blank"'; | |
} | |
$quickview_content_type = get_post_meta( $id, 'wpb_fp_quickview_content_type', true ); | |
$video_iframe = get_post_meta( $id, 'wpb_fp_quickview_video_iframe', true ); | |
$feature_image = apply_filters( 'wpb_fp_quickview_feature_image', get_the_post_thumbnail( $id, 'full' ), $id ); | |
if( $quickview_content_type && $quickview_content_type == 'video'){ | |
$quickview_content = $video_iframe; | |
}else{ | |
$quickview_content = $feature_image; | |
} | |
?> | |
<div class="wpb_fp_row"> | |
<div class="wpb_fp_quick_view_img"> | |
<?php echo $quickview_content; ?> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment