<!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>
        </div>

        <div class="container pt30">
            <div class="layout-blog">
                <div class="leftCont">
                    <div class="profileBox">
                        <ul>
                            <?php foreach($pages as $p) {?>
                            <li>
                                <div class="cover_profile3">
                                    <div
                                        style="background:url('<?php echo getImageUrl($p->pageIcon)?>') no-repeat center; background-size:cover;">
                                    </div>
                                </div>
                                <div class="blue"><a href="#"><?php echo $p->pageTitle?></a></div>
                            </li>
                            <?php }?>
                        </ul>
                    </div>

                    <div class="togetherBox">
                        <ul>
                            <?php foreach($posts as $p) { ?>
                            <li>
                                <a class="thumbLeft" href="#">
                                    <img src="<?php echo $p->postImage?>">
                                </a>
                                <div class="contBox">
                                    <h4><a href="<?php echo $this->uri->segment(2). '/'. $p->postID?>"><?php echo $p->postTitle?></a></h4>
                                    <p><?php echo $p->postExcerpt?></p>
                                    <div class="blue"><?php echo $p->pageTitle?></div>
                                    <div class="icBox">
                                        <a href="#"><img src="<?php echo THEME_FOLDER?>/img/ic-heart-b.gif">
                                            3 </a>
                                        <a href="#"><img src="<?php echo THEME_FOLDER?>/img/ic-comments.gif"> 9 </a>
                                        <a href="#"><img src="<?php echo THEME_FOLDER?>/img/ic-share.gif"></a>
                                    </div>
                                </div>
                            </li>
                            <?php  }?>
                        </ul>


                    </div>
                    <!--pagenumber- >
                    <div class="pagenumber">
                        <a class="current">1</a>
                        <a href="/web/news/?search_sort=1&amp;page=2">2</a>
                        <a href="/web/news/?search_sort=1&amp;page=3">3</a>
                        <a href="/web/news/?search_sort=1&amp;page=4">4</a>
                        <a href="/web/news/?search_sort=1&amp;page=5">5</a>
                        <a href="/web/news/?search_sort=1&amp;page=6">6</a>
                        <a href="/web/news/?search_sort=1&amp;page=7">7</a>
                        <a href="/web/news/?search_sort=1&amp;page=8">8</a>
                        <a href="/web/news/?search_sort=1&amp;page=9">9</a>
                        <a href="/web/news/?search_sort=1&amp;page=10">10</a>
                        <a href="/web/news/?search_sort=1&amp;page=11"><img
                                src="http://crossmap.co.kr/img/web/mypage_arrow_right.gif"></a>
                    </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')?>

</body>

</html>