![]() 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/app/code/Cnc/Cms/Setup/Patch/Data/ |
<?php // phpcs:disable Generic.Files.LineLength.TooLong /** * Copyright (c) 2019 Kaliop Digital Commerce (https://digitalcommerce.kaliop.com) All Rights Reserved. * https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * cnc_cms_m2 * <[email protected]> */ declare(strict_types=1); namespace Cnc\Cms\Setup\Patch\Data; use Cnc\Cms\Setup\Patch\AbstractCmsDataPatch; use Cnc\Store\Model\Config as StoreConfig; use Magento\Framework\Setup\Patch\DataPatchInterface; class CreateProductPageCmsBlocks extends AbstractCmsDataPatch implements DataPatchInterface { public static function getDependencies(): array { return []; } public function apply(): void { $this->createAndUpdateBlocks(); } public function getAliases(): array { return []; } /** * @return array */ protected function getBlocksData(): array { if (!$this->blocksData) { $this->blocksData = [ [ 'title' => '[FR] - Product Page Reinsurance', 'identifier' => 'product_page_reinsurance', 'content' => '<div style="border: 1px solid green;clear:both;"> <span style="background: green"> CMS block ID: product_page_reinsurance - CMS block title: [FR] - Product Page Reinsurance<br> </span> <ul> <li>Des produits de qualité garantis</li> <li>Service technique spécialisé</li> <li>Paiement sécurisé et facturation en ligne</li> </ul> </div>', 'is_active' => 1, 'stores' => [ $this->storeResolver->getDefaultStoreId(StoreConfig::STORE_CODE_FR_EU) ], ], [ 'title' => '[EN] - Product Page Reinsurance', 'identifier' => 'product_page_reinsurance', 'content' => '<div style="border: 1px solid green;clear:both;"> <span style="background: green"> CMS block ID: product_page_reinsurance - CMS block title: [EN] - Product Page Reinsurance<br> </span> <ul> <li>Great quality products warranty</li> <li>Specialised tech service</li> <li>Secured payment and online invoice</li> </ul> </div>', 'is_active' => 1, 'stores' => [ $this->storeResolver->getDefaultStoreId(StoreConfig::STORE_CODE_EN_EU), $this->storeResolver->getDefaultStoreId(StoreConfig::STORE_CODE_EN_GB), $this->storeResolver->getDefaultStoreId(StoreConfig::STORE_CODE_EN_US), ], ], [ 'title' => '[FR] - Product Page Delivery', 'identifier' => 'product_page_delivery', 'content' => '<div style="border: 1px solid green"> <span style="background: green"> CMS block ID: product_page_delivery - CMS block title: [FR] - Product Page Delivery<br> </span> Delivery block content </div>', 'is_active' => 1, 'stores' => [ $this->storeResolver->getDefaultStoreId(StoreConfig::STORE_CODE_FR_EU) ], ], [ 'title' => '[EN] - Product Page Delivery', 'identifier' => 'product_page_delivery', 'content' => '<div style="border: 1px solid green"> <span style="background: green"> CMS block ID: product_page_delivery - CMS block title: [EN] - Product Page Delivery<br> </span> Delivery block content </div>', 'is_active' => 1, 'stores' => [ $this->storeResolver->getDefaultStoreId(StoreConfig::STORE_CODE_EN_EU), $this->storeResolver->getDefaultStoreId(StoreConfig::STORE_CODE_EN_GB), $this->storeResolver->getDefaultStoreId(StoreConfig::STORE_CODE_EN_US), ], ], [ 'title' => '[FR] - Product Page Contact', 'identifier' => 'product_page_contact', 'content' => '<div style="border: 1px solid green"> <span style="background: green"> CMS block ID: product_page_contact - CMS block title: [FR] - Product Page Contact<br> </span> Contact block content </div>', 'is_active' => 1, 'stores' => [ $this->storeResolver->getDefaultStoreId(StoreConfig::STORE_CODE_FR_EU) ], ], [ 'title' => '[EN] - Product Page Contact', 'identifier' => 'product_page_contact', 'content' => '<div style="border: 1px solid green"> <span style="background: green"> CMS block ID: product_page_contact - CMS block title: [EN] - Product Page Contact<br> </span> Contact block content </div>', 'is_active' => 1, 'stores' => [ $this->storeResolver->getDefaultStoreId(StoreConfig::STORE_CODE_EN_EU), $this->storeResolver->getDefaultStoreId(StoreConfig::STORE_CODE_EN_GB), $this->storeResolver->getDefaultStoreId(StoreConfig::STORE_CODE_EN_US), ], ] ]; } return $this->blocksData; } }