<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7" lang="kr"><![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie10 lt-ie9 lt-ie8" lang="kr"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie10 lt-ie9" lang="kr"><![endif]-->
<!--[if (IE 9)&!(IEMobile)]><html class="no-js lt-ie10" lang="kr"><![endif]-->
<!--[if gt IE 9]><!-->
<html class="no-js" lang="kr">
<!--<![endif]-->

<head>
    <?php $this->load->view('templates/pray/pray-head-meta')?>
    <?php $this->load->view('templates/pray/pray-head')?>
</head>

<body class="pray">
    <?php $this->load->view('templates/pray/pray-header')?>
    <main id="main" role="main" tabindex="-1">
        <!--Header Contents-->
        <div class="container pt30 pb30">
            <div class="float_left prayMain"
                style="background:url('<?php echo $featured->postImage?>') no-repeat center; background-size:cover;">
                <div class="title">
                    <div><a href="/pray/<?php echo $featured->categorySlug?>"><?php echo $featured->categoryTitle?></a>
                    </div>
                    <h3><a
                            href="/pray/<?php echo $featured->categorySlug?>/<?php echo $featured->postID?>"><?php echo $featured->postTitle?></a>
                    </h3>
                </div>
            </div>
            <div class="float_left prayerOn" style="overflow:hidden;">
                <div class="titleBox">
                    <ul>
                        <li class="blackTit"><a href="#">기도 ON</a></li>
                        <li class="grayTit"><a href="#">우리의 기도, 온에어 중!</a></li>
                    </ul>
                </div>
                <div class="whiteBox">
                    <form action="" class="cm-prayon-form">
                        <input type="text" name="cmprayer" id="site-head-search" placeholder="내용을 입력하세요">
                        <button type="submit">입력</button>
                    </form>
                </div>
                <div class="whiteBox cm-prayon-box" style="display:none">
                    <div class="profile"
                        style="background:url('https://crossmap.co.kr/files/partner/2018/05/ce59c7dd9234224b91a6e3975110a0f2.jpg') no-repeat center; background-size:cover;">
                    </div>
                    <p><a href="#" class="prayer"></a></p>
                </div>
                <?php foreach($prayon as $p) {?>
                <div class="whiteBox">
                    <div class="profile"
                        style="background:url('https://crossmap.co.kr/files/partner/2018/05/ce59c7dd9234224b91a6e3975110a0f2.jpg') no-repeat center; background-size:cover;">
                    </div>
                    <p><a href="#"><?php echo $p->pray?></a></p>
                </div>
                <?php }?>
            </div>
            <div class="float_right">
                <a href=""><img src="<?php echo THEME_FOLDER?>/img/bn-190.jpg"></a>
            </div>

        </div>
        <!--함께하기/기도소식-->
        <div class="container lineBox cm-pray-banner-together">
            <?php foreach($together as $k=>$t) {?>
            <h4 <?php echo $k? 'style="display:none"':''?>><a href="#"><?php echo $t->postTitle?></a></h4>
            <?php }?>
            <div class="arrowPrev"><img src="<?php echo THEME_FOLDER?>/img/arrow-prev-pray.gif"></div>
            <div class="arrowNext"><img src="<?php echo THEME_FOLDER?>/img/arrow-next-pray.gif"></div>
            <div class="contBar">
                <a class="current" href="#" tabindex="0"><i class="fas fa-circle"></i></a>
                <a href="#" tabindex="1"><i class="fas fa-circle"></i></a>
                <a href="#" tabindex="2"><i class="fas fa-circle"></i></a>
                <a href="#" tabindex="3"><i class="fas fa-circle"></i></a>
            </div>
        </div>

        <!--Tab Box-->
        <div class="container pt30">
            <div class="titleBox">
                <ul class="cm-pray-home-section-nav">
                    <li class="current"><a href="#" class="vclip">영상기도</a></li>
                    <li><a href="#" class="together">함께하기</a></li>
                    <li><a href="#" class="story">기도 & STORY</a></li>
                    <li><a href="#" class="art">기도 X ART</a></li>
                </ul>
            </div>
            <div class="cpostBox cm-pray-home-section cm-section-vclip">
                <div class="cpostMain"
                    style="background:url('<?php echo $vclip[0]->postImage?>') no-repeat center; background-size:cover;">
                    <a href="<?php echo getPrayPostUrl($vclip[0])?>">
                        <div class="bg"></div>
                        <div class="tit">
                            <?php echo $vclip[0]->postTitle?>
                        </div>
                        <div class="writer">
                            <?php echo $vclip[0]->author?>
                        </div>
                    </a>
                </div>

                <ul class="col col5">
                    <?php for($i=1;$i<7;$i++){if(!isset($vclip[$i])) break;?>
                    <li>
                        <a href="<?php echo getPrayPostUrl($vclip[$i])?>">
                            <div class="tit">
                                <?php echo $vclip[$i]->postTitle?>
                            </div>
                            <div class="writer">
                                <?php echo $vclip[$i]->author?>
                            </div>
                            <div class="thumb">
                                <img src="<?php echo $vclip[$i]->postImage?>">
                            </div>
                        </a>
                    </li>
                    <?php }?>
                </ul>
            </div>

            <div class="cpostBox cm-pray-home-section cm-section-together" style="display:none">
                <div class="cpostMain"
                    style="background:url('<?php echo $together[0]->postImage?>') no-repeat center; background-size:cover;">
                    <a href="<?php echo getPrayPostUrl($together[0])?>">
                        <div class="bg"></div>
                        <div class="tit">
                            <?php echo $together[0]->postTitle?>
                        </div>
                        <div class="writer">
                            <?php echo $together[0]->author?>
                        </div>
                    </a>
                </div>

                <ul class="col col5">
                    <?php for($i=1;$i<7;$i++){if(!isset($together[$i])) break;?>
                    <li>
                        <a href="<?php echo getPrayPostUrl($together[$i])?>">
                            <div class="tit">
                                <?php echo $together[$i]->postTitle?>
                            </div>
                            <div class="writer">
                                <?php echo $together[$i]->author?>
                            </div>
                            <div class="thumb">
                                <img src="<?php echo $together[$i]->postImage?>">
                            </div>
                        </a>
                    </li>
                    <?php }?>
                </ul>
            </div>

            <div class="cpostBox cm-pray-home-section cm-section-story" style="display:none">
                <div class="cpostMain"
                    style="background:url('<?php echo $story[0]->postImage?>') no-repeat center; background-size:cover;">
                    <a href="<?php echo getPrayPostUrl($story[0])?>">
                        <div class="bg"></div>
                        <div class="tit">
                            <?php echo $story[0]->postTitle?>
                        </div>
                        <div class="writer">
                            <?php echo $story[0]->author?>
                        </div>
                    </a>
                </div>

                <ul class="col col5">
                    <?php for($i=1;$i<7;$i++){if(!isset($story[$i])) break;?>
                    <li>
                        <a href="<?php echo getPrayPostUrl($story[$i])?>">
                            <div class="tit">
                                <?php echo $story[$i]->postTitle?>
                            </div>
                            <div class="writer">
                                <?php echo $story[$i]->author?>
                            </div>
                            <div class="thumb">
                                <img src="<?php echo $story[$i]->postImage?>">
                            </div>
                        </a>
                    </li>
                    <?php }?>
                </ul>
            </div>

            <div class="cpostBox cm-pray-home-section cm-section-art" style="display:none">
                <div class="cpostMain"
                    style="background:url('<?php echo $art[0]->postImage?>') no-repeat center; background-size:cover;">
                    <a href="<?php echo getPrayPostUrl($art[0])?>">
                        <div class="bg"></div>
                        <div class="tit">
                            <?php echo $art[0]->postTitle?>
                        </div>
                        <div class="writer">
                            <?php echo $art[0]->author?>
                        </div>
                    </a>
                </div>

                <ul class="col col5">
                    <?php for($i=1;$i<7;$i++){if(!isset($art[$i])) break;?>
                    <li>
                        <a href="<?php echo getPrayPostUrl($art[$i])?>">
                            <div class="tit">
                                <?php echo $art[$i]->postTitle?>
                            </div>
                            <div class="writer">
                                <?php echo $art[$i]->author?>
                            </div>
                            <div class="thumb">
                                <img src="<?php echo $art[$i]->postImage?>">
                            </div>
                        </a>
                    </li>
                    <?php }?>
                </ul>
            </div>

        </div>
        <div class="container cm-pray-home-section cm-section-vclip">
            <ul class="col col5">
                <?php for($i=7;$i<12;$i++){if(!isset($vclip[$i])) break;?>
                <li>
                    <a href="<?php echo getPrayPostUrl($vclip[$i])?>">
                        <div class="tit">
                            <?php echo $vclip[$i]->postTitle?>
                        </div>
                        <div class="writer">
                            <?php echo $vclip[$i]->author?>
                        </div>
                        <div class="thumb">
                            <img src="<?php echo $vclip[$i]->postImage?>">
                        </div>
                    </a>
                </li>
                <?php }?>
            </ul>
            <ul class="col col5">
                <?php for($i=12;$i<17;$i++){ if(!isset($vclip[$i])) break;?>
                <li>
                    <a href="<?php echo getPrayPostUrl($vclip[$i])?>">
                        <div class="tit">
                            <?php echo $vclip[$i]->postTitle?>
                        </div>
                        <div class="writer">
                            <?php echo $vclip[$i]->author?>
                        </div>
                        <div class="thumb">
                            <img src="<?php echo $vclip[$i]->postImage?>">
                        </div>
                    </a>
                </li>
                <?php }?>
            </ul>
        </div>
        <div class="container cm-pray-home-section cm-section-togeter" style="display:none">
            <ul class="col col5">
                <?php for($i=7;$i<12;$i++){if(!isset($together[$i])) break;?>
                <li>
                    <a href="<?php echo getPrayPostUrl($together[$i])?>">
                        <div class="tit">
                            <?php echo $together[$i]->postTitle?>
                        </div>
                        <div class="writer">
                            <?php echo $together[$i]->author?>
                        </div>
                        <div class="thumb">
                            <img src="<?php echo $together[$i]->postImage?>">
                        </div>
                    </a>
                </li>
                <?php }?>
            </ul>
            <ul class="col col5">
                <?php for($i=12;$i<17;$i++){ if(!isset($together[$i])) break;?>
                <li>
                    <a href="<?php echo getPrayPostUrl($together[$i])?>">
                        <div class="tit">
                            <?php echo $together[$i]->postTitle?>
                        </div>
                        <div class="writer">
                            <?php echo $together[$i]->author?>
                        </div>
                        <div class="thumb">
                            <img src="<?php echo $together[$i]->postImage?>">
                        </div>
                    </a>
                </li>
                <?php }?>
            </ul>
        </div>
        <div class="container cm-pray-home-section cm-section-story" style="display:none">
            <ul class="col col5">
                <?php for($i=7;$i<12;$i++){if(!isset($story[$i])) break;?>
                <li>
                    <a href="<?php echo getPrayPostUrl($story[$i])?>">
                        <div class="tit">
                            <?php echo $story[$i]->postTitle?>
                        </div>
                        <div class="writer">
                            <?php echo $story[$i]->author?>
                        </div>
                        <div class="thumb">
                            <img src="<?php echo $story[$i]->postImage?>">
                        </div>
                    </a>
                </li>
                <?php }?>
            </ul>
            <ul class="col col5">
                <?php for($i=12;$i<17;$i++){ if(!isset($story[$i])) break;?>
                <li>
                    <a href="<?php echo getPrayPostUrl($story[$i])?>">
                        <div class="tit">
                            <?php echo $story[$i]->postTitle?>
                        </div>
                        <div class="writer">
                            <?php echo $story[$i]->author?>
                        </div>
                        <div class="thumb">
                            <img src="<?php echo $story[$i]->postImage?>">
                        </div>
                    </a>
                </li>
                <?php }?>
            </ul>
        </div>
        <div class="container cm-pray-home-section cm-section-art" style="display:none">
            <ul class="col col5">
                <?php for($i=7;$i<12;$i++){if(!isset($art[$i])) break;?>
                <li>
                    <a href="<?php echo getPrayPostUrl($art[$i])?>">
                        <div class="tit">
                            <?php echo $art[$i]->postTitle?>
                        </div>
                        <div class="writer">
                            <?php echo $art[$i]->author?>
                        </div>
                        <div class="thumb">
                            <img src="<?php echo $art[$i]->postImage?>">
                        </div>
                    </a>
                </li>
                <?php }?>
            </ul>
            <ul class="col col5">
                <?php for($i=12;$i<17;$i++){ if(!isset($art[$i])) break;?>
                <li>
                    <a href="<?php echo getPrayPostUrl($art[$i])?>">
                        <div class="tit">
                            <?php echo $art[$i]->postTitle?>
                        </div>
                        <div class="writer">
                            <?php echo $art[$i]->author?>
                        </div>
                        <div class="thumb">
                            <img src="<?php echo $art[$i]->postImage?>">
                        </div>
                    </a>
                </li>
                <?php }?>
            </ul>
        </div>

    </main>


    <?php $this->load->view('templates/pray/pray-footer')?>
    <?php $this->load->view('templates/pray/pray-foot')?>

</body>

</html>