<?php
get_header();
get_template_part('template_inc/inc', 'header');
get_template_part('template_inc/inc', 'breadcrumb');

$interiart_team_name = get_post_meta(get_the_ID(), 'interiart_team_name', true);
$interiart_team_date = get_post_meta(get_the_ID(), 'interiart_team_date', true);
$interiart_team_adress = get_post_meta(get_the_ID(), 'interiart_team_adress', true);
$interiart_team_email = get_post_meta(get_the_ID(), 'interiart_team_email', true);
$interiart_team_phone = get_post_meta(get_the_ID(), 'interiart_team_phone', true);

$interiart_team_facebook = get_post_meta(get_the_ID(), 'interiart_team_facebook', true);
$interiart_team_twitter = get_post_meta(get_the_ID(), 'interiart_team_twitter', true);
$interiart_team_instagram = get_post_meta(get_the_ID(), 'interiart_team_instagram', true);
$interiart_team_tumblr = get_post_meta(get_the_ID(), 'interiart_team_tumblr', true);
$interiart_team_linkedin = get_post_meta(get_the_ID(), 'interiart_team_linkedin', true);
$interiart_team_youtube = get_post_meta(get_the_ID(), 'interiart_team_youtube', true);
$interiart_team_dribbble = get_post_meta(get_the_ID(), 'interiart_team_dribbble', true);
$interiart_team_behance = get_post_meta(get_the_ID(), 'interiart_team_behance', true);
$interiart_team_skype = get_post_meta(get_the_ID(), 'interiart_team_skype', true);
$interiart_team_pinterest = get_post_meta(get_the_ID(), 'interiart_team_pinterest', true);


?>

<div class="tzTeamSingle">
    <div class="container">
        <div class="row">
            <div class="col-md-4 tz_team_info">
                <div class="tzTeam_SingleImage">
                    <?php the_post_thumbnail(); ?>
                </div>
                <?php if ($interiart_team_name != ''): ?>
                    <h3 class="tz_name"><?php echo esc_attr($interiart_team_name); ?></h3>
                <?php endif; ?>
                <?php if ($interiart_team_date != ''): ?>
                    <p class="tz_date"><?php esc_html_e('Date of birth:', 'interiart'); ?>
                        <span><?php echo esc_attr($interiart_team_date); ?></span></p>
                <?php endif; ?>
                <?php if ($interiart_team_adress != ''): ?>
                    <p class="tz_adress"><?php esc_html_e('Adress:', 'interiart'); ?>
                        <span><?php echo esc_attr($interiart_team_adress); ?></span></p>
                <?php endif; ?>
                <?php if ($interiart_team_email != ''): ?>
                    <p class="tz_email"><?php esc_html_e('Email:', 'interiart'); ?>
                        <span><?php echo esc_attr($interiart_team_email); ?></span></p>
                <?php endif; ?>
                <?php if ($interiart_team_phone != ''): ?>
                    <p class="tz_phone"><?php esc_html_e('Phone:', 'interiart'); ?>
                        <span><?php echo esc_attr($interiart_team_phone); ?></span></p>
                <?php endif; ?>
                <div class="tz_team_social">
                    <ul class="tzheader_social">
                        <?php
                        if ($interiart_team_facebook != '') {
                            ?>
                            <li>
                                <a href="<?php echo esc_url($interiart_team_facebook); ?>"><i
                                            class="fa fa-facebook"></i></a>
                            </li>
                            <?php
                        }
                        ?>
                        <?php
                        if ($interiart_team_twitter != '') {
                            ?>
                            <li>
                                <a href="<?php echo esc_url($interiart_team_twitter); ?>"><i
                                            class="fa fa-twitter"></i></a>
                            </li>
                            <?php
                        }
                        ?>
                        <?php
                        if ($interiart_team_instagram != '') {
                            ?>
                            <li>
                                <a href="<?php echo esc_url($interiart_team_instagram); ?>"><i
                                            class="fa fa-instagram"></i></a>
                            </li>
                            <?php
                        }
                        ?>
                        <?php
                        if ($interiart_team_tumblr != '') {
                            ?>
                            <li>
                                <a href="<?php echo esc_url($interiart_team_tumblr); ?>"><i class="fa fa-tumblr"></i></a>
                            </li>
                            <?php
                        }
                        ?>
                        <?php
                        if ($interiart_team_linkedin != '') {
                            ?>
                            <li>
                                <a href="<?php echo esc_url($interiart_team_linkedin); ?>"><i
                                            class="fa fa-linkedin"></i></a>
                            </li>
                            <?php
                        }
                        ?>
                        <?php
                        if ($interiart_team_youtube != '') {
                            ?>
                            <li>
                                <a href="<?php echo esc_url($interiart_team_youtube); ?>"><i
                                            class="fa fa-youtube-play"></i></a>
                            </li>
                            <?php
                        }
                        ?>
                        <?php
                        if ($interiart_team_dribbble != '') {
                            ?>
                            <li>
                                <a href="<?php echo esc_url($interiart_team_dribbble); ?>"><i
                                            class="fa fa-dribbble"></i></a>
                            </li>
                            <?php
                        }
                        ?>
                        <?php
                        if ($interiart_team_behance != '') {
                            ?>
                            <li>
                                <a href="<?php echo esc_url($interiart_team_behance); ?>"><i
                                            class="fa fa-behance"></i></a>
                            </li>
                            <?php
                        }
                        ?>
                        <?php
                        if ($interiart_team_skype != '') {
                            ?>
                            <li>
                                <a href="<?php echo esc_url($interiart_team_skype); ?>"><i class="fa fa-skype"></i></a>
                            </li>
                            <?php
                        }
                        ?>
                        <?php
                        if ($interiart_team_pinterest != '') {
                            ?>
                            <li>
                                <a href="<?php echo esc_url($interiart_team_pinterest); ?>"><i
                                            class="fa fa-pinterest-p"></i></a>
                            </li>
                            <?php
                        }
                        ?>
                    </ul>
                </div>

            </div>
            <div class="col-md-8 tzTeamSinglewrap">
                <?php
                if (have_posts()) : while (have_posts()) : the_post();
                    interiart_setPostViews(get_the_ID());
                    ?>

                    <?php
                    ?>
                    <div class="team-single-content">
                        <?php
                        the_content();
                        ?>

                    </div><!--end class team-single-content-->
                <?php
                endwhile;
                endif;
                ?>


            </div>
        </div>
    </div>
</div>

<?php
interiart_footer_type();
get_footer();
?>

