first commit

This commit is contained in:
2024-10-25 14:16:28 +02:00
commit 925276dbb2
33795 changed files with 4780077 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
{foreach from=$alerts item='alert'}
<div class="alert alert-{$alert[0]}">
<p>{$alert[1]}</p>
</div>
{/foreach}

View File

@@ -0,0 +1,68 @@
<h3>
{l s='Module backups' mod='pshowsystem'}
<span class="panel-heading-action">
<a id="desc-cms_category-new" class="list-toolbar-btn" style='width: 250px; line-height: 28px;'
href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Backup", true)}&page=backup">
<i class="process-icon-new" style='float: left;'></i> {l s='Create new backup' mod='pshowsystem'}
</a>
</span>
</h3>
<div class="alert alert-info">
{l s='Backup stores only files! You can not use them to back up your database!' mod='pshowsystem'}
</div>
{if count($backups) > 0}
<table class="table table-hover">
<thead>
<tr>
<th>#</th>
<th>{l s='Filename' mod='pshowsystem'}</th>
<th>{l s='Version' mod='pshowsystem'} </th>
<th>{l s='Size' mod='pshowsystem'}</th>
<th>{l s='Date' mod='pshowsystem'}</th>
<th></th>
</tr>
</thead>
<tbody>
{assign var='i' value=1}
{foreach from=$backups item='backup'}
<tr>
<td>{$i}</td>
<td>{$backup['filename']}.zip</td>
<td>{$backup['version']}</td>
<td>{$backup['size']}</td>
<td>{$backup['time']|replace:".":":"} {$backup['date']}</td>
<td class="text-right">
<a href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Backup", true)}&page=remove&filename={$backup['filename']}" class="btn btn-warning">
<i class="icon-trash"></i>
{l s='Remove' mod='pshowsystem'}
</a>
<a href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Backup", true)}&page=restorebackup&filename={$backup['filename']}.zip" class="btn btn-danger">
<i class="icon-retweet"></i>
{l s='Restore' mod='pshowsystem'}
</a>
</td>
</tr>
{assign var='i' value=$i+1}
{/foreach}
</tbody>
</table>
{else}
<div class="alert alert-info">
{l s='You don\'t have any backups' mod='pshowsystem'}
</div>
{/if}

View File

@@ -0,0 +1,11 @@
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="{$s['name']}" id="{$s['name']}_on" value="1" {if $s['value'] == "1"}checked="checked"{/if}>
<label for="{$s['name']}_on" class="radioCheck">
{l s='Yes' mod='pshowimporter'}
</label>
<input type="radio" name="{$s['name']}" id="{$s['name']}_off" value="0" {if $s['value'] == "0"}checked="checked"{/if}>
<label for="{$s['name']}_off" class="radioCheck">
{l s='No' mod='pshowimporter'}
</label>
<a class="slide-button btn"></a>
</span>

View File

@@ -0,0 +1,33 @@
<form method="post" action="" class="defaultForm form-horizontal">
<h3>{l s='Add hook' mod='skeleton'}</h3>
<div class="panel-wrapper">
<div class="form-group clearfix">
<label class="control-label col-lg-3 required">
<span>
{l s='Hook' mod='skeleton'}
</span>
</label>
<div class="col-lg-9">
<select name="hook_name">
{foreach from=$hooks item='hook'}
<option value="{$hook['name']}">{$hook['name']}</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="panel-footer">
<a href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Hook")}" class="btn btn-default">
<i class="process-icon-cancel"></i> {l s='Cancel' mod='skeleton'}
</a>
<button type="submit" name="submit" class="btn btn-default pull-right">
<i class="process-icon-save"></i> {l s='Save' mod='skeleton'}
</button>
</div>
</form>

View File

@@ -0,0 +1,35 @@
<form method="post" action="" class="defaultForm form-horizontal">
<h3>{l s='Edit hook' mod='skeleton'}</h3>
<div class="panel-wrapper">
<div class="form-group clearfix">
<label class="control-label col-lg-3 required">
<span>
{l s='Hook' mod='skeleton'}
</span>
</label>
<div class="col-lg-9">
<select name="hook_name">
{foreach from=$hooks item='hook'}
<option value="{$hook['name']}"
{if $hook['name'] == $h->hook_name}selected{/if}>
{$hook['name']}
</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="panel-footer">
<a href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Hook")}" class="btn btn-default">
<i class="process-icon-cancel"></i> {l s='Cancel' mod='skeleton'}
</a>
<button type="submit" name="submit" class="btn btn-default pull-right">
<i class="process-icon-save"></i> {l s='Save' mod='skeleton'}
</button>
</div>
</form>

View File

