}
    if ($lbox_deep !== '') {
        $lightbox_classes['data-deep'] = $media;
    }
    if ($lbox_no_tmb !== '') {
        $lightbox_classes['data-notmb'] = true;
    }
    if ($lbox_no_arrows !== '') {
        $lightbox_classes['data-noarr'] = true;
    }
    if (count($lightbox_classes) === 0) {
        $lightbox_classes['data-active'] = true;
    }
}
if ($advanced === 'yes') {
    $layout = uncode_flatArray(vc_sorted_list_parse_value($media_items));
    if ($media_lightbox !== 'yes') {
        $lightbox_classes = array();
        if (!isset($media_link['url']) || $media_link['url'] === '') {
            $block_data['link_class'] = 'inactive-link';
            $block_data['link'] = '#';
        } else {
            if ($media_link !== '') {
                $block_data['link']['url'] = $a_href;
                $block_data['link']['target'] = $a_target;
            }
        }
    }
    if (isset($layout['media'][0]) && $layout['media'][0] === 'poster') {
        $block_data['poster'] = true;
    }
         $typeLayout = $post_blocks;
         break;
     case 'page':
         $typeLayout = $page_blocks;
         break;
     case 'portfolio':
         $typeLayout = $portfolio_blocks;
         break;
     case 'product':
         $typeLayout = $product_blocks;
         $block_data['product'] = true;
         $block_classes[] = 'tmb-woocommerce';
         break;
 }
 if (isset($item_prop['single_layout'])) {
     $typeLayout = uncode_flatArray(vc_sorted_list_parse_value($item_prop['single_layout']));
 }
 $single_text = isset($item_prop['single_text']) ? $item_prop['single_text'] : $general_text;
 if ($index_type !== 'carousel') {
     $single_width = isset($item_prop['single_width']) ? $item_prop['single_width'] : $general_width;
     $block_classes[] = 'tmb-iso-w' . $single_width;
 } else {
     $single_width = 12 / $carousel_lg;
 }
 $single_height = isset($item_prop['single_height']) ? $item_prop['single_height'] : $general_height;
 $block_classes[] = 'tmb-iso-h' . $single_height;
 $images_size = isset($item_prop['images_size']) ? $item_prop['images_size'] : $general_images_size;
 $single_back_color = isset($item_prop['single_back_color']) ? $item_prop['single_back_color'] : $general_back_color;
 //$single_no_background = (isset($item_prop['single_no_background'])) ? $item_prop['single_no_background'] : $general_no_background;
 $single_shape = isset($item_prop['single_shape']) ? $item_prop['single_shape'] : $general_shape;
 if ($single_shape !== '') {