 <?php /* Template Name: Abute */ ?>
 <?php 
 get_header();
?>
<?php $video=get_post_meta(get_the_ID(),'video',true);
$titr=get_post_meta(get_the_ID(),'title',true);
$discription=get_post_meta(get_the_ID(),'discription',true);
$entries = get_post_meta( get_the_ID(), 'group_metabox', true );
$subtitle = get_post_meta( get_the_ID(), 'subtitle', true );
$picback=get_post_meta(get_the_ID(),'back_page',true);
$altback=get_post_meta(get_the_ID(),'alt_back',true);

?>

<div class="cover-about"style="background:url('<?php echo $picback ?>')">
        <h1><?php the_title();?></h1>
    </div>
    <div class="clearfix"></div>
    <div class="content-abute">
        <div class="container">
            <div class="row">
                <div class="col-12 col-md-6">
                    <?php if(have_posts()){
                        the_post();
                    ?>
                    <h2> <?php echo $subtitle ?></h2>
                    <p><?php the_content(); ?></p>
                    <?php } ?>
                </div>
                <div class="col-12 col-md-6">
                    <video id="player" playsinline controls data-poster="">
                        <source src="<?php echo $video ?>" type="video/mp4" />
                      
                      </video>
                </div>
            </div>
        </div>
    </div>
    <div class="clearfix"></div>
    <div class="my-team">

        <div class="title-section">
            <h2><?php echo $titr ?></h2>
            <p><?php echo $discription ;?></p>
        </div>
        <div class="container">
            <div class="row">
                <?php foreach($entries as $item){?>
                <div class="col-12 col-md-3 col-sm-6">
                    <figure>
                        <img src="<?php echo $item['pic'] ?>" alt="">
                        <figcaption>
                            <div class="personal">
                                <span>مشخصات</span>
                                <br>
                                <br>
                                <span>نام و نام خانوادگی:</span>
                                <h6><?php echo $item['name']?> </h6>
                                <span> سمت:</span>
                                <h6><?php echo $item['job']?> </h6>
                                <span>سابقه کار:</span>
                                <h6><?php echo $item['time_work']?> </h6>
                            </div>
                        </figcaption>
                    </figure>
                </div>
                <?php }?>
            </div>
        </div>

<?php
 get_template_part('inc/i','colleague-section');
 get_template_part('inc/i','cuntact-us');
 get_footer();
 
 ?>