This commit is contained in:
rGaillard
2011-07-06 10:10:43 +00:00
parent 31d94236ac
commit d1a13007b9
4695 changed files with 0 additions and 339293 deletions
-11
View File
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>iadvize</name>
<displayName>iAdvize</displayName>
<version>1.0</version>
<description>Offer an interactive live chat to your customers</description>
<author></author>
<tab>front_office_features</tab>
<is_configurable>1</is_configurable>
<need_instance>1</need_instance>
</module>
-19
View File
@@ -1,19 +0,0 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{iadvize}prestashop>iadvize_439a106a26eb0e34079618cc72d3d920'] = 'Bieten Sie Ihren Kunden einen interaktiven Live-Chat';
$_MODULE['<{iadvize}prestashop>iadvize_c888438d14855d7d96a2724ee9c306bd'] = 'Einstellungen aktualisiert';
$_MODULE['<{iadvize}prestashop>iadvize_162167872bb576ce8c76785ec4c4cb37'] = 'iAdvize ist ein interaktiver Live-Chat';
$_MODULE['<{iadvize}prestashop>iadvize_895cd381041fa87a2dbfca7904de7209'] = 'mit dem Sie direkt auf Ihre Besucher reagieren und sie zu den Produkten führen können, die ihren Bedürfnissen entsprechen.';
$_MODULE['<{iadvize}prestashop>iadvize_dfb55db021feb46384cc7215190b777a'] = 'Für weitere Informationen, klicken Sie hier';
$_MODULE['<{iadvize}prestashop>iadvize_f4f70727dc34561dfde1a3c529b6205c'] = 'Einstellungen';
$_MODULE['<{iadvize}prestashop>iadvize_f6c38837bb877b26405a7fd792d2e741'] = 'iAdvize Händler-ID:';
$_MODULE['<{iadvize}prestashop>iadvize_d2fd5b945bd364e52b2be4cf584b1f8e'] = 'iAdvize \"Anruftaste\" ID:';
$_MODULE['<{iadvize}prestashop>iadvize_ab4abc3ebef89969caf167af7b90bcec'] = 'Leer lassen, wenn Sie diese Funktion nicht aktivieren wollen';
$_MODULE['<{iadvize}prestashop>iadvize_34d5d712f0fd89ca0950d5df4bf7b346'] = '\"Anruftaste\" Standort:';
$_MODULE['<{iadvize}prestashop>iadvize_a3ab67209a2c6b0df679f22380d7e0c8'] = 'Keine Anruftaste';
$_MODULE['<{iadvize}prestashop>iadvize_f9e4884c7654daa6581b42ed90aeaba4'] = 'Linke Spalte';
$_MODULE['<{iadvize}prestashop>iadvize_feb6cc332459769fe15570bf332a6b50'] = 'Rechte Spalte';
$_MODULE['<{iadvize}prestashop>iadvize_b17f3f4dcf653a5776792498a9b44d6a'] = 'Einstellungen aktualisieren';
$_MODULE['<{iadvize}prestashop>iadvize_70397c4b252a5168c5ec003931cea215'] = 'Pflichtfelder';
-19
View File
@@ -1,19 +0,0 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{iadvize}prestashop>iadvize_439a106a26eb0e34079618cc72d3d920'] = 'Proponga a sus clientes un chat interactivo en directo';
$_MODULE['<{iadvize}prestashop>iadvize_c888438d14855d7d96a2724ee9c306bd'] = 'Parámetros actualizados';
$_MODULE['<{iadvize}prestashop>iadvize_162167872bb576ce8c76785ec4c4cb37'] = 'Advice es un chat interactivo en directo';
$_MODULE['<{iadvize}prestashop>iadvize_895cd381041fa87a2dbfca7904de7209'] = 'que le permite responder directamente a sus visitantes y orientarlos hacia los productos que responden a sus necesidades.';
$_MODULE['<{iadvize}prestashop>iadvize_dfb55db021feb46384cc7215190b777a'] = 'Para más información, pulse aquí';
$_MODULE['<{iadvize}prestashop>iadvize_f4f70727dc34561dfde1a3c529b6205c'] = 'Parámetros';
$_MODULE['<{iadvize}prestashop>iadvize_f6c38837bb877b26405a7fd792d2e741'] = 'ID vendedor iAdvize:';
$_MODULE['<{iadvize}prestashop>iadvize_d2fd5b945bd364e52b2be4cf584b1f8e'] = 'ID botón de llamada iAdvize:';
$_MODULE['<{iadvize}prestashop>iadvize_ab4abc3ebef89969caf167af7b90bcec'] = 'Deje vacío si no desea activar esta aplicación';
$_MODULE['<{iadvize}prestashop>iadvize_34d5d712f0fd89ca0950d5df4bf7b346'] = 'Posición del \"Botón llamar\"';
$_MODULE['<{iadvize}prestashop>iadvize_a3ab67209a2c6b0df679f22380d7e0c8'] = 'No hay botón de llamada';
$_MODULE['<{iadvize}prestashop>iadvize_f9e4884c7654daa6581b42ed90aeaba4'] = 'Columna de izquierda';
$_MODULE['<{iadvize}prestashop>iadvize_feb6cc332459769fe15570bf332a6b50'] = 'Columna de derecha';
$_MODULE['<{iadvize}prestashop>iadvize_b17f3f4dcf653a5776792498a9b44d6a'] = 'Guardar';
$_MODULE['<{iadvize}prestashop>iadvize_70397c4b252a5168c5ec003931cea215'] = 'Campos necesarios';
-19
View File
@@ -1,19 +0,0 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{iadvize}prestashop>iadvize_439a106a26eb0e34079618cc72d3d920'] = 'Offrez un chat interactif en direct à vos clients';
$_MODULE['<{iadvize}prestashop>iadvize_c888438d14855d7d96a2724ee9c306bd'] = 'Paramètres mis à jour';
$_MODULE['<{iadvize}prestashop>iadvize_162167872bb576ce8c76785ec4c4cb37'] = 'iAdvize est un chat en direct interactif';
$_MODULE['<{iadvize}prestashop>iadvize_895cd381041fa87a2dbfca7904de7209'] = 'vous permettant de répondre directement à vos visiteurs et les orienter vers les produits qui répondent à leurs besoins.';
$_MODULE['<{iadvize}prestashop>iadvize_dfb55db021feb46384cc7215190b777a'] = 'Pour plus d\'informations, cliquez ici';
$_MODULE['<{iadvize}prestashop>iadvize_f4f70727dc34561dfde1a3c529b6205c'] = 'Paramètres';
$_MODULE['<{iadvize}prestashop>iadvize_f6c38837bb877b26405a7fd792d2e741'] = 'ID marchand iAdvize :';
$_MODULE['<{iadvize}prestashop>iadvize_d2fd5b945bd364e52b2be4cf584b1f8e'] = 'ID bouton d\'appel iAdvize :';
$_MODULE['<{iadvize}prestashop>iadvize_ab4abc3ebef89969caf167af7b90bcec'] = 'Laissez vide si vous ne souhaitez pas activer cette fonctionnalité';
$_MODULE['<{iadvize}prestashop>iadvize_34d5d712f0fd89ca0950d5df4bf7b346'] = 'Position du \"Bouton appeler\"';
$_MODULE['<{iadvize}prestashop>iadvize_a3ab67209a2c6b0df679f22380d7e0c8'] = 'Pas de bouton d\'appel';
$_MODULE['<{iadvize}prestashop>iadvize_f9e4884c7654daa6581b42ed90aeaba4'] = 'Colonne de gauche';
$_MODULE['<{iadvize}prestashop>iadvize_feb6cc332459769fe15570bf332a6b50'] = 'Colonne de droite';
$_MODULE['<{iadvize}prestashop>iadvize_b17f3f4dcf653a5776792498a9b44d6a'] = 'Enregistrer';
$_MODULE['<{iadvize}prestashop>iadvize_70397c4b252a5168c5ec003931cea215'] = 'Champs requis';
-158
View File
@@ -1,158 +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
*/
class iAdvize extends Module
{
function __construct()
{
$this->name = 'iadvize';
$this->tab = 'front_office_features';
$this->version = '1.0';
$this->displayName = 'iAdvize';
parent::__construct();
$this->description = $this->l('Offer an interactive live chat to your customers');
}
function install()
{
if (!parent::install() OR !$this->registerHook('footer') OR !$this->registerHook('leftColumn') OR !$this->registerHook('rightColumn'))
return false;
return true;
}
function uninstall()
{
if (!Configuration::deleteByName('IADVIZE_SID') OR !Configuration::deleteByName('IADVIZE_BID') OR !parent::uninstall())
return false;
return true;
}
public function getContent()
{
global $cookie;
$lang = new Language((int)($cookie->id_lang));
if (!in_array($lang->iso_code, array('fr', 'en', 'es')))
$lang->iso_code = 'en';
$output = '<p style="margin-bottom: 20px;"><img src="'.__PS_BASE_URI__.'modules/'.$this->name.'/logo-iadvize.gif" alt="" /></p>';
if (Tools::isSubmit('submitiAdvize'))
{
Configuration::updateValue('IADVIZE_SID', (int)(Tools::getValue('iadvize_sid')));
Configuration::updateValue('IADVIZE_BID', (int)(Tools::getValue('iadvize_bid')));
Configuration::updateValue('IADVIZE_BUTTON', (int)(Tools::getValue('iadvize_button')));
$output .= '
<div class="conf confirm">
<img src="../img/admin/ok.gif" alt="" title="" />
'.$this->l('Settings updated').'<img src="http://www.prestashop.com/modules/iadvize.png?sid='.urlencode(Tools::getValue('iadvize_sid')).'" style="float:right" />
</div>';
}
$output .= '
<div style="float: left; width: 550px;">
<p style="margin: 15px 0 30px 0; width: 540px; line-height: 18px; text-align: justify;">
<b>'.$this->l('iAdvize is an interactive live chat').'</b> '.$this->l('allowing you to respond directly to your visitors and direct them towards the product that meets their needs.').'
<br />
<a href="http://www.iadvize.com/offre_prestashop.html" target="_blank">'.$this->l('For more information, click here').'</a>
</p>
<form action="'.$_SERVER['REQUEST_URI'].'" method="post">
<fieldset class="width2">
<legend><img src="../img/admin/cog.gif" alt="" class="middle" />'.$this->l('Settings').'</legend>
<label>'.$this->l('iAdvize merchant ID:').'</label>
<div class="margin-form">
<input type="text" name="iadvize_sid" value="'.(int)(Tools::getValue('iadvize_sid', Configuration::get('IADVIZE_SID'))).'" /> <sup>*</sup>
</div>
<hr size="1" style="margin-bottom: 20px;" noshade />
<label>'.$this->l('iAdvize "Call button" ID:').'</label>
<div class="margin-form">
<input type="text" name="iadvize_bid" value="'.(int)(Tools::getValue('iadvize_bid', Configuration::get('IADVIZE_BID'))).'" />
<p class="clear">'.$this->l('Leave empty if you do not want to enable this feature.').'</p>
</div>
<label style="vertical-align: middle;">'.$this->l('"Call button" location:').'</label>
<div class="margin-form" style="margin-top: 5px;">
<input type="radio" name="iadvize_button" value="0" style="vertical-align: middle;" /> '.$this->l('No call button').'&nbsp;
<input type="radio" name="iadvize_button" value="1" style="vertical-align: middle;" /> '.$this->l('Left column').'&nbsp;
<input type="radio" name="iadvize_button" value="2" style="vertical-align: middle;" /> '.$this->l('Right column').'
</div>
<hr size="1" style="margin-bottom: 20px;" noshade />
<center><input type="submit" name="submitiAdvize" value="'.$this->l('Update settings').'" class="button" /></center>
</fieldset>
<p style="font-size: 10px;"><sup>*</sup> '.$this->l('Required fields').'</p>
</form>
</div>
<div style="float: left; margin-left: 50px; width: 200px;">
'.(file_exists(dirname(__FILE__).'/offer-'.$lang->iso_code.'.jpg') ? '
<p><a href="http://www.iadvize.com/offre_prestashop.html" target="_blank"><img src="'.__PS_BASE_URI__.'modules/'.$this->name.'/offer-'.$lang->iso_code.'.jpg"></a></p>
' : '').'
</div>
<div class="clear"></div>';
return $output;
}
private function _displayCallButton()
{
return "\n".'
<!-- iAdvize - Call button -->
<div style="margin: 20px 0;">
<script type="text/javascript">
var iAdvize = ((\'https:\' == document.location.protocol) ? \'https://\' : \'http://\');
document.write(unescape(\'%3Cscript src="\' + iAdvize + \'livechat.iadvize.com/chat_button.js?bid='.(int)(Configuration::get('IADVIZE_BID')).'" type="text/javascript"%3E%3C/script%3E\'));
</script>
</div>
<!-- /End - iAdvize - Call button -->'."\n";
}
public function hookLeftColumn($params)
{
if (Configuration::get('IADVIZE_BUTTON') == 1)
return $this->_displayCallButton();
}
public function hookRightColumn($params)
{
if (Configuration::get('IADVIZE_BUTTON') == 2)
return $this->_displayCallButton();
}
public function hookFooter($params)
{
return "\n".'
<!-- iAdvize - Live chat -->
<script type="text/javascript">
'.(isset($params['cookie']->id_customer) ? 'var idzCustomData = {\'extID\':\''.(int)($params['cookie']->id_customer).'\'};' : '').'
var iAdvize = ((\'https:\' == document.location.protocol) ? \'https://\' : \'http://\');
document.write(unescape(\'%3Cscript src="\' + iAdvize + \'livechat.iadvize.com/chat_init.js?sid='.(int)(Configuration::get('IADVIZE_SID')).'" type="text/javascript"%3E%3C/script%3E\'));
</script>
<!-- /End - iAdvize - Live chat -->'."\n";
}
}
-19
View File
@@ -1,19 +0,0 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{iadvize}prestashop>iadvize_439a106a26eb0e34079618cc72d3d920'] = 'Offrire una live chat interattiva per i tuoi clienti';
$_MODULE['<{iadvize}prestashop>iadvize_c888438d14855d7d96a2724ee9c306bd'] = 'Impostazioni aggiornate';
$_MODULE['<{iadvize}prestashop>iadvize_162167872bb576ce8c76785ec4c4cb37'] = 'iAdvize è una live chat interattiva';
$_MODULE['<{iadvize}prestashop>iadvize_895cd381041fa87a2dbfca7904de7209'] = 'che consente di rispondere direttamente ai tuoi visitatori e indirizzarli verso il prodotto che soddisfi le loro esigenze.';
$_MODULE['<{iadvize}prestashop>iadvize_dfb55db021feb46384cc7215190b777a'] = 'Per maggiori informazioni, clicca qui';
$_MODULE['<{iadvize}prestashop>iadvize_f4f70727dc34561dfde1a3c529b6205c'] = 'Impostazioni';
$_MODULE['<{iadvize}prestashop>iadvize_f6c38837bb877b26405a7fd792d2e741'] = 'ID commerciante iAdvize:';
$_MODULE['<{iadvize}prestashop>iadvize_d2fd5b945bd364e52b2be4cf584b1f8e'] = 'ID \"Tasto di chiamata\" iAdvize';
$_MODULE['<{iadvize}prestashop>iadvize_ab4abc3ebef89969caf167af7b90bcec'] = 'Lascia vuoto se non vuoi attivare questa funzionalità';
$_MODULE['<{iadvize}prestashop>iadvize_34d5d712f0fd89ca0950d5df4bf7b346'] = 'Posizione \"Tasto di chiamata\"';
$_MODULE['<{iadvize}prestashop>iadvize_a3ab67209a2c6b0df679f22380d7e0c8'] = 'Nessun tasto di chiamata';
$_MODULE['<{iadvize}prestashop>iadvize_f9e4884c7654daa6581b42ed90aeaba4'] = 'Colonna di sinistra';
$_MODULE['<{iadvize}prestashop>iadvize_feb6cc332459769fe15570bf332a6b50'] = 'Colonna di destra';
$_MODULE['<{iadvize}prestashop>iadvize_b17f3f4dcf653a5776792498a9b44d6a'] = 'Aggiorna le impostazioni';
$_MODULE['<{iadvize}prestashop>iadvize_70397c4b252a5168c5ec003931cea215'] = 'I campi obbligatori';
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB