On rajoute encore quelques modules
1534
modules/blocktopdropdownmenu/blocktopdropdownmenu.php
Normal file
22
modules/blocktopdropdownmenu/blocktopdropdownmenu.tpl
Normal file
@@ -0,0 +1,22 @@
|
||||
{if $MENU != ''}
|
||||
<!-- Menu -->
|
||||
<div id="block_top_menu" class="sf-contener clearfix col-lg-12">
|
||||
<div class="cat-title">{l s='Menu' mod='blocktopdropdownmenu'}</div>
|
||||
<ul class="sf-menu clearfix menu-content">
|
||||
{$MENU nofilter}
|
||||
{if $MENU_SEARCH}
|
||||
<li class="sf-search noBack" style="float:right">
|
||||
<form id="searchbox" action="{$link->getPageLink('search')|escape:'html':'UTF-8'}" method="get">
|
||||
<p>
|
||||
<input type="hidden" name="controller" value="search" />
|
||||
<input type="hidden" value="position" name="orderby"/>
|
||||
<input type="hidden" value="desc" name="orderway"/>
|
||||
<input type="text" class="mypresta_search_query" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|escape:'html':'UTF-8'}{/if}" />
|
||||
</p>
|
||||
</form>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
<!--/ Menu -->
|
||||
{/if}
|
||||
12
modules/blocktopdropdownmenu/config_fr.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<module>
|
||||
<name>blocktopdropdownmenu</name>
|
||||
<displayName><![CDATA[Top horizontal menu]]></displayName>
|
||||
<version><![CDATA[1.0.5]]></version>
|
||||
<description><![CDATA[Adds a new horizontal menu to the top of your e-commerce website. It is an modification of default module that creates dropdown menu]]></description>
|
||||
<author><![CDATA[MyPresta.eu + PrestaShop]]></author>
|
||||
<tab><![CDATA[front_office_features]]></tab>
|
||||
<is_configurable>1</is_configurable>
|
||||
<need_instance>1</need_instance>
|
||||
<limited_countries></limited_countries>
|
||||
</module>
|
||||
24
modules/blocktopdropdownmenu/css/blocktopdropdownmenu.css
Normal file
@@ -0,0 +1,24 @@
|
||||
li.sf-search #searchbox p::after {
|
||||
direction: ltr;
|
||||
font-family: 'Material Icons';
|
||||
font-size: 24px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
letter-spacing: normal;
|
||||
line-height: 1;
|
||||
text-transform: none;
|
||||
white-space: nowrap;
|
||||
word-wrap: normal;
|
||||
-webkit-font-feature-settings: 'liga';
|
||||
-webkit-font-smoothing: antialiased;
|
||||
content: "search";
|
||||
display: block;
|
||||
width: 23px;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
z-index: 99999;
|
||||
position: absolute;
|
||||
top: 18px;
|
||||
right: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
35
modules/blocktopdropdownmenu/css/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
294
modules/blocktopdropdownmenu/css/superfish-modified.css
Normal file
@@ -0,0 +1,294 @@
|
||||
/*** ESSENTIAL STYLES ***/
|
||||
.sf-contener {
|
||||
clear: both;
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
.sf-menu, .sf-menu * {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.sf-menu {
|
||||
position: relative;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
border-bottom: 3px solid #e9e9e9;
|
||||
background: #f6f6f6;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.sf-menu {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.sf-menu ul {
|
||||
position: absolute;
|
||||
top: -999em;
|
||||
background: #fff;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.sf-menu ul {
|
||||
top:0;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
.sf-menu > li > a {
|
||||
font: 600 18px/22px "Open Sans", sans-serif;
|
||||
text-transform: uppercase;
|
||||
color: #484848;
|
||||
display: block;
|
||||
padding: 17px 20px;
|
||||
}
|
||||
.sf-menu .sf-sub-indicator {
|
||||
display:none;
|
||||
}
|
||||
.sf-menu ul li {
|
||||
width: 100%;
|
||||
}
|
||||
.sf-menu li:hover {
|
||||
visibility: inherit;
|
||||
/* fixes IE7 'sticky bug' */
|
||||
}
|
||||
.sf-menu > li {
|
||||
float: left;
|
||||
position: relative;
|
||||
border-right: 1px solid #eadbdb;
|
||||
}
|
||||
.sf-menu a {
|
||||
display: block;
|
||||
position: relative;
|
||||
color:#000;
|
||||
}
|
||||
.sf-menu li:hover ul, .sf-menu li.sfHover ul {
|
||||
left: 0;
|
||||
top: 57px;
|
||||
/* match top ul list item height */
|
||||
z-index: 99;
|
||||
width:auto;
|
||||
}
|
||||
ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul {
|
||||
top: -999em;
|
||||
}
|
||||
ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul {
|
||||
left: 300px;
|
||||
/* match ul width */
|
||||
top: 0;
|
||||
}
|
||||
ul.sf-menu li li:hover li ul, ul.sf-menu li li.sfHover li ul {
|
||||
top: -999em;
|
||||
}
|
||||
ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul {
|
||||
left: 300px;
|
||||
/* match ul width */
|
||||
top: 0;
|
||||
}
|
||||
/*** DEMO SKIN ***/
|
||||
.sf-menu {
|
||||
float: left;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.sf-menu a {
|
||||
display:block;
|
||||
padding: 5px 22px 5px 20px;
|
||||
line-height:34px;
|
||||
border: 0;
|
||||
text-decoration:none;
|
||||
}
|
||||
.sf-menu a, .sf-menu a:visited {
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
white-space:nowrap;
|
||||
text-shadow: 1px 1px 0px #fff;
|
||||
}
|
||||
.sf-menu li li {
|
||||
background: rgba(246, 246, 246, 0.9);
|
||||
}
|
||||
.sf-menu li li li {
|
||||
background: rgba(246, 246, 246, 0.9);
|
||||
}
|
||||
.sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active {
|
||||
background: rgba(255, 255, 255, 0.98);
|
||||
}
|
||||
.sf-menu ul li:hover, .sf-menu ul li.sfHover, .sf-menu ul li a:focus, .sf-menu ul li a:hover, .sf-menu ul li a:active {
|
||||
background: rgba(255, 255, 255, 0.98);
|
||||
outline: 0;
|
||||
}
|
||||
/*** arrows **/
|
||||
.sf-sub-indicator {
|
||||
position: absolute;
|
||||
display: block;
|
||||
right: 10px;
|
||||
top: 1.05em;
|
||||
/* IE6 only */
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
text-indent: -999em;
|
||||
overflow: hidden;
|
||||
}
|
||||
.sf-sub-indicator:after {
|
||||
font-family: 'Material Icons';
|
||||
content: '\e5cc';
|
||||
}
|
||||
a > .sf-sub-indicator {
|
||||
/* give all except IE6 the correct values */
|
||||
top: 11px;
|
||||
background-position: 0 -100px;
|
||||
/* use translucent arrow for modern browsers*/
|
||||
}
|
||||
/* apply hovers to modern browsers */
|
||||
a:focus > .sf-sub-indicator, a:hover > .sf-sub-indicator, a:active > .sf-sub-indicator, li:hover > a > .sf-sub-indicator, li.sfHover > a > .sf-sub-indicator {
|
||||
background-position: -10px -100px;
|
||||
/* arrow hovers for modern browsers*/
|
||||
}
|
||||
/* point right for anchors in subs */
|
||||
.sf-menu ul .sf-sub-indicator {
|
||||
background-position: -10px 0;
|
||||
}
|
||||
.sf-menu ul a > .sf-sub-indicator {
|
||||
background-position: 0 0;
|
||||
}
|
||||
/* apply hovers to modern browsers */
|
||||
.sf-menu ul a:focus > .sf-sub-indicator, .sf-menu ul a:hover > .sf-sub-indicator, .sf-menu ul a:active > .sf-sub-indicator, .sf-menu ul li:hover > a > .sf-sub-indicator, .sf-menu ul li.sfHover > a > .sf-sub-indicator {
|
||||
background-position: -10px 0;
|
||||
/* arrow hovers for modern browsers*/
|
||||
}
|
||||
/*** shadows for all but IE6 ***/
|
||||
.sf-shadow ul {
|
||||
/* background: url('../img/shadow.png') no-repeat bottom right;
|
||||
*/
|
||||
/* padding: 0 8px 9px 0;
|
||||
*/
|
||||
-moz-border-bottom-left-radius: 17px;
|
||||
-moz-border-top-right-radius: 17px;
|
||||
-webkit-border-top-right-radius: 17px;
|
||||
-webkit-border-bottom-left-radius: 17px;
|
||||
}
|
||||
.sf-shadow ul.sf-shadow-off {
|
||||
background: transparent;
|
||||
}
|
||||
li.sf-search {
|
||||
background: inherit;
|
||||
float: right;
|
||||
line-height: 25px;
|
||||
}
|
||||
li.sf-search input {
|
||||
border-radius: 5px;
|
||||
padding: 8px 0;
|
||||
padding-left: 10px;
|
||||
font-size:16px;
|
||||
margin: 6px 6px 0 0;
|
||||
background: #ffffff;
|
||||
border:1px solid #eadbdb;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* hack IE7 */
|
||||
.sf-menu a, .sf-menu a:visited {
|
||||
height:34px !IE;
|
||||
}
|
||||
.sf-menu li li {
|
||||
width:300px;
|
||||
background:#726f72 !IE;
|
||||
}
|
||||
.sf-menu .category-thumbnail img {
|
||||
max-width:100%;
|
||||
height:auto;
|
||||
}
|
||||
@media (max-width: 767px){
|
||||
.sf-menu .sf-search {
|
||||
display: none !important;
|
||||
}
|
||||
.sf-menu > li span {
|
||||
position: absolute;
|
||||
right: 6px;
|
||||
top: 20px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
z-index: 2;
|
||||
}
|
||||
.sf-menu > li span:after {
|
||||
font-family: "Material Icons";
|
||||
content: "\e145";
|
||||
font-size: 26px;
|
||||
}
|
||||
.sf-menu li, .sf-menu li ul {
|
||||
width:100%!important;
|
||||
}
|
||||
.sf-menu li:hover ul, .sf-menu li.sfHover ul {
|
||||
left: 0;
|
||||
top: 0px;
|
||||
}
|
||||
ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul {
|
||||
left:0;
|
||||
}
|
||||
.menu-mobile {
|
||||
display:none;
|
||||
}
|
||||
ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul {
|
||||
top: 0;
|
||||
}
|
||||
ul.sf-menu li ul li ul li {
|
||||
padding-left:15px;
|
||||
}
|
||||
ul.sf-menu li ul li ul li:before {
|
||||
width:1px;
|
||||
height:44px;
|
||||
display:inline-block;
|
||||
float:left;
|
||||
position:relative;
|
||||
margin-left:10px;
|
||||
background:#ece7e7;
|
||||
content:' '
|
||||
}
|
||||
.sf-menu > li span.active:after {
|
||||
content: "\e15b";
|
||||
}
|
||||
}
|
||||
.cat-title {
|
||||
display: none;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.cat-title {
|
||||
display: block;
|
||||
font: 600 18px/22px "Open Sans", sans-serif;
|
||||
text-transform: uppercase;
|
||||
color: #484848;
|
||||
display: block;
|
||||
padding: 17px 20px;
|
||||
border-bottom: 3px solid #e9e9e9;
|
||||
background: #f6f6f6;
|
||||
position: relative;
|
||||
}
|
||||
.cat-title:hover {
|
||||
background: #333;
|
||||
border-bottom-color: #666666;
|
||||
color: #fff;
|
||||
}
|
||||
.cat-title:after {
|
||||
display: block;
|
||||
font-family: "Material Icons";
|
||||
content: "\e5d2";
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
top: 18px;
|
||||
font-size: 26px;
|
||||
}
|
||||
.cat-title.active:after {
|
||||
content: "\e14c";
|
||||
}
|
||||
}
|
||||
.submenu-container, .submenu-container ul {
|
||||
box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.sf-menu li:last-child {
|
||||
border:none!important;
|
||||
}
|
||||
|
||||
#block_top_menu {
|
||||
padding:0px;
|
||||
}
|
||||
|
||||
.sf-menu li {
|
||||
position:relative!important;
|
||||
}
|
||||
BIN
modules/blocktopdropdownmenu/img/arrows-ffffff.png
Normal file
|
After Width: | Height: | Size: 175 B |
|
After Width: | Height: | Size: 208 B |
BIN
modules/blocktopdropdownmenu/img/blocktopdropdownmenu.gif
Normal file
|
After Width: | Height: | Size: 839 B |
BIN
modules/blocktopdropdownmenu/img/blocktopdropdownmenu_hover.gif
Normal file
|
After Width: | Height: | Size: 155 B |
BIN
modules/blocktopdropdownmenu/img/blocktopdropdownmenu_left.gif
Normal file
|
After Width: | Height: | Size: 353 B |
BIN
modules/blocktopdropdownmenu/img/blocktopdropdownmenu_right.gif
Normal file
|
After Width: | Height: | Size: 353 B |
35
modules/blocktopdropdownmenu/img/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
BIN
modules/blocktopdropdownmenu/img/search.gif
Normal file
|
After Width: | Height: | Size: 662 B |
BIN
modules/blocktopdropdownmenu/img/shadow.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
35
modules/blocktopdropdownmenu/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
131
modules/blocktopdropdownmenu/js/blocktopdropdownmenu.js
Normal file
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* 2007-2017 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-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
var responsiveflagMenu = false;
|
||||
var categoryMenu = $('ul.sf-menu');
|
||||
var mCategoryGrover = $('.sf-contener .cat-title');
|
||||
|
||||
$(document).ready(function(){
|
||||
categoryMenu = $('ul.sf-menu');
|
||||
mCategoryGrover = $('.sf-contener .cat-title');
|
||||
responsiveMenu();
|
||||
$(window).resize(responsiveMenu);
|
||||
});
|
||||
|
||||
// check resolution
|
||||
function responsiveMenu()
|
||||
{
|
||||
if ($(window).width() <= 767 && responsiveflagMenu == false) {
|
||||
menuChange('enable');
|
||||
responsiveflagMenu = true;
|
||||
} else if ($(window).width() >= 768) {
|
||||
menuChange('disable');
|
||||
responsiveflagMenu = false;
|
||||
}
|
||||
}
|
||||
|
||||
// init Super Fish Menu for 767px+ resolution
|
||||
function desktopInit()
|
||||
{
|
||||
mCategoryGrover.off();
|
||||
mCategoryGrover.removeClass('active');
|
||||
$('.sf-menu > li > ul').removeClass('menu-mobile').parent().find('.menu-mobile-grover').remove();
|
||||
$('.sf-menu').removeAttr('style');
|
||||
categoryMenu.superfish('init');
|
||||
//add class for width define
|
||||
$('.sf-menu > li > ul').addClass('submenu-container clearfix');
|
||||
// loop through each sublist under each top list item
|
||||
$('.sf-menu > li > ul').each(function(){
|
||||
i = 0;
|
||||
//add classes for clearing
|
||||
$(this).each(function(){
|
||||
if ($(this).attr('class') != "category-thumbnail"){
|
||||
i++;
|
||||
if(i % 2 == 1)
|
||||
$(this).addClass('first-in-line-xs');
|
||||
else if (i % 5 == 1)
|
||||
$(this).addClass('first-in-line-lg');
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function mobileInit()
|
||||
{
|
||||
|
||||
categoryMenu.superfish('destroy');
|
||||
$('.sf-menu').removeAttr('style');
|
||||
|
||||
mCategoryGrover.on('click', function(e){
|
||||
$(this).toggleClass('active').parent().find('ul.menu-content').stop().slideToggle('medium');
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.sf-menu > li > ul').addClass('menu-mobile clearfix').parent().prepend('<span class="menu-mobile-grover"></span>');
|
||||
|
||||
$(".sf-menu .menu-mobile-grover").on('click', function(e){
|
||||
var catSubUl = $(this).next().next('.menu-mobile');
|
||||
if (catSubUl.is(':hidden'))
|
||||
{
|
||||
catSubUl.slideDown();
|
||||
$(this).addClass('active');
|
||||
}
|
||||
else
|
||||
{
|
||||
catSubUl.slideUp();
|
||||
$(this).removeClass('active');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
$('#block_top_menu > ul:first > li > a').on('click', function(e){
|
||||
var parentOffset = $(this).prev().offset();
|
||||
var relX = parentOffset.left - e.pageX;
|
||||
if ($(this).parent('li').find('ul').length && relX >= 0 && relX <= 20)
|
||||
{
|
||||
e.preventDefault();
|
||||
var mobCatSubUl = $(this).next('.menu-mobile');
|
||||
var mobMenuGrover = $(this).prev();
|
||||
if (mobCatSubUl.is(':hidden'))
|
||||
{
|
||||
mobCatSubUl.slideDown();
|
||||
mobMenuGrover.addClass('active');
|
||||
}
|
||||
else
|
||||
{
|
||||
mobCatSubUl.slideUp();
|
||||
mobMenuGrover.removeClass('active');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// change the menu display at different resolutions
|
||||
function menuChange(status)
|
||||
{
|
||||
status == 'enable' ? mobileInit(): desktopInit();
|
||||
}
|
||||
114
modules/blocktopdropdownmenu/js/hoverIntent.js
Normal file
@@ -0,0 +1,114 @@
|
||||
/**
|
||||
* hoverIntent is similar to jQuery's built-in "hover" method except that
|
||||
* instead of firing the handlerIn function immediately, hoverIntent checks
|
||||
* to see if the user's mouse has slowed down (beneath the sensitivity
|
||||
* threshold) before firing the event. The handlerOut function is only
|
||||
* called after a matching handlerIn.
|
||||
*
|
||||
* hoverIntent r7 // 2013.03.11 // jQuery 1.9.1+
|
||||
* http://cherne.net/brian/resources/jquery.hoverIntent.html
|
||||
*
|
||||
* You may use hoverIntent under the terms of the MIT license. Basically that
|
||||
* means you are free to use hoverIntent as long as this header is left intact.
|
||||
* Copyright 2007, 2013 Brian Cherne
|
||||
*
|
||||
* // basic usage ... just like .hover()
|
||||
* .hoverIntent( handlerIn, handlerOut )
|
||||
* .hoverIntent( handlerInOut )
|
||||
*
|
||||
* // basic usage ... with event delegation!
|
||||
* .hoverIntent( handlerIn, handlerOut, selector )
|
||||
* .hoverIntent( handlerInOut, selector )
|
||||
*
|
||||
* // using a basic configuration object
|
||||
* .hoverIntent( config )
|
||||
*
|
||||
* @param handlerIn function OR configuration object
|
||||
* @param handlerOut function OR selector for delegation OR undefined
|
||||
* @param selector selector OR undefined
|
||||
* @author Brian Cherne <brian(at)cherne(dot)net>
|
||||
**/
|
||||
(function($) {
|
||||
$.fn.hoverIntent = function(handlerIn,handlerOut,selector) {
|
||||
|
||||
// default configuration values
|
||||
var cfg = {
|
||||
interval: 100,
|
||||
sensitivity: 7,
|
||||
timeout: 0
|
||||
};
|
||||
|
||||
if ( typeof handlerIn === "object" ) {
|
||||
cfg = $.extend(cfg, handlerIn );
|
||||
} else if ($.isFunction(handlerOut)) {
|
||||
cfg = $.extend(cfg, { over: handlerIn, out: handlerOut, selector: selector } );
|
||||
} else {
|
||||
cfg = $.extend(cfg, { over: handlerIn, out: handlerIn, selector: handlerOut } );
|
||||
}
|
||||
|
||||
// instantiate variables
|
||||
// cX, cY = current X and Y position of mouse, updated by mousemove event
|
||||
// pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
|
||||
var cX, cY, pX, pY;
|
||||
|
||||
// A private function for getting mouse position
|
||||
var track = function(ev) {
|
||||
cX = ev.pageX;
|
||||
cY = ev.pageY;
|
||||
};
|
||||
|
||||
// A private function for comparing current and previous mouse position
|
||||
var compare = function(ev,ob) {
|
||||
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
||||
// compare mouse positions to see if they've crossed the threshold
|
||||
if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
|
||||
$(ob).off("mousemove.hoverIntent",track);
|
||||
// set hoverIntent state to true (so mouseOut can be called)
|
||||
ob.hoverIntent_s = 1;
|
||||
return cfg.over.apply(ob,[ev]);
|
||||
} else {
|
||||
// set previous coordinates for next time
|
||||
pX = cX; pY = cY;
|
||||
// use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
|
||||
ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
|
||||
}
|
||||
};
|
||||
|
||||
// A private function for delaying the mouseOut function
|
||||
var delay = function(ev,ob) {
|
||||
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
||||
ob.hoverIntent_s = 0;
|
||||
return cfg.out.apply(ob,[ev]);
|
||||
};
|
||||
|
||||
// A private function for handling mouse 'hovering'
|
||||
var handleHover = function(e) {
|
||||
// copy objects to be passed into t (required for event object to be passed in IE)
|
||||
var ev = jQuery.extend({},e);
|
||||
var ob = this;
|
||||
|
||||
// cancel hoverIntent timer if it exists
|
||||
if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }
|
||||
|
||||
// if e.type == "mouseenter"
|
||||
if (e.type == "mouseenter") {
|
||||
// set "previous" X and Y position based on initial entry point
|
||||
pX = ev.pageX; pY = ev.pageY;
|
||||
// update "current" X and Y position based on mousemove
|
||||
$(ob).on("mousemove.hoverIntent",track);
|
||||
// start polling interval (self-calling timeout) to compare mouse coordinates over time
|
||||
if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}
|
||||
|
||||
// else e.type == "mouseleave"
|
||||
} else {
|
||||
// unbind expensive mousemove event
|
||||
$(ob).off("mousemove.hoverIntent",track);
|
||||
// if hoverIntent state is true, then call the mouseOut function after the specified delay
|
||||
if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
|
||||
}
|
||||
};
|
||||
|
||||
// listen for mouseenter and mouseleave
|
||||
return this.on({'mouseenter.hoverIntent':handleHover,'mouseleave.hoverIntent':handleHover}, cfg.selector);
|
||||
};
|
||||
})(jQuery);
|
||||
35
modules/blocktopdropdownmenu/js/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2017 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-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
257
modules/blocktopdropdownmenu/js/superfish-modified.js
Normal file
@@ -0,0 +1,257 @@
|
||||
/*
|
||||
* jQuery Superfish Menu Plugin - v1.7.4
|
||||
* Copyright (c) 2013 Joel Birch
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*/
|
||||
|
||||
(function ($) {
|
||||
"use strict";
|
||||
|
||||
var methods = (function () {
|
||||
// private properties and methods go here
|
||||
var c = {
|
||||
bcClass: 'sf-breadcrumb',
|
||||
menuClass: 'sf-js-enabled',
|
||||
anchorClass: 'sf-with-ul',
|
||||
menuArrowClass: 'sf-arrows'
|
||||
},
|
||||
ios = (function () {
|
||||
var ios = /iPhone|iPad|iPod/i.test(navigator.userAgent);
|
||||
if (ios) {
|
||||
// iOS clicks only bubble as far as body children
|
||||
$(window).load(function () {
|
||||
$('body').children().on('click', $.noop);
|
||||
});
|
||||
}
|
||||
return ios;
|
||||
})(),
|
||||
wp7 = (function () {
|
||||
var style = document.documentElement.style;
|
||||
return ('behavior' in style && 'fill' in style && /iemobile/i.test(navigator.userAgent));
|
||||
})(),
|
||||
toggleMenuClasses = function ($menu, o) {
|
||||
var classes = c.menuClass;
|
||||
if (o.cssArrows) {
|
||||
classes += ' ' + c.menuArrowClass;
|
||||
}
|
||||
$menu.toggleClass(classes);
|
||||
},
|
||||
setPathToCurrent = function ($menu, o) {
|
||||
return $menu.find('li.' + o.pathClass).slice(0, o.pathLevels)
|
||||
.addClass(o.hoverClass + ' ' + c.bcClass)
|
||||
.filter(function () {
|
||||
return ($(this).children(o.popUpSelector).hide().show().length);
|
||||
}).removeClass(o.pathClass);
|
||||
},
|
||||
toggleAnchorClass = function ($li) {
|
||||
$li.children('a').toggleClass(c.anchorClass);
|
||||
},
|
||||
toggleTouchAction = function ($menu) {
|
||||
var touchAction = $menu.css('ms-touch-action');
|
||||
touchAction = (touchAction === 'pan-y') ? 'auto' : 'pan-y';
|
||||
$menu.css('ms-touch-action', touchAction);
|
||||
},
|
||||
applyHandlers = function ($menu, o) {
|
||||
var targets = 'li:has(' + o.popUpSelector + ')';
|
||||
if ($.fn.hoverIntent && !o.disableHI) {
|
||||
$menu.hoverIntent(over, out, targets);
|
||||
}
|
||||
else {
|
||||
$menu
|
||||
.on('mouseenter.superfish', targets, over)
|
||||
.on('mouseleave.superfish', targets, out);
|
||||
}
|
||||
var touchevent = 'MSPointerDown.superfish';
|
||||
if (!ios) {
|
||||
touchevent += ' touchend.superfish';
|
||||
}
|
||||
if (wp7) {
|
||||
touchevent += ' mousedown.superfish';
|
||||
}
|
||||
$menu
|
||||
.on('focusin.superfish', 'li', over)
|
||||
.on('focusout.superfish', 'li', out)
|
||||
.on(touchevent, 'a', o, touchHandler);
|
||||
},
|
||||
touchHandler = function (e) {
|
||||
var $this = $(this),
|
||||
$ul = $this.siblings(e.data.popUpSelector);
|
||||
|
||||
if ($ul.length > 0 && $ul.is(':hidden')) {
|
||||
$this.one('click.superfish', false);
|
||||
if (e.type === 'MSPointerDown') {
|
||||
$this.trigger('focus');
|
||||
} else {
|
||||
$.proxy(over, $this.parent('li'))();
|
||||
}
|
||||
}
|
||||
},
|
||||
over = function () {
|
||||
var $this = $(this),
|
||||
o = getOptions($this);
|
||||
clearTimeout(o.sfTimer);
|
||||
$this.siblings().superfish('hide').end().superfish('show');
|
||||
},
|
||||
out = function () {
|
||||
var $this = $(this),
|
||||
o = getOptions($this);
|
||||
if (ios) {
|
||||
$.proxy(close, $this, o)();
|
||||
}
|
||||
else {
|
||||
clearTimeout(o.sfTimer);
|
||||
o.sfTimer = setTimeout($.proxy(close, $this, o), o.delay);
|
||||
}
|
||||
},
|
||||
close = function (o) {
|
||||
o.retainPath = ($.inArray(this[0], o.$path) > -1);
|
||||
this.superfish('hide');
|
||||
|
||||
if (!this.parents('.' + o.hoverClass).length) {
|
||||
o.onIdle.call(getMenu(this));
|
||||
if (o.$path.length) {
|
||||
$.proxy(over, o.$path)();
|
||||
}
|
||||
}
|
||||
},
|
||||
getMenu = function ($el) {
|
||||
return $el.closest('.' + c.menuClass);
|
||||
},
|
||||
getOptions = function ($el) {
|
||||
return getMenu($el).data('sf-options');
|
||||
};
|
||||
|
||||
return {
|
||||
// public methods
|
||||
hide: function (instant) {
|
||||
if (this.length) {
|
||||
var $this = this,
|
||||
o = getOptions($this);
|
||||
if (!o) {
|
||||
return this;
|
||||
}
|
||||
var not = (o.retainPath === true) ? o.$path : '',
|
||||
$ul = $this.find('li.' + o.hoverClass).add(this).not(not).removeClass(o.hoverClass).children(o.popUpSelector),
|
||||
speed = o.speedOut;
|
||||
|
||||
if (instant) {
|
||||
$ul.show();
|
||||
speed = 0;
|
||||
}
|
||||
o.retainPath = false;
|
||||
o.onBeforeHide.call($ul);
|
||||
$ul.stop(true, true).animate(o.animationOut, speed, function () {
|
||||
var $this = $(this);
|
||||
o.onHide.call($this);
|
||||
});
|
||||
}
|
||||
return this;
|
||||
},
|
||||
show: function () {
|
||||
var o = getOptions(this);
|
||||
if (!o) {
|
||||
return this;
|
||||
}
|
||||
var $this = this.addClass(o.hoverClass),
|
||||
$ul = $this.children(o.popUpSelector);
|
||||
|
||||
o.onBeforeShow.call($ul);
|
||||
$ul.stop(true, true).animate(o.animation, o.speed, function () {
|
||||
o.onShow.call($ul);
|
||||
});
|
||||
return this;
|
||||
},
|
||||
destroy: function () {
|
||||
return this.each(function () {
|
||||
var $this = $(this),
|
||||
o = $this.data('sf-options'),
|
||||
$hasPopUp;
|
||||
if (!o) {
|
||||
return false;
|
||||
}
|
||||
$hasPopUp = $this.find(o.popUpSelector).parent('li');
|
||||
clearTimeout(o.sfTimer);
|
||||
toggleMenuClasses($this, o);
|
||||
toggleAnchorClass($hasPopUp);
|
||||
toggleTouchAction($this);
|
||||
// remove event handlers
|
||||
$this.off('.superfish').off('.hoverIntent');
|
||||
// clear animation's inline display style
|
||||
$hasPopUp.children(o.popUpSelector).attr('style', function (i, style) {
|
||||
return style.replace(/display[^;]+;?/g, '');
|
||||
});
|
||||
// reset 'current' path classes
|
||||
o.$path.removeClass(o.hoverClass + ' ' + c.bcClass).addClass(o.pathClass);
|
||||
$this.find('.' + o.hoverClass).removeClass(o.hoverClass);
|
||||
o.onDestroy.call($this);
|
||||
$this.removeData('sf-options');
|
||||
});
|
||||
},
|
||||
init: function (op) {
|
||||
return this.each(function () {
|
||||
var $this = $(this);
|
||||
if ($this.data('sf-options')) {
|
||||
return false;
|
||||
}
|
||||
var o = $.extend({}, $.fn.superfish.defaults, op),
|
||||
$hasPopUp = $this.find(o.popUpSelector).parent('li');
|
||||
o.$path = setPathToCurrent($this, o);
|
||||
|
||||
$this.data('sf-options', o);
|
||||
|
||||
toggleMenuClasses($this, o);
|
||||
toggleAnchorClass($hasPopUp);
|
||||
toggleTouchAction($this);
|
||||
applyHandlers($this, o);
|
||||
|
||||
$hasPopUp.not('.' + c.bcClass).superfish('hide', true);
|
||||
|
||||
o.onInit.call(this);
|
||||
});
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
||||
$.fn.superfish = function (method, args) {
|
||||
if (methods[method]) {
|
||||
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
||||
}
|
||||
else if (typeof method === 'object' || ! method) {
|
||||
return methods.init.apply(this, arguments);
|
||||
}
|
||||
else {
|
||||
return $.error('Method ' + method + ' does not exist on jQuery.fn.superfish');
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.superfish.defaults = {
|
||||
popUpSelector: 'ul,.sf-mega', // within menu context
|
||||
hoverClass: 'sfHover',
|
||||
pathClass: 'overrideThisToUse',
|
||||
pathLevels: 1,
|
||||
delay: 800,
|
||||
animation: {opacity: 'show'},
|
||||
animationOut: {opacity: 'hide'},
|
||||
speed: 'normal',
|
||||
speedOut: 'fast',
|
||||
cssArrows: true,
|
||||
disableHI: false,
|
||||
onInit: $.noop,
|
||||
onBeforeShow: $.noop,
|
||||
onShow: $.noop,
|
||||
onBeforeHide: $.noop,
|
||||
onHide: $.noop,
|
||||
onIdle: $.noop,
|
||||
onDestroy: $.noop
|
||||
};
|
||||
|
||||
// soon to be deprecated
|
||||
$.fn.extend({
|
||||
hideSuperfishUl: methods.hide,
|
||||
showSuperfishUl: methods.show
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
BIN
modules/blocktopdropdownmenu/logo.gif
Normal file
|
After Width: | Height: | Size: 377 B |
BIN
modules/blocktopdropdownmenu/logo.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
146
modules/blocktopdropdownmenu/menutoplinks.class.php
Normal file
@@ -0,0 +1,146 @@
|
||||
<?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 MenuTopDropdownLinks
|
||||
{
|
||||
public static function gets($id_lang, $id_linksmenutop = null, $id_shop)
|
||||
{
|
||||
$sql = 'SELECT l.id_linksmenutop, l.new_window, s.name, ll.link, ll.label
|
||||
FROM '._DB_PREFIX_.'linksmenutop l
|
||||
LEFT JOIN '._DB_PREFIX_.'linksmenutop_lang ll ON (l.id_linksmenutop = ll.id_linksmenutop AND ll.id_lang = '.(int)$id_lang.' AND ll.id_shop='.(int)$id_shop.')
|
||||
LEFT JOIN '._DB_PREFIX_.'shop s ON l.id_shop = s.id_shop
|
||||
WHERE 1 '.((!is_null($id_linksmenutop)) ? ' AND l.id_linksmenutop = "'.(int)$id_linksmenutop.'"' : '').'
|
||||
AND l.id_shop IN (0, '.(int)$id_shop.')';
|
||||
|
||||
return Db::getInstance()->executeS($sql);
|
||||
}
|
||||
|
||||
public static function get($id_linksmenutop, $id_lang, $id_shop)
|
||||
{
|
||||
return self::gets($id_lang, $id_linksmenutop, $id_shop);
|
||||
}
|
||||
|
||||
public static function getLinkLang($id_linksmenutop, $id_shop)
|
||||
{
|
||||
$ret = Db::getInstance()->executeS('
|
||||
SELECT l.id_linksmenutop, l.new_window, ll.link, ll.label, ll.id_lang
|
||||
FROM '._DB_PREFIX_.'linksmenutop l
|
||||
LEFT JOIN '._DB_PREFIX_.'linksmenutop_lang ll ON (l.id_linksmenutop = ll.id_linksmenutop AND ll.id_shop='.(int)$id_shop.')
|
||||
WHERE 1
|
||||
'.((!is_null($id_linksmenutop)) ? ' AND l.id_linksmenutop = "'.(int)$id_linksmenutop.'"' : '').'
|
||||
AND l.id_shop IN (0, '.(int)$id_shop.')
|
||||
');
|
||||
|
||||
$link = array();
|
||||
$label = array();
|
||||
$new_window = false;
|
||||
|
||||
foreach ($ret as $line) {
|
||||
$link[$line['id_lang']] = Tools::safeOutput($line['link']);
|
||||
$label[$line['id_lang']] = Tools::safeOutput($line['label']);
|
||||
$new_window = (bool)$line['new_window'];
|
||||
}
|
||||
|
||||
return array('link' => $link, 'label' => $label, 'new_window' => $new_window);
|
||||
}
|
||||
|
||||
public static function add($link, $label, $newWindow = 0, $id_shop)
|
||||
{
|
||||
if (!is_array($label)) {
|
||||
return false;
|
||||
}
|
||||
if (!is_array($link)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Db::getInstance()->insert(
|
||||
'linksmenutop',
|
||||
array(
|
||||
'new_window'=>(int)$newWindow,
|
||||
'id_shop' => (int)$id_shop
|
||||
)
|
||||
);
|
||||
$id_linksmenutop = Db::getInstance()->Insert_ID();
|
||||
|
||||
$result = true;
|
||||
|
||||
foreach ($label as $id_lang=>$label) {
|
||||
$result &= Db::getInstance()->insert(
|
||||
'linksmenutop_lang',
|
||||
array(
|
||||
'id_linksmenutop'=>(int)$id_linksmenutop,
|
||||
'id_lang'=>(int)$id_lang,
|
||||
'id_shop'=>(int)$id_shop,
|
||||
'label'=>pSQL($label),
|
||||
'link'=>pSQL($link[$id_lang])
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
public static function update($link, $labels, $newWindow = 0, $id_shop, $id_link)
|
||||
{
|
||||
if (!is_array($labels)) {
|
||||
return false;
|
||||
}
|
||||
if (!is_array($link)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Db::getInstance()->update(
|
||||
'linksmenutop',
|
||||
array(
|
||||
'new_window'=>(int)$newWindow,
|
||||
'id_shop' => (int)$id_shop
|
||||
),
|
||||
'id_linksmenutop = '.(int)$id_link
|
||||
);
|
||||
|
||||
foreach ($labels as $id_lang => $label) {
|
||||
Db::getInstance()->update(
|
||||
'linksmenutop_lang',
|
||||
array(
|
||||
'id_shop'=>(int)$id_shop,
|
||||
'label'=>pSQL($label),
|
||||
'link'=>pSQL($link[$id_lang])
|
||||
),
|
||||
'id_linksmenutop = '.(int)$id_link.' AND id_lang = '.(int)$id_lang
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static function remove($id_linksmenutop, $id_shop)
|
||||
{
|
||||
$result = true;
|
||||
$result &= Db::getInstance()->delete('linksmenutop', 'id_linksmenutop = '.(int)$id_linksmenutop.' AND id_shop = '.(int)$id_shop);
|
||||
$result &= Db::getInstance()->delete('linksmenutop_lang', 'id_linksmenutop = '.(int)$id_linksmenutop);
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
54
modules/blocktopdropdownmenu/translations/en.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e5b7525b4214a759876af4448bd6b87d'] = 'Top horizontal menu';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_f7979d86fe0b2cd11f44747ed4ff1100'] = 'Adds a new horizontal menu to the top of your e-commerce website.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_efc226b17e0532afff43be870bff0de7'] = 'The settings have been updated.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_d9a776c185f73d018b2915f4d5e7cc05'] = 'Unable to update settings for the following shop(s): %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_f32880ae5183a02c0a743bfd37a42cbc'] = 'Please complete the \"Link\" field.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_cf8d684bd5f89d30da67c95363a48ab9'] = 'Please add a label.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e8d6809226ab177013e0a26bd2d8b60d'] = 'Please add a label for your default language.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_3da9d5745155a430aac6d7de3b6de0c8'] = 'The link has been added.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_022bb0995e3256abeeac1788a5e2c5b3'] = 'Unable to add link for the following shop(s): %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e24e88b590807c2816be15abd7c7dbbc'] = 'The link has been removed.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e418ee8626f7941239c5b7a0880691ae'] = 'Unable to remove link for the following shop(s): %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_beb4f951c292ec9218473ffe5f59849d'] = 'The link has been edited.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b1a23c1a76918c10acc27bfa60798c42'] = 'You cannot manage top menu items from a \"All Shops\" or a \"Group Shop\" context, select directly the shop you want to edit';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_298b615220606d42b6ac60269df0d321'] = 'The modifications will be applied to shop: %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_aef3662e6419ddaaa0a31df70e3b6557'] = 'The modifications will be applied to this group: %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_dd25f68471362f6f5f183d6158d67854'] = 'The modifications will be applied to all shops';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_bf24faeb13210b5a703f3ccef792b000'] = 'All manufacturers';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ecf253735ac0cba84a9d2eeff1f1b87c'] = 'All suppliers';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_944d19a34e5fa333a6a0de27e8c971da'] = 'Menu Top Link';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_eacd852cc1f621763dccbda3f3c15081'] = 'Search bar';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Enabled';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b9f5c797ebbf55adccdd8539a65a0241'] = 'Disabled';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c9cc8cce247e49bae79f15173ce97354'] = 'Save';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_0a112e5da975d8eaf28df9219c397764'] = 'All active products combinations quantities will be changed';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_1a6191a2dc928ff8fb8c02c050975ea7'] = 'Update link';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_58e9b25bb2e2699986a3abe2c92fc82e'] = 'Add a new link';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b021df6aac4654c454f46c77646e745f'] = 'Label';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_97e7c9a7d06eac006a28bf05467fcc8b'] = 'Link';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e5dc8e5afea0a065948622039358de37'] = 'New window';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ec211f7c20af43e742bf2570c3cb84f9'] = 'Add';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_06933067aafd48425d67bcb01bba5cb6'] = 'Update';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c7da501f54544eba6787960200d9efdb'] = 'CMS';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ec136b444eede3bc85639fac0dd06229'] = 'Supplier';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c0bd7654d5b278e65f21cf4e9153fdb4'] = 'Manufacturer';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_af1b98adf7f686b84cd0b443e022b7a0'] = 'Categories';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_12a521af593422cd508f7707662c9eb2'] = 'Shops';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_068f80c7519d0528fb08e82137a72131'] = 'Products';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_778118c7dd993db08f704e15efa4a7fa'] = 'Choose product ID';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_56e8bf6c54f1638e7bce5a2fcd5b20fe'] = 'Menu Top Links';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_449f6d82cde894eafd3c85b6fa918f89'] = 'Link ID';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e93c33bd1341ab74195430daeb63db13'] = 'Shop name';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_387a8014f530f080bf2f3be723f8c164'] = 'Link list';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_17a1352d3f69a733fd472fce0238a07d'] = 'Indicate the ID number for the product';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_6bb999afde6fca60d70edce79d20b370'] = 'Product ID #';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_3ee3549ff0c93372a730749f784e9438'] = 'Please select just one item';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_e1b11c03820641dd1d1441bf68898d08'] = 'Change position';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_3713a99a6284e39061bd48069807aa52'] = 'Selected items';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_8fb31b552d63ffef9df733646a195bc0'] = 'Available items';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_1063e38cb53d94d386f21227fcd84717'] = 'Remove';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_ec211f7c20af43e742bf2570c3cb84f9'] = 'Add';
|
||||
35
modules/blocktopdropdownmenu/translations/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
54
modules/blocktopdropdownmenu/translations/it.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e5b7525b4214a759876af4448bd6b87d'] = 'Top Menù Orizzontale';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_f7979d86fe0b2cd11f44747ed4ff1100'] = 'Aggiunge un nuovo menù orizzontale in cima al tuo negozio.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_efc226b17e0532afff43be870bff0de7'] = 'Le impostazioni sono state aggiornate.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_d9a776c185f73d018b2915f4d5e7cc05'] = 'Impossibile aggiornare le impostazioni dei seguenti negozi: %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_f32880ae5183a02c0a743bfd37a42cbc'] = 'Riempire il campo “link”.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_cf8d684bd5f89d30da67c95363a48ab9'] = 'Aggiungi un\'etichetta.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e8d6809226ab177013e0a26bd2d8b60d'] = 'Aggiungi un\'etichetta per la lingua di default.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_3da9d5745155a430aac6d7de3b6de0c8'] = 'Il link è stato aggiunto con successo';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_022bb0995e3256abeeac1788a5e2c5b3'] = 'Impossibile aggiungere il link ai seguenti negozi: %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e24e88b590807c2816be15abd7c7dbbc'] = 'Il link è stato rimosso.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e418ee8626f7941239c5b7a0880691ae'] = 'Impossibile rimuovere il link ai seguenti negozi: %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_beb4f951c292ec9218473ffe5f59849d'] = 'Il link è stato modificato.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b1a23c1a76918c10acc27bfa60798c42'] = 'Non puoi amministrare gli oggetti del menù superiore da un contesto \"Tutti i negozi\" o \"Gruppo Negozi\". Seleziona direttamente il negozio che vuoi modificare.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_298b615220606d42b6ac60269df0d321'] = 'Le modifiche verranno applicate al negozio: %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_aef3662e6419ddaaa0a31df70e3b6557'] = 'Le modifiche verranno applicate a questo gruppo: %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_dd25f68471362f6f5f183d6158d67854'] = 'Le modifiche verranno applicate a tutti i negozi';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_bf24faeb13210b5a703f3ccef792b000'] = 'Tutti i produttori';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ecf253735ac0cba84a9d2eeff1f1b87c'] = 'Tutti i fornitori';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_944d19a34e5fa333a6a0de27e8c971da'] = 'Link del menu';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_eacd852cc1f621763dccbda3f3c15081'] = 'Barra di ricerca';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Attivato';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b9f5c797ebbf55adccdd8539a65a0241'] = 'Disattivato';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c9cc8cce247e49bae79f15173ce97354'] = 'Salva';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_0a112e5da975d8eaf28df9219c397764'] = 'Tutti prodotti, le combinazione e le quantità attive verranno cambiate';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_1a6191a2dc928ff8fb8c02c050975ea7'] = 'Aggiornamento Link';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_58e9b25bb2e2699986a3abe2c92fc82e'] = 'Aggiungi un nuovo link';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b021df6aac4654c454f46c77646e745f'] = 'Etichetta';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_97e7c9a7d06eac006a28bf05467fcc8b'] = 'Link';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e5dc8e5afea0a065948622039358de37'] = 'Nuova finestra';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ec211f7c20af43e742bf2570c3cb84f9'] = 'Aggiungi';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_06933067aafd48425d67bcb01bba5cb6'] = 'Aggiorna';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c7da501f54544eba6787960200d9efdb'] = 'CMS';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ec136b444eede3bc85639fac0dd06229'] = 'Fornitore';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c0bd7654d5b278e65f21cf4e9153fdb4'] = 'Produttore';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_af1b98adf7f686b84cd0b443e022b7a0'] = 'Categorie';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_12a521af593422cd508f7707662c9eb2'] = 'Negozi';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_068f80c7519d0528fb08e82137a72131'] = 'Prodotti';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_778118c7dd993db08f704e15efa4a7fa'] = 'Scegli un ID prodotto';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_56e8bf6c54f1638e7bce5a2fcd5b20fe'] = 'Link Top Menù';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_449f6d82cde894eafd3c85b6fa918f89'] = 'ID del Link';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e93c33bd1341ab74195430daeb63db13'] = 'Nome del negozio';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_387a8014f530f080bf2f3be723f8c164'] = 'Lista link';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_17a1352d3f69a733fd472fce0238a07d'] = 'Indica il numero ID del prodotto';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_6bb999afde6fca60d70edce79d20b370'] = 'ID prodotto:';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_3ee3549ff0c93372a730749f784e9438'] = 'Scegliere solo un articolo alla volta';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_e1b11c03820641dd1d1441bf68898d08'] = 'Cambia posizione';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_3713a99a6284e39061bd48069807aa52'] = 'Elementi selezionati';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_8fb31b552d63ffef9df733646a195bc0'] = 'Elementi disponibili';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_1063e38cb53d94d386f21227fcd84717'] = 'Rimuovi';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_ec211f7c20af43e742bf2570c3cb84f9'] = 'Aggiungi';
|
||||
53
modules/blocktopdropdownmenu/translations/pl.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e5b7525b4214a759876af4448bd6b87d'] = 'Górne menu poziome';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c9cc8cce247e49bae79f15173ce97354'] = 'Zapisz';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_efc226b17e0532afff43be870bff0de7'] = 'Ustawienia zostały zaktualizowane.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_d9a776c185f73d018b2915f4d5e7cc05'] = 'Nie można zaktualizować ustawienia dla następujących sklepów: %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_f32880ae5183a02c0a743bfd37a42cbc'] = 'Wypełnij proszę pole \"Link\".';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_cf8d684bd5f89d30da67c95363a48ab9'] = 'Proszę dodać etykietę.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e8d6809226ab177013e0a26bd2d8b60d'] = 'Podaj etykietę dla domyślnego języka';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_3da9d5745155a430aac6d7de3b6de0c8'] = 'Link został dodany.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_022bb0995e3256abeeac1788a5e2c5b3'] = 'Nie można dodać linku do następujących sklepów: %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e24e88b590807c2816be15abd7c7dbbc'] = 'Link został usunięty.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e418ee8626f7941239c5b7a0880691ae'] = 'Nie można usunąć łącza do następujących sklepów: %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_beb4f951c292ec9218473ffe5f59849d'] = 'Link został edytowany.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b1a23c1a76918c10acc27bfa60798c42'] = 'Nie możesz zarządzać elementami górnego menu w kontekście wszystkich sklepów lub grupy sklepów, wybierz bezpośrednio konkretny sklep do edycji.';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_298b615220606d42b6ac60269df0d321'] = 'Zmiany zostaną zastosowane do sklepu: %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_aef3662e6419ddaaa0a31df70e3b6557'] = 'Zmiany zostaną zastosowane do tej grupy: %s';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_dd25f68471362f6f5f183d6158d67854'] = 'Zmiany zostaną zastosowane do wszystkich sklepów';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_bf24faeb13210b5a703f3ccef792b000'] = 'Wszyscy producenci';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ecf253735ac0cba84a9d2eeff1f1b87c'] = 'Wszyscy dostawcy';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_944d19a34e5fa333a6a0de27e8c971da'] = 'Link górnego menu';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_eacd852cc1f621763dccbda3f3c15081'] = 'Pasek Szukania';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Włączony';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b9f5c797ebbf55adccdd8539a65a0241'] = 'Wyłączony';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_0a112e5da975d8eaf28df9219c397764'] = 'Wszystkie aktywne ilości kombinacji produktów zostaną zmienione';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_1a6191a2dc928ff8fb8c02c050975ea7'] = 'Link aktualizacji';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_58e9b25bb2e2699986a3abe2c92fc82e'] = 'Dodaj nowy link';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_b021df6aac4654c454f46c77646e745f'] = 'Etykieta';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_97e7c9a7d06eac006a28bf05467fcc8b'] = 'Odnośnik';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e5dc8e5afea0a065948622039358de37'] = 'Nowe okno';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ec211f7c20af43e742bf2570c3cb84f9'] = 'Dodaj';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_06933067aafd48425d67bcb01bba5cb6'] = 'Uaktualnij';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c7da501f54544eba6787960200d9efdb'] = 'CMS';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_ec136b444eede3bc85639fac0dd06229'] = 'Dostawca';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_c0bd7654d5b278e65f21cf4e9153fdb4'] = 'Producent';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_af1b98adf7f686b84cd0b443e022b7a0'] = 'Kategorie';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_12a521af593422cd508f7707662c9eb2'] = 'Sklepy';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_068f80c7519d0528fb08e82137a72131'] = 'Produkty';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_778118c7dd993db08f704e15efa4a7fa'] = 'Wybierz ID produktu';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_56e8bf6c54f1638e7bce5a2fcd5b20fe'] = 'Linki górnego menu';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_449f6d82cde894eafd3c85b6fa918f89'] = 'ID linku';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_e93c33bd1341ab74195430daeb63db13'] = 'Nazwa sklepu';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>blocktopdropdownmenu_387a8014f530f080bf2f3be723f8c164'] = 'Lista linków';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_17a1352d3f69a733fd472fce0238a07d'] = 'Podaje numer ID produktu';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_6bb999afde6fca60d70edce79d20b370'] = 'ID produktu #';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_3ee3549ff0c93372a730749f784e9438'] = 'Proszę wybrać tylko jeden';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_e1b11c03820641dd1d1441bf68898d08'] = 'Zmień położenie';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_3713a99a6284e39061bd48069807aa52'] = 'Wybrane elementy';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_8fb31b552d63ffef9df733646a195bc0'] = 'Dostępne elementy';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_1063e38cb53d94d386f21227fcd84717'] = 'Usuń';
|
||||
$_MODULE['<{blocktopdropdownmenu}prestashop>form_ec211f7c20af43e742bf2570c3cb84f9'] = 'Dodaj';
|
||||
10
modules/blocktopdropdownmenu/upgrade/install-1.6.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_6($object)
|
||||
{
|
||||
return ($object->registerHook('actionObjectCategoryAddAfter'));
|
||||
}
|
||||
33
modules/blocktopdropdownmenu/upgrade/install-2.1.1.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?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
|
||||
*/
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_2_1_1($object)
|
||||
{
|
||||
return ($object->registerHook('header'));
|
||||
}
|
||||
35
modules/blocktopdropdownmenu/views/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,125 @@
|
||||
{*
|
||||
* 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
|
||||
*}
|
||||
|
||||
{extends file="helpers/form/form.tpl"}
|
||||
|
||||
{block name="script"}
|
||||
$(document).ready(function(){
|
||||
$('#menuOrderUp').click(function(e){
|
||||
e.preventDefault();
|
||||
move(true);
|
||||
});
|
||||
$('#menuOrderDown').click(function(e){
|
||||
e.preventDefault();
|
||||
move();
|
||||
});
|
||||
$("#items").closest('form').on('submit', function(e) {
|
||||
$("#items option").prop('selected', true);
|
||||
});
|
||||
$("#addItem").click(add);
|
||||
$("#availableItems").dblclick(add);
|
||||
$("#removeItem").click(remove);
|
||||
$("#items").dblclick(remove);
|
||||
function add()
|
||||
{
|
||||
$("#availableItems option:selected").each(function(i){
|
||||
var val = $(this).val();
|
||||
var text = $(this).text();
|
||||
text = text.replace(/(^\s*)|(\s*$)/gi,"");
|
||||
if (val == "PRODUCT")
|
||||
{
|
||||
val = prompt('{l s="Indicate the ID number for the product" mod='blocktopdropdownmenu' js=1}');
|
||||
if (val == null || val == "" || isNaN(val))
|
||||
return;
|
||||
text = '{l s="Product ID #" mod='blocktopdropdownmenu' js=1}'+val;
|
||||
val = "PRD"+val;
|
||||
}
|
||||
$("#items").append('<option value="'+val+'" selected="selected">'+text+'</option>');
|
||||
});
|
||||
serialize();
|
||||
return false;
|
||||
}
|
||||
function remove()
|
||||
{
|
||||
$("#items option:selected").each(function(i){
|
||||
$(this).remove();
|
||||
});
|
||||
serialize();
|
||||
return false;
|
||||
}
|
||||
function serialize()
|
||||
{
|
||||
var options = "";
|
||||
$("#items option").each(function(i){
|
||||
options += $(this).val()+",";
|
||||
});
|
||||
$("#itemsInput").val(options.substr(0, options.length - 1));
|
||||
}
|
||||
function move(up)
|
||||
{
|
||||
var tomove = $('#items option:selected');
|
||||
if (tomove.length >1)
|
||||
{
|
||||
alert('{l s="Please select just one item" mod='blocktopdropdownmenu'}');
|
||||
return false;
|
||||
}
|
||||
if (up)
|
||||
tomove.prev().insertAfter(tomove);
|
||||
else
|
||||
tomove.next().insertBefore(tomove);
|
||||
serialize();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
{/block}
|
||||
|
||||
{block name="input"}
|
||||
{if $input.type == 'link_choice'}
|
||||
<div class="row">
|
||||
<div class="col-lg-1">
|
||||
<h4 style="margin-top:5px;">{l s='Change position' mod='blocktopdropdownmenu'}</h4>
|
||||
<a href="#" id="menuOrderUp" class="btn btn-default" style="font-size:20px;display:block;"><i class="icon-chevron-up"></i></a><br/>
|
||||
<a href="#" id="menuOrderDown" class="btn btn-default" style="font-size:20px;display:block;"><i class="icon-chevron-down"></i></a><br/>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<h4 style="margin-top:5px;">{l s='Selected items' mod='blocktopdropdownmenu'}</h4>
|
||||
{$selected_links}
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<h4 style="margin-top:5px;">{l s='Available items' mod='blocktopdropdownmenu'}</h4>
|
||||
{$choices}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<br/>
|
||||
<div class="row">
|
||||
<div class="col-lg-1"></div>
|
||||
<div class="col-lg-4"><a href="#" id="removeItem" class="btn btn-default"><i class="icon-arrow-right"></i> {l s='Remove' mod='blocktopdropdownmenu'}</a></div>
|
||||
<div class="col-lg-4"><a href="#" id="addItem" class="btn btn-default"><i class="icon-arrow-left"></i> {l s='Add' mod='blocktopdropdownmenu'}</a></div>
|
||||
</div>
|
||||
{else}
|
||||
{$smarty.block.parent}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,34 @@
|
||||
{*
|
||||
* 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
|
||||
*}
|
||||
|
||||
{extends file="helpers/list/list_content.tpl"}
|
||||
|
||||
{block name="td_content"}
|
||||
{if isset($params.type) && $params.type == 'link'}
|
||||
<a href="{$tr.$key|escape:'html':'UTF-8'}" target="_blank">{$tr.$key|escape:'html':'UTF-8'}</a>
|
||||
{else}
|
||||
{$smarty.block.parent}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,21 @@
|
||||
{**
|
||||
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
|
||||
*
|
||||
* @author VEKIA https://www.prestashop.com/forums/user/132608-vekia/
|
||||
* @copyright 2010-9999 VEKIA
|
||||
* @license This program is not free software and you can't resell and redistribute it
|
||||
*
|
||||
* CONTACT WITH DEVELOPER http://mypresta.eu
|
||||
* support@mypresta.eu
|
||||
*}
|
||||
|
||||
<div style="display:block; clear:both; margin-bottom:20px;" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i> {l s='Advertisement' mod='mib'}
|
||||
<a style="top:3px;" class="pull-right btn button label label-danger" target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7WE8PTH4ZPYZA"><i class="icon-paypal"></i> {l s='send me a donation' mod='mib'}</span></a>
|
||||
<span class="pull-right"> {l s='or:' mod='mib'} </span>
|
||||
<a style="top:3px; margin-right:3px;" class="pull-right btn button label label-info" target="_blank" href="https://www.facebook.com/mypresta"><i class="icon-facebook"></i> {l s='Like on facebook' mod='mib'}</span></a>
|
||||
<span class="pull-right">{l s='We are developing it for free. Just support us on ' mod='mib'} </span>
|
||||
</div>
|
||||
<iframe src="//apps.facepages.eu/somestuff/onlyexample.html" width="100%" height="150" border="0" style="border:none;"></iframe>
|
||||
</div>
|
||||
35
modules/blocktopdropdownmenu/views/templates/admin/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
35
modules/blocktopdropdownmenu/views/templates/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||