 <div id="conteudo">

            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12">
                        <header>
                            <div class="row">
                                <div class="col-sm-6">
                                    <h1 class="h2">Agenda</h1>
                                </div>

                                <!-- <div class="col-sm-3 col-xs-5 text-right label-busca">
                                    <p style="margin: 6px 0 4px;">Categoria:</p>
                                </div>

                                <div class="col-sm-3 col-xs-7 select-busca">
                                    <form action="#">
                                        <select name="" id="input" class="form-control" required="required">
                                            <option value="">Selecione</option>
                                            <option value="">Selecione</option>
                                            <option value="">Selecione</option>
                                            <option value="">Selecione</option>
                                        </select>
                                    </form>
                                </div> -->
                            </div>
                        </header>

                        <div class="row navegacao">
                            <div class="col-sm-12">
                                <div class="btn-group" role="group" aria-label="...">
                                  <a class="<?=(empty($this->old) ? 'active' : '')?> btn btn-blue outline" href="<?=BASE_URL?>eventos" role="button">Próximos eventos</a>
                                  <a class="<?=(!empty($this->old) ? 'active' : '')?> btn btn-blue outline" href="<?=BASE_URL?>eventos/lista?old=1" role="button">Eventos passados</a>
                                </div>
                            </div>
                        </div>

                        <div class="row grade com-borda lg">

                            <div class="col-sm-12">
                                <?php 
                                if($this->items->count() == 0){
                                    echo '<div class="alert alert-info">Nenhum item encontrado</div>';
                                }
                                foreach ($this->items as  $agenda) {
                                    $data = implode('/', array_reverse(explode('-', $agenda->data)) );
                                    $url = BASE_URL.'eventos/ver/'.$agenda->id.'-'.Pampa_Util_String::url($agenda->titulo);
                                
                                ?>
                                <article class="item noticia">

                                    <div class="row">

                                        <div class="col-sm-7">
                                            <header>
                                                <time class="agenda"><p><?=$data?></p></time>
                                                <h3><a href="<?=$url?>"><?=$agenda->titulo?></a></h3>
                                                <p><?= $this->cropText(strip_tags($agenda->texto),150,'…')?></p>
                                            </header>

                                            <div class="meta">
                                                <?php //(empty($this->old) ? '<a class="btn btn-orange btn-inscricao" href="'.$url.'" role="button">Inscreva-se</a>' : '')?>
        
                                                

                                                <a class="btn btn-orange btn-sm inverse hidden-xs" href="<?=$url?>" role="button">Leia mais</a>

                                                <ul class="social small bw">
                                                    <li class="facebook">
                                                    <a target="_blank" href="https://www.facebook.com/dialog/share?app_id=212441672592866&display=popup&href=<?=$url?>&redirect_uri=<?=$url?>"><img src="assets/images/icone-facebook.svg" alt=""></a>
                                                </li>

                                                <li class="linkedin">
                                                    <a  target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=<?=$url?>
&summary=<?=$agenda->titulo?>&source=LinkedIn"><img src="assets/images/icone-linkedin.svg" alt=""></a>
                                                </li>

                                                <li class="twitter">
                                                    <a  target="_blank" href="https://twitter.com/share?url=<?=$url?>&via=ceped&related=ceped&hashtags=ceped&text=<?=$agenda->titulo?>"><img src="assets/images/icone-twitter.svg" alt=""></a>
                                                </li>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>

                                </article>

                                <?php 
                            }
                                ?>

                                
                            </div>

                        </div>
                        <?php 
                        echo $this->paginationControl($this->items, null, '_paginator.phtml', array("filters" => $this->filters));

                        
                        ?>

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

        </div>
