![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/app/code/Magefan/Blog/Block/Category/ |
<?php /** * Copyright © Magefan ([email protected]). All rights reserved. * Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement). * * Glory to Ukraine! Glory to the heroes! */ namespace Magefan\Blog\Block\Category; use Magefan\Blog\Model\Config\Source\CategoryDisplayMode; /** * Blog category posts links */ class PostLinks extends \Magefan\Blog\Block\Category\PostList { /** * Disable pagination. Display all category posts on the page * * @return $this */ protected function _beforeToHtml() { return \Magefan\Blog\Block\Post\PostList\AbstractList::_beforeToHtml(); } /** * Retrieve true when display of this block is allowed * * @return bool */ protected function canDisplay() { $displayMode = $this->getCategory()->getData('display_mode'); return ($displayMode == CategoryDisplayMode::POSTS_AND_SUBCATEGORIES_LINKS || $displayMode == CategoryDisplayMode::POST_LINKS); } /** * Prepare breadcrumbs * * @param string $title * @param string $key * @throws \Magento\Framework\Exception\LocalizedException * @return void */ protected function _addBreadcrumbs($title = null, $key = null) { return null; } /** * Get relevant path to template * * @return string */ public function getTemplate() { return \Magento\Framework\View\Element\Template::getTemplate(); } }