show_title ? 'has-title' : 'no-title'; $item_class[] = $settings->description ? 'has-description' : 'no-description'; $item_class[] = 'state-closed'; $item_class[] = 'vamtam-project'; $item_class[] = $settings->hover_animation; $item_class[] = 'cbp-item'; $featured = vamtam_sanitize_bool( vamtam_post_meta( get_the_id(), 'featured-project', true ) ); $starting_width = 100 / $settings->columns; if ( $featured ) { $starting_width *= 2; } $gallery = $href = ''; extract( vamtam_get_portfolio_options() ); $video_url = ( $type === 'video' && ! empty( $href ) ) ? $href : ''; $single_url = $type === 'link' ? get_post_meta( get_the_ID(), 'vamtam-portfolio-format-link', true ) : get_permalink(); $suffix = ( 'mosaic' === $settings->layout ) ? 'normal' : 'loop'; if ( $featured ) { $suffix .= '-featured'; } $cbp_singlepage = ''; if ( 'ajax' === $settings->link_opens && 'link' !== $type ) { $cbp_singlepage = 'cbp-singlePage'; } $has_details = ( $settings->show_title || $settings->description ) && ( 'video' !== $type || empty( $video_url ) || has_post_thumbnail() ); ?>