Rss.php 721 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Copyright © 2016 Ihor Vansach (ihor@magefan.com). All rights reserved.
  4. * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
  5. *
  6. * Glory to Ukraine! Glory to the heroes!
  7. */
  8. namespace Magefan\Blog\Block\Sidebar;
  9. /**
  10. * Blog sidebar rss
  11. */
  12. class Rss extends \Magento\Framework\View\Element\Template
  13. {
  14. use Widget;
  15. /**
  16. * @var string
  17. */
  18. protected $_widgetKey = 'rss_feed';
  19. /**
  20. * Available months
  21. * @var array
  22. */
  23. protected $_months;
  24. /**
  25. * Retrieve blog identities
  26. * @return array
  27. */
  28. public function getIdentities()
  29. {
  30. return [\Magento\Cms\Model\Block::CACHE_TAG . '_blog_rss_widget' ];
  31. }
  32. }