feat: Add YouTube video support and update admin templates

- Introduced a new YouTube tech integration in `youtube.min.js` for enhanced video playback.
- Created new admin template files for managing video settings, including `index.php` and `steasyvideo-pro.tpl`.
- Updated hook templates (`device_mode.tpl`, `forquickview.tpl`, `header.tpl`, `miniature.tpl`, `miniature_tb.tpl`, and predefined templates) to include video functionality.
- Implemented caching headers in several PHP files to improve performance.
- Ensured all new templates include proper licensing information and copyright notices.
This commit is contained in:
2025-05-23 19:27:41 +02:00
parent d485f46a7a
commit eacf500d18
83 changed files with 12143 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
#conf_id_ST_EASY_VIDEO_GALLERY_VIDEO_SELECTOR_DESKTOP,
#conf_id_ST_EASY_VIDEO_GALLERY_BUTTON_SELECTOR_DESKTOP,
#conf_id_ST_EASY_VIDEO_GALLERY_TYPE_DESKTOP,
#conf_id_ST_EASY_VIDEO_GALLERY_THUMBNAIL_TYPE_DESKTOP,
#conf_id_ST_EASY_VIDEO_GALLERY_THUMBNAIL_SELECTOR_DESKTOP,
#conf_id_ST_EASY_VIDEO_GALLERY_VIDEO_TEMPLATE_DESKTOP,
#conf_id_ST_EASY_VIDEO_GALLERY_VIDEO_SELECTOR_MOBILE,
#conf_id_ST_EASY_VIDEO_GALLERY_BUTTON_SELECTOR_MOBILE,
#conf_id_ST_EASY_VIDEO_GALLERY_TYPE_MOBILE,
#conf_id_ST_EASY_VIDEO_GALLERY_THUMBNAIL_TYPE_MOBILE,
#conf_id_ST_EASY_VIDEO_GALLERY_THUMBNAIL_SELECTOR_MOBILE,
#conf_id_ST_EASY_VIDEO_GALLERY_VIDEO_TEMPLATE_MOBILE,
#conf_id_ST_EASY_VIDEO_GALLERY_VIDEO_SELECTOR_QUICKVIEW,
#conf_id_ST_EASY_VIDEO_GALLERY_BUTTON_SELECTOR_QUICKVIEW,
#conf_id_ST_EASY_VIDEO_GALLERY_TYPE_QUICKVIEW,
#conf_id_ST_EASY_VIDEO_GALLERY_THUMBNAIL_TYPE_QUICKVIEW,
#conf_id_ST_EASY_VIDEO_GALLERY_THUMBNAIL_SELECTOR_QUICKVIEW,
#conf_id_ST_EASY_VIDEO_GALLERY_VIDEO_TEMPLATE_QUICKVIEW
{
border-top: 1px solid #BBCDD2;
padding-top: 19px;
}

View File

