$limit_content_width = ' limit-width';
            $page_custom_width = isset($metabox_data['_uncode_specific_layout_width_custom'][0]) ? unserialize($metabox_data['_uncode_specific_layout_width_custom'][0]) : '';
            if (is_array($page_custom_width) && !empty($page_custom_width)) {
                $page_custom_width = ' style="max-width: ' . implode("", $page_custom_width) . ';"';
            }
        }
    }
}
$media = get_post_meta($post->ID, '_uncode_featured_media', 1);
$media_display = get_post_meta($post->ID, '_uncode_featured_media_display', 1);
$featured_image = get_post_thumbnail_id($post->ID);
/** Collect header data **/
if (isset($metabox_data['_uncode_header_type'][0]) && $metabox_data['_uncode_header_type'][0] !== '') {
    $page_header_type = $metabox_data['_uncode_header_type'][0];
    if ($page_header_type !== 'none') {
        $meta_data = uncode_get_specific_header_data($metabox_data, $post_type, $featured_image);
        $metabox_data = $meta_data['meta'];
        $show_title = $meta_data['show_title'];
    }
} else {
    $page_header_type = ot_get_option('_uncode_' . $post_type . '_header');
    if ($page_header_type !== '' && $page_header_type !== 'none') {
        $metabox_data['_uncode_header_type'] = array($page_header_type);
        $meta_data = uncode_get_general_header_data($metabox_data, $post_type, $featured_image);
        $metabox_data = $meta_data['meta'];
        $show_title = $meta_data['show_title'];
    }
}
/** Get layout info **/
if (isset($metabox_data['_uncode_portfolio_active'][0]) && $metabox_data['_uncode_portfolio_active'][0] !== '') {
    /** Page specific info **/
            $page_custom_width = isset($metabox_data['_uncode_specific_layout_width_custom'][0]) ? unserialize($metabox_data['_uncode_specific_layout_width_custom'][0]) : '';
            if (is_array($page_custom_width) && !empty($page_custom_width)) {
                if ($page_custom_width[1] === 'px') {
                    $page_custom_width[0] = 12 * round($page_custom_width[0] / 12);
                }
                $page_custom_width = ' style="max-width: ' . implode("", $page_custom_width) . '; margin: auto;"';
            }
        }
    }
}
$media = get_post_thumbnail_id($post->ID);
/** Collect header data **/
if (isset($metabox_data['_uncode_header_type'][0]) && $metabox_data['_uncode_header_type'][0] !== '') {
    $page_header_type = $metabox_data['_uncode_header_type'][0];
    if ($page_header_type !== 'none') {
        $meta_data = uncode_get_specific_header_data($metabox_data, $post_type, $media);
        $metabox_data = $meta_data['meta'];
        $show_title = $meta_data['show_title'];
    }
} else {
    $page_header_type = ot_get_option('_uncode_' . $post_type . '_header');
    if ($page_header_type !== '' && $page_header_type !== 'none') {
        $metabox_data['_uncode_header_type'] = array($page_header_type);
        $meta_data = uncode_get_general_header_data($metabox_data, $post_type, $media);
        $metabox_data = $meta_data['meta'];
        $show_title = $meta_data['show_title'];
    }
}
/** Get breadcrumb info **/
$generic_breadcrumb = ot_get_option('_uncode_' . $post_type . '_breadcrumb');
$page_breadcrumb = isset($metabox_data['_uncode_specific_breadcrumb'][0]) ? $metabox_data['_uncode_specific_breadcrumb'][0] : '';