SourcePagePlugin.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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\Plugin\Plumrocket\Amp;
  9. /**
  10. * Plugin for source page (amp extension by Plumrocket)
  11. */
  12. class SourcePagePlugin
  13. {
  14. /**
  15. * Add magefan blog pages to soruce
  16. * @param \Plumrocket\Amp\Model\System\Config\Source\Page $page
  17. * @param array $pages
  18. * @return array
  19. */
  20. public function afterToArray(\Plumrocket\Amp\Model\System\Config\Source\Page $page, $pages)
  21. {
  22. $pages['magefan_blog_index_index'] = __('Blog Main Page');
  23. $pages['magefan_blog_post_view'] = __('Blog Post Pages');
  24. $pages['magefan_blog_category_view'] = __('Blog Category Pages');
  25. $pages['magefan_blog_category_view'] = __('Blog Category Pages');
  26. $pages['magefan_blog_archive_view'] = __('Blog Archive Pages');
  27. $pages['magefan_blog_author_view'] = __('Blog Author Pages');
  28. $pages['magefan_blog_tag_view'] = __('Blog Tag Pages');
  29. return $pages;
  30. }
  31. }