@@ -0,0 +1,150 @@
.st_easy_video_box{
position: relative;
background: #fff;
}
.st_easy_video_box.st_easy_video_box_absolute{
position: absolute;
z-index: 9;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.pro_gallery_top .st_easy_video_box{
}
@media (min-width: 1200px){
}
@media only screen and (max-width: 991px) and (min-width: 768px){
}
@media (max-width: 767px){
}
.pro_video_cover_invisible .pro_gallery_thumb, .hightlight_curr_thumbs .pro_video_cover_invisible.clicked_thumb .pro_gallery_thumb, .st_easy_video_placeholder, .st_easy_video_thumb_invisiable .thumb,.st_easy_video_no_image_thumb{
opacity: 0;
}
.pro_video_cover_invisible .pro_gallery_thumb_box{
border: none;
}
.st_easy_video_btn:focus,.video-js button:focus{
outline: none;
}
.st_easy_video.video-js{position: static;}
.st_easy_video_btn{
position: relative;
cursor: pointer;
z-index: 10;
outline: none;
border:none;
background: transparent;
text-align: center;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}
.st_easy_video_btn.st_easy_video_btn_absolute{
position: absolute;
}
.st_easy_video_btn .vjs-icon-placeholder{
display: block;
width:36px;
height: 36px;
line-height: 36px;
background: rgba(0,0,0,0.5);
color: #fff;
font-size: 22px;
border-radius: 100%;
padding: 0;
border:none;
border-style: solid;
border-width: 0;
font-size: 30px;
box-sizing: border-box;
}
.st_play_video_text{display: block;}
.st_easy_video_btn.st_easy_video_close{
right: 10px; top: 10px;left:auto;bottom: auto;
}
.st_easy_video_play_icon{pointer-events:none;}
.pro_gallery_thumbs_container .st_easy_video_play,
.st_easy_video_play_icon{
left: 50%;
top: 50%;
margin-left: -18px;
margin-top: -18px;
bottom: auto;
}
.st_easy_video_btn .vjs-icon-placeholder:before{
width: 100%;
height: 100%;
text-align: center;
font-family: VideoJS;
font-weight: normal;
font-style: normal;
content: "\f101";
}
.st_easy_video_btn.st_easy_video_close .vjs-icon-placeholder:before{
content: "\f119";
}
.st_easy_video_play{z-index: 10;}
.st_easy_video_flex{display:-webkit-box;display:-moz-box;display:box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;box-align:center;-moz-align-items:center;-ms-align-items:center;-o-align-items:center;align-items:center;-ms-flex-align:center}
.st_easy_video_invisible, .st_easy_video_btn.st_easy_video_invisible{display: none;}
.pro_popup_trigger.layer_icon_wrap.st_active.st_easy_video_invisible{
display: none;
}
.product-images>li.thumb-container{position: relative;}
.st_easy_video_relative{
position: relative;
}
.st_easy_video_absolute{
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.st_easy_video_layer{
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: #fff;
}
.vjs-youtube-mobile .vjs-big-play-button { display: none!important; }
.vjs-youtube-mobile .vjs-resize-manager { display: none!important; }
.st_easy_video_controls_youtubev .js-youtube .vjs-poster{display: none;}/*when youtube control is on, youtube de poster hui ba bo fang qi dang zhu*/
.st_easy_video_miaoshu{margin-bottom: 30px;}
.st_easy_video_miaoshu .st_easy_video_invisible{display: block;}
.st_easy_video_miaoshu .st_easy_video_box{position: relative;}
#product-images-large .slick-slide{position:relative;} /*for warehouse theme*/
.st_easy_video_play_layout_0 .st_play_video_text{
display: none;
}
.st_easy_video_play_layout_1 .vjs-icon-placeholder{
display: none;
}
.st_easy_video_play_layout_2{
}
.st_easy_video_play_layout_3{
flex-direction: column;
}
.st_easy_video_screen_only
{
position: absolute;
top: -10000em; //for safari browser compatibility
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0,0,0,0);
border: 0;
}
#st_easy_video_device_mode:after {content: 'desktop';}
/*@media (max-width: 767px){#st_easy_video_device_mode:after {content: 'mobile';}}*/

View File

@@ -0,0 +1,34 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
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;

View File

@@ -0,0 +1,72 @@
/*
Player Skin Designer for Video.js
http://videojs.com
To customize the player skin edit
the CSS below. Click "details"
below to add comments or questions.
This file uses some SCSS. Learn more
at http://sass-lang.com/guide)
This designer can be linked to at:
https://codepen.io/heff/pen/EarCt/left/?editors=010
*/
.video-js {
/* The base font size controls the size of everything, not just text.
All dimensions use em-based sizes so that the scale along with the font size.
Try increasing it to 15px and see what happens. */
font-size: 10px;
/* The main font color changes the ICON COLORS as well as the text */
color: #ffffff;
}
/* The "Big Play Button" is the play button that shows before the video plays.
To center it set the align values to center and middle. The typical location
of the button is the center, but there is trend towards moving it to a corner
where it gets out of the way of valuable content in the poster image.*/
.video-js.vjs-big-play-centered .vjs-big-play-button {
/* The font size is what makes the big play button...big.
All width/height values use ems, which are a multiple of the font size.
If the .video-js font-size is 10px, then 3em equals 30px.*/
font-size: 50px;
/* We're using SCSS vars here because the values are used in multiple places.
Now that font size is set, the following em values will be a multiple of the
new font size. If the font-size is 3em (30px), then setting any of
the following values to 3em would equal 30px. 3 * font-size. */
/* 1.5em = 45px default */
line-height: 50px;
height: 50px;
width: 50px;
/* 0.06666em = 2px default */
border: 0;
/* 0.3em = 9px default */
border-radius: 0.3em;
/* Align center */
left: 50%;
top: 50%;
margin-left: -25px;
margin-top: -25px;
background: transparent;
}
/* The default color of control backgrounds is mostly black but with a little
bit of blue so it can still be seen on all-black video frames, which are common. */
.video-js .vjs-control-bar,
.video-js .vjs-big-play-button,
.video-js .vjs-menu-button .vjs-menu-content {
background-color: transparent;
}
/* Slider - used for Volume bar and Progress bar */
.video-js .vjs-slider, .video-js .vjs-load-progress {
background-color: rgba(255,255,255,0.3);
}
.video-js .vjs-load-progress div{ background-color: rgba(115, 133, 159, 0.75);}
/* The slider bar color is used for the progress bar and the volume bar
(the first two can be removed after a fix that's coming) */
.video-js .vjs-volume-level,
.video-js .vjs-play-progress,
.video-js .vjs-slider-bar {
background: #fff;
}

View File

@@ -0,0 +1,78 @@
/*
Player Skin Designer for Video.js
http://videojs.com
To customize the player skin edit
the CSS below. Click "details"
below to add comments or questions.
This file uses some SCSS. Learn more
at http://sass-lang.com/guide)
This designer can be linked to at:
https://codepen.io/heff/pen/EarCt/left/?editors=010
*/
.video-js {
/* The base font size controls the size of everything, not just text.
All dimensions use em-based sizes so that the scale along with the font size.
Try increasing it to 15px and see what happens. */
font-size: 10px;
/* The main font color changes the ICON COLORS as well as the text */
color: #465324;
}
/* The "Big Play Button" is the play button that shows before the video plays.
To center it set the align values to center and middle. The typical location
of the button is the center, but there is trend towards moving it to a corner
where it gets out of the way of valuable content in the poster image.*/
.video-js.vjs-big-play-centered .vjs-big-play-button {
/* The font size is what makes the big play button...big.
All width/height values use ems, which are a multiple of the font size.
If the .video-js font-size is 10px, then 3em equals 30px.*/
font-size: 2.5em;
/* We're using SCSS vars here because the values are used in multiple places.
Now that font size is set, the following em values will be a multiple of the
new font size. If the font-size is 3em (30px), then setting any of
the following values to 3em would equal 30px. 3 * font-size. */
/* 1.5em = 45px default */
line-height: 1.5em;
height: 1.5em;
width: 2em;
/* 0.06666em = 2px default */
border: 0.06666em solid #465324;
/* 0.3em = 9px default */
border-radius: 0.2em;
/* Align center */
left: 50%;
top: 50%;
margin-left: -1em;
margin-top: -0.75em;
}
/* The default color of control backgrounds is mostly black but with a little
bit of blue so it can still be seen on all-black video frames, which are common. */
.video-js .vjs-control-bar,
.video-js .vjs-big-play-button,
.video-js .vjs-menu-button .vjs-menu-content {
background-color: rgba(0, 0, 0, 0.9);
}
/* Slider - used for Volume bar and Progress bar */
.video-js .vjs-slider, .video-js .vjs-load-progress {
background-color: rgba(230, 230, 230, 0.9);
}
.video-js .vjs-load-progress div{ background-color: rgba(230, 230, 230, 0.9);}
/* The slider bar color is used for the progress bar and the volume bar
(the first two can be removed after a fix that's coming) */
.video-js .vjs-volume-level,
.video-js .vjs-play-progress,
.video-js .vjs-slider-bar {
background: #465324;
}
.video-js:hover .vjs-big-play-button,
.video-js .vjs-big-play-button:focus {
background-color: rgba(0, 0, 0, 0.95);
border-color: #647733;
}

View File

@@ -0,0 +1,77 @@
/*
Player Skin Designer for Video.js
http://videojs.com
To customize the player skin edit
the CSS below. Click "details"
below to add comments or questions.
This file uses some SCSS. Learn more
at http://sass-lang.com/guide)
This designer can be linked to at:
https://codepen.io/heff/pen/EarCt/left/?editors=010
*/
.video-js {
/* The base font size controls the size of everything, not just text.
All dimensions use em-based sizes so that the scale along with the font size.
Try increasing it to 15px and see what happens. */
font-size: 10px;
/* The main font color changes the ICON COLORS as well as the text */
color: #ffffff;
}
/* The "Big Play Button" is the play button that shows before the video plays.
To center it set the align values to center and middle. The typical location
of the button is the center, but there is trend towards moving it to a corner
where it gets out of the way of valuable content in the poster image.*/
.video-js.vjs-big-play-centered .vjs-big-play-button {
/* The font size is what makes the big play button...big.
All width/height values use ems, which are a multiple of the font size.
If the .video-js font-size is 10px, then 3em equals 30px.*/
font-size: 2.5em;
/* We're using SCSS vars here because the values are used in multiple places.
Now that font size is set, the following em values will be a multiple of the
new font size. If the font-size is 3em (30px), then setting any of
the following values to 3em would equal 30px. 3 * font-size. */
/* 1.5em = 45px default */
line-height: 1.5em;
height: 1.5em;
width: 2em;
/* 0.06666em = 2px default */
border: none;
/* 0.3em = 9px default */
border-radius: 10px;
/* Align center */
left: 50%;
top: 50%;
margin-left: -1em;
margin-top: -0.75em;
background: rgba(0,0,0,0.5);
}
/* The default color of control backgrounds is mostly black but with a little
bit of blue so it can still be seen on all-black video frames, which are common. */
.video-js .vjs-control-bar,
.video-js .vjs-big-play-button,
.video-js .vjs-menu-button .vjs-menu-content {
background-color: rgba(0, 0, 0, 0.3);
}
/* Slider - used for Volume bar and Progress bar */
.video-js .vjs-slider, .video-js .vjs-load-progress {
background-color: rgba(115,133,159,0.5);
}
.video-js .vjs-load-progress div{ background-color: rgba(255,255,255,0.5);}
/* The slider bar color is used for the progress bar and the volume bar
(the first two can be removed after a fix that's coming) */
.video-js .vjs-volume-level,
.video-js .vjs-play-progress,
.video-js .vjs-slider-bar {
background: #cc181e;
}
.video-js:hover .vjs-big-play-button,
.video-js .vjs-big-play-button:focus {
background-color: #cc181e;
}

View File

@@ -0,0 +1,71 @@
/*
Player Skin Designer for Video.js
http://videojs.com
To customize the player skin edit
the CSS below. Click "details"
below to add comments or questions.
This file uses some SCSS. Learn more
at http://sass-lang.com/guide)
This designer can be linked to at:
https://codepen.io/heff/pen/EarCt/left/?editors=010
*/
.video-js {
/* The base font size controls the size of everything, not just text.
All dimensions use em-based sizes so that the scale along with the font size.
Try increasing it to 15px and see what happens. */
font-size: 10px;
/* The main font color changes the ICON COLORS as well as the text */
color: #ffffff;
}
/* The "Big Play Button" is the play button that shows before the video plays.
To center it set the align values to center and middle. The typical location
of the button is the center, but there is trend towards moving it to a corner
where it gets out of the way of valuable content in the poster image.*/
.video-js.vjs-big-play-centered .vjs-big-play-button {
/* The font size is what makes the big play button...big.
All width/height values use ems, which are a multiple of the font size.
If the .video-js font-size is 10px, then 3em equals 30px.*/
font-size: 3em;
/* We're using SCSS vars here because the values are used in multiple places.
Now that font size is set, the following em values will be a multiple of the
new font size. If the font-size is 3em (30px), then setting any of
the following values to 3em would equal 30px. 3 * font-size. */
/* 1.5em = 45px default */
line-height: 1.9em;
height: 2em;
width: 2em;
/* 0.06666em = 2px default */
border: 3px solid #ffffff;
/* 0.3em = 9px default */
border-radius: 2em;
/* Align center */
left: 50%;
top: 50%;
margin-left: -1em;
margin-top: -1em;
background: rgba(0,0,0,0.35);
}
/* The default color of control backgrounds is mostly black but with a little
bit of blue so it can still be seen on all-black video frames, which are common. */
.video-js .vjs-control-bar,
.video-js .vjs-big-play-button,
.video-js .vjs-menu-button .vjs-menu-content {
background-color: transparent;
}
/* Slider - used for Volume bar and Progress bar */
.video-js .vjs-slider, .video-js .vjs-load-progress {
background-color: rgba(115,133,159,0.5);
}
.video-js .vjs-load-progress div{ background-color: rgba(255,255,255,0.5);}
/* The slider bar color is used for the progress bar and the volume bar
(the first two can be removed after a fix that's coming) */
.video-js .vjs-volume-level,
.video-js .vjs-play-progress,
.video-js .vjs-slider-bar {
background: #2483d5;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,35 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
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;

View File

@@ -0,0 +1,215 @@
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
jQuery(function($){
$('.st_delete_image').click(function(){
var self = $(this);
var id = self.data('id');
$.getJSON(currentIndex+'&token='+token+'&configure=steasyvideo&id_st_easy_video='+id+'&act=delete_image&ts='+new Date().getTime(),
function(json){
if(json.r) {
self.closest('.form-group').remove();
}
else
alert('Error');
}
);
return false;
});
$(document).on('change', '#st_easy_video_form #url', function(){
var regExp = /.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/;
var match = $(this).val().match(regExp);
if (match && match[1].length == 11)
$('#youtube_thumbnail').html('<img src="//img.youtube.com/vi/'+match[1]+'/default.jpg">');
else
$('#youtube_thumbnail').empty();
});
if($('#st_easy_video_form #url').val())
$('#st_easy_video_form #url').trigger('change');
/*handle_contr($('[name="contr"]').val());
$(document).on('change', '[name="contr"]', function(){
handle_contr($(this).val());
});*/
$(document).on('click', '.st_ac_del_product', function(){
$(this).closest('li').remove();
var $ac = $(this).closest('.form-group').find('.ac_products');
if(!$ac.hasClass('ac_input'))
steasyvideoo_admin.ac($ac);
$ac.setOptions({
extraParams: {
excludeIds : getProductExcIds($(this).closest('.form-group').find('.curr_products'))
}
});
});
$(document).on('focus', '.ac_products', function(){
if(!$(this).hasClass('ac_input'))
steasyvideoo_admin.ac($(this));
});
$(document).on('click', '.stsb_ac_del_product', function(){
$(this).closest('li').remove();
var $ac = $(this).closest('.form-group').find('.ac_products');
if(!$ac.hasClass('ac_input'))
steasyvideoo_admin.ac($ac, 'product');
$ac.setOptions({
extraParams: {
excludeIds : getProductExcIds($(this).closest('.form-group').find('.curr_product'))
}
});
});
$(document).on('change', 'input[name="ST_EASY_VIDEO_MINIATURE_DISPLAY_DESKTOP"], input[name="ST_EASY_VIDEO_MINIATURE_DISPLAY_MOBILE"]', function(){
steasyvideoo_admin.miniature_form();
});
steasyvideoo_admin.miniature_form();
$(document).on('change', 'input[name="ST_EASY_VIDEO_GALLERY_DISPLAY_DESKTOP"], input[name="ST_EASY_VIDEO_GALLERY_DISPLAY_MOBILE"], input[name="ST_EASY_VIDEO_GALLERY_DISPLAY_QUICKVIEW"]', function(){
steasyvideoo_admin.gallery_form();
});
steasyvideoo_admin.gallery_form();
$(document).on('change', 'input[name="ST_EASY_VIDEO_MINIATURE_PLAY_BTN_POSITION"]', function(){
steasyvideoo_admin.btn_position('MINIATURE');
});
$(document).on('change', 'input[name="ST_EASY_VIDEO_GALLERY_PLAY_BTN_POSITION"]', function(){
steasyvideoo_admin.btn_position('GALLERY');
});
steasyvideoo_admin.btn_position('MINIATURE');
steasyvideoo_admin.btn_position('GALLERY');
});
var steasyvideoo_admin = {
'ac': function($that) {
var $cp = $that.closest('.form-group').find('.curr_products');
$that.autocomplete(currentIndex+'&token='+token+'&ajax_product_list&disableCombination=true', {
minChars: 1,
autoFill: true,
max:200,
matchContains: true,
mustMatch:true,
scroll:true,
cacheLength:0,
extraParams:{ excludeIds:getProductExcIds($cp)},
formatItem: function(item) {
if (item.length == 2) {
return item[1]+' - '+item[0];
} else {
return '--';
}
}
}).result(function(event, data, formatted) {
if (data == null || data.length != 2)
return false;
var id = data[1];
var name = data[0];
$cp.append('<li>'+name+'<a href="javascript:;" class="stsb_ac_del_product"><img src="../img/admin/delete.gif" /></a><input type="hidden" name="st_id_product[]" value="'+id+'" /></li>');
$that.setOptions({
extraParams: {
excludeIds : getProductExcIds($cp)
}
});
});
},
'miniature_form': function(){
var value = 0, device=0;
if($('input[name="ST_EASY_VIDEO_MINIATURE_DISPLAY_DESKTOP"]:checked').length){
value = $('input[name="ST_EASY_VIDEO_MINIATURE_DISPLAY_DESKTOP"]:checked').val();
device = 'DESKTOP';
}else if($('input[name="ST_EASY_VIDEO_MINIATURE_DISPLAY_MOBILE"]:checked').length){
value = $('input[name="ST_EASY_VIDEO_MINIATURE_DISPLAY_MOBILE"]:checked').val();
device = 'MOBILE';
}
$('input[name="ST_EASY_VIDEO_MINIATURE_VIDEO_SELECTOR_'+device+'"], select[name="ST_EASY_VIDEO_MINIATURE_VIDEO_APPEND_'+device+'"], input[name="ST_EASY_VIDEO_MINIATURE_VIDEO_POSITION_'+device+'"]').parents('.form-group').toggle(value=='2' || value=='1' || value=='3' || value=='4');
$('input[name="ST_EASY_VIDEO_MINIATURE_BUTTON_SELECTOR_'+device+'"], select[name="ST_EASY_VIDEO_MINIATURE_BUTTON_APPEND_'+device+'"], input[name="ST_EASY_VIDEO_MINIATURE_BUTTON_POSITION_'+device+'"], input[name="ST_EASY_VIDEO_MINIATURE_BUTTON_LAYOUT_'+device+'"], input[name="ST_EASY_VIDEO_MINIATURE_BUTTON_HIDE_'+device+'"]').parents('.form-group').toggle(value=='1' || value=='4');
if(device=='DESKTOP')
$('input[name="ST_EASY_VIDEO_MINIATURE_HOVER_ELEMENT"]').parents('.form-group').toggle(value=='3' || value=='4');
return true;
},
'btn_position': function(type){
$('input[name="ST_EASY_VIDEO_'+type+'_PLAY_BTN_OFFSET"]').parents('.form-group').toggle($('input[name="ST_EASY_VIDEO_'+type+'_PLAY_BTN_POSITION"]:checked').val()!='0');
},
'gallery_form': function(){
var groups = [];
var display = 0, device=0;
if($('input[name="ST_EASY_VIDEO_GALLERY_DISPLAY_DESKTOP"]:checked').length){
display = $('input[name="ST_EASY_VIDEO_GALLERY_DISPLAY_DESKTOP"]:checked').val();
device = 'DESKTOP';
}else if($('input[name="ST_EASY_VIDEO_GALLERY_DISPLAY_MOBILE"]:checked').length){
display = $('input[name="ST_EASY_VIDEO_GALLERY_DISPLAY_MOBILE"]:checked').val();
device = 'MOBILE';
}else if($('input[name="ST_EASY_VIDEO_GALLERY_DISPLAY_QUICKVIEW"]:checked').length){
display = $('input[name="ST_EASY_VIDEO_GALLERY_DISPLAY_QUICKVIEW"]:checked').val();
device = 'QUICKVIEW';
}
if(display==1)
groups.push('button', 'video', 'thumbnail', 'close');
else if(display==2)
groups.push('video');
else if(display==3)
groups.push('gallery');
else if(display==4)
groups.push('video', 'thumbnail', 'close');
else if(display==5)
groups.push('gallery', 'thumbnail');
else if(display==6)
groups.push('video', 'thumbnail');
else if(display==7)
groups.push('button', 'video', 'gallery', 'thumbnail');
$('input[name="ST_EASY_VIDEO_GALLERY_VIDEO_SELECTOR_'+device+'"], select[name="ST_EASY_VIDEO_GALLERY_VIDEO_APPEND_'+device+'"],input[name="ST_EASY_VIDEO_GALLERY_VIDEO_POSITION_'+device+'"]').parents('.form-group').toggle(groups.includes('video'));
$('input[name="ST_EASY_VIDEO_GALLERY_BUTTON_SELECTOR_'+device+'"], select[name="ST_EASY_VIDEO_GALLERY_BUTTON_APPEND_'+device+'"], input[name="ST_EASY_VIDEO_GALLERY_BUTTON_POSITION_'+device+'"], input[name="ST_EASY_VIDEO_GALLERY_BUTTON_LAYOUT_'+device+'"], input[name="ST_EASY_VIDEO_GALLERY_BUTTON_HIDE_'+device+'"]').parents('.form-group').toggle(groups.includes('button'));
$('input[name="ST_EASY_VIDEO_GALLERY_TYPE_'+device+'"],input[name="ST_EASY_VIDEO_GALLERY_SLIDER_SELECTOR_'+device+'"],input[name="ST_EASY_VIDEO_GALLERY_SLIDE_SELECTOR_'+device+'"],select[name="ST_EASY_VIDEO_GALLERY_SLIDER_APPEND_'+device+'"]').parents('.form-group').toggle(groups.includes('gallery'));
$('input[name="ST_EASY_VIDEO_GALLERY_THUMBNAIL_TYPE_'+device+'"], input[name="ST_EASY_VIDEO_GALLERY_THUMBNAIL_ITEM_SELECTOR_'+device+'"], input[name="ST_EASY_VIDEO_GALLERY_THUMBNAIL_SELECTOR_'+device+'"],input[name="ST_EASY_VIDEO_GALLERY_THUMBNAIL_SLIDE_SELECTOR_'+device+'"],select[name="ST_EASY_VIDEO_GALLERY_THUMBNAIL_APPEND_'+device+'"]').parents('.form-group').toggle(groups.includes('thumbnail'));
$('input[name="ST_EASY_VIDEO_GALLERY_CLOSE_VIDEO_'+device+'"]').parents('.form-group').toggle(groups.includes('close'));
$('textarea[name="ST_EASY_VIDEO_GALLERY_BUTTON_TEMPLATE_'+device+'"],select[name="ST_EASY_VIDEO_GALLERY_BUTTON_IMAGE_TYPE_'+device+'"]').parents('.form-group').toggle(groups.includes('button') || groups.includes('thumbnail'));
return true;
},
'buyaosanchu': 1
};
var getProductExcIds = function(dom)
{
var excludeIds = [];
$(dom).find(':hidden[name="st_id_product[]"]').each(function(){
excludeIds.push($(this).val());
});
return excludeIds.join( ',' );
};
function handle_contr(val)
{
var fm = {'category': 'id_category', 'product': 'ac_products', 'manufacturer': 'id_manufacturer'};
$.each(fm, function(k,v){
$('#'+v).closest('.form-group').toggle(k == val);
$('#sub_category_on').closest('.form-group').toggle(k == val && k=='category');
});
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,35 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
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;

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,35 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
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;

View File

@@ -0,0 +1,27 @@
{**
*
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
<h3>{l s='Easy product video' mod='steasyvideo'}</h3>
<a href="{$tiaozhuan_url|escape:'htmlall':'UTF-8'}" target="_blank"><i class="material-icons">open_in_new</i>{l s='Click here to go to the "Easy product video" module to manage videso for this item.' mod='steasyvideo'}</a>

View File

@@ -0,0 +1,26 @@
{**
*
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
<span id="st_easy_video_device_mode" class="st_easy_video_screen_only"></span>

View File

@@ -0,0 +1,34 @@
{**
*
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
<script>
{if isset($video_data)}
{literal}
if(typeof(easyVideoObj)!='undefined'){
easyVideoObj.quickView({/literal}{$video_data|json_encode nofilter}, {$id_product|escape:'htmlall':'UTF-8'}, {$id_product_attribute|escape:'htmlall':'UTF-8'}{literal});
}
{/literal}
{/if}
</script>

View File

@@ -0,0 +1,30 @@
{**
*
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
{if isset($st_easy_video_css)}
<style>
{$st_easy_video_css nofilter}
</style>
{/if}

View File

@@ -0,0 +1,35 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
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;

View File

@@ -0,0 +1,41 @@
{**
*
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
{$ps_container = Context::getContext()->controller->getContainer()}
{if $ps_container->has( 'st_steasyvideo_repository' )}
{$st_steasyvideo_repository = $ps_container->get( 'st_steasyvideo_repository' )}
{$video = $st_steasyvideo_repository->getListingVideo($easy_video_product)}
{if $video}
{$video_unique_id = dechex( rand() )}
<div id="{$video_unique_id|escape:'htmlall':'UTF-8'}"></div>
<script>
{literal}
if(typeof(easy_video_arr) ==='undefined')
var easy_video_arr = {};
easy_video_arr['{/literal}{$video_unique_id|escape:'htmlall':'UTF-8'}{literal}'] = {/literal}{$video|@json_encode nofilter}{literal};
{/literal}
</script>
{/if}
{/if}

View File

@@ -0,0 +1,37 @@
{**
*
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
{$video = StEasyVideoClass::getOneVideo($easy_video_product['id_product'], 2)}
{if $video}
{$video_unique_id = dechex( rand() )}
<div id="{$video_unique_id|escape:'htmlall':'UTF-8'}"></div>
<script>
{literal}
if(typeof(easy_video_arr) ==='undefined')
var easy_video_arr = {};
easy_video_arr['{/literal}{$video_unique_id|escape:'htmlall':'UTF-8'}{literal}'] = {/literal}{$video|@json_encode nofilter}{literal};
{/literal}
</script>
{/if}

View File

@@ -0,0 +1,26 @@
{**
*
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
<div class="swiper-slide"><img src="@placeholder_url@" width="@placeholder_width@" height="@placeholder_height@"></div>

View File

@@ -0,0 +1,26 @@
{**
*
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
<div class="swiper-slide"></div>

View File

@@ -0,0 +1,26 @@
{**
*
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
<div class="product-lmage-large swiper-slide"></div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
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;

View File

@@ -0,0 +1,35 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
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;