Viewing file: _evento.php (6.9 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include "load_ipanel.php"; $eventoCtrl = new GenericCtrl("Evento"); $evento = $eventoCtrl->getObject((is_numeric($_GET['id']) ? $_GET['id'] : "")); $fotoCtrl = new GenericCtrl("Foto"); $fotos = $fotoCtrl->getObjectByFields(array("local", "regId"), array("eventos", (is_numeric($_GET['id']) ? $_GET['id'] : ""))); ?> <!DOCTYPE HTML> <html lang="pt-br"> <?php include "mod_head.php" ?> <meta property="og:title" content="<?= $evento['titulo'] ?>" /> <meta property="og:site_name" content="Arpen PR"/> <meta property="og:type" content="website" /> <meta property="og:url" content="http://www.arpenpr.org.br/evento/<?= $evento['id'] ?>" /> <meta property="og:description" content="<?= strip_tags($evento['descricao']) ?>" /> <meta property="fb:app_id" content="966242223397117" /> <?php if (!empty($evento["imagem"])){ ?> <meta property="og:image" content="http://www.arpenpr.org.br/ipanel/uploads/eventos/<?= $evento['id']."/".$evento['imagem'] ?>" /> <?php } ?> <body class="homepage"> <div id="page-wrapper"> <?php include "mod_login.php" ?> <?php include "mod_menu.php" ?>
<div id="banner-wrapper"> <div id="banner" class="container"> <div class="row"> <h2 class="titulo_page">EVENTO: <?= $evento['titulo'] ?></h2> </div> </div> </div>
<!-- Banners -->
<div class="wrapper-style1 wrapper-featured"> <div class="container"> <div class="row"> <div class="12u"> <div id="cont_esq"> <div id="box_principal"> <h2 class="titulo_page"><?= $evento['titulo']?></h2> <?php if($evento['dataIni'] == $evento['dataFim']){ $dataEvento = $data->convertDateSQLToDateBR($evento['dataIni']); }else{ $dataEvento = substr($data->convertDateSQLToDateBR($evento['dataIni']), 0, 5)." � ".substr($data->convertDateSQLToDateBR($evento['dataFim']), 0, 5); } ?> <p id="noticia_data_publicacao"> <?= $dataEvento. (!empty($evento['local']) ? " - <strong>Local: ".$evento['local']."</strong> " : " ") ?> </p> <p id="noticia_data_publicacao">Inscrições de <?= $data->convertDateSQLToDateBR($evento['inicioInscricao'])." até ".$data->convertDateSQLToDateBR($evento['finalInscricao']) ?> <?= (!empty($evento['vagas']) && $evento['vagas'] > 0) ? " | <strong>".$evento['vagas']."</strong> vagas" : ""?></strong></p> <p><?= $evento['descricao'] ?></p> <?php if(!empty($evento['banner']) && file_exists("ipanel/uploads/eventos/".$evento['id']."/".$evento['banner'])) { echo '<a title="'.$evento['titulo'].'" href="ipanel/uploads/eventos/'.$evento['id'].'/'.$evento['banner'].'" class="lytebox" data-lyte-options="group:galeria">'; echo '<img src="ipanel/uploads/eventos/'.$evento['id'].'/'.$evento['banner'].'" alt="" class="image-noticia"></img>'; echo "</a>"; } echo "<div style=\"clear:both\"></div>"; if(!empty($evento['folder']) && file_exists("ipanel/uploads/eventos/".$evento['id']."/".$evento['folder'])) { echo '<a title="'.$evento['titulo'].'" href="ipanel/uploads/eventos/'.$evento['id'].'/'.$evento['folder'].'" class="lytebox" data-lyte-options="group:galeria">'; echo '<img src="ipanel/uploads/eventos/'.$evento['id'].'/'.$evento['folder'].'" alt="Folder do Evento" class="image-noticia"></img>'; echo "</a>"; } echo "<div style=\"clear:both\"></div>";
?> <div id="noticia_texto"> <?php if(count($fotos) > 0){ echo "<h2 class=\"titulo_page\"> Confira como foi:</h2>"; echo "<div style=\"clear:both\"></div>"; foreach($fotos as $foto){ if(empty($foto['legenda'])){ $legenda = ($evento['titulo']); }else{ $legenda = $foto['legenda']; } echo '<a title="'.$legenda.'" href="ipanel/uploads/eventos/'.$evento['id'].'/big_'.$foto['nome'].'" class="lytebox" data-lyte-options="group:galeria">'; echo '<img src="ipanel/uploads/eventos/'.$evento['id'].'/thumb_'.$foto['nome'].'" alt="'.$legenda.'" style="padding: 6px; float:left">'; echo '</a>'; } echo "</p>"; } ?> </div> <div style="clear: both"></div> </br> <div id="envia_amigo"> <div class="addthis_inline_share_toolbox"></div> </div> </div><!--fecha a div "box_principal"--> </div> </div> </div> </div> </div>
<?php include "mod_footer.php" ?>
</div> </body> </html> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-57d7f60bffd7cd6e"></script> <?php include "scripts.php" ?>
|