<?php

$interiart_porfolio_position_meta_key_class = null;
$interiart_single_portfolio_style = ot_get_option('interiart_TzSinglePortfolio_style', 'popup');
$interiart_item_type = get_post_meta(get_the_ID(), 'interiart_portfolio_type', TRUE);


if ($interiart_single_portfolio_style == 'page') {
    get_header();
    get_template_part('template_inc/inc', 'header');
    if ($interiart_item_type == 'slideshows' || $interiart_item_type == 'none' || $interiart_item_type == 'audio' || $interiart_item_type == 'image') :
        get_template_part('template_inc/inc', 'breadcrumb');
    endif;
}

$interiart_media = ot_get_option('interiart_TzSinglePortfolio_Media', 'show');
$interiart_title_image = ot_get_option('interiart_TzSinglePortfolio_Media_Slide_Title', 'show');
$interiart_title = ot_get_option('interiart_TzSinglePortfolio_Title', 'show');
$interiart_content = ot_get_option('interiart_TzSinglePortfolio_content', 'show');
$interiart_author = ot_get_option('interiart_TzSinglePortfolio_author', 'show');
$interiart_date = ot_get_option('interiart_TzSinglePortfolio_date', 'show');
$interiart_category = ot_get_option('interiart_TzSinglePortfolio_category', 'show');
$interiart_tag = ot_get_option('interiart_TzSinglePortfolio_tag', 'show');
$interiart_share = ot_get_option('interiart_TzSinglePortfolio_share', 'show');


$interiart_class = 'tzPortfolio_Single';
if ($interiart_single_portfolio_style == 'page') {
    $interiart_class .= ' tzPortfolio_Single_page';
} else {
    $interiart_class .= ' tzPortfolio_Single_popup';
}

