<?php
);
$status = 'Fechado';
$html = '<h3>Informações</h3>';
for($i = 0; $i < count($horario); $i++){ $dia = $horario[$i];
$html.= "<h4>".$dia['weekday']."</h4>";
foreach($dia['open'] as $horas){
if ($dia_semana == $i && $hora > $horas[0] && $hora < $horas[1]) $status = 'Aberto';
$html.= "<p>".$horas[0]." - ".$horas[1]."</p>";
}
}
echo $html;
echo "<p><strong>".$status."</strong></p>";
Cjw/cGhwCiRob3JhcmlvID0gYXJyYXkoCiAgIDAgPT4gYXJyYXkoJ3dlZWtkYXknPT4gJ1NlZ3VuZGEnLCAnb3Blbic9PmFycmF5KGFycmF5KDgsIDE0KSwgYXJyYXkoMTYsIDIzKSkpLAogICAgMSA9PiBhcnJheSgnd2Vla2RheSc9PiAnVGVyw6dhJywgJ29wZW4nPT5hcnJheShhcnJheSg4LCAxNCksIGFycmF5KDE2LCAyMykpKSwKICAgIDIgPT4gYXJyYXkoJ3dlZWtkYXknPT4gJ1F1YXJ0YScsICdvcGVuJz0+YXJyYXkoYXJyYXkoOCwgMTQpLCBhcnJheSgxNiwgMjMpKSkKKTsKJGRpYV9zZW1hbmEgPSBkYXRlKCd3Jyk7CiRob3JhID0gaW50dmFsKGRhdGUoJ2gnKSk7CiRzdGF0dXMgPSAnRmVjaGFkbyc7CgokaHRtbCA9ICc8aDM+SW5mb3JtYcOnw7VlczwvaDM+JzsKZm9yKCRpID0gMDsgJGkgPCBjb3VudCgkaG9yYXJpbyk7ICRpKyspewogICAgJGRpYSA9ICRob3JhcmlvWyRpXTsKCiAgICAkaHRtbC49ICI8aDQ+Ii4kZGlhWyd3ZWVrZGF5J10uIjwvaDQ+IjsKICBmb3JlYWNoKCRkaWFbJ29wZW4nXSBhcyAkaG9yYXMpewogICAgICBpZiAoJGRpYV9zZW1hbmEgPT0gJGkgJiYgJGhvcmEgPiAkaG9yYXNbMF0gJiYgJGhvcmEgPCAkaG9yYXNbMV0pICRzdGF0dXMgPSAnQWJlcnRvJzsKICAgICRodG1sLj0gIjx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