Skip to content

Commit

Permalink
Fix sample data content
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrsKondratjevs committed Dec 7, 2020
1 parent ee3dda3 commit 11eb287
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 10 deletions.
5 changes: 4 additions & 1 deletion src/Setup/CMS/Block/AddCmsBlocks.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions src/Setup/Categories/CreateCategories.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/Setup/System/SetConfig.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
];
Expand Down
13 changes: 6 additions & 7 deletions src/files/data/html/cms-blocks/footer-links.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,26 @@ <h3 class="Footer-ColumnTitle">Additional info</h3>
<div class="Footer-Column">
<h3 class="Footer-ColumnTitle">Popular categories</h3>
<div class="Footer-ColumnContent">
<a class=" Footer-ColumnItem" href="/women">Women</a>
<a class=" Footer-ColumnItem" href="/men">Men</a>
<a class=" Footer-ColumnItem" href="/accessories">Accessories</a>
<a class=" Footer-ColumnItem" href="/women.html">Women</a>
<a class=" Footer-ColumnItem" href="/men.html">Men</a>
</div>
</div>
<div class="Footer-Column">
<h3 class="Footer-ColumnTitle">Follow</h3>
<div class="Footer-ColumnContent Footer-ColumnContent_direction_horizontal">
<a href="https://www.linkedin.com/company/scandipwa" class=" Footer-ColumnItem Footer-ColumnItem_type_image">
<div class="Image Image_ratio_square Image_imageStatus_1 Image_hasSrc Footer-ColumnItemImage">
<img src="http://scandipwa.local/assets/images/linkedin.png" alt="" loading="lazy" class="Image-Image" style="width: 100%; height: 100%;">
<img src="{{media url="wysiwyg/social/linkedin.png"}}" alt="" loading="lazy" class="Image-Image" style="width: 100%; height: 100%; z-index: 1">
</div>
</a>
<a href="https://www.facebook.com/ScandiPWA/" class=" Footer-ColumnItem Footer-ColumnItem_type_image">
<a href="https://www.youtube.com/channel/UCvnxo7rh5NRwvMHtJga9fww" class=" Footer-ColumnItem Footer-ColumnItem_type_image">
<div class="Image Image_ratio_square Image_imageStatus_1 Image_hasSrc Footer-ColumnItemImage ">
<img src="http://scandipwa.local/assets/images/facebook.png" alt="" loading="lazy" class="Image-Image" style="width: 100%; height: 100%;">
<img src="{{media url="wysiwyg/social/youtube.png"}}" alt="" loading="lazy" class="Image-Image" style="width: 100%; height: 100%; z-index: 1">
</div>
</a>
<a href="https://twitter.com/scandipwa" class=" Footer-ColumnItem Footer-ColumnItem_type_image">
<div class="Image Image_ratio_square Image_imageStatus_1 Image_hasSrc Footer-ColumnItemImage ">
<img src="http://scandipwa.local/assets/images/twitter.png" alt="" loading="lazy" class="Image-Image" style="width: 100%; height: 100%;">
<img src="{{media url="wysiwyg/social/twitter.png"}}" alt="" loading="lazy" class="Image-Image" style="width: 100%; height: 100%; z-index: 1">
</div>
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/files/data/html/cms-pages/homepage.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{widget type="Scandiweb\Slider\Block\Widget\Slider" slider_id="1"}}
{{widget type="Magento\Cms\Block\Widget\Block" template="widget/static_block/default.phtml" block_id="1"}}
{{widget type="Magento\Cms\Block\Widget\Block" template="widget/static_block/default.phtml" block_id="2"}}
{{widget type="Magento\Cms\Block\Widget\Block" template="widget/static_block/default.phtml" block_id="homepage-category-preview"}}
{{widget type="Magento\Cms\Block\Widget\Block" template="widget/static_block/default.phtml" block_id="homage-jeans-preview"}}
{{widget type="Magento\CatalogWidget\Block\Product\ProductsList" show_pager="0" products_count="12" template="Magento_CatalogWidget::product/widget/content/grid.phtml" cache_lifetime="2592000" conditions_encoded="^[`1`:^[`type`:`Magento||CatalogWidget||Model||Rule||Condition||Combine`,`aggregator`:`any`,`value`:`1`,`new_child`:``^],`1--1`:^[`type`:`Magento||CatalogWidget||Model||Rule||Condition||Product`,`attribute`:`category_ids`,`operator`:`==`,`value`:`3`^],`1--2`:^[`type`:`Magento||CatalogWidget||Model||Rule||Condition||Product`,`attribute`:`category_ids`,`operator`:`==`,`value`:`4`^]^]"}}
Binary file added src/view/media/linkedin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/view/media/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/view/media/youtube.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 11eb287

Please sign in to comment.