feeds.phtml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. /** @var \Magento\Rss\Block\Feeds $block */
  8. ?>
  9. <table class="data table rss">
  10. <caption class="table-caption"><?= $block->escapeHtml(__('Feed')) ?></caption>
  11. <tbody>
  12. <th colspan="2" scope="col"><?= $block->escapeHtml(__('Miscellaneous Feeds')) ?></th>
  13. <?php foreach ($block->getFeeds() as $feed): ?>
  14. <?php if (!isset($feed['group'])): ?>
  15. <tr>
  16. <td class="col feed"><?= $block->escapeHtml($feed['label']) ?></td>
  17. <td class="col action">
  18. <a href="<?= $block->escapeUrl($feed['link']) ?>" class="action get"><span><?= $block->escapeHtml(__('Get Feed')) ?></span></a>
  19. </td>
  20. </tr>
  21. <?php else: ?>
  22. <th colspan="2" scope="col"><?= $block->escapeHtml($feed['group']) ?></th>
  23. <?php foreach ($feed['feeds'] as $item) :?>
  24. <tr>
  25. <td class="col feed"><?= $block->escapeHtml($item['label']) ?></td>
  26. <td class="col action">
  27. <a href="<?= $block->escapeUrl($item['link']) ?>" class="action get"><span><?= $block->escapeHtml(__('Get Feed')) ?></span></a>
  28. </td>
  29. </tr>
  30. <?php endforeach; ?>
  31. <?php endif; ?>
  32. <?php endforeach; ?>
  33. </tbody>
  34. </table>