<!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">
        <!--Subheader-->
        <div class="subHeader">
            <div class="container">
                여러분의 기도제목을 함께 나누세요~
                <div class="bible">모든 기도와 간구를 하되 항상 성령 안에서 기도하고 이를 위하여 깨어 구하기를 항상 힘쓰며 여러 성도를 위하여 구하라(에베소서 6:18)</div>
            </div>
        </div>

        <div class="container pt30">
            <div class="layout-blog">
                <div class="leftCont">
                    <div class="prayerOn on">
                        <div class="titleBox">
                            <ul>
                                <li class="blackTit"><a href="#">기도 ON</a></li>
                                <li class="grayTit"><a href="#">우리의 기도, 온에어 중!</a></li>
                            </ul>
                        </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 class="prayIcon">
                                <a class="star cm-pray-bookmark-btn"><img
                                        src="<?php echo THEME_FOLDER ?>/img/pray-star.gif">0</a>
                                <a class="like cm-pray-like-btn"><img
                                        src="<?php echo THEME_FOLDER ?>/img/pray-like.gif">0</a>
                                <a class="share cm-pray-share-btn"><img
                                        src="<?php echo THEME_FOLDER ?>/img/pray-share.gif"> </a>
                            </div>
                        </div>

                        <?php foreach ($posts as $p) { ?>
                        <div class="whiteBox" tabindex="<?php echo $p->prayID?>">
                            <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="cm-prayer"><?php echo $p->pray ?></a></p>
                            <div class="prayIcon">
                                <a class="star cm-pray-bookmark-btn"><img
                                        src="<?php echo THEME_FOLDER ?>/img/pray-star.gif"><?php echo $p->bookmarks?></a>
                                <a class="like cm-pray-like-btn"><img
                                        src="<?php echo THEME_FOLDER ?>/img/pray-like.gif"><span><?php echo $p->like?></span></a>
                                <a class="share cm-pray-share-btn"><img
                                        src="<?php echo THEME_FOLDER ?>/img/pray-share.gif"> </a>
                            </div>
                            <?php if ($p->bookmark) { ?>
                            <div class="myPray cm-pray-bookmark" style="display:none">
                                <div>찜한 기도제목</div>
                                <img src="<?php echo THEME_FOLDER ?>/img/pray-star-b.gif">
                            </div>
                            <?php } ?>
                        </div>
                        <?php } ?>

                        <!--기도제목 입력-->
                        <div class="whiteBox prayerForm">
                            <form action="" class="cm-prayon-form cm-section-prayon-frm">
                                <input type="text" name="cmprayer" id="site-head-search" placeholder="기도제목을 입력해주세요">
                                <button type="submit">입력하기</button>
                            </form>
                        </div>

                        <!--찜한 기도제목-->
                        <div class="myPray cm-pray-bookmark" style="display:none">
                            <div>찜한 기도제목</div>
                            <img src="<?php echo THEME_FOLDER ?>/img/pray-star-b.gif">
                        </div>

                    </div>
                </div>

                <?php $this->load->view('templates/pray/pray-side')?>
            </div>
        </div>




    </main>


    <?php $this->load->view('templates/pray/pray-footer') ?>
    <?php $this->load->view('templates/pray/pray-foot') ?>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/jquery.jssocials/1.4.0/jssocials.min.js"></script>
    <script src="//developers.kakao.com/sdk/js/kakao.min.js"></script>
    <script>
    $(function() {
        $.CM.v.cmShareOptions = {
            kakako: {
                title: $.CM.v.cmShareKakaoTitle,
                imageUrl: $.CM.v.cmShareKakaoImage
            }
        }
    })
    </script>
</body>

</html>