# V2_Entry_GeoList

    {% set entryGeoList = module('V2_Entry_GeoList', null, {
      bid: null,
      cid: null,
      eid: null,
      uid: null,
      page: PAGE,
      limit: null,
      keyword: null,
      tag: [],
      field: null,
      start: '1000-01-01 00:00:00',
      end: '9999-12-31 23:59:59'
    }) %}

    <div class="acms-margin-bottom-medium">
      {{ include('/admin/module/setting.twig', { moduleInfo: entryGeoList.moduleInfo }) }}

      {% if not entryGeoList.hasLocation %}
        <p>現在位置を取得できませんでした。</p>
      {% endif %}

      {% if entryGeoList.hasLocation and entryGeoList.items is empty %}
        <p>近くの記事は見つかりませんでした。</p>
      {% endif %}

      <div class="acms-cssgrid acms-g-cols-1 acms-g-cols-md-3">
        {% for item in entryGeoList.items %}
        <div>
          <div class="acms-summary">
            <div class="acms-summary-image">
              {% if item.mainImage.path %}
                <img
                  src="{{ item.mainImage.path | resizeImg(100,100) }}"
                  alt="{{ item.alt }}"
                  width="100"
                  height="100"
                  loading="lazy"
                  decoding="async"
                >
              {% else %}
                <img src="/images/default/noimage.gif" alt="noimage" width="100" loading="lazy" decoding="async" />
              {% endif %}
            </div>
            <div class="acms-summary-body">
              <h3>{{ item.title }}</h3>
              <p>{{ item.summary }}</p>
              <p>{{ item.geo.distance | number_format }}m</p>
              <p><a href="{{ item.url }}" class="acms-btn">詳細をみる</a></p>
            </div>
          </div>
        </div>
        {% endfor %}
      </div>

      <!-- ページネーション -->
      {{
        include('/include/pagination.twig', {
          pagination: entryGeoList.pagination,
        })
      }}
    </div>