?>
<?php if ($interiart_single_portfolio_style == 'popup') : ?>
    <div class="<?php echo esc_attr__($interiart_class) ?>">
        <div class="container">
            <div class="row">
                <?php
                if (have_posts()) : while (have_posts()) : the_post();
                    interiart_setPostViews(get_the_ID());
                    $interiart_comment_count = wp_count_comments($post->ID);

                    $interiart_imagefull = get_post_meta(get_the_ID(), 'interiart_portfolio_image', true);
                    $interiart_slideshows = get_post_meta(get_the_ID(), 'interiart_portfolio_slideshows', true);
                    $interiart_bgvideo_image = get_post_meta(get_the_ID(), 'interiart_portfolio_bgvideo_image', true);
                    $interiart_video_webm = get_post_meta(get_the_ID(), 'interiart_portfolio_video_webm', true);
                    $interiart_video_mp4 = get_post_meta(get_the_ID(), 'interiart_portfolio_video_mp4', true);
                    $interiart_video_ogv = get_post_meta(get_the_ID(), 'interiart_portfolio_video_ogv', true);
                    $interiart_video_type = get_post_meta(get_the_ID(), 'interiart_portfolio_video_type', true);
                    $interiart_video_id = get_post_meta(get_the_ID(), 'interiart_portfolio_video', true);
                    $interiart_soundcloud_id = get_post_meta(get_the_ID(), 'interiart_portfolio_soundCloud_id', true);

                    $interiart_meta_key_1 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_1', true);
                    $interiart_meta_value_1 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_1', true);
                    $interiart_meta_key_2 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_2', true);
                    $interiart_meta_value_2 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_2', true);
                    $interiart_meta_key_3 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_3', true);
                    $interiart_meta_value_3 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_3', true);


                    ?>
                    <?php if ($interiart_single_portfolio_style == 'popup') { ?>
                        <span class="tzPortfolio_Single_Close"><i class="fa fa-times mfp-close"></i></span>
                    <?php } ?>
                    <?php
                    if ($interiart_single_portfolio_style == 'popup') {
                        ?>
                        <?php var_dump(the_title()); ?>
                        <h3 class="tzPortfolio_Single_title"><?php the_title(); ?></h3>
                        <?php
                    }
                    ?>

                    <div class="row">
                        <div class="col-md-9 tzPortfolio_Single_Content">
                            <?php
                            if ($interiart_content == 'show') {
                                the_content();
                                wp_link_pages();
                            }
                            ?>
                        </div>
                        <div class="col-md-3 tzPortfolio_Single_Info">
                            <ul>
                                <?php
                                if ($interiart_author == 'show') {
                                    ?>
                                    <li>
                                        <label><?php esc_html_e('Author ', 'interiart'); ?>:</label>
                                        <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a>
                                    </li>
                                    <?php
                                }
                                ?>

                                <?php
                                if ($interiart_date == 'show') {
                                    ?>
                                    <li>
                                        <label><?php esc_html_e('Date Post ', 'interiart'); ?>:</label>
                                        <?php echo get_the_date(); ?>
                                    </li>
                                    <?php
                                }
                                ?>

                                <?php
                                if (get_the_terms($post->ID, 'portfolio-category') != false && $interiart_category == 'show') {
                                    ?>
                                    <li>
                                        <label><?php esc_html_e('Category ', 'interiart') ?>:</label>
                                        <?php the_terms($post->ID, 'portfolio-category', '', ', '); ?>
                                    </li>
                                    <?php
                                }
                                ?>

                                <?php
                                if (get_the_terms($post->ID, 'portfolio-tags') != false && $interiart_tag == 'show') {
                                    ?>
                                    <li>
                                        <label><?php esc_html_e('Tags ', 'interiart') ?>:</label>
                                        <?php the_terms($post->ID, 'portfolio-tags', '', ', '); ?>
                                    </li>
                                    <?php
                                }
                                ?>

                                <?php
                                if ($interiart_meta_key_1 != '' || $interiart_meta_value_1 != '') {
                                    ?>
                                    <li>
                                        <label><?php echo esc_html($interiart_meta_key_1); ?>:</label>
                                        <?php echo esc_html($interiart_meta_value_1); ?>
                                    </li>
                                    <?php
                                }
                                ?>

                                <?php
                                if ($interiart_meta_key_2 != '' || $interiart_meta_value_2 != '') {
                                    ?>
                                    <li>
                                        <label><?php echo esc_html($interiart_meta_key_2); ?>:</label>
                                        <?php echo esc_html($interiart_meta_value_2); ?>
                                    </li>
                                    <?php
                                }
                                ?>

                                <?php
                                if ($interiart_meta_key_3 != '' || $interiart_meta_value_3 != '') {
                                    ?>
                                    <li>
                                        <label><?php echo esc_html($interiart_meta_key_3); ?>:</label>
                                        <?php echo esc_html($interiart_meta_value_3); ?>
                                    </li>
                                    <?php
                                }
                                ?>
                            </ul>
                        </div>
                    </div>

                    <?php
                    if ($interiart_media == 'show') {
                        ?>
                        <div class="tzPortfolio_Single_Media">
                            <?php
                            if ($interiart_item_type == 'slideshows' && $interiart_slideshows != '') {
                                ?>
                                <div class="tzPortfolio_Single_Slider">
                                    <ul class="slides">
                                        <?php
                                        foreach ($interiart_slideshows as $slide):
                                            ?>
                                            <li>
                                                <?php if ($interiart_title_image == 'show'): ?>
                                                    <h3><?php echo esc_html($slide['title']) ?></h3>
                                                <?php endif; ?>
                                                <img src="<?php echo esc_url($slide['interiart_portfolio_slideshow_item']); ?>"
                                                     alt="<?php the_title(); ?>">
                                            </li>
                                        <?php
                                        endforeach;
                                        ?>
                                    </ul>

                                </div>
                                <?php
                            } elseif ($interiart_item_type == 'videohtml5') {
                                ?>
                                <div class="tzPortfolio_Single_videoHtml5">
                                    <div class="tzPortfolio_autoplay"><i class="fa fa-play"></i></div>
                                    <div class="tzPortfolio_pauses"><i class="fa fa-pause"></i></div>
                                    <div class="bg-video"
                                         style="background-image: url(<?php echo esc_url($interiart_bgvideo_image); ?>);background-repeat: no-repeat; background-position: center center; background-size: cover;"></div>
                                    <video class="videoID">
                                        <source type="video/mp4"
                                                src="<?php echo esc_url($interiart_video_mp4); ?>"/>
                                        <source type="video/ogv"
                                                src="<?php echo esc_url($interiart_video_ogv); ?>"/>
                                        <source type="video/webm"
                                                src="<?php echo esc_url($interiart_video_webm); ?>"/>
                                    </video>
                                </div>
                            <?php } elseif ($interiart_item_type == 'video') {
                                ?>
                                <div class="tzPortfolio_Single_video">
                                    <?php
                                    if ($interiart_video_type == 'youtube') {
                                        ?>
                                        <iframe class="iframe-full"
                                                src="http://www.youtube.com/embed/<?php echo esc_attr($interiart_video_id); ?>?hd=1&amp;wmode=opaque">
                                        </iframe>
                                        <?php
                                    } else {
                                        ?>
                                        <iframe src="https://player.vimeo.com/video/<?php echo esc_attr($interiart_video_id); ?>?title=0&byline=0&portrait=0"
                                                webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
                                        <?php
                                    }
                                    ?>
                                </div>
                                <?php
                            } elseif ($interiart_item_type == 'audio') {
                                ?>
                                <div class="tzPortfolio_SingleAudio">
                                    <iframe class="iframe-full-audio" allowfullscreen=""
                                            src="http://w.soundcloud.com/player/?url=http://api.soundcloud.com/tracks/<?php echo esc_attr($interiart_soundcloud_id); ?>&amp;show_artwork=true&amp;auto_play=false&amp;sharing=true&amp;buying=true&amp;download=true&amp;show_user=true&amp;show_playcount=true&amp;show_comments=true">
                                    </iframe>
                                </div>
                                <?php
                            } elseif ($interiart_item_type == 'image') {
                                ?>
                                <div class="tzPortfolio_SingleImage">
                                    <img src="<?php echo esc_url($interiart_imagefull); ?>"
                                         alt="<?php the_title(); ?>">
                                </div>
                                <?php
                            } else {
                                ?>
                                <div class="tzPortfolio_SingleImage">
                                    <?php the_post_thumbnail(); ?>
                                </div>
                                <?php
                            }
                            ?>
                        </div>
                        <?php
                    }
                    ?>
                    <?php if ($interiart_single_portfolio_style == 'popup') { ?>
                        <span class="tzPortfolio_Single_Close"><i class="fa fa-times mfp-close"></i></span>
                        <span class="tzPortfolio_Single_tks"><?php esc_html_e('Thanks for watching!', 'interiart'); ?></span>
                    <?php } ?>
                <?php
                endwhile;
                endif;
                ?>

            </div>
        </div>
    </div>
