<div class="container" id="links">
    <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
            <h2>Newsletters</h2>
        </div>
    </div>
    <div class="row">
        <!--        listagem-->
        <div class="col-xs-12">

            <div class="row mb30">

                <?php foreach ($this->newsletters as $newsletter): ?>

                <div class="col-lg-2 col-md-2 col-sm-3 col-xs-6 newsletter" style="margin-bottom: 20px;">

                        
                        <div class="mes">
                            <img class="mb10" src="<?php echo base_url('resources/images/general/newsletter.png') ?>" alt="Newsletter" />
                            <h2><?php 
                            echo strftime("%b", strtotime( $newsletter['data'])).'<br/>'.strftime("%Y", strtotime( $newsletter['data'] ));
                            ?></h2>
                        </div>
                        <div class="download">
                            <a href="<?php echo base_url('resources/newsletters/' . $newsletter['recurso_path']) ?>" target="_blank" class="download"><?php echo $this->lang->line('Download'); ?></a>
                        </div>
                        
                    </div>

                <?php endforeach; ?>

            </div>
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12">
                    <div class="paginacao">
                        <?php echo $this->pagination->create_links(); ?>  
                    </div>
                </div>
            </div>


        </div>

    </div>

</div>