Esempio n. 1
0
<?php

include_once 'core/ofertas-core.php';
$Ofertas = new Ofertas();
$Ofertas->listaOfertasAdmin();
if ($dadosOfertas = $Ofertas->obterOfertas()) {
    ?>

<h3>Listando ciclos de ofertas já cadastrados</h3>
<br />
    <table class="wp-list-table widefat fixed pages" cellspacing="0" style="width:95%;">
            <thead>
                <tr>
                    <th>
                        Informações
                    </th>
                    <th>
                        Mês
                    </th>
                    <th>
                        Ciclo
                    </th>
                    <th>
                        Ações
                    </th>
                 </tr>
            </thead>
            <tbody>
                <?php 
    foreach ($dadosOfertas as $dadosOfertas) {
        ?>
Esempio n. 2
0
<?php

/**
 * Template Name: Ofertas
 */
get_header();
include_once 'wp-content/plugins/ofertas/core/ofertas-core.php';
$Ofertas = new Ofertas();
$dadosOfertas = $Ofertas->obterOfertas('', 'ativa');
?>

        <div class="meio clearfix">
	        <div class="conteudo-1005">
	        <?php 
while (have_posts()) {
    the_post();
    ?>
	        	<div class="titulo-ofertas">
		        	<h2>Tablóide de Ofertas</h2>
	        	</div>
	        	<div class="conteudo clearfix">
	        	
               <?php 
    if ($dadosOfertas) {
        foreach ($dadosOfertas as $ofertas) {
            ?>
                      <div class="oferta">
                          <div class="mes-atual" style="display:none;">
                                <?php 
            echo $ofertas->mes;
            ?>