Dodanie tymczasowych plików testowych oraz poprawa szablonów i klas w module empikmarketplace

This commit is contained in:
2025-03-25 14:12:17 +01:00
parent 9074c2fb27
commit dda8aa3d7e
38 changed files with 23333 additions and 75 deletions

View File

@@ -1,4 +1,4 @@
{*
{*
* @Module Name: AP Page Builder
* @Website: apollotheme.com - prestashop template provider
* @author Apollotheme <apollotheme@gmail.com>
@@ -25,7 +25,7 @@
<a href="javascript:;" id="btn-preview" class="label-tooltip" title="{l s='Preview this profile' mod='appagebuilder'}" data-placement="left"><i class="icon-zoom-in"></i></a>
<a href="javascript:;" id="btn-design-layout" class="label-tooltip" title="{l s='Mode design layout' mod='appagebuilder'}" data-placement="left"><i class="icon-desktop"></i></a>
</div>
<iframe id="live-edit-iframe" src="{$url_live_edit|escape:'html':'UTF-8'}{if $id_default}{$id_default|escape:'html':'UTF-8'}{/if}"
<iframe id="live-edit-iframe" src="{$url_live_edit|escape:'html':'UTF-8'}{if $id_default}{$id_default|escape:'html':'UTF-8'}{/if}"
idProfile="{if $id_default}{$id_default|escape:'html':'UTF-8'}{/if}">
</iframe>
</div>
@@ -44,11 +44,11 @@
{addJsDef idProfile=$id_default}
function resize() {
//$("#live-edit-iframe").width($(window).width() - 80);
$("#live-edit-iframe").height($("body").height() -
$("#header_infos").height() - $(".page-head").height() -
$("#form-appagebuilder_profiles").height() - $(".ap-live-tool").height() -
$("#live-edit-iframe").height($("body").height() -
$("#header_infos").height() - $(".page-head").height() -
$("#form-appagebuilder_profiles").height() - $(".ap-live-tool").height() -
$("#footer").height() - 80 - ($(".bootstrap .alert").length > 0 ? ($(".bootstrap .alert").height() + 20) : 0));
}
function changeProfilePreview(obj) {
$("#ap_loading").show();
@@ -59,7 +59,7 @@
var td = $(obj).closest("tr").find("td:nth-child(1)");
var tdName = $(obj).closest("tr").find("td:nth-child(2)");
}
var d = new Date();
idProfile = $.trim($(td).text());
$("#name-profile b").text($.trim($(tdName).text()));
@@ -76,15 +76,15 @@
var idProfile = $.trim($(this).find("td:nth-child(1)").text());
else
var idProfile = $.trim($(this).find("td:nth-child(2)").text());
var url = urlProfileDetail + "&submitBulkinsertLangappagebuilder_profiles&id=" + idProfile;
$(this).find(".pull-right ul").prepend("<li><a title='{l s='Copy data from default language to other' mod='appagebuilder'}' href='" + url + "'><i class='icon-copy'></i> {l s='Copy to Other Language' mod='appagebuilder'}</a></li>");
url = urlEditProfile + "&id_appagebuilder_profiles=" + idProfile;
$(this).find(".pull-right ul").prepend("<li><a title='{l s='Edit in mode design layout' mod='appagebuilder'}' target='_blank' href='" + url + "'><i class='icon-desktop'></i> {l s='Edit Design Layout' mod='appagebuilder'}</a></li>");
url = urlPreview + "?id_appagebuilder_profiles=" + idProfile;
$(this).find(".pull-right ul").prepend("<li><a title='{l s='Preview' mod='appagebuilder'}' target='_blank' href='" + url + "'><i class='icon-search-plus'></i> {l s='Preview' mod='appagebuilder'}</a></li>");
});
@@ -95,20 +95,20 @@
});
var d = new Date();
if($('.table-responsive-row .row-selector').length){
var listTd = ".appagebuilder_profiles tr td:nth-child(2)," +
var listTd = ".appagebuilder_profiles tr td:nth-child(2)," +
".appagebuilder_profiles tr td:nth-child(3), .appagebuilder_profiles tr td:nth-child(4)";
}else{
var listTd = ".appagebuilder_profiles tr td:nth-child(1)," +
var listTd = ".appagebuilder_profiles tr td:nth-child(1)," +
".appagebuilder_profiles tr td:nth-child(2), .appagebuilder_profiles tr td:nth-child(3)";
}
$("#live-edit-iframe").attr("src", urlLiveEdit + "&ap_edit_token=" + urlEditProfileToken + "&id_appagebuilder_profiles=" + idProfile + "&t=" + d.getTime());
$(listTd).each(function() {
$(this).attr("onclick", "return changeProfilePreview(this);");
});
$("#btn-reload-live").click(function() {
$("#ap_loading").show();
var d = new Date();
var d = new Date();
$("#live-edit-iframe").attr("src", urlLiveEdit + "&ap_edit_token=" + urlEditProfileToken + "&id_appagebuilder_profiles=" + idProfile + "&t=" + d.getTime());
});
$("#btn-preview").click(function() {

View File

@@ -1,4 +1,4 @@
{*
{*
* @Module Name: AP Page Builder
* @Website: apollotheme.com - prestashop template provider
* @author Apollotheme <apollotheme@gmail.com>