From 11eb28731e8b6ac9186abc0ee284dfc23d844ebe Mon Sep 17 00:00:00 2001 From: aleksandrs Kondratjevs Date: Mon, 7 Dec 2020 15:49:53 +0200 Subject: [PATCH] Fix sample data content --- src/Setup/CMS/Block/AddCmsBlocks.php | 5 ++++- src/Setup/Categories/CreateCategories.php | 1 + src/Setup/System/SetConfig.php | 2 ++ .../data/html/cms-blocks/footer-links.html | 13 ++++++------- src/files/data/html/cms-pages/homepage.html | 4 ++-- src/view/media/linkedin.png | Bin 0 -> 7879 bytes src/view/media/twitter.png | Bin 0 -> 10567 bytes src/view/media/youtube.png | Bin 0 -> 8531 bytes 8 files changed, 15 insertions(+), 10 deletions(-) mode change 100644 => 100755 src/Setup/CMS/Block/AddCmsBlocks.php mode change 100644 => 100755 src/Setup/Categories/CreateCategories.php mode change 100644 => 100755 src/Setup/System/SetConfig.php mode change 100644 => 100755 src/files/data/html/cms-blocks/footer-links.html mode change 100644 => 100755 src/files/data/html/cms-pages/homepage.html create mode 100644 src/view/media/linkedin.png create mode 100644 src/view/media/twitter.png create mode 100644 src/view/media/youtube.png diff --git a/src/Setup/CMS/Block/AddCmsBlocks.php b/src/Setup/CMS/Block/AddCmsBlocks.php old mode 100644 new mode 100755 index e3ad654..8310b44 --- a/src/Setup/CMS/Block/AddCmsBlocks.php +++ b/src/Setup/CMS/Block/AddCmsBlocks.php @@ -82,7 +82,10 @@ private function copyImages() $socialLinksMedia = [ 'instagram.svg', 'facebook.svg', - 'twitter.svg' + 'twitter.svg', + 'linkedin.png', + 'twitter.png', + 'youtube.png' ]; $this->mediaMigration->copyMediaFiles($socialLinksMedia, self::MIGRATION_MODULE, 'wysiwyg/social'); diff --git a/src/Setup/Categories/CreateCategories.php b/src/Setup/Categories/CreateCategories.php old mode 100644 new mode 100755 index c595399..ed0a163 --- a/src/Setup/Categories/CreateCategories.php +++ b/src/Setup/Categories/CreateCategories.php @@ -107,6 +107,7 @@ public function apply(SetupInterface $setup = null) $mediaAttribute =['image', 'small_image', 'thumbnail']; $categoryTmp->setImage($data['image'], $mediaAttribute, true, false); $categoryTmp->setPath($rootCategory->getPath()); + $categoryTmp->setDisplayMode('PRODUCTS_AND_PAGE'); $categoryTmp->save(); } } diff --git a/src/Setup/System/SetConfig.php b/src/Setup/System/SetConfig.php old mode 100644 new mode 100755 index 702a5d2..4acb9e9 --- a/src/Setup/System/SetConfig.php +++ b/src/Setup/System/SetConfig.php @@ -49,6 +49,8 @@ public function apply(SetupInterface $setup = null) 'content_customization/header_content/header_cms' => 'header-contacts-bellow', 'content_customization/minicart_content/minicart_cms' => 'cartoverlay-promo', 'design/header/logo_src' => 'default/logo.png', + 'design/header/logo_width' => 140, + 'design/header/logo_height' => 25, 'design/theme/theme_id' => '4', 'web/seo/use_rewrites' => 1 ]; diff --git a/src/files/data/html/cms-blocks/footer-links.html b/src/files/data/html/cms-blocks/footer-links.html old mode 100644 new mode 100755 index 78d078f..b06aa98 --- a/src/files/data/html/cms-blocks/footer-links.html +++ b/src/files/data/html/cms-blocks/footer-links.html @@ -17,9 +17,8 @@