![]() 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 /** * 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 CreateFooterContactUsCmsBlock 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] - Footer Contact Us', 'identifier' => 'footer_contact_us', 'content' => '<div style="border: 1px solid green"> <span style="background: green"> CMS block ID: footer_contact_us - CMS block title: [FR] - Footer Contact Us<br> </span> <span>Contactez-nous</span> <p>Contactez-nous par téléphone au <b>01 77 14 72 35</b></p> <p>Du Lundi au Vendredi de 08h30 à 12h</p> <p>et de 14h à 18h30</p> <a href="{{store direct_url=\'contact\'}}" title="Formulaire de contact">Formulaire de contact</a> </div>', 'is_active' => 1, 'stores' => [ $this->storeResolver->getDefaultStoreId(StoreConfig::STORE_CODE_FR_EU) ], ], [ 'title' => '[EN] - Footer Contact Us', 'identifier' => 'footer_contact_us', 'content' => '<div style="border: 1px solid green"> <span style="background: green"> CMS block ID: footer_contact_us - CMS block title: [EN] - Footer Contact Us<br> </span> <span>Contact us</span> <p>Contact us by phone on <b>+33 1 77 14 72 35</b></p> <p>From Monday to Friday from 8:30am to 12:00am</p> <p>and from 2:00pm to 6:30pm</p> <a href="{{store direct_url=\'contact\'}}" title="Contact form">Contact form</a> </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; } }