<!DOCTYPE html>
<html lang="ko">
<head>
<?php $this->load->view('partial/head')?>
<link rel="stylesheet" href="/ART/grace/css/default.css">
</head>
<body>
    <style>
    .channel_header {
        background: url(<?php echo imgSrc($editor->main_img)?>) no-repeat center
    }
    </style>
    <?php $this->load->view('partial/sidemenu')?>
    <?php $this->load->view('partial/header')?>
    <!-- //header -->
    <main class="pb50">

        <section id="channel_header">
            <div class="channel_header">
                <div class="container">
                    <div class="row">
                        <div class="txtbox">
                            <div class="img"><img src="<?php echo imgSrc($editor->partner_img)?>" alt=""></div>
                            <h3><?php echo $editor->partner_name?></h3>
                            <p><?php echo $editor->partner_intro?></p>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- post_listbox -->
        <section id="post_listbox" class="cm-more-enabled" data-post-ids="<?php echo implode(',', $pageInitPostIds)?>" data-page-type="editor">
            <div class="container">
                <div class="row">
                    <div class="post_listbox">
                        <div class="tit">
                            <h2>전체포스트</h2>
                            <div class="fillter">
                                <span><a class="<?php echo $isLikesOrder ? '': 'select'?>" href="/grace/editor/<?php echo cleanUrl($editor->partner_name)?>/<?php echo $editor->idx?>">업데이트순</a></span>
                                <span><a class="<?php echo $isLikesOrder ? 'select': ''?>" href="/grace/editor/<?php echo cleanUrl($editor->partner_name)?>/<?php echo $editor->idx?>/likes">좋아요순</a></span>
                            </div>
                        </div>
                        <ul>
                            <?php foreach ($posts as $p) {?>
                            <li>
                                <div class="box"><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx ?>"><img
                                            src="<?php echo imgSrc($p->mainImg) ?>" alt=""></a></div>
                                <div class="txtbox">
                                    <span class="editor_img"><a href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId ?>"><img
                                                src="<?php echo imgSrc($p->editorImg) ?>" alt=""></a></span>
                                    <dl>
                                        <dd class="editor_txt"><a
                                                href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId ?>"><?php echo $p->editorName ?></a>
                                        </dd>
                                        <dt><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx ?>"><?php echo $p->title ?></a></dt>

                                    </dl>
                                    <span class="info">
                                        <span class="hit">조회수 <?php echo $p->views ?>회</span>
                                        <span class="reple">댓글 <?php echo $p->comments ?>회</span>
                                    </span>
                                </div>
                            </li>
                            <?php }?>

                        </ul>


                    </div>
                </div>
            </div>

        </section>
        <!-- //post_listbox -->

    </main>
    <!-- footer -->
    <?php $this->load->view('partial/footer')?>
    <script src="/ART/grace/js/living_slide.js"></script>
</body>

</html>