Remove old skinstatic_old

This commit is contained in:
Michael RICOIS 2018-02-20 17:00:14 +01:00
parent e58544028d
commit c3f5f5f54c
5 changed files with 0 additions and 111 deletions

View File

@ -1,13 +0,0 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{skinstatic}prestashop>skinstatic_286574d5d40ccf2143604db8b404dc52'] = 'Éléments d\'habillage statiques';
$_MODULE['<{skinstatic}prestashop>skinstatic_541bb9e8a1a9ae020570dc84927b0233'] = 'Permet d\'afficher des éléments statiques en tant qu\'habillage sur le site.';
$_MODULE['<{skinstatic}prestashop>skinstatic_279caa97179f4af4468ad34df96c1b05'] = 'Liens mis à jour avec succès.';
$_MODULE['<{skinstatic}prestashop>skinstatic_bd908db5ccb07777ced8023dffc802f4'] = 'Liens';
$_MODULE['<{skinstatic}prestashop>skinstatic_0a57a0bc7123ea6510f05b5cec5cd781'] = 'Lien de gauche :';
$_MODULE['<{skinstatic}prestashop>skinstatic_f5699525e5e8b1d14dc9ba54075e978a'] = 'Lien de droite :';
$_MODULE['<{skinstatic}prestashop>skinstatic_f3e1082184237d601bf3b9d2dd283874'] = 'Ouvrir dans une nouvelle fenêtre';
$_MODULE['<{skinstatic}prestashop>skinstatic_d2fc48519363c48ef034bbe6560d070a'] = 'Fond fixe';
$_MODULE['<{skinstatic}prestashop>skinstatic_b17f3f4dcf653a5776792498a9b44d6a'] = 'Enregistrer';

View File

@ -1,36 +0,0 @@
<?php
/*
* 2007-2011 PrestaShop
*
* 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.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-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-2011 PrestaShop SA
* @version Release: $Revision: 7233 $
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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;

View File

@ -1,62 +0,0 @@
<?php
if (!defined('_PS_VERSION_'))
exit;
class SkinStatic extends Module {
public function __construct() {
$this->name = 'skinstatic';
$this->tab = 'front_office_features';
$this->version = '1.0';
$this->author = 'Antadis';
parent::__construct();
$this->displayName = $this->l('Static skin items');
$this->description = $this->l('Allows to display static parts as a skin on the website.');
}
public function getContent() {
$this->_html = '<h2>'.$this->displayName.'</h2>';
if (Tools::isSubmit('btnSubmit')) {
Configuration::updateValue('SKINSTATIC_VERSION', (int) Configuration::get('SKINSTATIC_VERSION') + 1);
file_put_contents(_PS_ROOT_DIR_.'/themes/site/skinstatic_cache/columns.html', str_replace(array('{left_link}', '{right_link}', '{version}'), array(Tools::getValue('left_link'), Tools::getValue('right_link'), Configuration::get('SKINSTATIC_VERSION')), '<style type="text/css">body#index #columns { background: url("//www.bebeboutik.com/themes/site/img/columns.jpg?v={version}") no-repeat '.(Tools::getValue('fixed')? 'fixed center 0px': 'scroll center top').' #f3f3f3;}</style><a'.((int) Tools::getValue('new_window')? ' onclick="window.open(this.href); return false;"': '').' id="skin-left" href="{left_link}"></a><a'.((int) Tools::getValue('new_window')? ' onclick="window.open(this.href); return false;"': '').' id="skin-right" href="{right_link}"></a>'.(Tools::getValue('fixed')? '
<script type="text/javascript">
<!--
$(document).ready(function() { var scrolling = $("#skin-left, #skin-right"); var pos = scrolling.position(); var size = scrolling.height() + 80; var max_size = $(document).height() - $("#footer").height() - 45; $(window).scroll(function(event) { offset = parseFloat(scrolling.css("marginTop").replace("px", "")); scrolling.css({ "marginTop": Math.min($(document).scrollTop(), max_size) + "px" }); }); });
-->
</script>': '').'
'));
$this->_html .= '<p class="conf">'.$this->l('Links updated successfully.').'</p><br /><br />';
}
$this->_html .=
'<form action="'.Tools::htmlentitiesUTF8($_SERVER['REQUEST_URI']).'" method="post">
<fieldset>
<legend><img src="../img/admin/prefs.gif" />'.$this->l('Links').'</legend>
<p class="margin-form">
<label>'.$this->l('Left link:').'</label>
<input type="text" value="" name="left_link" />
</p>
<p class="margin-form">
<label>'.$this->l('Right link:').'</label>
<input type="text" value="" name="right_link" />
</p>
<p class="margin-form">
<label>'.$this->l('Open link in new window').'</label>
<input type="checkbox" value="1" name="new_window" />
</p>
<p class="margin-form">
<label>'.$this->l('Fixed background').'</label>
<input type="checkbox" value="1" name="fixed" />
</p>
<p class="margin-form submit">
<input class="button" name="btnSubmit" value="'.$this->l('Update settings').'" type="submit" />
</p>
</fieldset>
</form>';
return $this->_html;
}
}