| 12345678910111213141516171819202122232425 |
- <?php
- if(empty($locations)) {
- ?>
- <div class="alert alert-info">
- No locations to display.
- </div>
- <?php
- }
- else {
- ?>
- <div class="list-group">
- <?php
- foreach($locations as $location) {
- ?>
- <a class="list-group-item list-group-item-action" href="/account/locations/<?=$location->id?>">
- <?=htmlspecialchars($location->name)?><br />
- <small><?=htmlspecialchars($location->getDisplayAddress(["address_1", "address_2", "city", "postal_code"]))?></small>
- </a>
- <?php
- }
- ?>
- </div>
- <?php
- }
- ?>
|