@@ -0,0 +1,69 @@
<h3>
{l s='Module hooks' mod='skeleton'}
<span class="badge">{$hooksCount}</span>
<span class="panel-heading-action">
<a id="desc-product-new" class="list-toolbar-btn"
href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Hook")}&page=add">
<span title="" data-toggle="tooltip" class="label-tooltip" data-html="true"
data-original-title="{l s='Add new' mod='skeleton'}" data-placement="top">
<i class="process-icon-new"></i>
</span>
</a>
<a class="list-toolbar-btn" href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Hook")}&page=categories">
<span title="" data-toggle="tooltip" class="label-tooltip" data-html="true"
data-original-title="{l s='Refresh list' mod='skeleton'}" data-placement="top">
<i class="process-icon-refresh"></i>
</span>
</a>
</span>
</h3>
<table class="hooks_table table table-striped">
<thead>
<tr>
<th class="fixed-width-xs">{l s='ID' mod='skeleton'}</th>
<th>{l s='Hook name' mod='skeleton'}</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach from=$hooks item='hook'}
<tr>
<td>{$hook['id_hook']}</td>
<td>{$hook['hook_name']}</td>
<td class="text-right">
<div class="btn-group-action">
<div class="btn-group pull-right">
<a href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Hook")}&page=edit&id_hook={$hook['id_hook']}"
class="btn btn-default" title="{l s='Edit' mod='skeleton'}">
<i class="icon-pencil"></i> {l s='Edit' mod='skeleton'}
</a>
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i class="icon-caret-down"></i>&nbsp;
</button>
<ul class="dropdown-menu">
<li>
<a href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Hook")}&page=remove&id_hook={$hook['id_hook']}"
title="{l s='Remove' mod='skeleton'}" class="remove">
<i class="icon-trash"></i> {l s='Remove' mod='skeleton'}
</a>
</li>
</ul>
</div>
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>

View File

@@ -0,0 +1,22 @@
<?php
/*
* File from http://PrestaShow.pl
*
* DISCLAIMER
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future.
*
* @authors PrestaShow.pl <kontakt@prestashow.pl>
* @copyright 2015 PrestaShow.pl
* @license http://PrestaShow.pl/license
*/
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,17 @@
{if $mod_settings|count == 0}
<div class="alert alert-info">
<p>{l s='This module do not have any settings' mod='pshowimporter'}</p>
</div>
{/if}
{$form}
<script>
$(function () {
$('#configuration_form .panel').removeClass('panel');
});
</script>

View File

@@ -0,0 +1,3 @@
{foreach from=$tips item='tip'}
{showTip type=$tip.type id=$tip.id message=$tip.message}
{/foreach}

View File

@@ -0,0 +1,60 @@
<h3>{l s='Module update' mod='pshowsystem'} "{$PShowUpdateInstance->getModuleName()}"</h3>
<div class="row">
<div class="col-xs-6">
<p>{l s='Your module version' mod='pshowsystem'}: {$ModuleVersionNumber}</p>
<p>{l s='Newest module version' mod='pshowsystem'}: {$NewestVersionNumber}</p>
<p>
{if !$compareModuleAndNewestVersion}
<a href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Update", true)}&page=update">
<button class="btn btn-success">{l s='Click to start auto update' mod='pshowsystem'}</button>
</a>
{else}
<a href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Update", true)}&page=update&force=1">
<button class="btn btn-warning">{l s='Force update' mod='pshowsystem'}</button>
</a>
<br>
<small>{l s='Use this button to update module before new version is released' mod='pshowsystem'}</small>
{/if}
</p>
</div>
<div class="col-xs-6">
<p><strong>{l s='Recommended for this module' mod='pshowsystem'}:</strong></p>
<p class="col-xs-6">
<span class="label {if version_compare(phpversion(), '5.5.9') == -1}label-danger{else}label-success{/if}">
{l s='PHP version' mod='pshowsystem'} >=5.5.9
</span>
</p>
<p class="col-xs-6">
<span class="label {if !class_exists('ZipArchive')}label-danger{else}label-success{/if}">
{l s='installed ZIP extension' mod='pshowsystem'}
</span>
</p>
{if $PShowUpdateInstance->getModuleName() == 'pshowimporter'}
<p class="col-xs-6">
<span class="label {if !function_exists('libxml_use_internal_errors')}label-danger{else}label-success{/if}">
{l s='installed LIBXML extension' mod='pshowsystem'}
</span>
</p>
{/if}
</div>
</div>
<hr>
<p>
<strong>
{l s='Remember to read changelog before every update to see what changes will be introduced.' mod='pshowsystem'}
</strong>
</p>
<hr>
<p style="overflow-y: scroll; height: 400px;">
{$changelog|nl2br}
</p>