File "portfolio-image.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/themes/kapee/template-parts/single-portfolio/portfolio-image.php
File size: 766 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Template part for displaying single portfolio image/gallery
*
* @author PressLayouts
* @package kapee/template-parts/single-portfolio
* @since 1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
$html ='';
?>
<div class="<?php echo esc_attr( implode( ' ', array_map( 'sanitize_html_class', $wrapper_classes ) ) ); ?>">
<?php
if( ! empty ( $attachment_ids ) && $is_gallery_style){
foreach ( $attachment_ids as $attachment_id ) {
$html .= kapee_get_gallery_image_html( $attachment_id, $thumbnail_size, $gallery_style );
}
}elseif( has_post_thumbnail() ){
$html = kapee_get_image_html( $post_thumbnail_id, $thumbnail_size );
}
echo apply_filters( 'kapee_single_portfolio_image_html', $html );
?>
</div>