<?php if ( $val["data"]["citacion_tipo"] == 2 ) { ?> <?php echo html_entity_decode(htmlspecialchars(stripslashes($val["data"]["citacion_email"]))); ?> <?php } ?> </div> </li> <?php } // +----------------------------------------------------------------------+ // | Historial | // +----------------------------------------------------------------------+ if ( $var_historial == true and $val['tipo'] == "historial" ) { if ( $val["data"]["derivado"] != 0 ) { $sector = getSector($val["data"]["derivado"]); // staff $derivador = getStaff( $val["data"]["staff_id"] ); $derivador_staff = utf8_encode($derivador["nombre"]); // titulo $title = 'Derivado a '. utf8_encode($seccion_res["nombre"]) . " desde " . utf8_encode($sector["nombre"]) . ", por <b>". $derivador_staff ."</b>"; $icon = 'replies'; ?> <li class="<?php echo $li_active; ?>"> <div class="timeline-icon"><i class="gi gi-share"></i></div> <div class="timeline-time"><?php echo date("d-m-Y",strtotime($val["data"]["fecha"])); ?> <strong><?php echo date("H:i",strtotime($val["data"]["fecha"])); ?></strong></div> <div class="timeline-content"> <p class="push-bit"><strong>Derivación</strong></p> <?php echo $title; ?> </div> </li>
<?php /** * The template for displaying default pages * * @package WordPress * @subpackage Tatton */ $sector = getSector(); get_header(); while (have_posts()) { the_post(); // check for acf flexible content if (have_rows('main_modules')) { while (have_rows('main_modules')) { the_row(); // test for layout types and include relevant template switch (get_row_layout()) { case 'hero_large': include 'partials/hero-large.php'; break; case 'hero': include 'partials/hero.php'; break; case 'excerpt': include 'partials/excerpt.php'; break; case 'page_content': include 'partials/content.php'; break; case 'services':