This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 2.4 KiB |
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<module>
|
||||
<name>gadsense</name>
|
||||
<displayName>Google Adsense</displayName>
|
||||
<version>1.1</version>
|
||||
<description>Integrate Google Adsense script into your shop</description>
|
||||
<author>PrestaShop</author>
|
||||
<tab>advertising_marketing</tab>
|
||||
<confirmUninstall>Are you sure you want to delete your details ?</confirmUninstall>
|
||||
<is_configurable>1</is_configurable>
|
||||
<need_instance>1</need_instance>
|
||||
</module>
|
||||
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_8a41674922e424cde4dd47c91f9d62e8'] = 'Google Adsense';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_4148996483a2cfeed90c66dc539c8f1a'] = 'Sie haben Ihren Google Adsense Code noch nicht eingestellt';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_e32c2b519ed33ed45a4c0a4b1b359447'] = 'Integrieren Sie das Google Adsense Script in Ihren Shop';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_fa214007826415a21a8456e3e09f999d'] = 'Sie sind sicher, dass Sie Ihre Daten löschen wollen?';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_c888438d14855d7d96a2724ee9c306bd'] = 'Einstellungen aktualisiert';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_f4f70727dc34561dfde1a3c529b6205c'] = 'Einstellungen';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_30c2b4b5e19ac71fefa1b4d688a7a98f'] = 'Ihr Code';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_81eeab9506186e2dca8faefa78d54067'] = 'Beispiel:';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_b17f3f4dcf653a5776792498a9b44d6a'] = 'Einstellungen aktualisieren';
|
||||
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_8a41674922e424cde4dd47c91f9d62e8'] = 'Google Adsense';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_4148996483a2cfeed90c66dc539c8f1a'] = 'Aún no ha configurado su código de Google Adsense';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_e32c2b519ed33ed45a4c0a4b1b359447'] = 'Integrar el script de Google Adsense en su tienda';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_fa214007826415a21a8456e3e09f999d'] = '¿Está seguro de querer eliminar todos sus datos?';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_c888438d14855d7d96a2724ee9c306bd'] = 'Configuración actualizada';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_f4f70727dc34561dfde1a3c529b6205c'] = 'Configuración';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_30c2b4b5e19ac71fefa1b4d688a7a98f'] = 'Su código';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_81eeab9506186e2dca8faefa78d54067'] = 'Ejemplo:';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_b17f3f4dcf653a5776792498a9b44d6a'] = 'Ajustes de actualización';
|
||||
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_8a41674922e424cde4dd47c91f9d62e8'] = 'Google Adsense';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_4148996483a2cfeed90c66dc539c8f1a'] = 'Vous n\'avez pas encore paramétré votre code Google Adsense.';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_e32c2b519ed33ed45a4c0a4b1b359447'] = 'Intégrer le script Google Adsense dans sa boutique';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_fa214007826415a21a8456e3e09f999d'] = 'Etes-vous sûr de vouloir supprimer vos paramètres ?';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_c888438d14855d7d96a2724ee9c306bd'] = 'Paramètres mis à jour.';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_f4f70727dc34561dfde1a3c529b6205c'] = 'Paramètres.';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_30c2b4b5e19ac71fefa1b4d688a7a98f'] = 'Votre code';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_81eeab9506186e2dca8faefa78d54067'] = 'Exemple :';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_b17f3f4dcf653a5776792498a9b44d6a'] = 'Mettre à jour les paramètres';
|
||||
@@ -1,116 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 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-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 1.4 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
if (!defined('_CAN_LOAD_FILES_'))
|
||||
exit;
|
||||
|
||||
class GAdsense extends Module
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
$this->name = 'gadsense';
|
||||
$this->tab = 'advertising_marketing';
|
||||
$this->version = '1.1';
|
||||
$this->author = 'PrestaShop';
|
||||
$this->displayName = $this->l('Google Adsense');
|
||||
|
||||
parent::__construct();
|
||||
|
||||
if ($this->id AND !Configuration::get('GADSENSE_ID'))
|
||||
$this->warning = $this->l('You have not yet set your Google Adsense code');
|
||||
$this->description = $this->l('Integrate Google Adsense script into your shop');
|
||||
$this->confirmUninstall = $this->l('Are you sure you want to delete your details ?');
|
||||
}
|
||||
|
||||
function install()
|
||||
{
|
||||
if (!parent::install() OR !$this->registerHook('home'))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
function uninstall()
|
||||
{
|
||||
if (!Configuration::deleteByName('GADSENSE_ID') OR !parent::uninstall())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getContent()
|
||||
{
|
||||
$output = '<h2>'.$this->displayName.'</h2>';
|
||||
if (Tools::isSubmit('submitGAdsense') AND ($gai = Tools::getValue('gadsense_id')))
|
||||
{
|
||||
$gai = htmlentities($gai, ENT_COMPAT, 'UTF-8');
|
||||
Configuration::updateValue('GADSENSE_ID', $gai);
|
||||
$output .= '
|
||||
<div class="conf confirm">
|
||||
<img src="../img/admin/ok.gif" alt="" title="" />
|
||||
'.$this->l('Settings updated').'
|
||||
</div>';
|
||||
}
|
||||
return $output.$this->displayForm();
|
||||
}
|
||||
|
||||
public function displayForm()
|
||||
{
|
||||
$output = '
|
||||
<form action="'.$_SERVER['REQUEST_URI'].'" method="post">
|
||||
<fieldset><legend>'.$this->l('Settings').'</legend>
|
||||
<label>'.$this->l('Your code').'</label>
|
||||
<div class="margin-form">
|
||||
<textarea name="gadsense_id" cols="90" rows="10" />'.Tools::getValue('gadsense_id', Configuration::get('GADSENSE_ID')).'</textarea>
|
||||
<p class="clear">'.$this->l('Example:').' <br /><br /><img src="../modules/gadsense/adsense_script.gif"></p>
|
||||
</div>
|
||||
<center><input type="submit" name="submitGAdsense" value="'.$this->l('Update settings').'" class="button" /></center>
|
||||
</fieldset>
|
||||
</form>';
|
||||
return $output;
|
||||
}
|
||||
|
||||
function hookLeftColumn($params)
|
||||
{
|
||||
return $this->hookHome($params);
|
||||
}
|
||||
|
||||
function hookRightColumn($params)
|
||||
{
|
||||
return $this->hookHome($params);
|
||||
}
|
||||
|
||||
function hookTop($params)
|
||||
{
|
||||
return $this->hookHome($params);
|
||||
}
|
||||
|
||||
function hookHome($params)
|
||||
{
|
||||
$output = html_entity_decode(Configuration::get('GADSENSE_ID'), ENT_COMPAT, 'UTF-8');
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_8a41674922e424cde4dd47c91f9d62e8'] = 'Google Adsense';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_4148996483a2cfeed90c66dc539c8f1a'] = 'Non hai ancora impostato il codice di Google Adsense';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_e32c2b519ed33ed45a4c0a4b1b359447'] = 'Integrare lo script di Google Adsense nel tuo negozio';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_fa214007826415a21a8456e3e09f999d'] = 'Sei sicuro di voler cancellare i tuoi dati?';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_c888438d14855d7d96a2724ee9c306bd'] = 'Impostazioni aggiornate';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_f4f70727dc34561dfde1a3c529b6205c'] = 'Impostazioni';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_30c2b4b5e19ac71fefa1b4d688a7a98f'] = 'Il tuo codice';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_81eeab9506186e2dca8faefa78d54067'] = 'Esempio:';
|
||||
$_MODULE['<{gadsense}prestashop>gadsense_b17f3f4dcf653a5776792498a9b44d6a'] = 'Aggiorna le impostazioni';
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 378 B |
Reference in New Issue
Block a user