Spamworldpro Mini Shell
Spamworldpro


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/old/vendor/aheadworks/module-csblock/Block/Adminhtml/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/aheadworks/module-csblock/Block/Adminhtml/Menu.php
<?php
namespace Aheadworks\Csblock\Block\Adminhtml;

/**
 * Class Menu
 * @package Aheadworks\Csblock\Block\Adminhtml
 */
class Menu extends \Magento\Backend\Block\Template
{
    const ITEM_BLOCK = 'block';
    const ITEM_README = 'readme';
    const ITEM_SUPPORT = 'support';

    protected $_currentItemKey = null;

    /**
     * Path to template file in theme.
     *
     * @var string
     */
    protected $_template = 'Aheadworks_Csblock::menu.phtml';

    /**
     * Get menu items
     *
     * @return array
     */
    public function getItems()
    {
        return [
            self::ITEM_BLOCK => [
                'title' => __('Manage Blocks'),
                'url' => $this->getUrl('*/csblock/index')
            ],
            self::ITEM_README => [
                'title' => __('Readme'),
                'url' => 'https://aheadworks.com/resources/custom-static-blocks/user-manual-custom-static-blocks',
                'target' => '__blank',
                'class' => 'aw-extensions-menu-separator'
            ],
            self::ITEM_SUPPORT => [
                'title' => __('Get Support'),
                'url' => 'https://aheadworks.com/contact',
                'target' => '__blank',
            ],
        ];
    }

    /**
     * @return string
     */
    public function getCurrentItemKey()
    {
        return $this->_currentItemKey;
    }

    /**
     * @param string $key
     *
     * @return $this
     */
    public function setCurrentItemKey($key)
    {
        $this->_currentItemKey = $key;
        return $this;
    }

    /**
     * @return string
     */
    public function getCurrentItemTitle()
    {
        $items = $this->getItems();
        $key = $this->getCurrentItemKey();
        if (!array_key_exists($key, $items)) {
            return '';
        }
        return $items[$key]['title'];
    }
}

Spamworldpro Mini