<!-- Footer -->
{{ $data := index .Site.Data .Site.Language.Lang }}
<footer id="footer">
    {{ with $data.contactinfo.contactformaction }}
    <section>
      <form method="post" action="{{ . }}">
        <div class="fields">
          <div class="field">
            <label for="name">{{ i18n "CONTACT_FORM_FIELD_NAME" . }}</label>
            <input type="text" name="name" id="name" />
          </div>
          <div class="field">
            <label for="email">{{ i18n "CONTACT_FORM_FIELD_EMAIL" . }}</label>
            <input type="text" name="email" id="email" />
          </div>
          <div class="field">
            <label for="message">{{ i18n "CONTACT_FORM_FIELD_MESSAGE" . }}</label>
            <textarea name="message" id="message" rows="3"></textarea>
          </div>
        </div>
        <ul class="actions">
          <li><input type="submit" value='{{ i18n "CONTACT_FORM_SUBMIT_SEND_MESSAGE" . }}' /></li>
        </ul>
      </form>
    </section>
    {{ end }}
    <section class="split contact">
        {{ with $data.contactinfo.address }}
        <section class="alt">
            <h3>{{ i18n "CONTACT_ADDRESS" . }}</h3>
            <p>
                {{ range $i, $e := . }}
                    {{ if $i }} <br/> {{ end }} {{ .line }}
                {{ end }}
            </p>
        </section>
        {{ end }}
        {{ with $data.contactinfo.phone }}
        <section>
            <h3>{{ i18n "CONTACT_PHONE" . }}</h3>
            <p><a href="tel:{{ . }}">{{ . }}</a></p>
        </section>
        {{ end }}
        {{ with $data.social }}
        <section>
            <h3>{{ i18n "MENU_FOOTER" . }}</h3>
            <ul class="icons alt">
              {{ with .home}}
              <li><a href="{{ . }}" class="icon alt fab fa-home"><span class="label">Домой</span></a></li>
              {{ end }}
              {{ with .plan}}
              <li><a href="{{ . }}" class="icon alt fab fa-calendar"><span class="label">Хочу поехать</span></a></li>
              {{ end }}
              {{ with .map}}
              <li><a href="{{ . }}" class="icon alt fab fa-map"><span class="label">Маршруты</span></a></li>
              {{ end }}
              {{ with .ask}}
              <li><a href="{{ . }}" class="icon alt fab fa-question"><span class="label">Спросить</span></a></li>
              {{ end }}
              {{ with .gallery}}
              <li><a href="{{ . }}" class="icon alt fab fa-image"><span class="label">Галерея</span></a></li>
              {{ end }}
            </ul>
        </section>
        {{ end }}
    </section>
</footer>
