first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 deletions

View File

@@ -0,0 +1,101 @@
{*
* 2018 Areama
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*}
<div class="modal fade" id="arseo-duplication-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<div class="modal-title" style="font-size: 18px;" id="myModalLabel">{l s='New duplication rule' mod='arseopro'}</div>
</div>
<form class="form-horizontal form" id="arseo-duplication-form" onsubmit="arSEO.url.duplication.save(); return false;">
<div class="modal-body">
<input type="hidden" id="arseo-duplication-form_id" value="" data-default="" />
<input type="hidden" id="arseo-duplication-form_type" value="" data-default="" />
<div class="link-rewrite-group">
<div class="form-group link-rewrite">
<label class="control-label col-lg-2">{l s='For all languages' mod='arseopro'}</label>
<div class="col-lg-10">
<input name="link_rewrite_0" id="arseo-duplication-form_link_rewrite_0"
data-lang="0" value="" data-serializable="true" data-default="" type="text" />
<div class="errors"></div>
</div>
</div>
{foreach $languages as $language}
<div class="form-group link-rewrite-lang" id="link-rewrite-lang-{$language.id_lang|escape:'htmlall':'UTF-8'}">
<label class="control-label col-lg-2">{$language.iso_code|escape:'htmlall':'UTF-8'}</label>
<div class="col-lg-10">
<input name="link_rewrite_{$language.id_lang|escape:'htmlall':'UTF-8'}" id="arseo-duplication-form_link_rewrite_{$language.id_lang|escape:'htmlall':'UTF-8'}"
data-lang="{$language.id_lang|escape:'htmlall':'UTF-8'}" value="" data-serializable="true" data-default="" type="text" class="arseo-link-rewrite" />
<p class="actual-rewrite"></p>
<div class="errors"></div>
</div>
</div>
{/foreach}
</div>
{if $multishop}
<div class="form-group">
<label class="control-label required col-sm-2">{l s='Shop' mod='arseopro'}</label>
<div class="col-sm-10">
<select class="form-control" name="id_shop" id="arseo-duplication-form_id_shop" data-serializable="true" data-default="0">
<option value="0">{l s='All shops' mod='arseopro'}</option>
{foreach $shops as $shop}
<option value="{$shop.id_shop|intval}">{$shop.name|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
<div class="errors"></div>
</div>
</div>
{else}
<input type="hidden" value="{$id_shop|intval}" name="id_shop" id="arseo-duplication-form_id_shop" data-serializable="true" data-default="{$id_shop|intval}" />
{/if}
<div class="form-group name-group">
<label class="control-label required col-sm-2">{l s='Name' mod='arseopro'}</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="arseo-duplication-form_name" name="name" data-serializable="true" data-default="" />
<div class="errors"></div>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-default" type="button" data-dismiss="modal">{l s='Close' mod='arseopro'}</button>
<button class="btn btn-success" type="submit">{l s='Save' mod='arseopro'}</button>
</div>
</form>
</div>
</div>
</div>
<script type="text/javascript">
$('.link-rewrite input').keyup(function(data){
if (data.keyCode != 9 && data.keyCode != 16){
var val = $(this).val();
if (val.trim() != ''){
$('.link-rewrite-lang input').val(val);
arSEO.url.duplication.updateLinkRewrite(val, this);
}
}
});
$('.link-rewrite-lang input').keyup(function(data){
console.log(data);
if (data.keyCode != 9 && data.keyCode != 16){
var val = $(this).val();
arSEO.url.duplication.updateLinkRewrite(val, this);
}
});
</script>

View File

@@ -0,0 +1,30 @@
{*
* 2018 Areama
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*}
<div class="row keywords-select-row" id="{$target|escape:'htmlall':'UTF-8'}-keyword-selector">
<div class="col-sm-12">
<ul class="list-unstyled keywords-select" data-target="{$target|escape:'htmlall':'UTF-8'}">
{foreach from=$keywords item=title key=k}
<li>
<a title="{$title|escape:'htmlall':'UTF-8'}" href="#" data-keyword="{$k|escape:'htmlall':'UTF-8'}">{literal}{{/literal}{$k|escape:'htmlall':'UTF-8'}{literal}}{/literal}</a> - {$title|escape:'htmlall':'UTF-8'}
</li>
{/foreach}
</ul>
</div>
</div>

View File

@@ -0,0 +1,79 @@
{*
* 2018 Areama
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*}
<div class="modal fade" id="arseo-url-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<div class="modal-title" style="font-size: 18px;" id="myModalLabel">{l s='New URL rule' mod='arseopro'}</div>
</div>
<form class="form-horizontal form" id="arseo-url-rule-form" onsubmit="arSEO.url.save(false); return false;">
<input type="hidden" id="arseo-url-rule-form_id" value="" data-default="">
<div class="modal-body">
<div class="form-group">
<label class="control-label col-sm-2">{l s='Rule name' mod='arseopro'}</label>
<div class="col-sm-10">
<input type="text" class="form-control" placeholder="{l s='Leave this field blank to auto-generate rule name' mod='arseopro'}" id="arseo-url-rule-form_name" name="name" data-serializable="true" data-default="">
<div class="errors"></div>
</div>
</div>
<div class="form-group">
<label class="control-label required col-sm-2">{l s='Language' mod='arseopro'}</label>
<div class="col-sm-10">
<select class="form-control" name="id_lang" id="arseo-url-rule-form_id_lang" data-serializable="true" data-default="0">
<option value="0">{l s='All languages' mod='arseopro'}</option>
{foreach $langs as $lang}
<option value="{$lang.id_lang|intval}">{$lang.name|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
<div class="errors"></div>
</div>
</div>
<div class="form-group">
<label class="control-label required col-sm-2">{l s='Categories' mod='arseopro'}</label>
<div class="col-sm-10">
<select class="form-control" name="id_category" id="arseo-url-rule-form_id_category" data-serializable="true" data-default="0">
<option value="0">{l s='All categories' mod='arseopro'}</option>
<option value="1">{l s='Selected categories' mod='arseopro'}</option>
</select>
<div class="hidden" id="arseo-categories-container">
{$categoriesTree nofilter}
</div>
<div class="errors"></div>
</div>
</div>
<div class="form-group">
<label class="control-label required col-sm-2">{l s='URL rule' mod='arseopro'}</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="arseo-url-rule-form_rule" name="rule" data-serializable="true" data-default="">
<div class="errors"></div>
{include file="./_keywords.tpl"}
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-default" type="button" data-dismiss="modal">{l s='Close' mod='arseopro'}</button>
<button class="btn btn-success" type="submit">{l s='Save' mod='arseopro'}</button>
<button class="btn btn-primary" type="button" onclick="arSEO.url.save(true)">{l s='Save and stay' mod='arseopro'}</button>
</div>
</form>
</div>
</div>
</div>

View File

@@ -0,0 +1,31 @@
{*
* 2018 Areama
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*}
<div class="form-control" id="arseo_{$ruleId|escape:'htmlall':'UTF-8'}" readonly="">
{$schema|escape:'htmlall':'UTF-8'}
</div>
<p class="help-block">
{if $is16}
{l s='You can edit scheme in [1]"Preferences" -> "SEO & URLs" -> "Schema of URLs"[/1] panel! ' mod='arseopro' tags=["<a href='{$link}' target='_blank'>"]}
{elseif $is174}
{l s='You can edit scheme in [1]"Preferences" -> "URLs"[/1] panel! ' mod='arseopro' tags=["<a href='{$link}' target='_blank'>"]}
{else}
{l s='You can edit scheme in [1]"Shop parameters" -> "Traffic & SEO"[/1] panel! ' mod='arseopro' tags=["<a href='{$link}' target='_blank'>"]}
{/if}
</p>

View File

@@ -0,0 +1,22 @@
{*
* 2018 Areama
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*}
<div class="tab-pane {if $activeSubTab == 'ArSeoProURLCategory'}active{/if}" id="arseopro-category">
{$form->generateForm($urlCategoryFormParams) nofilter}{* HTML content generated by HelperForm, no escape necessary *}
</div>

View File

@@ -0,0 +1,22 @@
{*
* 2018 Areama
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*}
<div class="tab-pane {if $activeSubTab == 'ArSeoProURLCMSCategory'}active{/if}" id="arseopro-cms-category">
{$form->generateForm($urlCMSCategoryFormParams) nofilter}{* HTML content generated by HelperForm, no escape necessary *}
</div>

View File

@@ -0,0 +1,22 @@
{*
* 2018 Areama
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*}
<div class="tab-pane {if $activeSubTab == 'ArSeoProURLCMS'}active{/if}" id="arseopro-cms">
{$form->generateForm($urlCMSFormParams) nofilter}{* HTML content generated by HelperForm, no escape necessary *}
</div>

View File

@@ -0,0 +1,34 @@
{*
* 2018 Areama
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*}
<div class="tab-pane" id="arseopro-duplication">
<div class="panel">
<div class="panel-heading">
<i class="icon-info"></i>
</div>
<div class="form-wrapper">
<div id="form-url-duplication-list-container">
<div id="form-url-duplication-list" class="arseo-placeholder">
<input type="hidden" name="page" value="1" />
</div>
</div>
</div>
</div>
{include file="./_duplication_modal.tpl"}
</div>

View File

@@ -0,0 +1,22 @@
{*
* 2018 Areama
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*}
<div class="tab-pane {if $activeSubTab == 'ArSeoProURLGeneral' or empty($activeSubTab) or $activeTab != 'url'}active{/if}" id="arseopro-general">
{$form->generateForm($urlGeneralFormParams) nofilter}{* HTML content generated by HelperForm, no escape necessary *}
</div>

View File

@@ -0,0 +1,31 @@
<?php
/*
* 2018 Areama
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*/
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,22 @@
{*
* 2018 Areama
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*}
<div class="tab-pane {if $activeSubTab == 'ArSeoProURLManufacturer'}active{/if}" id="arseopro-manufacturer">
{$form->generateForm($urlManufacturerFormParams) nofilter}{* HTML content generated by HelperForm, no escape necessary *}
</div>

View File

@@ -0,0 +1,63 @@
{*
* 2018 Areama
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*}
<div class="tab-pane {if $activeSubTab == 'ArSeoProURLProduct'}active{/if}" id="arseopro-product">
{$form->generateForm($urlProductFormParams) nofilter}{* HTML content generated by HelperForm, no escape necessary *}
<div class="panel">
<div class="panel-heading show-heading">
<i class="icon-cog"></i> {l s='URL Rewrite Rules for products' mod='arseopro'}
<span class="panel-heading-action">
<a class="list-toolbar-btn" onclick="arSEO.url.newRule(); return false;" href="#">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="New rewrite rule" data-html="true" data-placement="top">
<i class="process-icon-new"></i>
</span>
</a>
<a class="list-toolbar-btn" onclick="arSEO.url.reload(); return false;" href="#">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="Refresh rules list" data-html="true" data-placement="top">
<i class="process-icon-refresh"></i>
</span>
</a>
<a class="list-toolbar-btn" onclick="arSEO.url.clear(); return false;" href="#">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="Clear rules list" data-html="true" data-placement="top">
<i class="process-icon-trash icon-trash"></i>
</span>
</a>
</span>
</div>
<div class="form-wrapper">
<div id="form-url-list-container">
<div id="form-url-list" class="arseo-placeholder">
<input type="hidden" name="page" value="1" />
</div>
</div>
<div class="text-right">
<button type="button" class="btn btn-success" onclick="arSEO.url.newRule()">
{l s='Create new rule' mod='arseopro'}
</button>
<button type="button" class="btn btn-primary" onclick="arSEO.url.applyRule(0, 0, 0, 1)">
{l s='Apply all rules' mod='arseopro'}
</button>
<button type="button" class="btn btn-warning" onclick="arSEO.url.clear()">
<i class="icon icon-trash"></i> {l s='Clear url rules list' mod='arseopro'}
</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,22 @@
{*
* 2018 Areama
*
* 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@areama.net so we can send you a copy immediately.
*
*
* @author Areama <contact@areama.net>
* @copyright 2018 Areama
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Areama
*}
<div class="tab-pane {if $activeSubTab == 'ArSeoProURLSupplier'}active{/if}" id="arseopro-supplier">
{$form->generateForm($urlSupplierFormParams) nofilter}{* HTML content generated by HelperForm, no escape necessary *}
</div>