<li> <span class="icon-weather-04"> <img src="http://yastatic.net/weather/i/icons/svg/<?php echo $xml['day'][4]['day_part'][2]['image-v3']; ?> .svg" title="<?php echo $xml['day'][4]['day_part'][2]['weather_type']; ?> "> <span class="visually-hidden"><?php echo $xml['day'][4]['day_part'][2]['weather_type']; ?> </span> </span> <span class="day"><?php echo getDayString(date('w', strtotime($xml['day'][4]['@attributes']['date']))); ?> </span> <span class="temperature high-temperature"><span class="visually-hidden">Наивысшая температура</span><?php echo $xml['day'][4]['day_part'][2]['temperature-data']['avg']; ?> С°</span> <span class="temperature low-temperature"><span class="visually-hidden">Низшая температура</span><?php echo $xml['day'][4]['day_part'][4]['temperature-data']['avg']; ?> С°</span> </li> </ul> </div> </div>
<ul class="forThreeDay"> <li> <span class="day"><?= getDayString(date('w', strtotime($xml['day'][1]['@attributes']['date']))); ?></span> <span class="icon-weather-01"> <img src="http://yastatic.net/weather/i/icons/svg/<?= $xml['day'][1]['day_part'][2]['image-v3']; ?>.svg" title="<?= $xml['day'][1]['day_part'][2]['weather_type']; ?>"> </span> <span><?= $xml['day'][1]['day_part'][2]['temperature-data']['avg']; ?> С° - <?= $xml['day'][1]['day_part'][4]['temperature-data']['avg']; ?> С°</span> </li> <li> <span class="day"><?= getDayString(date('w', strtotime($xml['day'][2]['@attributes']['date']))); ?></span> <span class="icon-weather-02"> <img src="http://yastatic.net/weather/i/icons/svg/<?= $xml['day'][2]['day_part'][2]['image-v3']; ?>.svg" title="<?= $xml['day'][2]['day_part'][2]['weather_type']; ?>"> </span> <span><?= $xml['day'][2]['day_part'][2]['temperature-data']['avg']; ?> С° - <?= $xml['day'][2]['day_part'][4]['temperature-data']['avg']; ?> С°</span> </li> <li> <span class="day"><?= getDayString(date('w', strtotime($xml['day'][3]['@attributes']['date']))); ?></span> <span class="icon-weather-03"> <img src="http://yastatic.net/weather/i/icons/svg/<?= $xml['day'][3]['day_part'][2]['image-v3']; ?>.svg" title="<?= $xml['day'][3]['day_part'][2]['weather_type']; ?>"> </span> <span><?= $xml['day'][3]['day_part'][2]['temperature-data']['avg']; ?> С° - <?= $xml['day'][3]['day_part'][4]['temperature-data']['avg']; ?> С°</span> </li> </ul> </div> </div> </div> <?php } catch (Exception $e) { echo 'Выброшено исключение: ', $e->getMessage(), "\n"; } ?>
<?php } ?> </div> <?php foreach ($items as $key => $diary) { if (!$key) { continue; } $date = mysql_to_unix($diary->date); ?> <div class="open-second"> <div class="widget-article"> <div class="article-date"> <small class="day"><?php echo getDayString(date('N', $date)); ?> </small><small class="monthyear"><?php echo date('d/m', $date); ?> </small><small class="hour"><?php echo date('H:i', $date); ?> hs.</small> </div> <div class="article-content"> <?php if ($diary->label) { ?> <span class="category"><?php echo $diary->label;
?> opinion"><img src="<?php echo layout('ico/header/reviews.png'); ?> " alt="Opinión" /></a> <a ga-event="Click,Header,Icono Transito" <?php echo $this->Data->clientID ? 'target="_blank"' : ""; ?> title="Estado del tránsito" class="bus app-tooltip" href="<?php echo $this->config->item('link-infonews', 'app'); ?> transito"><img src="<?php echo layout('ico/header/transito.png'); ?> " alt="Estado del tránsito" /></a> <div class="header-date"> <p><?php echo getDayString(date('N'), true); ?> <span><?php echo date('d'); ?> de <?php echo getMonthString(date('m'), true); ?> </span> de <?php echo date('Y'); ?> </p> </div> </div>
?> <div itemprop="datePublished" content="<?php echo getDayString(date('N', $unix)); ?> <?php echo date('d', $unix); ?> de <?php echo getMonthString(date('m', $unix)); ?> <?php echo " de " . date('Y', $unix); ?> " class="date-bar"> <p ga-event="Click,Nota Header,Intenta interactuar con la fecha"><?php echo getDayString(date('N', $unix)); ?> <span><?php echo date('d', $unix); ?> de <?php echo getMonthString(date('m', $unix)); ?> </span><?php echo date('Y', $unix) != date('Y') ? " de " . date('Y', $unix) : ""; if ($article->show_hour) { ?> | <?php echo $article->hour; } ?>