<div class="sidebar">

    <div class="ad gap-bottom-sm"><a href=""><img
                src="https://crossmap.co.kr/files/advertisement/2019/04/b65bc12d9a44a20ea93b4680a800652c.png" alt=""
                width="300" height="260"></a></div>

    <div class="lineBox cm-pray-banner-together">
        <?php foreach($together as $k=>$t) { if($k==4)break;?>
        <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" style="display:none">
            <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>

    <!--함께하기-->
    <div class="sideBox pt20">
        <div class="titleBox">
            <ul>
                <li><a href="#">함께 하기</a></li>
            </ul>
        </div>
        <ul class="sideImg">
            <?php foreach($together as $k=>$t) { if($k<4 || $k>7)continue;?>
            <li>
                <div>
                    <a href="<?php echo getPrayPostUrl($t)?>"><img src="<?php echo $t->postImage?>"></a>
                </div>
                <h5><a href="<?php echo getPrayPostUrl($t)?>"><?php echo $t->postTitle?></a></h5>
            </li>
            <?php }?>
        </ul>
    </div>

    <!--기도 X Art-->
    <div class="sideBox pt20 btop">
        <div class="titleBox">
            <ul>
                <li><a href="#">기도 X ART</a></li>
            </ul>
            <div class="contBar cm-side-art-ind">
                <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>
        <ul class="sideImg">
            <li class="cm-side-art side-art-view0">
                <div>
                    <a href="<?php echo getPrayPostUrl($art[0])?>"><img src="<?php echo $art[0]->postImage?>"></a>
                </div>
                <h5><a href="<?php echo getPrayPostUrl($art[0])?>"><?php echo $art[0]->postTitle?></a>
                </h5>
            </li>
            <li class="cm-side-art side-art-view0">
                <div>
                    <a href="<?php echo getPrayPostUrl($art[1])?>"><img src="<?php echo $art[1]->postImage?>"></a>
                </div>
                <h5><a href="<?php echo getPrayPostUrl($art[1])?>"><?php echo $art[1]->postTitle?></a>
                </h5>
            </li>
            <li class="cm-side-art side-art-view1" style="display:none">
                <div>
                    <a href="<?php echo getPrayPostUrl($art[2])?>"><img src="<?php echo $art[2]->postImage?>"></a>
                </div>
                <h5><a href="<?php echo getPrayPostUrl($art[2])?>"><?php echo $art[2]->postTitle?></a>
                </h5>
            </li>
            <li class="cm-side-art side-art-view1" style="display:none">
                <div>
                    <a href="<?php echo getPrayPostUrl($art[3])?>"><img src="<?php echo $art[3]->postImage?>"></a>
                </div>
                <h5><a href="<?php echo getPrayPostUrl($art[3])?>"><?php echo $art[3]->postTitle?></a>
                </h5>
            </li>
            <li class="cm-side-art side-art-view2" style="display:none">
                <div>
                    <a href="<?php echo getPrayPostUrl($art[4])?>"><img src="<?php echo $art[4]->postImage?>"></a>
                </div>
                <h5><a href="<?php echo getPrayPostUrl($art[4])?>"><?php echo $art[4]->postTitle?></a>
                </h5>
            </li>
            <li class="cm-side-art side-art-view2" style="display:none">
                <div>
                    <a href="<?php echo getPrayPostUrl($art[5])?>"><img src="<?php echo $art[5]->postImage?>"></a>
                </div>
                <h5><a href="<?php echo getPrayPostUrl($art[5])?>"><?php echo $art[5]->postTitle?></a>
                </h5>
            </li>
            <li class="cm-side-art side-art-view3" style="display:none">
                <div>
                    <a href="<?php echo getPrayPostUrl($art[6])?>"><img src="<?php echo $art[6]->postImage?>"></a>
                </div>
                <h5><a href="<?php echo getPrayPostUrl($art[6])?>"><?php echo $art[6]->postTitle?></a>
                </h5>
            </li>
            <li class="cm-side-art side-art-view3" style="display:none">
                <div>
                    <a href="<?php echo getPrayPostUrl($art[7])?>"><img src="<?php echo $art[7]->postImage?>"></a>
                </div>
                <h5><a href="<?php echo getPrayPostUrl($art[7])?>"><?php echo $art[7]->postTitle?></a>
                </h5>
            </li>

        </ul>
    </div>

    <!--기도 & STORY-->
    <div class="sideBox pt20 btop">
        <div class="titleBox">
            <ul>
                <li><a href="#">기도 & STORY</a></li>
            </ul>
        </div>
        <ul class="sideImg">
            <?php foreach($story as $k=>$t) { if($k==4)break;?>
            <li>
                <div>
                    <a href="<?php echo getPrayPostUrl($t)?>"><img src="<?php echo $t->postImage?>"></a>
                </div>
                <h5><a href="<?php echo getPrayPostUrl($t)?>"><?php echo $t->postTitle?></a></h5>
            </li>
            <?php }?>
        </ul>
    </div>

    <!--banner-->
    <div class="pt20 btop">
        <div class="ad gap-bottom-sm"><a href=""><img src="<?php echo THEME_FOLDER ?>/img/bn-300-webtoon.jpg" alt=""
                    width="300"></a>
        </div>

        <div class="ad gap-bottom-sm"><a href=""><img src="<?php echo THEME_FOLDER ?>/img/bn-300-grace.jpg" alt=""
                    width="300"></a>
        </div>
    </div>

</div>