<?php
/**
* 2007-2016 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
class SampleDataHtml
{
public function initData($base_url)
{
$content_block1 = '
<div class="laberWelcome"><span>Welcome to Worldwide Electronics Store</span></div>
';
$content_block2 = '
<div class="laberHotline"><span class="labericon"><img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/icon_Contact.png"></span> <span>Hotline Free:</span>
<p>06-900-6789-00</p>
</div>
';
$content_block3 = '
<div class="laber-freeshipping padding-0-10">
<div class="freeshipping">
<div class="item-inner">
<div class="item"><span class="icons"><img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/icon1.png"></span>
<div class="box-content">
<h3>Free Delivery</h3>
<p>For all oders over $120</p>
</div>
</div>
</div>
<div class="item-inner">
<div class="item"><span class="icons"><img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/icon2.png"></span>
<div class="box-content">
<h3>Safe Payment</h3>
<p>100% secure payment</p>
</div>
</div>
</div>
<div class="item-inner">
<div class="item"><span class="icons"><img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/icon3.png"></span>
<div class="box-content">
<h3>Shop With Confidence</h3>
<p>If goods have problems</p>
</div>
</div>
</div>
<div class="item-inner">
<div class="item"><span class="icons"><img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/icon4.png"></span>
<div class="box-content">
<h3>24/7 Help Center</h3>
<p>Dedicated 24/7 support</p>
</div>
</div>
</div>
<div class="item-inner">
<div class="item"><span class="icons"><img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/icon5.png"></span>
<div class="box-content">
<h3>Friendly Services</h3>
<p>30 day satisfaction guarantee</p>
</div>
</div>
</div>
</div>
</div>
';
$content_block4 = '
<div class="laberStatic padding-0-10">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="img"><a title="" href="#"> <img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/1_1.jpg" alt="images"> </a></div>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="img"><a title="" href="#"> <img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/1_2.jpg" alt="images"> </a></div>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="img"><a title="" href="#"> <img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/1_3.jpg" alt="images"> </a></div>
</div>
</div>
</div>
';
$content_block5 = '
<div class="laberStatic padding-0-10">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<div class="img"><a title="" href="#"> <img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/1_4.jpg" alt="images"> </a></div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<div class="img"><a title="" href="#"> <img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/1_5.jpg" alt="images"> </a></div>
</div>
</div>
</div>
';
$content_block6 = '
<div class="laberStatic padding-0-10">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="img"><a title="" href="#"> <img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/1_6.jpg" alt="images"> </a></div>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="img"><a title="" href="#"> <img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/1_7.jpg" alt="images"> </a></div>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="img"><a title="" href="#"> <img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/1_8.jpg" alt="images"> </a></div>
</div>
</div>
</div>
';
$content_block7 = '
<div class="col-lg-2 col-md-2 col-sm-4 col-xs-12 laberLinks links">
<div class="wrapper">
<p class="h3 hidden-sm-down">Let Us Help You</p>
<div class="title clearfix hidden-md-up" data-target="#footer_sub_menu_customhtml" data-toggle="collapse"><span class="h3">Let Us Help You</span> <span class="float-xs-right"> <span class="navbar-toggler collapse-icons"> <i class="material-icons add"></i> <i class="material-icons remove"></i> </span> </span></div>
<ul id="footer_sub_menu_customhtml" class="collapse">
<li><a href="#" title="Return Policy">Return Policy</a></li>
<li><a href="#" title="Privacy Notice">Privacy Notice</a></li>
<li><a href="#" title="Terms of Use">Terms of Use</a></li>
<li><a href="#" title="Intellectual Property ">Intellectual Property </a></li>
<li><a href="#" title="nfringement Policy">nfringement Policy</a></li>
</ul>
</div>
</div>
';
$content_block8 = '
<div class="customlink">
<p style="text-align: center;"><a href="#">Air Conditioners</a> <a href="#">Audios & Theaters</a> <a href="#">Car Electronics</a> <a href="#">Office Electronics</a> <a href="#">TV Televisions </a> <a href="#">Washing Machines</a></p>
<p style="text-align: center;"><a href="#">Cookware</a> <a href="#">Decoration</a> <a href="#">Furniture</a> <a href="#">Garden Tools</a> <a href="#">Garden Equipments</a> <a href="#">Powers And Hand Tools</a> <a href="#">Utensil & Gadget Printers</a> <a href="#">Projectors Scanners</a> <a href="#">Store & Business</a></p>
<p style="text-align: center;"><a href="#">4K Ultra HD TVs</a> <a href="#">LED TVs</a> <a href="#">OLED TVs</a> <a href="#">Desktop PC</a> <a href="#">Laptop</a> <a href="#">Smartphones</a> <a href="#">Tablet</a> <a href="#">Game Controller</a> <a href="#">Audio & Video</a> <a href="#">Wireless Speaker</a> <a href="#">Drone</a></p>
</div>
';
$content_block9 = '
<div class="footer_amera">
<div class="logo_footer"><a href="#"><img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/logo.png"></a></div>
<div class="hotlineFree"><span class="icon"> <img src="http://laberpresta.com/v17/laber_amera_v17/img/cms/hotline.png"> </span>
<p>Hotline Free 24/24:</p>
<h3>(+100) 123 456 7890</h3>
</div>
</div>
';
$content_block10 = '
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<div class="copyright ">© 2019 <a href="https://themeforest.net/user/labertheme/portfolio">Laberthemes. </a>All Rights Reserved</div>
</div>
';
$content_block11 = '
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<div class="payment"><a href="#"><i class="fa fa-cc-mastercard"> </i></a> <a href="#"><i class="fa fa-cc-visa"> </i></a> <a href="#"><i class="fa fa-cc-paypal"> </i></a> <a href="#"><i class="fa fa-cc-discover"> </i></a> <a href="#"><i class="fa fa-credit-card"> </i></a> <a href="#"><i class="fa fa-cc-amex"> </i></a></div>
</div>
';
/*install static Block*/
$result = true;
$result &= Db::getInstance()->Execute('INSERT INTO `'._DB_PREFIX_.'laber_staticblock` (`id_labertaticblock`, `hook_position`, `posorder`, `active`, `showhook`)
VALUES
(1, "displayNav1", 0, 0, 1),
(2, "displaySearch", 0, 0, 1),
(3, "displayPosition1", 0, 0, 1),
(4, "displayPosition1", 0, 0, 1),
(5, "displayPosition2", 0, 0, 1),
(6, "displayPosition4", 0, 0, 1),
(7, "displayFooter", 0, 0, 1),
(8, "displayFooter2", 0, 0, 1),
(9, "logoFooter", 0, 0, 1),
(10, "displayFooterAfter", 0, 0, 1),
(11, "displayFooterAfter", 0, 0, 1)
;');
$result &= Db::getInstance()->Execute('INSERT INTO `'._DB_PREFIX_.'laber_staticblock_shop` (`id_labertaticblock`, `id_shop`)
VALUES
(1,1),
(2,1),
(3,1),
(4,1),
(5,1),
(6,1),
(7,1),
(8,1),
(9,1),
(10,1),
(11,1)
;');
foreach (Language::getLanguages(false) as $lang)
{
$result &= Db::getInstance()->Execute('INSERT INTO `'._DB_PREFIX_.'laber_staticblock_lang` (`id_labertaticblock`, `id_lang`, `title`, `description`)
VALUES
( "1","'.$lang['id_lang'].'","Welcome to Worldwide Electronics Store ", \''.$content_block1.'\'),
( "2","'.$lang['id_lang'].'","Hotline Free", \''.$content_block2.'\'),
( "3","'.$lang['id_lang'].'","freeshipping", \''.$content_block3.'\'),
( "4","'.$lang['id_lang'].'","banner displaypostion 1", \''.$content_block4.'\'),
( "5","'.$lang['id_lang'].'","banner displaypostion 2 ", \''.$content_block5.'\'),
( "6","'.$lang['id_lang'].'","banner displaypostion 4", \''.$content_block6.'\'),
( "7","'.$lang['id_lang'].'","custom link footer", \''.$content_block7.'\'),
( "8","'.$lang['id_lang'].'","custom link footer2", \''.$content_block8.'\'),
( "9","'.$lang['id_lang'].'","logo_footer", \''.$content_block9.'\'),
( "10","'.$lang['id_lang'].'","copyright", \''.$content_block10.'\'),
( "11","'.$lang['id_lang'].'","payment", \''.$content_block11.'\')
;');
}
return $result;
}
}