<?php

get_header();
$cb_post_id = $post->ID;
$cb_featured_image_style_override_onoff = ot_get_option('cb_post_style_override_onoff', 'off');
$cb_featured_image_style_override_style = ot_get_option('cb_post_style_override', 'standard');
$cb_post_format = get_post_format();
$cb_video_post_select = get_post_meta($cb_post_id, 'cb_video_post_select', true);
$cb_audio_post_select = get_post_meta($cb_post_id, 'cb_audio_post_style', true);
$cb_featured_image_style = get_post_meta($cb_post_id, 'cb_featured_image_style', true);
$cb_featured_image_style_override_post_onoff = get_post_meta($cb_post_id, 'cb_featured_image_style_override', true);
$cb_sidebar_position = cb_get_sidebar_setting();
$cb_featured_image_style_cache = NULL;
$cb_review_checkbox = get_post_meta($cb_post_id, 'cb_review_checkbox', true);
if ($cb_featured_image_style_override_onoff == 'on' && $cb_featured_image_style_override_post_onoff != 'on') {
    $cb_featured_image_style = $cb_featured_image_style_override_style;
}
if ($cb_featured_image_style == NULL) {
    $cb_featured_image_style = 'standard';
}
if ($cb_featured_image_style == 'standard-uncrop') {
    $cb_featured_image_style = 'standard';
}
if ($cb_post_format == 'video' || $cb_post_format == 'audio') {
    $cb_featured_image_style_cache = $cb_featured_image_style;
    $cb_featured_image_style = $cb_post_format;
}
if ($cb_post_format == 'gallery') {
    $cb_gallery_post_images = get_post_meta($cb_post_id, 'cb_gallery_post_images', true);
    if ($cb_gallery_post_images != NULL) {
        $cb_featured_image_style = $cb_post_format;
 function cb_get_singular_fs($cb_post_id)
 {
     $cb_sb = cb_get_sidebar_setting();
     $cb_fs = get_post_meta($cb_post_id, '_cb_embed_fs', true);
     $cb_out = get_post_meta($cb_post_id, '_cb_embed_out', true);
     $cb_output = NULL;
     if ($cb_sb == 'nosidebar-fw' || $cb_sb == 'nosidebar') {
         if ($cb_fs == 'on') {
             $cb_output = ' cb-embed-fs';
         }
         if ($cb_out == 'on') {
             $cb_output .= ' cb-embed-out';
         }
     }
     return $cb_output;
 }