fix : wowow logo et ajout module install fasony
This commit is contained in:
Vendored
BIN
Binary file not shown.
Executable
+537
@@ -0,0 +1,537 @@
|
|||||||
|
<?php namespace Ves\Fasony\Setup;
|
||||||
|
|
||||||
|
use Magento\Framework\Setup\InstallSchemaInterface;
|
||||||
|
use Magento\Framework\Setup\ModuleContextInterface;
|
||||||
|
use Magento\Framework\Setup\SchemaSetupInterface;
|
||||||
|
use Magento\Framework\DB\Ddl\Table;
|
||||||
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
|
class InstallSchema implements InstallSchemaInterface
|
||||||
|
{
|
||||||
|
protected $_logger;
|
||||||
|
|
||||||
|
public function __construct(LoggerInterface $logger)
|
||||||
|
{
|
||||||
|
$this->_logger = $logger;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Installs DB schema for a module
|
||||||
|
*
|
||||||
|
* @param SchemaSetupInterface $setup
|
||||||
|
* @param ModuleContextInterface $context
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
|
||||||
|
{
|
||||||
|
$installer = $setup;
|
||||||
|
$installer->startSetup();
|
||||||
|
|
||||||
|
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
|
||||||
|
$homepage = $objectManager->create('\Magento\Cms\Model\Page');
|
||||||
|
if(!$homepage->getCollection()->addFieldToFilter('identifier','home-fasony')->getFirstItem()->getId()){
|
||||||
|
$homepage->setIdentifier('home-fasony');
|
||||||
|
$homepage->setTitle('Home Page Fasony');
|
||||||
|
$homepage->setPageLayout('1column');
|
||||||
|
$homepage->setCreationTime(date('Y-m-d H:i:s'));
|
||||||
|
$homepage->setUpdateTime(date('Y-m-d H:i:s'));
|
||||||
|
$homepage->setSortOrder('0');
|
||||||
|
$homepage->setStores(array(0));
|
||||||
|
$layoutUpdateXml = '<referenceContainer name="ves-slideshow">
|
||||||
|
<block class="Magento\Cms\Block\Block" name="fasony-slideshow-banner">
|
||||||
|
<arguments>
|
||||||
|
<argument name="block_id" xsi:type="string">fasony-slideshow-banner</argument>
|
||||||
|
</arguments>
|
||||||
|
</block>
|
||||||
|
</referenceContainer>
|
||||||
|
<referenceContainer name="ves-showcase">
|
||||||
|
<block class="Magento\Cms\Block\Block" name="fasony-showcase-category">
|
||||||
|
<arguments>
|
||||||
|
<argument name="block_id" xsi:type="string">fasony-showcase-category</argument>
|
||||||
|
</arguments>
|
||||||
|
</block>
|
||||||
|
</referenceContainer>
|
||||||
|
<referenceContainer name="ves-masstop">
|
||||||
|
<block class="Magento\Cms\Block\Block" name="fasony-newproducts">
|
||||||
|
<arguments>
|
||||||
|
<argument name="block_id" xsi:type="string">fasony-newproducts</argument>
|
||||||
|
</arguments>
|
||||||
|
</block>
|
||||||
|
</referenceContainer>
|
||||||
|
<referenceContainer name="ves-massbottom">
|
||||||
|
<block class="Magento\Cms\Block\Block" name="fasony-ourservice">
|
||||||
|
<arguments>
|
||||||
|
<argument name="block_id" xsi:type="string">fasony-ourservice</argument>
|
||||||
|
</arguments>
|
||||||
|
</block>
|
||||||
|
</referenceContainer>
|
||||||
|
<referenceContainer name="ves-massbottom1">
|
||||||
|
<block class="Magento\Cms\Block\Block" name="fasony-testimonial">
|
||||||
|
<arguments>
|
||||||
|
<argument name="block_id" xsi:type="string">fasony-testimonial</argument>
|
||||||
|
</arguments>
|
||||||
|
</block>
|
||||||
|
</referenceContainer>
|
||||||
|
<referenceContainer name="ves-massbottom2">
|
||||||
|
<block class="Magento\Cms\Block\Block" name="fasony-ourbrands">
|
||||||
|
<arguments>
|
||||||
|
<argument name="block_id" xsi:type="string">fasony-ourbrands</argument>
|
||||||
|
</arguments>
|
||||||
|
</block>
|
||||||
|
</referenceContainer>';
|
||||||
|
|
||||||
|
$homepage->setLayoutUpdateXml($layoutUpdateXml);
|
||||||
|
$homepage->setIsActive(true);
|
||||||
|
try{
|
||||||
|
$homepage->save();
|
||||||
|
}catch(Exception $e){
|
||||||
|
$this->_logger->debug($e->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$slideshow = $objectManager->create('\Magento\Cms\Model\Block');
|
||||||
|
if(!$slideshow->getCollection()->addFieldToFilter('identifier','fasony-slideshow-banner')->getFirstItem()->getId()){
|
||||||
|
$slideshow->setIdentifier('fasony-slideshow-banner');
|
||||||
|
$slideshow->setTitle('Fasony - Slideshow - Banner');
|
||||||
|
$slideshow->setContent('<div id="owl-demo2" class="owl-carousel owl-theme">
|
||||||
|
<div class="item">
|
||||||
|
<div class="ves-slider">
|
||||||
|
<div class="text-content">
|
||||||
|
<h2>Fresh burst of color <br /> New Tartine Collection</h2>
|
||||||
|
<p>You see that bamboo behind me though, you see that bamboo? Ain’t nothin’ like bamboo. Bless up.</p>
|
||||||
|
<a href="#"> learn more </a> <a class="primary" href="#"> shop collection </a></div>
|
||||||
|
<img class="img-responsive" src="{{media url="wysiwyg/fasony/home01/slide02.jpg"}}" alt="" /></div>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<div class="ves-slider">
|
||||||
|
<div class="text-content position-02">
|
||||||
|
<h2>Fresh burst of color <br /> New Tartine Collection</h2>
|
||||||
|
<p>You see that bamboo behind me though, you see that bamboo? Ain’t nothin’ like bamboo. Bless up.</p>
|
||||||
|
<a href="#"> learn more </a> <a class="primary" href="#"> shop collection </a></div>
|
||||||
|
<img class="img-responsive" src="{{media url="wysiwyg/fasony/home01/slide01.jpg"}}" alt="" /></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="owl-controls"> </div>
|
||||||
|
<script type="text/javascript">// <![CDATA[
|
||||||
|
require([\'jquery\',\'owl.carousel/owl.carousel.min\'],function(){
|
||||||
|
jQuery(document).ready(function() {
|
||||||
|
jQuery("#owl-demo2").owlCarousel({
|
||||||
|
loop:true,
|
||||||
|
margin:10,
|
||||||
|
responsiveClass:true,
|
||||||
|
dots: true,
|
||||||
|
nav: false,
|
||||||
|
responsive:{
|
||||||
|
0:{
|
||||||
|
items:1
|
||||||
|
},
|
||||||
|
480:{
|
||||||
|
items:1
|
||||||
|
},
|
||||||
|
768:{
|
||||||
|
items:1
|
||||||
|
},
|
||||||
|
1000:{
|
||||||
|
items:1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
jQuery(".owl-demo-prev").click(function () {
|
||||||
|
jQuery("#owl-demo2").trigger(\'prev.owl.carousel\');
|
||||||
|
});
|
||||||
|
jQuery(".owl-demo-next").click(function () {
|
||||||
|
jQuery("#owl-demo2").trigger(\'next.owl.carousel\');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
// ]]></script>');
|
||||||
|
|
||||||
|
$slideshow->setCreationTime(date('Y-m-d H:i:s'));
|
||||||
|
$slideshow->setUpdateTime(date('Y-m-d H:i:s'));
|
||||||
|
$slideshow->setIsActive(true);
|
||||||
|
$slideshow->setStores(array(0));
|
||||||
|
try{
|
||||||
|
$slideshow->save();
|
||||||
|
}catch(Exception $e){
|
||||||
|
$this->_logger->debug($e->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$showcaseCategory = $objectManager->create('\Magento\Cms\Model\Block');
|
||||||
|
if(!$showcaseCategory->getCollection()->addFieldToFilter('identifier','fasony-showcase-category')->getFirstItem()->getId()){
|
||||||
|
$showcaseCategory->setIdentifier('fasony-showcase-category');
|
||||||
|
$showcaseCategory->setTitle('Fasony - Showcase - Category');
|
||||||
|
$showcaseCategory->setContent('<div class="row">
|
||||||
|
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-6">
|
||||||
|
<div class="showcase">
|
||||||
|
<div class="text-content">
|
||||||
|
<h2>Women</h2>
|
||||||
|
<p>it on you how you want to live you life. Everyone has a choise.</p>
|
||||||
|
<a href="#"> view more </a></div>
|
||||||
|
<img class="img-responsive" src="{{media url="wysiwyg/fasony/home01/banner01.jpg"}}" alt="" /></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-6">
|
||||||
|
<div class="showcase">
|
||||||
|
<div class="text-content">
|
||||||
|
<h2>Women Fashion</h2>
|
||||||
|
<p>it on you how you want to live you life. Everyone has a choise.</p>
|
||||||
|
<a href="#"> view more </a></div>
|
||||||
|
<img class="img-responsive" src="{{media url="wysiwyg/fasony/home01/banner02.jpg"}}" alt="" /></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
||||||
|
<div class="showcase">
|
||||||
|
<div class="text-content">
|
||||||
|
<h2>Women Clothes</h2>
|
||||||
|
<p>it on you how you want to live you life. Everyone has a choise.</p>
|
||||||
|
<a href="#"> view more </a></div>
|
||||||
|
<img class="img-responsive" src="{{media url="wysiwyg/fasony/home01/banner03.jpg"}}" alt="" /></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
||||||
|
<div class="showcase bg-custom ">
|
||||||
|
<div class="text-content">
|
||||||
|
<h2>Men Clothing</h2>
|
||||||
|
<p>it on you how you want to live you life. Everyone has a choise.</p>
|
||||||
|
<a href="#"> view more </a></div>
|
||||||
|
<img class="img-responsive" src="{{media url="wysiwyg/fasony/home01/banner04.jpg"}}" alt="" /></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-6">
|
||||||
|
<div class="showcase bg-custom ">
|
||||||
|
<div class="text-content">
|
||||||
|
<h2>Men Fashion</h2>
|
||||||
|
<p>it on you how you want to live you life. Everyone has a choise.</p>
|
||||||
|
<a href="#"> view more </a></div>
|
||||||
|
<img class="img-responsive" src="{{media url="wysiwyg/fasony/home01/banner05.jpg"}}" alt="" /></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-6">
|
||||||
|
<div class="showcase bg-custom ">
|
||||||
|
<div class="text-content">
|
||||||
|
<h2>Accessories</h2>
|
||||||
|
<p>it on you how you want to live you life. Everyone has a choise.</p>
|
||||||
|
<a href="#"> view more </a></div>
|
||||||
|
<img class="img-responsive" src="{{media url="wysiwyg/fasony/home01/banner06.jpg"}}" alt="" /></div>
|
||||||
|
</div>
|
||||||
|
</div>');
|
||||||
|
$showcaseCategory->setCreationTime(date('Y-m-d H:i:s'));
|
||||||
|
$showcaseCategory->setUpdateTime(date('Y-m-d H:i:s'));
|
||||||
|
$showcaseCategory->setIsActive(true);
|
||||||
|
$showcaseCategory->setStores(array(0));
|
||||||
|
try{
|
||||||
|
$showcaseCategory->save();
|
||||||
|
}catch(Exception $e){
|
||||||
|
$this->_logger->debug($e->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$newProduct = $objectManager->create('\Magento\Cms\Model\Block');
|
||||||
|
if(!$newProduct->getCollection()->addFieldToFilter('identifier','fasony-newproducts')->getFirstItem()->getId()){
|
||||||
|
$newProduct->setIdentifier('fasony-newproducts');
|
||||||
|
$newProduct->setTitle('Fasony - NewProducts');
|
||||||
|
$newProduct->setContent('<p>{{widget type="Magento\Catalog\Block\Product\Widget\NewWidget" display_type="all_products" products_count="8" template="product/widget/new/content/new_grid.phtml"}}</p>');
|
||||||
|
$newProduct->setCreationTime(date('Y-m-d H:i:s'));
|
||||||
|
$newProduct->setUpdateTime(date('Y-m-d H:i:s'));
|
||||||
|
$newProduct->setIsActive(true);
|
||||||
|
$newProduct->setStores(array(0));
|
||||||
|
try{
|
||||||
|
$newProduct->save();
|
||||||
|
}catch(Exception $e){
|
||||||
|
$this->_logger->debug($e->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$ourService = $objectManager->create('\Magento\Cms\Model\Block');
|
||||||
|
if(!$ourService->getCollection()->addFieldToFilter('identifier','fasony-ourservice')->getFirstItem()->getId()){
|
||||||
|
$ourService->setIdentifier('fasony-ourservice');
|
||||||
|
$ourService->setTitle('Fasony - Ourservice');
|
||||||
|
$ourService->setContent('<div class="row">
|
||||||
|
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||||
|
<div class="static-block">
|
||||||
|
<h2>Money Back Guarantee!</h2>
|
||||||
|
<p>we free 30 days 100% money back & return</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||||
|
<div class="static-block bg-color">
|
||||||
|
<h2>Free shipping world wide</h2>
|
||||||
|
<p>Free shipping on all order over $99.00</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||||
|
<div class="static-block">
|
||||||
|
<h2>Online support 24/7</h2>
|
||||||
|
<p>we are here to make your day. Lets talk!</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>');
|
||||||
|
$ourService->setCreationTime(date('Y-m-d H:i:s'));
|
||||||
|
$ourService->setUpdateTime(date('Y-m-d H:i:s'));
|
||||||
|
$ourService->setIsActive(true);
|
||||||
|
$ourService->setStores(array(0));
|
||||||
|
try{
|
||||||
|
$ourService->save();
|
||||||
|
}catch(Exception $e){
|
||||||
|
$this->_logger->debug($e->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$testimonial = $objectManager->create('\Magento\Cms\Model\Block');
|
||||||
|
if(!$testimonial->getCollection()->addFieldToFilter('identifier','fasony-testimonial')->getFirstItem()->getId()){
|
||||||
|
$testimonial->setIdentifier('fasony-testimonial');
|
||||||
|
$testimonial->setTitle('Fasony - Testimonial');
|
||||||
|
$testimonial->setContent('<div class="container">
|
||||||
|
<div class="block ves-testominial">
|
||||||
|
<div class="block-title"><strong>Testimonial</strong></div>
|
||||||
|
<div id="owl-demo1" class="owl-carousel owl-theme">
|
||||||
|
<div class="item">
|
||||||
|
<div class="testominial">
|
||||||
|
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don\'t look</p>
|
||||||
|
<h3>_Masum Rana_</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<div class="testominial">
|
||||||
|
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don\'t look</p>
|
||||||
|
<h3>_Masum Rana_</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<div class="testominial">
|
||||||
|
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don\'t look</p>
|
||||||
|
<h3>_Masum Rana_</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="owl-controls"> </div>
|
||||||
|
<script type="text/javascript">// <![CDATA[
|
||||||
|
require([\'jquery\',\'owl.carousel/owl.carousel.min\'],function(){
|
||||||
|
jQuery(document).ready(function() {
|
||||||
|
jQuery("#owl-demo1").owlCarousel({
|
||||||
|
loop:true,
|
||||||
|
margin:10,
|
||||||
|
responsiveClass:true,
|
||||||
|
dots:false,
|
||||||
|
nav: false,
|
||||||
|
responsive:{
|
||||||
|
0:{
|
||||||
|
items:1
|
||||||
|
},
|
||||||
|
480:{
|
||||||
|
items:1
|
||||||
|
},
|
||||||
|
768:{
|
||||||
|
items:1
|
||||||
|
},
|
||||||
|
1000:{
|
||||||
|
items:1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
jQuery(".owl-demo-prev2").click(function () {
|
||||||
|
jQuery("#owl-demo1").trigger(\'prev.owl.carousel\');
|
||||||
|
});
|
||||||
|
jQuery(".owl-demo-next2").click(function () {
|
||||||
|
jQuery("#owl-demo1").trigger(\'next.owl.carousel\');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// ]]></script>
|
||||||
|
</div>
|
||||||
|
</div>');
|
||||||
|
$testimonial->setCreationTime(date('Y-m-d H:i:s'));
|
||||||
|
$testimonial->setUpdateTime(date('Y-m-d H:i:s'));
|
||||||
|
$testimonial->setIsActive(true);
|
||||||
|
$testimonial->setStores(array(0));
|
||||||
|
try{
|
||||||
|
$testimonial->save();
|
||||||
|
}catch(Exception $e){
|
||||||
|
$this->_logger->debug($e->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$ourBrands = $objectManager->create('\Magento\Cms\Model\Block');
|
||||||
|
if(!$ourBrands->getCollection()->addFieldToFilter('identifier','fasony-ourbrands')->getFirstItem()->getId()){
|
||||||
|
$ourBrands->setIdentifier('fasony-ourbrands');
|
||||||
|
$ourBrands->setTitle('Fasony - OurBrands');
|
||||||
|
$ourBrands->setContent('<div class="container">
|
||||||
|
<div id="owl-demo" class="owl-carousel owl-theme">
|
||||||
|
<div class="item"><img class="img-responsive" src="{{media url="wysiwyg/fasony/brand/brand01.jpg"}}" alt="" /></div>
|
||||||
|
<div class="item"><img class="img-responsive" src="{{media url="wysiwyg/fasony/brand/brand02.jpg"}}" alt="" /></div>
|
||||||
|
<div class="item"><img class="img-responsive" src="{{media url="wysiwyg/fasony/brand/brand03.jpg"}}" alt="" /></div>
|
||||||
|
<div class="item"><img class="img-responsive" src="{{media url="wysiwyg/fasony/brand/brand04.jpg"}}" alt="" /></div>
|
||||||
|
<div class="item"><img class="img-responsive" src="{{media url="wysiwyg/fasony/brand/brand05.jpg"}}" alt="" /></div>
|
||||||
|
<div class="item"><img class="img-responsive" src="{{media url="wysiwyg/fasony/brand/brand06.jpg"}}" alt="" /></div>
|
||||||
|
<div class="item"><img class="img-responsive" src="{{media url="wysiwyg/fasony/brand/brand01.jpg"}}" alt="" /></div>
|
||||||
|
<div class="item"><img class="img-responsive" src="{{media url="wysiwyg/fasony/brand/brand02.jpg"}}" alt="" /></div>
|
||||||
|
</div>
|
||||||
|
<div class="owl-controls"> </div>
|
||||||
|
<script type="text/javascript">// <![CDATA[
|
||||||
|
require([\'jquery\',\'owl.carousel/owl.carousel.min\'],function(){
|
||||||
|
jQuery(document).ready(function() {
|
||||||
|
jQuery("#owl-demo").owlCarousel({
|
||||||
|
loop:true,
|
||||||
|
margin:10,
|
||||||
|
responsiveClass:true,
|
||||||
|
dots: true,
|
||||||
|
nav: false,
|
||||||
|
responsive:{
|
||||||
|
0:{
|
||||||
|
items:1
|
||||||
|
},
|
||||||
|
480:{
|
||||||
|
items:2
|
||||||
|
},
|
||||||
|
768:{
|
||||||
|
items:4
|
||||||
|
},
|
||||||
|
1000:{
|
||||||
|
items:6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
jQuery(".owl-demo-prev1").click(function () {
|
||||||
|
jQuery("#owl-demo").trigger(\'prev.owl.carousel\');
|
||||||
|
});
|
||||||
|
jQuery(".owl-demo-next1").click(function () {
|
||||||
|
jQuery("#owl-demo").trigger(\'next.owl.carousel\');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// ]]></script>
|
||||||
|
</div>');
|
||||||
|
$ourBrands->setCreationTime(date('Y-m-d H:i:s'));
|
||||||
|
$ourBrands->setUpdateTime(date('Y-m-d H:i:s'));
|
||||||
|
$ourBrands->setIsActive(true);
|
||||||
|
$ourBrands->setStores(array(0));
|
||||||
|
try{
|
||||||
|
$ourBrands->save();
|
||||||
|
}catch(Exception $e){
|
||||||
|
$this->_logger->debug($e->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$footer = $objectManager->create('\Magento\Cms\Model\Block');
|
||||||
|
if(!$footer->getCollection()->addFieldToFilter('identifier','fasony-footer')->getFirstItem()->getId()){
|
||||||
|
$footer->setIdentifier('fasony-footer');
|
||||||
|
$footer->setTitle('Fasony - Footer');
|
||||||
|
$footer->setContent('<div class="row custom-footer">
|
||||||
|
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12"><!-- Col1 -->
|
||||||
|
<div class="block">
|
||||||
|
<div class="block-title"><strong> About Fasony </strong></div>
|
||||||
|
<div class="block-content ">
|
||||||
|
<p>You see that bamboo behind me though, you see that bamboo? Ain’t nothin’ like bamboo. Bless up.</p>
|
||||||
|
<ul class="contacts">
|
||||||
|
<li><em class="fa fa-map-marker"> </em> <span>221b Baker Street - London United Kingdom</span></li>
|
||||||
|
<li><em class="fa fa-headphones"> </em> <span> Telephone: (+0) 012-345-678 Fax: (+0) 012-345-678 </span></li>
|
||||||
|
<li><em class="fa fa-envelope-o"> </em> <span>Email: fasony@123.vn</span></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12"><!-- Col2 -->
|
||||||
|
<div class="block">
|
||||||
|
<div class="block-title"><strong>Categories</strong></div>
|
||||||
|
<div class="block-content">
|
||||||
|
<ul class="nav-links">
|
||||||
|
<li><a href="{{store url=\'men\'}}">Men</a></li>
|
||||||
|
<li><a href="{{store url=\'women\'}}">Women</a></li>
|
||||||
|
<li><a href="{{store url=\'accessories\'}}">New Blazers</a></li>
|
||||||
|
<li><a href="{{store url=\'men\'}}">Accessories</a></li>
|
||||||
|
<li><a href="{{store url=\'women\'}}">T-Shirt</a></li>
|
||||||
|
<li><a href="{{store url=\'accessories\'}}">Summer Hot</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12"><!-- Col3 -->
|
||||||
|
<div class="block">
|
||||||
|
<div class="block-title"><strong>Help</strong></div>
|
||||||
|
<div class="block-content">
|
||||||
|
<ul class="nav-links">
|
||||||
|
<li><a href="{{store url=\'contact\'}}">Help & Contact</a></li>
|
||||||
|
<li><a href="{{store url=\'#\'}}">Shipping & taxes</a></li>
|
||||||
|
<li><a href="{{store url=\'#\'}}">Return policy</a></li>
|
||||||
|
<li><a href="{{store url=\'#\'}}">Affiliates</a></li>
|
||||||
|
<li><a href="{{store url=\'#\'}}">Legal Notice</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12"><!-- Col4 -->
|
||||||
|
<div class="block">
|
||||||
|
<div class="block-title"><strong>Quick Link</strong></div>
|
||||||
|
<div class="block-content">
|
||||||
|
<ul class="nav-links">
|
||||||
|
<li><a href="{{store url=\'customer/account/login/\'}}">My Acount</a></li>
|
||||||
|
<li><a href="{{store url=\'sales/guest/form/\'}}">Order history</a></li>
|
||||||
|
<li><a href="{{store url=\'wishlist\'}}">Wishlist</a></li>
|
||||||
|
<li><a href="{{store url=\'#\'}}">Returns</a></li>
|
||||||
|
<li><a href="{{store url=\'#\'}}">Store Location</a></li>
|
||||||
|
<li><a href="{{store url=\'catalog/seo_sitemap/category/\'}}">Site map</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12"><!-- Col5-->
|
||||||
|
<div>{{block class="Magento\Newsletter\Block\Subscribe" name="form.subscribe" as="subscribe" before="-" template="subscribe.phtml"/}}</div>
|
||||||
|
<ul class="list-social">
|
||||||
|
<li class="icon-social"><a href="#"> <em class="fa fa-facebook"> </em> </a></li>
|
||||||
|
<li class="icon-social"><a href="#"> <em class="fa fa-twitter"> </em> </a></li>
|
||||||
|
<li class="icon-social"><a href="#"> <em class="fa fa-google-plus"> </em></a></li>
|
||||||
|
<li class="icon-social"><a href="#"> <em class="fa fa-tumblr"> </em> </a></li>
|
||||||
|
<li class="icon-social"><a href="#"> <em class="fa fa-rss"> </em> </a></li>
|
||||||
|
<li class="icon-social"><a href="#"> <em class="fa fa-skype"> </em> </a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>');
|
||||||
|
$footer->setCreationTime(date('Y-m-d H:i:s'));
|
||||||
|
$footer->setUpdateTime(date('Y-m-d H:i:s'));
|
||||||
|
$footer->setIsActive(true);
|
||||||
|
$footer->setStores(array(0));
|
||||||
|
try{
|
||||||
|
$footer->save();
|
||||||
|
}catch(Exception $e){
|
||||||
|
$this->_logger->debug($e->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$menuTop = $objectManager->create('\Magento\Cms\Model\Block');
|
||||||
|
if(!$menuTop->getCollection()->addFieldToFilter('identifier','fasony-menutop')->getFirstItem()->getId()){
|
||||||
|
$menuTop->setIdentifier('fasony-menutop');
|
||||||
|
$menuTop->setTitle('Fasony - MenuTop');
|
||||||
|
$menuTop->setContent('<div class="ves-megamenu-custom">
|
||||||
|
<ul class="ves-megamenu ves-horizontal">
|
||||||
|
<li class="nav-item level0"><a class=" nav-anchor" href="{{store url=\'#\'}}" target="_self"> <span>Desktops</span> </a></li>
|
||||||
|
<li class="nav-item level0"><a class=" nav-anchor" href="{{store url=\'#\'}}" target="_self"> <span>Shop</span> </a></li>
|
||||||
|
<li class="nav-item level0"><a class=" nav-anchor" href="{{store url=\'#\'}}" target="_self"> <span>Pages</span> </a></li>
|
||||||
|
<li class="nav-item level0"><a class=" nav-anchor" href="{{store url=\'#\'}}" target="_self"> <span>Featureds</span> </a></li>
|
||||||
|
<li class="nav-item level0"><a class=" nav-anchor" href="{{store url=\'#\'}}" target="_self"> <span>Blog</span> </a></li>
|
||||||
|
</ul>
|
||||||
|
</div>');
|
||||||
|
$menuTop->setCreationTime(date('Y-m-d H:i:s'));
|
||||||
|
$menuTop->setUpdateTime(date('Y-m-d H:i:s'));
|
||||||
|
$menuTop->setIsActive(true);
|
||||||
|
$menuTop->setStores(array(0));
|
||||||
|
try{
|
||||||
|
$menuTop->save();
|
||||||
|
}catch(Exception $e){
|
||||||
|
$this->_logger->debug($e->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$resourceConfig = $objectManager->create('\Magento\Config\Model\ResourceModel\Config');
|
||||||
|
$resourceConfig->saveConfig('web/default/cms_home_page','home-fasony','default',0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Executable
+26
@@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!--
|
||||||
|
/**
|
||||||
|
* Venustheme
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Venustheme.com license that is
|
||||||
|
* available through the world-wide-web at this URL:
|
||||||
|
* http://www.venustheme.com/license-agreement.html
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||||
|
* version in the future.
|
||||||
|
*
|
||||||
|
* @category Venustheme
|
||||||
|
* @package Ves_Setup
|
||||||
|
* @copyright Copyright (c) 2014 Venustheme (http://www.venustheme.com/)
|
||||||
|
* @license http://www.venustheme.com/LICENSE-1.0.html
|
||||||
|
*/
|
||||||
|
-->
|
||||||
|
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
|
||||||
|
<module name="Ves_Fasony" setup_version="1.0.0">
|
||||||
|
</module>
|
||||||
|
</config>
|
||||||
Executable
+26
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Venustheme
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Venustheme.com license that is
|
||||||
|
* available through the world-wide-web at this URL:
|
||||||
|
* http://www.venustheme.com/license-agreement.html
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||||
|
* version in the future.
|
||||||
|
*
|
||||||
|
* @category Venustheme
|
||||||
|
* @package Ves_Setup
|
||||||
|
* @copyright Copyright (c) 2014 Venustheme (http://www.venustheme.com/)
|
||||||
|
* @license http://www.venustheme.com/LICENSE-1.0.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
\Magento\Framework\Component\ComponentRegistrar::register(
|
||||||
|
\Magento\Framework\Component\ComponentRegistrar::MODULE,
|
||||||
|
'Ves_Fasony',
|
||||||
|
__DIR__
|
||||||
|
);
|
||||||
@@ -90,7 +90,9 @@ class LogoCommand extends Command
|
|||||||
if(!is_dir($faviconFolder)) mkdir($faviconFolder,0775);
|
if(!is_dir($faviconFolder)) mkdir($faviconFolder,0775);
|
||||||
$logoFolder = $this->_directoryList->getPath('media').'/logo/';
|
$logoFolder = $this->_directoryList->getPath('media').'/logo/';
|
||||||
if(!is_dir($logoFolder)) mkdir($logoFolder,0775);
|
if(!is_dir($logoFolder)) mkdir($logoFolder,0775);
|
||||||
$logoEmail = $this->_directoryList->getPath('media').'/email/logo/';
|
$folderEmail = $this->_directoryList->getPath('media').'/email/';
|
||||||
|
$logoEmail = $folderEmail.'logo/';
|
||||||
|
if(!is_dir($folderEmail)) mkdir($folderEmail,0775);
|
||||||
if(!is_dir($logoEmail)) mkdir($logoEmail,0775);
|
if(!is_dir($logoEmail)) mkdir($logoEmail,0775);
|
||||||
$arrayLogo = array();
|
$arrayLogo = array();
|
||||||
foreach ($finder as $file) {
|
foreach ($finder as $file) {
|
||||||
|
|||||||
Reference in New Issue
Block a user