/
home2
/
reumatologia
/
public_html
/
Upload File
HOME
<?php require_once('inc_library.php'); $oEventos = new Eventos(); $oNoticias = new Noticias(); $oCursos = new CursosMiSar(); $oPage = new Page($Page, $PageSize); //$oPage = null; $filter = array(); $filter['dateEndStart'] = date('Y-m-d'); $pathToImage = 'https://misar.reumatologia.org.ar/server/public/images/courses/'; $result = $oCursos->GetAll($filter, $oPage); $arrEventosHome = $result->data; $arrEventosFiliales = $oEventos->GetAllHome(20, 226); $arrEventosAuspiciados = $oEventos->GetAllHome(20, 246); $arrAllEventos = array(); foreach ($arrEventosHome as $oEvento) { $actual = ($oEvento->dateStart <= date('Y-m-d') && $oEvento->dateEnd >= date('Y-m-d')); $arrAllEventos[] = [ 'dateStart' => $oEvento->dateStart, 'type' => 'misar', 'object' => $oEvento, 'actual' => $actual ]; } foreach ($arrEventosFiliales as $oEvento) { $actual = ($oEvento->dateStart <= date('Y-m-d') && $oEvento->dateEnd >= date('Y-m-d')); $arrAllEventos[] = [ 'dateStart' => $oEvento->Fecha, 'type' => 'branches', 'object' => $oEvento, 'actual' => $actual ]; } foreach ($arrEventosAuspiciados as $oEvento) { $actual = ($oEvento->dateStart <= date('Y-m-d') && $oEvento->dateEnd >= date('Y-m-d')); $arrAllEventos[] = [ 'dateStart' => $oEvento->Fecha, 'type' => 'sponsored', 'object' => $oEvento, 'actual' => $actual ]; } usort($arrAllEventos, function($a, $b) { return strcmp($a['dateStart'], $b['dateStart']); }); $arrNoticiasSAR = $oNoticias->GetAll(array('IdCategoria' => 218), new Page(0, 6)); $arrNoticias = $oNoticias->GetAll(array('NotIdCategoria' => 218, 'NotIdCategoria2' => 220), new Page(0, 6)); $arrDestacados = $oNoticias->GetAll(array('NotIdCategoria' => 218, 'Destacado' => '1', 'NotIdCategoria2' => 220), new Page(0, 1)); if ($arrDestacados) $oLastNoticia = $arrDestacados[0]; else $oLastNoticia = $arrNoticias[0]; ?> <!DOCTYPE html> <html lang="zxx" class="shop"> <?php include('ssi_head.php'); ?> <body> <div class="body"> <?php include('ssi_header.php'); ?> <div role="main" class="main"> <?php include('ssi_slider_dinamico.php'); ?> <?php /* include('ssi_codigo_comentado.php'); */ ?> <?php include('ssi_agenda_home.php'); ?> <?php if ($arrNoticias) { ?> <section class="section bg-light-5" style="background: #deebff !important"> <div class="container"> <div class="row text-center pb-2 mb-4"> <div class="col"> <div class="overflow-hidden"> <h2 class="font-weight-bold appear-animation" data-appear-animation="maskUp" data-appear-animation-delay="200">Novedades</h2> </div> </div> </div> <div class="row"> <div class="col"> <div class="owl-carousel owl-theme dots-style-1 nav-style-3 appear-animation" data-plugin-options="{'responsive': {'0': {'items': 1}, '576': {'items': 1}, '768': {'items': 3}, '979': {'items': 4}, '1199': {'items': 3}}, 'dots': true, 'nav': false, 'loop': false, 'navtext': [], 'margin': 30}" data-appear-animation="fadeInUpShorter" data-appear-animation-delay="300"> <?php foreach ($arrNoticias as $oNoticia) { ?> <div> <div class=" mb-4"> <div class="image-frame image-frame-style-1 image-frame-effect-1 mb-4"> <span class="image-frame-wrapper"> <img src="<?= Noticia::PathImageBig . $oNoticia->Imagen ?>" class="img-fluid" alt="<?= $oNoticia->Titulo ?>"> <span class="image-frame-inner-border"></span> <span class="image-frame-action image-frame-action-effect-1 image-frame-action-sm"> <a href="noticias_detalle.php?IdNoticia=<?= $oNoticia->IdNoticia ?>"> <span class="image-frame-action-icon"> <i class="lnr lnr-link text-color-light"></i> </span> </a> </span> </span> </div> <!-- <span class="top-sub-title text-color-primary"><?= str_replace('-', '/', CambiarFecha($oNoticia->Fecha)) ?></span> --> <a href="noticias_detalle.php?IdNoticia=<?= $oNoticia->IdNoticia ?>"><h3 class="font-weight-bold text-4 mb-0"><?= $oNoticia->Titulo ?></h3></a> </div> </div> <?php } ?> </div> </div> </div> </div> </section> <?php } ?> <?php include('ssi_publicaciones.php'); ?> <?php include('ssi_sponsors.php'); ?> </div> <?php include('ssi_footer.php'); ?> </div> <?php include('ssi_script.php'); ?> <script type="text/javascript" src="vendor/jquery.countdown/jquery.countdown.min.js"></script> <?php /* include('ssi_popup_js.php'); */ ?> </body> </html>