first commit
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<ul id="list-slider">
|
||||
{foreach from=$arr item=i}
|
||||
{if $i}
|
||||
<li id="{$i}">
|
||||
{foreach from=$languages item=lang}
|
||||
{if $default_lang == $lang.id_lang}
|
||||
<div class="col-lg-9">
|
||||
{if $config_val.tit.$i.{$lang.id_lang}}
|
||||
<div class="col-lg-5">{$config_val.tit.$i.{$lang.id_lang}}</div>
|
||||
{/if}
|
||||
{if $config_val.img.$i.{$lang.id_lang}}
|
||||
<img src="{$path}{$config_val.img.$i.{$lang.id_lang}}">
|
||||
{else}
|
||||
{if isset($config_val.image_link.$i.{$lang.id_lang}) && $config_val.image_link.$i.{$lang.id_lang}}
|
||||
<img src="{$config_val.image_link.$i.{$lang.id_lang}}">
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<button class="btn-edit-fullslider btn btn-info" type="button"><i class="icon-pencil"></i>{l s='Edit' mod='appagebuilder'}</button>
|
||||
<button class="btn-delete-fullslider btn btn-danger" type="button"><i class="icon-trash"></i>{l s='Delete' mod='appagebuilder'}</button>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{assign var=descript value=$config_val.descript.$i.{$lang.id_lang}}
|
||||
{assign var=descript value=$descript|htmlspecialchars}
|
||||
{assign var=descript value=$descript|replace:'\r\n':''}
|
||||
{assign var=descript value=$descript|stripslashes}
|
||||
{assign var=temp_name value="{$i}_{$lang.id_lang}"}
|
||||
<input type="hidden" id="tit_{$temp_name}" value="{$config_val.tit.$i.{$lang.id_lang}|htmlspecialchars}" name="tit_{$temp_name}"/>
|
||||
<input type="hidden" id="sub_tit_{$temp_name}" value="{$config_val.sub_tit.$i.{$lang.id_lang}|htmlspecialchars}" name="sub_tit_{$temp_name}"/>
|
||||
<input type="hidden" id="img_{$temp_name}" value="{$config_val.img.$i.{$lang.id_lang}|htmlspecialchars}" name="img_{$temp_name}"/>
|
||||
<input type="hidden" id="image_link_{$temp_name}" value="{$config_val.image_link.$i.{$lang.id_lang}|htmlspecialchars}" name="image_link_{$temp_name}"/>
|
||||
<input type="hidden" id="link_{$temp_name}" value="{$config_val.link.$i.{$lang.id_lang}|htmlspecialchars}" name="link_{$temp_name}"/>
|
||||
<input type="hidden" id="descript_{$temp_name}" value="{$descript}" name="descript_{$temp_name}"/>
|
||||
{/foreach}
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
<ul id="temp-list" class="hide">
|
||||
<li id="">
|
||||
<div class="col-lg-9"></div>
|
||||
<div class="col-lg-3">
|
||||
<button class="btn-edit-fullslider btn btn-info" type="button"><i class="icon-pencil"></i> {l s='Edit' mod='appagebuilder'}</button>
|
||||
<button class="btn-delete-fullslider btn btn-danger" type="button"><i class="icon-trash"></i> {l s='Delete' mod='appagebuilder'}</button>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -0,0 +1,34 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<p><input type="text" name="controller_pages" value="{$controller}" class="em_text"/></p>
|
||||
<p><select size="25" name="controller_pages_select" class="em_list" multiple="multiple">
|
||||
|
||||
<option disabled="disabled">{$_core_}</option>
|
||||
{foreach from=$controllers key=k item=v}
|
||||
{if in_array($k, $arr_controllers)}
|
||||
<option value="{$k}" selected="selected">{$k}</option>
|
||||
{else}
|
||||
<option value="{$k}">{$k}</option>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
{foreach from=$modules_controllers_type key=type item=label}
|
||||
<option disabled="disabled">________________________________________ {$label} ________________________________________</option>
|
||||
{assign var=all_modules_controllers value=$controllers_modules.$type}
|
||||
{foreach $all_modules_controllers key=module item=modules_controllers}
|
||||
{foreach $modules_controllers item=cont}
|
||||
{assign var=key value="module-`$module`-`$cont`"}
|
||||
{if in_array($key, $arr_controllers)}
|
||||
<option value="module-{$module}-{$cont}" selected="selected">module__{$module}__{$cont}</option>
|
||||
{else}
|
||||
<option value="module-{$module}-{$cont}">module__{$module}__{$cont}</option>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</select></p>
|
||||
@@ -0,0 +1,55 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<ul id="list-slider">
|
||||
{foreach from=$arr item=i}
|
||||
{if $i}
|
||||
<li id="{$i}">
|
||||
{foreach from=$languages item=lang}
|
||||
{if $default_lang == $lang.id_lang}
|
||||
<div class="col-lg-9">
|
||||
{if $config_val.tit.$i.{$lang.id_lang}}
|
||||
<div class="col-lg-5">{$config_val.tit.$i.{$lang.id_lang}}</div>
|
||||
{/if}
|
||||
{if $config_val.img.$i.{$lang.id_lang}}
|
||||
<img src="{$path}{$config_val.img.$i.{$lang.id_lang}}">
|
||||
{else}
|
||||
{if isset($config_val.image_link.$i.{$lang.id_lang}) && $config_val.image_link.$i.{$lang.id_lang}}
|
||||
<img src="{$config_val.image_link.$i.{$lang.id_lang}}">
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<button class="btn-edit-fullslider btn btn-info" type="button"><i class="icon-pencil"></i>{l s='Edit' mod='appagebuilder'}</button>
|
||||
<button class="btn-delete-fullslider btn btn-danger" type="button"><i class="icon-trash"></i>{l s='Delete' mod='appagebuilder'}</button>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{assign var=descript value=$config_val.descript.$i.{$lang.id_lang}}
|
||||
{assign var=descript value=$descript|htmlspecialchars}
|
||||
{assign var=descript value=$descript|replace:'\r\n':''}
|
||||
{assign var=descript value=$descript|stripslashes}
|
||||
{assign var=temp_name value="{$i}_{$lang.id_lang}"}
|
||||
<input type="hidden" id="tit_{$temp_name}" value="{$config_val.tit.$i.{$lang.id_lang}|htmlspecialchars}" name="tit_{$temp_name}"/>
|
||||
<input type="hidden" id="image_link_{$temp_name}" value="{if isset($config_val.image_link.$i.{$lang.id_lang}) && $config_val.image_link.$i.{$lang.id_lang}}{$config_val.image_link.$i.{$lang.id_lang}|htmlspecialchars}{/if}" name="image_link_{$temp_name}"/>
|
||||
<input type="hidden" id="img_{$temp_name}" value="{$config_val.img.$i.{$lang.id_lang}|htmlspecialchars}" name="img_{$temp_name}"/>
|
||||
<input type="hidden" id="link_{$temp_name}" value="{$config_val.link.$i.{$lang.id_lang}|htmlspecialchars}" name="link_{$temp_name}"/>
|
||||
<input type="hidden" id="descript_{$temp_name}" value="{$descript}" name="descript_{$temp_name}"/>
|
||||
{/foreach}
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
<ul id="temp-list" class="hide">
|
||||
<li id="">
|
||||
<div class="col-lg-9"></div>
|
||||
<div class="col-lg-3">
|
||||
<button class="btn-edit-fullslider btn btn-info" type="button"><i class="icon-pencil"></i> {l s='Edit' mod='appagebuilder'}</button>
|
||||
<button class="btn-delete-fullslider btn btn-danger" type="button"><i class="icon-trash"></i> {l s='Delete' mod='appagebuilder'}</button>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -0,0 +1,34 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<ul id="list-slider" class="ul-apimage360">
|
||||
{foreach from=$arr item=i}
|
||||
{if $i && $config_val.image360.$i}
|
||||
{assign var=image_name value=$config_val.image360.$i}
|
||||
{assign var=input_name value="image360_{$i}"}
|
||||
|
||||
<li id="{$i}" name="{$image_name}">
|
||||
<div class="col-lg-9">
|
||||
<div class="col-lg-5">
|
||||
<img data-position="" data-name="{$image_name}" class="img-thumbnail" src="
|
||||
{if $image_name|strstr:"/"}
|
||||
{$image_name}
|
||||
{else}
|
||||
{$image_folder}{$image_name}
|
||||
{/if}">
|
||||
|
||||
<input type="hidden" value="{$image_name}" class="ApImage360" id="{$input_name}" name="{$input_name}">
|
||||
</div>
|
||||
<div class="col-lg-4">{if $image_name|strstr:"/"}image360_{$i}{else}{$image_name}{/if}</div>
|
||||
</div>
|
||||
<div class="col-lg-3" style="text-align: right;">
|
||||
<button type="button" class="btn-delete-fullslider btn btn-danger"><i class="icon-trash"></i> {l s='Delete' mod='appagebuilder'}</button>
|
||||
</div>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
@@ -0,0 +1,55 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<div class="ap-info" style="display: none;"></div>
|
||||
{literal}
|
||||
<script>
|
||||
$(document).off("click", ".btn-create-folder");
|
||||
$(document).on("click", ".btn-create-folder", function(){
|
||||
|
||||
var data = "&ajax=1&action=callmethod&type_shortcode=ApImageGallery&method_name=CreateDir&path=" + $("#path").val();
|
||||
var url = $globalthis.ajaxShortCodeUrl;
|
||||
var html = '';
|
||||
|
||||
$(".ap-info").html("");
|
||||
$(".ap-info").removeClass("alert-success alert-danger");
|
||||
$(".ap-info").hide();
|
||||
|
||||
$("#ap_loading").show();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
headers: {"cache-control": "no-cache"},
|
||||
url: url,
|
||||
async: true,
|
||||
cache: false,
|
||||
data: data,
|
||||
dataType: "json",
|
||||
success: function (jsonData) {
|
||||
$("#ap_loading").hide();
|
||||
if (jsonData.success) {
|
||||
if(typeof jsonData.img_dir == "undefined")
|
||||
jsonData.img_dir = "";
|
||||
html = jsonData.information + "<p style=\"font-weight: bold;\">" + jsonData.img_dir + "</p>";
|
||||
|
||||
$(".ap-info").addClass("alert alert-success").html(html).slideDown();
|
||||
}
|
||||
if (jsonData.hasError) {
|
||||
if(typeof jsonData.img_dir == "undefined")
|
||||
jsonData.img_dir = "";
|
||||
html = jsonData.error + "<p style=\"font-weight: bold;\">" + jsonData.img_dir + "</p>";
|
||||
|
||||
$(".ap-info").addClass("alert alert-danger").html(html).slideDown();
|
||||
}
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
$("#ap_loading").hide();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,59 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<ul id="list-slider">
|
||||
{foreach from=$arr item=i}
|
||||
{if $i}
|
||||
<li id="{$i}">
|
||||
{foreach from=$languages item=lang}
|
||||
{if $default_lang == $lang.id_lang}
|
||||
<div class="col-lg-9">
|
||||
{if $config_val.temp_title.$i.{$lang.id_lang}}
|
||||
<div class="col-lg-5">{$config_val.temp_title.$i.{$lang.id_lang}}</div>
|
||||
{/if}
|
||||
{if $config_val.temp_image.$i.{$lang.id_lang}}
|
||||
<img src="{$path}{$config_val.temp_image.$i.{$lang.id_lang}}">
|
||||
{else}
|
||||
{if isset($config_val.temp_image_link.$i.{$lang.id_lang}) && $config_val.temp_image_link.$i.{$lang.id_lang}}
|
||||
<img src="{$config_val.temp_image_link.$i.{$lang.id_lang}}">
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<button class="btn-edit-level2 btn btn-info" type="button"><i class="icon-pencil"></i>
|
||||
{l s='Edit' mod='appagebuilder'}
|
||||
</button>
|
||||
<button class="btn-delete-level2 btn btn-danger" type="button"><i class="icon-trash"></i>
|
||||
{l s='Delete' mod='appagebuilder'}
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{assign var=temp_name value="{$i}_{$lang.id_lang}"}
|
||||
|
||||
{foreach from=$inputs_lang item=input}
|
||||
<input type="hidden" id="{$input}_{$temp_name}" value="{$config_val.$input.$i.{$lang.id_lang}|htmlspecialchars}" name="{$input}_{$temp_name}"/>
|
||||
{/foreach}
|
||||
|
||||
{/foreach}
|
||||
|
||||
{foreach from=$inputs item=input}
|
||||
<input type="hidden" id="{$input}_{$i}" value="{$config_val.$input.$i|htmlspecialchars}" name="{$input}_{$i}"/>
|
||||
{/foreach}
|
||||
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
<ul id="temp-list" class="hide">
|
||||
<li id="">
|
||||
<div class="col-lg-9"></div>
|
||||
<div class="col-lg-3">
|
||||
<button class="btn-edit-level2 btn btn-info" type="button"><i class="icon-pencil"></i> {l s='Edit' mod='appagebuilder'}</button>
|
||||
<button class="btn-delete-level2 btn btn-danger" type="button"><i class="icon-trash"></i> {l s='Delete' mod='appagebuilder'}</button>
|
||||
</div>
|
||||
</li>
|
||||
@@ -0,0 +1,34 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<p><input type="text" name="controller_pages" value="{$controller}" class="em_text"/></p>
|
||||
<p><select size="25" name="controller_pages_select" class="em_list" multiple="multiple">
|
||||
|
||||
<option disabled="disabled">{$_core_}</option>
|
||||
{foreach from=$controllers key=k item=v}
|
||||
{if in_array($k, $arr_controllers)}
|
||||
<option value="{$k}" selected="selected">{$k}</option>
|
||||
{else}
|
||||
<option value="{$k}">{$k}</option>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
{foreach from=$modules_controllers_type key=type item=label}
|
||||
<option disabled="disabled">________________________________________ {$label} ________________________________________</option>
|
||||
{assign var=all_modules_controllers value=$controllers_modules.$type}
|
||||
{foreach $all_modules_controllers key=module item=modules_controllers}
|
||||
{foreach $modules_controllers item=cont}
|
||||
{assign var=key value="module-`$module`-`$cont`"}
|
||||
{if in_array($key, $arr_controllers)}
|
||||
<option value="module-{$module}-{$cont}" selected="selected">module__{$module}__{$cont}</option>
|
||||
{else}
|
||||
<option value="module-{$module}-{$cont}">module__{$module}__{$cont}</option>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</select></p>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2014 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-2019 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;
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user