Source

BlogCI / application / views / admin / posts / index.php

Full commit
<div>
    <a href="<?php echo site_url('admin/posts/novo'); ?>" class="botao">Novo post</a>
</div>

<?php foreach ($posts as $p) : ?>
    <div class="lista">
        <a href="<?php echo site_url('admin/posts/editar/'.$p->id); ?>" class="botao fdireita">
            Editar
        </a>
        <h2>
            <a href="<?php echo site_url('posts/post/'.$p->url); ?>">
                <?php echo $p->titulo; ?>
            </a>
        </h2>
        <p>
            <em>
                Publicado por: <?php echo $p->autor; ?> em
                <?php echo formatar_data_exibicao($p->publicacao); ?>
            </em>
        </p>
    </div>
<?php endforeach; ?>