<?php endif; ?>
<?php if ($interiart_single_portfolio_style == 'page') : ?>
<?php if ($interiart_item_type == 'none' || $interiart_item_type == 'audio' || $interiart_item_type == 'image') : ?>
<div class="<?php echo esc_attr__($interiart_class); ?> tz_Portfolio_Single_type">

    <div class="container">
        <div class="row">
            <!--                    --><?php //get_template_part('template_inc/inc', 'breadcrumb'); ?>

            <?php

            if (have_posts()) : while (have_posts()) : the_post();
                interiart_setPostViews(get_the_ID());
                $interiart_comment_count = wp_count_comments($post->ID);

                $interiart_imagefull = get_post_meta(get_the_ID(), 'interiart_portfolio_image', true);
                $interiart_slideshows = get_post_meta(get_the_ID(), 'interiart_portfolio_slideshows', true);
                $interiart_bgvideo_image = get_post_meta(get_the_ID(), 'interiart_portfolio_bgvideo_image', true);
                $interiart_video_webm = get_post_meta(get_the_ID(), 'interiart_portfolio_video_webm', true);
                $interiart_video_mp4 = get_post_meta(get_the_ID(), 'interiart_portfolio_video_mp4', true);
                $interiart_video_ogv = get_post_meta(get_the_ID(), 'interiart_portfolio_video_ogv', true);
                $interiart_video_type = get_post_meta(get_the_ID(), 'interiart_portfolio_video_type', true);
                $interiart_video_id = get_post_meta(get_the_ID(), 'interiart_portfolio_video', true);
                $interiart_soundcloud_id = get_post_meta(get_the_ID(), 'interiart_portfolio_soundCloud_id', true);

                $interiart_meta_key_1 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_1', true);
                $interiart_meta_value_1 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_1', true);
                $interiart_meta_key_2 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_2', true);
                $interiart_meta_value_2 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_2', true);
                $interiart_meta_key_3 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_3', true);
                $interiart_meta_value_3 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_3', true);

                $interiart_porfolio_position_meta_key = get_post_meta(get_the_ID(), 'interiart_porfolio_position_meta_key', true);

                if ($interiart_porfolio_position_meta_key == 'next') :
                    $interiart_porfolio_position_meta_key_class = 'col-md-6';
                elseif ($interiart_porfolio_position_meta_key == 'under'):
                    $interiart_porfolio_position_meta_key_class = '';
                endif;


                ?>
                <?php if ($interiart_single_portfolio_style == 'popup') { ?>
                    <span class="tzPortfolio_Single_Close"><i class="fa fa-times mfp-close"></i></span>
                <?php } ?>
                <?php
                if ($interiart_single_portfolio_style == 'popup' && $interiart_title == 'show') {
                    ?>

                    <h3 class="tzPortfolio_Single_title"><?php the_title(); ?></h3>
                    <?php
                }
                ?>

                <div class="row">
                    <div class="<?php echo $interiart_porfolio_position_meta_key_class; ?> tzPortfolio_Single_Content">
                        <h3 class="tz_title_des"><?php echo esc_html('Project Description:'); ?></h3>
                        <?php
                        if ($interiart_content == 'show') {
                            the_content();
                            wp_link_pages();
                        }
                        ?>
                    </div>
                    <div class="<?php echo $interiart_porfolio_position_meta_key_class; ?> tzPortfolio_Single_Info" <?php if ($interiart_porfolio_position_meta_key_class == ''): ?> style="padding: 0;" <?php endif; ?> >
                        <h3 class="tz_title_des"><?php echo esc_html('About Project:'); ?></h3>
                        <ul>
                            <?php
                            if ($interiart_author == 'show') {
                                ?>
                                <li>
                                    <label><?php esc_html_e('Author ', 'interiart'); ?>:</label>
                                    <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a>
                                </li>
                                <?php
                            }
                            ?>

                            <?php
                            if ($interiart_date == 'show') {
                                ?>
                                <li>
                                    <label><?php esc_html_e('Date Post ', 'interiart'); ?>:</label>
                                    <?php echo get_the_date(); ?>
                                </li>
                                <?php
                            }
                            ?>

                            <?php
                            if (get_the_terms($post->ID, 'portfolio-category') != false && $interiart_category == 'show') {
                                ?>
                                <li>
                                    <label><?php esc_html_e('Category ', 'interiart') ?>:</label>
                                    <?php the_terms($post->ID, 'portfolio-category', '', ', '); ?>
                                </li>
                                <?php
                            }
                            ?>

                            <?php
                            if (get_the_terms($post->ID, 'portfolio-tags') != false && $interiart_tag == 'show') {
                                ?>
                                <li>
                                    <label><?php esc_html_e('Tags ', 'interiart') ?>:</label>
                                    <?php the_terms($post->ID, 'portfolio-tags', '', ', '); ?>
                                </li>
                                <?php
                            }
                            ?>

                            <?php
                            if ($interiart_meta_key_1 != '' || $interiart_meta_value_1 != '') {
                                ?>
                                <li>
                                    <label><?php echo esc_html($interiart_meta_key_1); ?>:</label>
                                    <?php echo esc_html($interiart_meta_value_1); ?>
                                </li>
                                <?php
                            }
                            ?>

                            <?php
                            if ($interiart_meta_key_2 != '' || $interiart_meta_value_2 != '') {
                                ?>
                                <li>
                                    <label><?php echo esc_html($interiart_meta_key_2); ?>:</label>
                                    <?php echo esc_html($interiart_meta_value_2); ?>
                                </li>
                                <?php
                            }
                            ?>

                            <?php
                            if ($interiart_meta_key_3 != '' || $interiart_meta_value_3 != '') {
                                ?>
                                <li>
                                    <label><?php echo esc_html($interiart_meta_key_3); ?>:</label>
                                    <?php echo esc_html($interiart_meta_value_3); ?>
                                </li>
                                <?php
                            }
                            ?>
                        </ul>
                    </div>
                </div>
                <?php if ($interiart_share == 'show') : ?>
                    <div class="tzshare">
                        <div class="TzLikeButtonInner">
                            <span><?php esc_html_e('Share:', 'interiart'); ?></span>
                            <!-- Facebook Button -->
                            <a target="_blank"
                               href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>"><i
                                        class="fa fa-facebook"></i></a>
                            <a target="_blank"
                               href="https://twitter.com/home?status=Check%20out%20this%20article:%20<?php print interiart_social_title(get_the_title()); ?>%20-%20<?php echo urlencode(the_permalink()); ?>"><i
                                        class="fa fa-twitter"></i></a>
                            <?php $interiart_pin_image = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?>
                            <a data-pin-do="skipLink" target="_blank"
                               href="https://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php echo esc_attr($interiart_pin_image); ?>&description=<?php the_title(); ?>"><i
                                        class="fa fa-pinterest"></i></a>
                            <a target="_blank"
                               href="https://plus.google.com/share?url=<?php the_permalink(); ?>"><i
                                        class="fa fa-google-plus"></i></a>
                        </div><!--end class TzLikeButtonInner-->
                    </div>
                <?php endif; ?>
                <?php
                if ($interiart_media == 'show') {
                    ?>
                    <div class="tzPortfolio_Single_Media">
                        <?php
                        if ($interiart_item_type == 'slideshows' && $interiart_slideshows != '') {
                            ?>
                            <div class="tzPortfolio_Single_Slider">
                                <ul class="slides">
                                    <?php
                                    foreach ($interiart_slideshows as $slide):
                                        ?>
                                        <li>
                                            <?php if ($interiart_title_image == 'show'): ?>
                                                <h3><?php echo esc_html($slide['title']) ?></h3>
                                            <?php endif; ?>
                                            <img src="<?php echo esc_url($slide['interiart_portfolio_slideshow_item']); ?>"
                                                 alt="<?php the_title(); ?>">
                                        </li>
                                    <?php
                                    endforeach;
                                    ?>
                                </ul>

                            </div>
                            <?php
                        } elseif ($interiart_item_type == 'videohtml5') {
                            ?>
                            <div class="tzPortfolio_Single_videoHtml5">
                                <div class="tzPortfolio_autoplay"><i class="fa fa-play"></i></div>
                                <div class="tzPortfolio_pauses"><i class="fa fa-pause"></i></div>
                                <div class="bg-video"
                                     style="background-image: url(<?php echo esc_url($interiart_bgvideo_image); ?>);background-repeat: no-repeat; background-position: center center; background-size: cover;"></div>
                                <video class="videoID">
                                    <source type="video/mp4"
                                            src="<?php echo esc_url($interiart_video_mp4); ?>"/>
                                    <source type="video/ogv"
                                            src="<?php echo esc_url($interiart_video_ogv); ?>"/>
                                    <source type="video/webm"
                                            src="<?php echo esc_url($interiart_video_webm); ?>"/>
                                </video>
                            </div>
                        <?php } elseif ($interiart_item_type == 'video') {
                            ?>
                            <div class="tzPortfolio_Single_video">
                                <?php
                                if ($interiart_video_type == 'youtube') {
                                    ?>
                                    <iframe class="iframe-full"
                                            src="http://www.youtube.com/embed/<?php echo esc_attr($interiart_video_id); ?>?hd=1&amp;wmode=opaque">
                                    </iframe>
                                    <?php
                                } else {
                                    ?>
                                    <iframe src="https://player.vimeo.com/video/<?php echo esc_attr($interiart_video_id); ?>?title=0&byline=0&portrait=0"
                                            webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
                                    <?php
                                }
                                ?>
                            </div>
                            <?php
                        } elseif ($interiart_item_type == 'audio') {
                            ?>
                            <div class="tzPortfolio_SingleAudio">
                                <iframe class="iframe-full-audio" allowfullscreen=""
                                        src="http://w.soundcloud.com/player/?url=http://api.soundcloud.com/tracks/<?php echo esc_attr($interiart_soundcloud_id); ?>&amp;show_artwork=true&amp;auto_play=false&amp;sharing=true&amp;buying=true&amp;download=true&amp;show_user=true&amp;show_playcount=true&amp;show_comments=true">
                                </iframe>
                            </div>
                            <?php
                        } elseif ($interiart_item_type == 'image') {
                            ?>
                            <div class="tzPortfolio_SingleImage">
                                <img src="<?php echo esc_url($interiart_imagefull); ?>"
                                     alt="<?php the_title(); ?>">
                            </div>
                            <?php
                        } else {
                            ?>
                            <div class="tzPortfolio_SingleImage">
                                <?php the_post_thumbnail(); ?>
                            </div>
                            <?php
                        }
                        ?>
                    </div>
                    <?php
                }
                ?>
                <?php if ($interiart_single_portfolio_style == 'popup') { ?>
                    <span class="tzPortfolio_Single_Close"><i class="fa fa-times mfp-close"></i></span>
                    <span class="tzPortfolio_Single_tks"><?php esc_html_e('Thanks for watching!', 'interiart'); ?></span>
                <?php } ?>
            <?php
            endwhile;
            endif;
            ?>

            <!--                </div>-->
        </div>
    </div>
    <?php endif; ?>
    <?php if ($interiart_item_type == 'videohtml5' || $interiart_item_type == 'video') : ?>
        <div class="<?php echo esc_attr__($interiart_class); ?> tz_Portfolio_Single_video">

            <?php

            if (have_posts()) : while (have_posts()) : the_post();
                interiart_setPostViews(get_the_ID());
                $interiart_comment_count = wp_count_comments($post->ID);

                $interiart_imagefull = get_post_meta(get_the_ID(), 'interiart_portfolio_image', true);
                $interiart_slideshows = get_post_meta(get_the_ID(), 'interiart_portfolio_slideshows', true);
                $interiart_bgvideo_image = get_post_meta(get_the_ID(), 'interiart_portfolio_bgvideo_image', true);
                $interiart_video_webm = get_post_meta(get_the_ID(), 'interiart_portfolio_video_webm', true);
                $interiart_video_mp4 = get_post_meta(get_the_ID(), 'interiart_portfolio_video_mp4', true);
                $interiart_video_ogv = get_post_meta(get_the_ID(), 'interiart_portfolio_video_ogv', true);
                $interiart_video_type = get_post_meta(get_the_ID(), 'interiart_portfolio_video_type', true);
                $interiart_video_id = get_post_meta(get_the_ID(), 'interiart_portfolio_video', true);
                $interiart_soundcloud_id = get_post_meta(get_the_ID(), 'interiart_portfolio_soundCloud_id', true);

                $interiart_meta_key_1 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_1', true);
                $interiart_meta_value_1 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_1', true);
                $interiart_meta_key_2 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_2', true);
                $interiart_meta_value_2 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_2', true);
                $interiart_meta_key_3 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_3', true);
                $interiart_meta_value_3 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_3', true);


                ?>
                <?php if ($interiart_single_portfolio_style == 'popup') { ?>
                    <span class="tzPortfolio_Single_Close"><i class="fa fa-times mfp-close"></i></span>
                <?php } ?>
                <?php
                if ($interiart_single_portfolio_style == 'popup' && $interiart_title == 'show') {
                    ?>
                    <h3 class="tzPortfolio_Single_title"><?php the_title(); ?></h3>
                    <?php
                }
                ?>


                <?php
                if ($interiart_media == 'show') {
                    ?>
                    <div class="tzPortfolio_Single_Media">
                        <?php
                        if ($interiart_item_type == 'slideshows' && $interiart_slideshows != '') {
                            ?>
                            <div class="tzPortfolio_Single_Slider">
                                <ul class="slides">
                                    <?php
                                    foreach ($interiart_slideshows as $slide):
                                        ?>
                                        <li>
                                            <?php if ($interiart_title_image == 'show'): ?>
                                                <h3><?php echo esc_html($slide['title']) ?></h3>
                                            <?php endif; ?>
                                            <img src="<?php echo esc_url($slide['interiart_portfolio_slideshow_item']); ?>"
                                                 alt="<?php the_title(); ?>">
                                        </li>
                                    <?php
                                    endforeach;
                                    ?>
                                </ul>

                            </div>
                            <?php
                        } elseif ($interiart_item_type == 'videohtml5') {
                            ?>
                            <div class="tzPortfolio_Single_videoHtml5">
                                <div class="tzPortfolio_autoplay"><i class="fa fa-play"></i></div>
                                <div class="tzPortfolio_pauses"><i class="fa fa-pause"></i></div>
                                <div class="bg-video"
                                     style="background-image: url(<?php echo esc_url($interiart_bgvideo_image); ?>);background-repeat: no-repeat; background-position: center center; background-size: cover;"></div>
                                <video class="videoID">
                                    <source type="video/mp4"
                                            src="<?php echo esc_url($interiart_video_mp4); ?>"/>
                                    <source type="video/ogv"
                                            src="<?php echo esc_url($interiart_video_ogv); ?>"/>
                                    <source type="video/webm"
                                            src="<?php echo esc_url($interiart_video_webm); ?>"/>
                                </video>
                            </div>

                        <?php } elseif ($interiart_item_type == 'video') {
                            ?>
                            <div class="tzPortfolio_Single_video">
                                <?php
                                if ($interiart_video_type == 'youtube') {
                                    ?>
                                    <iframe class="iframe-full"
                                            src="http://www.youtube.com/embed/<?php echo esc_attr($interiart_video_id); ?>?hd=1&amp;wmode=opaque">
                                    </iframe>
                                    <?php
                                } else {
                                    ?>
                                    <iframe src="https://player.vimeo.com/video/<?php echo esc_attr($interiart_video_id); ?>?title=0&byline=0&portrait=0"
                                            webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
                                    <?php
                                }
                                ?>
                            </div>
                            <?php
                        } else {
                            ?>
                            <div class="tzPortfolio_SingleImage">
                                <?php the_post_thumbnail(); ?>
                            </div>
                            <?php
                        }
                        ?>
                    </div>
                    <?php
                }
                ?>
                <?php if ($interiart_single_portfolio_style == 'popup') { ?>
                    <span class="tzPortfolio_Single_Close"><i class="fa fa-times mfp-close"></i></span>
                    <span class="tzPortfolio_Single_tks"><?php esc_html_e('Thanks for watching!', 'interiart'); ?></span>
                <?php } ?>
            <?php
            endwhile;
            endif;
            ?>

        </div>

        <div class="<?php echo esc_attr__($interiart_class); ?> tz_Portfolio_Single_type">
            <div class="container">
                <div class="row">
                    <?php get_template_part('template_inc/inc', 'breadcrumb'); ?>

                    <?php

                    if (have_posts()) : while (have_posts()) : the_post();
                        interiart_setPostViews(get_the_ID());
                        $interiart_comment_count = wp_count_comments($post->ID);

                        $interiart_imagefull = get_post_meta(get_the_ID(), 'interiart_portfolio_image', true);
                        $interiart_slideshows = get_post_meta(get_the_ID(), 'interiart_portfolio_slideshows', true);
                        $interiart_bgvideo_image = get_post_meta(get_the_ID(), 'interiart_portfolio_bgvideo_image', true);
                        $interiart_video_webm = get_post_meta(get_the_ID(), 'interiart_portfolio_video_webm', true);
                        $interiart_video_mp4 = get_post_meta(get_the_ID(), 'interiart_portfolio_video_mp4', true);
                        $interiart_video_ogv = get_post_meta(get_the_ID(), 'interiart_portfolio_video_ogv', true);
                        $interiart_video_type = get_post_meta(get_the_ID(), 'interiart_portfolio_video_type', true);
                        $interiart_video_id = get_post_meta(get_the_ID(), 'interiart_portfolio_video', true);
                        $interiart_soundcloud_id = get_post_meta(get_the_ID(), 'interiart_portfolio_soundCloud_id', true);

                        $interiart_meta_key_1 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_1', true);
                        $interiart_meta_value_1 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_1', true);
                        $interiart_meta_key_2 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_2', true);
                        $interiart_meta_value_2 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_2', true);
                        $interiart_meta_key_3 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_3', true);
                        $interiart_meta_value_3 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_3', true);

                        $interiart_porfolio_position_meta_key = get_post_meta(get_the_ID(), 'interiart_porfolio_position_meta_key', true);

                        if ($interiart_porfolio_position_meta_key == 'next') :
                            $interiart_porfolio_position_meta_key_class = 'col-md-6';
                        elseif ($interiart_porfolio_position_meta_key == 'under'):
                            $interiart_porfolio_position_meta_key_class = '';
                        endif;

                        ?>
                        <?php if ($interiart_single_portfolio_style == 'popup') { ?>
                            <span class="tzPortfolio_Single_Close"><i class="fa fa-times mfp-close"></i></span>
                        <?php } ?>
                        <?php
                        if ($interiart_single_portfolio_style == 'popup' && $interiart_title == 'show') {
                            ?>
                            <h3 class="tzPortfolio_Single_title"><?php the_title(); ?></h3>
                            <?php
                        }
                        ?>

                        <div class="row">
                            <div class="<?php echo $interiart_porfolio_position_meta_key_class; ?> tzPortfolio_Single_Content">
                                <h3 class="tz_title_des"><?php echo esc_html('Project Description:'); ?></h3>
                                <?php
                                if ($interiart_content == 'show') {
                                    the_content();
                                    wp_link_pages();
                                }
                                ?>
                            </div>
                            <div class="<?php echo $interiart_porfolio_position_meta_key_class; ?> tzPortfolio_Single_Info" <?php if ($interiart_porfolio_position_meta_key_class == ''): ?> style="padding: 0;" <?php endif; ?>>
                                <h3 class="tz_title_des"><?php echo esc_html('About Project:'); ?></h3>
                                <ul>
                                    <?php
                                    if ($interiart_author == 'show') {
                                        ?>
                                        <li>
                                            <label><?php esc_html_e('Author ', 'interiart'); ?>:</label>
                                            <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a>
                                        </li>
                                        <?php
                                    }
                                    ?>

                                    <?php
                                    if ($interiart_date == 'show') {
                                        ?>
                                        <li>
                                            <label><?php esc_html_e('Date Post ', 'interiart'); ?>:</label>
                                            <?php echo get_the_date(); ?>
                                        </li>
                                        <?php
                                    }
                                    ?>

                                    <?php
                                    if (get_the_terms($post->ID, 'portfolio-category') != false && $interiart_category == 'show') {
                                        ?>
                                        <li>
                                            <label><?php esc_html_e('Category ', 'interiart') ?>:</label>
                                            <?php the_terms($post->ID, 'portfolio-category', '', ', '); ?>
                                        </li>
                                        <?php
                                    }
                                    ?>

                                    <?php
                                    if (get_the_terms($post->ID, 'portfolio-tags') != false && $interiart_tag == 'show') {
                                        ?>
                                        <li>
                                            <label><?php esc_html_e('Tags ', 'interiart') ?>:</label>
                                            <?php the_terms($post->ID, 'portfolio-tags', '', ', '); ?>
                                        </li>
                                        <?php
                                    }
                                    ?>

                                    <?php
                                    if ($interiart_meta_key_1 != '' || $interiart_meta_value_1 != '') {
                                        ?>
                                        <li>
                                            <label><?php echo esc_html($interiart_meta_key_1); ?>:</label>
                                            <?php echo esc_html($interiart_meta_value_1); ?>
                                        </li>
                                        <?php
                                    }
                                    ?>

                                    <?php
                                    if ($interiart_meta_key_2 != '' || $interiart_meta_value_2 != '') {
                                        ?>
                                        <li>
                                            <label><?php echo esc_html($interiart_meta_key_2); ?>:</label>
                                            <?php echo esc_html($interiart_meta_value_2); ?>
                                        </li>
                                        <?php
                                    }
                                    ?>

                                    <?php
                                    if ($interiart_meta_key_3 != '' || $interiart_meta_value_3 != '') {
                                        ?>
                                        <li>
                                            <label><?php echo esc_html($interiart_meta_key_3); ?>:</label>
                                            <?php echo esc_html($interiart_meta_value_3); ?>
                                        </li>
                                        <?php
                                    }
                                    ?>
                                </ul>
                            </div>
                        </div>
                        <?php if ($interiart_share == 'show') : ?>
                            <div class="tzshare">
                                <div class="TzLikeButtonInner">
                                    <span><?php esc_html_e('Share:', 'interiart'); ?></span>
                                    <!-- Facebook Button -->
                                    <a target="_blank"
                                       href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>"><i
                                                class="fa fa-facebook"></i></a>
                                    <a target="_blank"
                                       href="https://twitter.com/home?status=Check%20out%20this%20article:%20<?php print interiart_social_title(get_the_title()); ?>%20-%20<?php echo urlencode(the_permalink()); ?>"><i
                                                class="fa fa-twitter"></i></a>
                                    <?php $interiart_pin_image = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?>
                                    <a data-pin-do="skipLink" target="_blank"
                                       href="https://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php echo esc_attr($interiart_pin_image); ?>&description=<?php the_title(); ?>"><i
                                                class="fa fa-pinterest"></i></a>
                                    <a target="_blank"
                                       href="https://plus.google.com/share?url=<?php the_permalink(); ?>"><i
                                                class="fa fa-google-plus"></i></a>
                                </div><!--end class TzLikeButtonInner-->
                            </div>
                        <?php endif; ?>
                        <?php
                        if ($interiart_media == 'show') {
                            ?>
                            <div class="tzPortfolio_Single_Media">
                                <?php
                                if ($interiart_item_type == 'videohtml5' || $interiart_item_type == 'video') {
                                    ?>
                                    <div class="tz_Featured_Image">
                                        <?php the_post_thumbnail('full'); ?>
                                    </div>
                                <?php }

                                ?>
                            </div>
                            <?php
                        }
                        ?>
                        <?php if ($interiart_single_portfolio_style == 'popup') { ?>
                            <span class="tzPortfolio_Single_Close"><i class="fa fa-times mfp-close"></i></span>
                            <span class="tzPortfolio_Single_tks"><?php esc_html_e('Thanks for watching!', 'interiart'); ?></span>
                        <?php } ?>
                    <?php
                    endwhile;
                    endif;
                    ?>

                </div>
            </div>
        </div>
    <?php endif; ?>
    <?php if ($interiart_item_type == 'slideshows') : ?>
        <div class="<?php echo esc_attr__($interiart_class); ?> tz_Portfolio_Single_type tz_Portfolio_Single_slideshows">

            <div class="row">

                <?php

                if (have_posts()) : while (have_posts()) : the_post();
                    interiart_setPostViews(get_the_ID());
                    $interiart_comment_count = wp_count_comments($post->ID);

                    $interiart_imagefull = get_post_meta(get_the_ID(), 'interiart_portfolio_image', true);
                    $interiart_slideshows = get_post_meta(get_the_ID(), 'interiart_portfolio_slideshows', true);
                    $interiart_bgvideo_image = get_post_meta(get_the_ID(), 'interiart_portfolio_bgvideo_image', true);
                    $interiart_video_webm = get_post_meta(get_the_ID(), 'interiart_portfolio_video_webm', true);
                    $interiart_video_mp4 = get_post_meta(get_the_ID(), 'interiart_portfolio_video_mp4', true);
                    $interiart_video_ogv = get_post_meta(get_the_ID(), 'interiart_portfolio_video_ogv', true);
                    $interiart_video_type = get_post_meta(get_the_ID(), 'interiart_portfolio_video_type', true);
                    $interiart_video_id = get_post_meta(get_the_ID(), 'interiart_portfolio_video', true);
                    $interiart_soundcloud_id = get_post_meta(get_the_ID(), 'interiart_portfolio_soundCloud_id', true);

                    $interiart_meta_key_1 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_1', true);
                    $interiart_meta_value_1 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_1', true);
                    $interiart_meta_key_2 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_2', true);
                    $interiart_meta_value_2 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_2', true);
                    $interiart_meta_key_3 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_key_3', true);
                    $interiart_meta_value_3 = get_post_meta(get_the_ID(), 'interiart_portfolio_meta_value_3', true);

                    $interiart_porfolio_position_meta_key = get_post_meta(get_the_ID(), 'interiart_porfolio_position_meta_key', true);

                    if ($interiart_porfolio_position_meta_key == 'next') :
                        $interiart_porfolio_position_meta_key_class = 'col-md-6';
                        $interiart_porfolio_content = 'tzPortfolio_Single_Content';
                    elseif ($interiart_porfolio_position_meta_key == 'under'):
                        $interiart_porfolio_position_meta_key_class = '';
                    endif;


                    ?>
                    <?php if ($interiart_single_portfolio_style == 'popup') { ?>
                        <span class="tzPortfolio_Single_Close"><i class="fa fa-times mfp-close"></i></span>
                    <?php } ?>
                    <?php
                    if ($interiart_single_portfolio_style == 'popup' && $interiart_title == 'show') {
                        ?>
                        <h3 class="tzPortfolio_Single_title"><?php the_title(); ?></h3>
                        <?php
                    }
                    ?>
                    <div class="container tz_Portfolio_wrap">
                        <div class="<?php echo $interiart_porfolio_position_meta_key_class; ?> tzPortfolio_Single_Content"
                             <?php if ($interiart_porfolio_position_meta_key_class != '') : ?>style="padding: 0;" <?php endif; ?> >
                            <h3 class="tz_title_des"><?php echo esc_html('Project Description:'); ?></h3>
                            <?php
                            if ($interiart_content == 'show') {
                                the_content();
                                wp_link_pages();
                            }
                            ?>
                        </div>
                        <?php if ($interiart_share == 'show' && $interiart_porfolio_position_meta_key_class == '') : ?>
                            <div class="tzshare">

                                <div class="TzLikeButtonInner">
                                    <span><?php esc_html_e('Share:', 'interiart'); ?></span>
                                    <!-- Facebook Button -->
                                    <a target="_blank"
                                       href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>"><i
                                                class="fa fa-facebook"></i></a>
                                    <a target="_blank"
                                       href="https://twitter.com/home?status=Check%20out%20this%20article:%20<?php print interiart_social_title(get_the_title()); ?>%20-%20<?php echo urlencode(the_permalink()); ?>"><i
                                                class="fa fa-twitter"></i></a>
                                    <?php $interiart_pin_image = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?>
                                    <a data-pin-do="skipLink" target="_blank"
                                       href="https://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php echo esc_attr($interiart_pin_image); ?>&description=<?php the_title(); ?>"><i
                                                class="fa fa-pinterest"></i></a>
                                    <a target="_blank"
                                       href="https://plus.google.com/share?url=<?php the_permalink(); ?>"><i
                                                class="fa fa-google-plus"></i></a>
                                </div><!--end class TzLikeButtonInner-->
                            </div>
                        <?php endif; ?>
                        <div class="<?php echo $interiart_porfolio_position_meta_key_class; ?> tzPortfolio_Single_Info"
                             <?php if ($interiart_porfolio_position_meta_key_class != '') : ?>style="padding: 0 30px;" <?php endif; ?>>
                            <h3 class="tz_title_des"><?php echo esc_html('About Project:'); ?></h3>
                            <ul>
                                <?php
                                if ($interiart_author == 'show') {
                                    ?>
                                    <li>
                                        <label><?php esc_html_e('Author ', 'interiart'); ?>:</label>
                                        <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a>
                                    </li>
                                    <?php
                                }
                                ?>

                                <?php
                                if ($interiart_date == 'show') {
                                    ?>
                                    <li>
                                        <label><?php esc_html_e('Date Post ', 'interiart'); ?>:</label>
                                        <?php echo get_the_date(); ?>
                                    </li>
                                    <?php
                                }
                                ?>

                                <?php
                                if (get_the_terms($post->ID, 'portfolio-category') != false && $interiart_category == 'show') {
                                    ?>
                                    <li>
                                        <label><?php esc_html_e('Category ', 'interiart') ?>:</label>
                                        <?php the_terms($post->ID, 'portfolio-category', '', ', '); ?>
                                    </li>
                                    <?php
                                }
                                ?>

                                <?php
                                if (get_the_terms($post->ID, 'portfolio-tags') != false && $interiart_tag == 'show') {
                                    ?>
                                    <li>
                                        <label><?php esc_html_e('Tags ', 'interiart') ?>:</label>
                                        <?php the_terms($post->ID, 'portfolio-tags', '', ', '); ?>
                                    </li>
                                    <?php
                                }
                                ?>

                                <?php
                                if ($interiart_meta_key_1 != '' || $interiart_meta_value_1 != '') {
                                    ?>
                                    <li>
                                        <label><?php echo esc_html($interiart_meta_key_1); ?>:</label>
                                        <?php echo esc_html($interiart_meta_value_1); ?>
                                    </li>
                                    <?php
                                }
                                ?>

                                <?php
                                if ($interiart_meta_key_2 != '' || $interiart_meta_value_2 != '') {
                                    ?>
                                    <li>
                                        <label><?php echo esc_html($interiart_meta_key_2); ?>:</label>
                                        <?php echo esc_html($interiart_meta_value_2); ?>
                                    </li>
                                    <?php
                                }
                                ?>

                                <?php
                                if ($interiart_meta_key_3 != '' || $interiart_meta_value_3 != '') {
                                    ?>
                                    <li>
                                        <label><?php echo esc_html($interiart_meta_key_3); ?>:</label>
                                        <?php echo esc_html($interiart_meta_value_3); ?>
                                    </li>
                                    <?php
                                }
                                ?>
                            </ul>
                        </div>
                        <?php if ($interiart_share == 'show' && $interiart_porfolio_position_meta_key_class != '') : ?>
                            <div class="tzshare" style="padding: 0;">

                                <div class="TzLikeButtonInner">
                                    <span><?php esc_html_e('Share:', 'interiart'); ?></span>
                                    <!-- Facebook Button -->
                                    <a target="_blank"
                                       href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>"><i
                                                class="fa fa-facebook"></i></a>
                                    <a target="_blank"
                                       href="https://twitter.com/home?status=Check%20out%20this%20article:%20<?php print interiart_social_title(get_the_title()); ?>%20-%20<?php echo urlencode(the_permalink()); ?>"><i
                                                class="fa fa-twitter"></i></a>
                                    <?php $interiart_pin_image = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?>
                                    <a data-pin-do="skipLink" target="_blank"
                                       href="https://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php echo esc_attr($interiart_pin_image); ?>&description=<?php the_title(); ?>"><i
                                                class="fa fa-pinterest"></i></a>
                                    <a target="_blank"
                                       href="https://plus.google.com/share?url=<?php the_permalink(); ?>"><i
                                                class="fa fa-google-plus"></i></a>
                                </div><!--end class TzLikeButtonInner-->
                            </div>
                        <?php endif; ?>
                    </div>
                    <?php
                    if ($interiart_media == 'show') {
                        ?>
                        <div class="tzPortfolio_Single_Media">
                            <?php
                            if ($interiart_item_type == 'slideshows' && $interiart_slideshows != '') {
                                ?>
                                <div class="tzPortfolio_Single_Slider">
                                    <?php
                                    foreach ($interiart_slideshows as $slide):
                                        ?>
                                        <div class="item">
                                            <?php if ($interiart_title_image == 'show'): ?>
                                                <h3><?php echo esc_html($slide['title']) ?></h3>
                                            <?php endif; ?>
                                            <img src="<?php echo esc_url($slide['interiart_portfolio_slideshow_item']); ?>"
                                                 alt="<?php the_title(); ?>">
                                        </div>
                                    <?php
                                    endforeach;
                                    ?>

                                </div>
                                <?php
                            } elseif ($interiart_item_type == 'videohtml5') {
                                ?>
                                <div class="tzPortfolio_Single_videoHtml5">
                                    <div class="tzPortfolio_autoplay"><i class="fa fa-play"></i></div>
                                    <div class="tzPortfolio_pauses"><i class="fa fa-pause"></i></div>
                                    <div class="bg-video"
                                         style="background-image: url(<?php echo esc_url($interiart_bgvideo_image); ?>);background-repeat: no-repeat; background-position: center center; background-size: cover;"></div>
                                    <video class="videoID">
                                        <source type="video/mp4"
                                                src="<?php echo esc_url($interiart_video_mp4); ?>"/>
                                        <source type="video/ogv"
                                                src="<?php echo esc_url($interiart_video_ogv); ?>"/>
                                        <source type="video/webm"
                                                src="<?php echo esc_url($interiart_video_webm); ?>"/>
                                    </video>
                                </div>
                            <?php } elseif ($interiart_item_type == 'video') {
                                ?>
                                <div class="tzPortfolio_Single_video">
                                    <?php
                                    if ($interiart_video_type == 'youtube') {
                                        ?>
                                        <iframe class="iframe-full"
                                                src="http://www.youtube.com/embed/<?php echo esc_attr($interiart_video_id); ?>?hd=1&amp;wmode=opaque">
                                        </iframe>
                                        <?php
                                    } else {
                                        ?>
                                        <iframe src="https://player.vimeo.com/video/<?php echo esc_attr($interiart_video_id); ?>?title=0&byline=0&portrait=0"
                                                webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
                                        <?php
                                    }
                                    ?>
                                </div>
                                <?php
                            } elseif ($interiart_item_type == 'audio') {
                                ?>
                                <div class="tzPortfolio_SingleAudio">
                                    <iframe class="iframe-full-audio" allowfullscreen=""
                                            src="http://w.soundcloud.com/player/?url=http://api.soundcloud.com/tracks/<?php echo esc_attr($interiart_soundcloud_id); ?>&amp;show_artwork=true&amp;auto_play=false&amp;sharing=true&amp;buying=true&amp;download=true&amp;show_user=true&amp;show_playcount=true&amp;show_comments=true">
                                    </iframe>
                                </div>
                                <?php
                            } elseif ($interiart_item_type == 'image') {
                                ?>
                                <div class="tzPortfolio_SingleImage">
                                    <img src="<?php echo esc_url($interiart_imagefull); ?>"
                                         alt="<?php the_title(); ?>">
                                </div>
                                <?php
                            } else {
                                ?>
                                <div class="tzPortfolio_SingleImage">
                                    <?php the_post_thumbnail(); ?>
                                </div>
                                <?php
                            }
                            ?>
                        </div>
                        <?php
                    }
                    ?>
                    <?php if ($interiart_single_portfolio_style == 'popup') { ?>
                        <span class="tzPortfolio_Single_Close"><i class="fa fa-times mfp-close"></i></span>
                        <span class="tzPortfolio_Single_tks"><?php esc_html_e('Thanks for watching!', 'interiart'); ?></span>
                    <?php } ?>
                <?php
                endwhile;
                endif;
                ?>


            </div>
        </div>

    <?php endif; ?>

    <div class="container" style="padding-left: 0; padding-right: 0;">
        <nav class="tz_nav_single_port">
            <div class="tz_previous col-md-6">
                <?php
                previous_post_link('%link', '<i>&larr;</i><span class="meta-nav">' . _x(' PREVIOUS PROJECT', 'Previous post link', '') . ' <strong>%title</strong> </span>');
                ?>
            </div>
            <div class="tz_next col-md-6">
                <?php
                next_post_link('%link', '<span class="meta-nav">' . _x('NEXT PROJECT ', 'Next post link', '') . '<strong>%title</strong></span> <i>&rarr;</i>');
                ?>

            </div>
        </nav><!-- .nav-single -->
    </div>
    <?php endif; ?>
    <?php
    if ($interiart_single_portfolio_style == 'page') {
        interiart_footer_type();
        get_footer();
    }
    ?>





