{% set slug = page.header.slug %} {% set entry = grav.db.connection('mysql').fetchRow("SELECT * FROM directorio WHERE slug = ?", [slug]) %} {% set today = "now"|date("D")|lower[:3] %} {% if entry %}
{% if entry.logo %} {% endif %}
{{ entry.name }}
{{ entry.category }}
{% if entry.address %}
{{ entry.address }}
{% endif %} {% if entry.phone %}
{{ entry.phone }}
{% endif %} {% set hours = entry.hours ? entry.hours|json_decode : {} %} {% if hours %}