Version Notes
first release
Download this release
Release Info
| Developer | a.laciura@sostanza.it |
| Extension | Sostanza_LiveHelp |
| Version | 1.0.0 |
| Comparing to | |
| See all releases | |
Version 1.0.0
- app/code/community/Sostanza/Livehelp/.DS_Store +0 -0
- app/code/community/Sostanza/Livehelp/Block/Livehelp.php +96 -0
- app/code/community/Sostanza/Livehelp/Helper/Data.php +25 -0
- app/code/community/Sostanza/Livehelp/controllers/Adminhtml/CustomController.php +1 -0
- app/code/community/Sostanza/Livehelp/etc/adminhtml.xml +81 -0
- app/code/community/Sostanza/Livehelp/etc/config.xml +53 -0
- app/code/community/Sostanza/Livehelp/etc/widget.xml +119 -0
- app/etc/modules/Sostanza_Livehelp.xml +9 -0
- package.xml +18 -0
app/code/community/Sostanza/Livehelp/.DS_Store
ADDED
|
Binary file
|
app/code/community/Sostanza/Livehelp/Block/Livehelp.php
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Sostanza LiveHelp� chat
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to info@sostanza.it so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* @category Sostanza
|
| 16 |
+
* @package Sostanza_LiveHelp
|
| 17 |
+
* @copyright Copyright 2014 Sostanza s.r.l (http://www.sostanza.it)
|
| 18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 19 |
+
*/
|
| 20 |
+
?>
|
| 21 |
+
<?
|
| 22 |
+
class Sostanza_Livehelp_Block_Livehelp extends Mage_Core_Block_Abstract implements Mage_Widget_Block_Interface
|
| 23 |
+
{
|
| 24 |
+
|
| 25 |
+
protected function _toHtml()
|
| 26 |
+
{
|
| 27 |
+
$posizione=$this->getData('posizione');
|
| 28 |
+
$bottone=$this->getData('bottone');
|
| 29 |
+
$generatore = $this->getData('generatore');
|
| 30 |
+
$ID = $this->getData('sostanza_livehelpID');
|
| 31 |
+
$session['id']=$ID;
|
| 32 |
+
if (empty($ID)) {
|
| 33 |
+
return '';
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
if($generatore=="")
|
| 37 |
+
{
|
| 38 |
+
switch ($bottone)
|
| 39 |
+
{
|
| 40 |
+
|
| 41 |
+
case 'link':
|
| 42 |
+
$href="<A HREF='#' OnClick='apri_livehelp(); return(false);'><font face=verdana size=2><B><u>Richiedi ASSISTENZA in chat</u></B></font></A>";
|
| 43 |
+
break;
|
| 44 |
+
case 'omino livehelp':
|
| 45 |
+
$href='<A HREF="#" OnClick="apri_livehelp(); return(false);"><img border="0" src="http://server.livehelp.it/admin/logo_livehelp.asp?bottone=12&gruppo='.$ID.'&stanza="></A>';
|
| 46 |
+
break;
|
| 47 |
+
case 'bottone rosso':
|
| 48 |
+
$href="<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=1&gruppo=".$ID."&stanza='></A>";
|
| 49 |
+
break;
|
| 50 |
+
case 'bottone con ragazza':
|
| 51 |
+
$href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=9&gruppo=".$ID."&stanza='></A>";
|
| 52 |
+
break;
|
| 53 |
+
case 'bottone con fumetto':
|
| 54 |
+
$href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=3&gruppo=".$ID."&stanza='></A>";
|
| 55 |
+
break;
|
| 56 |
+
case 'bottone con fumetto en':
|
| 57 |
+
$href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=7&gruppo=".$ID."&stanza='></A>";
|
| 58 |
+
break;
|
| 59 |
+
case 'bottone rosa':
|
| 60 |
+
$href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=8&gruppo=".$ID."&stanza='></A>";
|
| 61 |
+
break;
|
| 62 |
+
case 'bottone grigio-verde':
|
| 63 |
+
$href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=9&gruppo=".$ID."&stanza='></A>";
|
| 64 |
+
break;
|
| 65 |
+
case 'bottone grigio-rosso':
|
| 66 |
+
$href = "<A HREF='#' OnClick='apri_livehelp(); return(false);'><img border='0' src='http://server.livehelp.it/admin/logo_livehelp.asp?bottone=10&gruppo=".$ID."&stanza='></A>";
|
| 67 |
+
break;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
switch ($posizione)
|
| 71 |
+
{
|
| 72 |
+
case 'bottom-left fixed':
|
| 73 |
+
$span='<span style="display:block; bottom:0px; left:0px; position:fixed;z-index:15000;" id="LH2013">';
|
| 74 |
+
break;
|
| 75 |
+
case 'bottom-right fixed':
|
| 76 |
+
$span='<span style="display:block; bottom:0px; right:0px; position:fixed;z-index:15000;" id="LH2013">';
|
| 77 |
+
break;
|
| 78 |
+
case 'inside':
|
| 79 |
+
$span='<span id="LH2013">';
|
| 80 |
+
break;
|
| 81 |
+
}
|
| 82 |
+
$html="<!-- INIZIO CODICE LiveHelp Copyright 1997 - 2014 www.livehelp.it Sostanza srl -->
|
| 83 |
+
<SCRIPT language=javascript> function apri_livehelp() {var d=new Date(); nuovo_LiveHelp_".$ID."=window.open
|
| 84 |
+
('http://server.livehelp.it/client_user/default.asp?provenienza='+ escape(document.location.href)
|
| 85 |
+
+'&info=&template=&stanza=".$stanza."&ID=".$ID."&gruppo=Assistenza&nick=&x=' + d.valueOf(),'LiveHelpwin1_".$ID."',
|
| 86 |
+
'status=no,location=no,toolbar=no,width=600,height=465,resizable=yes'); nuovo_LiveHelp_".$ID.".focus();} </SCRIPT>
|
| 87 |
+
".$span.$href."</span>
|
| 88 |
+
<!-- FINE CODICE LiveHelp -->";
|
| 89 |
+
|
| 90 |
+
// $html = $generatore;
|
| 91 |
+
}
|
| 92 |
+
else $html = $generatore;
|
| 93 |
+
return $html;
|
| 94 |
+
|
| 95 |
+
}
|
| 96 |
+
}
|
app/code/community/Sostanza/Livehelp/Helper/Data.php
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Sostanza LiveHelp� chat
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to info@sostanza.it so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* @category Sostanza
|
| 16 |
+
* @package Sostanza_LiveHelp
|
| 17 |
+
* @copyright Copyright 2014 Sostanza s.r.l (http://www.sostanza.it)
|
| 18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 19 |
+
*/
|
| 20 |
+
?>
|
| 21 |
+
<?php
|
| 22 |
+
class Sostanza_Livehelp_Helper_Data extends Mage_Core_Helper_Abstract
|
| 23 |
+
{
|
| 24 |
+
/*******/
|
| 25 |
+
}
|
app/code/community/Sostanza/Livehelp/controllers/Adminhtml/CustomController.php
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
| 0 |
* Sostanza LiveHelp® chat
|
| 1 |
*
|
| 2 |
* NOTICE OF LICENSE
|
| 3 |
*
|
| 4 |
* This source file is subject to the Open Software License (OSL 3.0)
|
| 5 |
* that is bundled with this package in the file LICENSE.txt.
|
| 6 |
* It is also available through the world-wide-web at this URL:
|
| 7 |
* http://opensource.org/licenses/osl-3.0.php
|
| 8 |
* If you did not receive a copy of the license and are unable to
|
| 9 |
* obtain it through the world-wide-web, please send an email
|
| 10 |
* to info@sostanza.it so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @category Sostanza
|
| 13 |
* @package Sostanza_LiveHelp
|
| 14 |
* @copyright Copyright 2014 Sostanza s.r.l (http://www.sostanza.it)
|
| 15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
public function indexAction()
|
| 18 |
{
|
| 19 |
$this->loadLayout()
|
| 20 |
->_setActiveMenu('mycustomtab')
|
| 21 |
->_title($this->__('Index Action'));
|
| 22 |
|
| 23 |
$key = Mage::helper("adminhtml")->getUrl("adminhtml/widget_instance/");
|
| 24 |
$url = '/index.php/admin/widget_instance/index/key/'.$key;
|
| 25 |
$this->renderLayout();
|
| 26 |
}
|
| 27 |
|
| 28 |
public function listAction()
|
| 29 |
{
|
| 30 |
$this->loadLayout()
|
| 31 |
->_setActiveMenu('mycustomtab')
|
| 32 |
->_title($this->__('List Action'));
|
| 33 |
//$url = 'http://server.livehelp.it/admin/main.asp';
|
| 34 |
// $this->getResponse()->setRedirect($url);
|
| 35 |
$key = Mage::helper("adminhtml")->getUrl("adminhtml/custom/chat");
|
| 36 |
$url = '/index.php/admin/custom/chat/key/'.$key;
|
| 37 |
$this->getResponse()->setRedirect($url);
|
| 38 |
$this->renderLayout();
|
| 39 |
}
|
| 40 |
public function aboutAction()
|
| 41 |
{
|
| 42 |
$this->loadLayout()
|
| 43 |
->_setActiveMenu('mycustomtab')
|
| 44 |
->_title($this->__('About Action'));
|
| 45 |
/* $url = "<script type='text/javascript'>window.open('http://www.livehelp.it/vedit/pagina.asp?pagina=1395')</script>";
|
| 46 |
// $this->getResponse()->setRedirect('http://magentogiulia.ilbello.com/index.php/admin');
|
| 47 |
$url2 = '/index.php/admin/widget_instance/index/key/'.$key2;*/
|
| 48 |
|
| 49 |
$url = '/index.php/admin/custom/chat/key/'.$key;
|
| 50 |
$this->getResponse()->setRedirect($url);
|
| 51 |
|
| 52 |
//$this->loadLayout();
|
| 53 |
$this->renderLayout();
|
| 54 |
}
|
| 55 |
{
|
| 56 |
|
| 57 |
/**
|
| 58 |
* Retrieve the read connection
|
| 59 |
*/
|
| 60 |
$readConnection = $resource->getConnection('core_read');
|
| 61 |
|
| 62 |
/**
|
| 63 |
* Retrieve our table name
|
| 64 |
*/
|
| 65 |
//$sku = $readConnection->fetchOne($query);
|
| 66 |
|
| 67 |
$this->loadLayout()
|
| 68 |
->_setActiveMenu('mycustomtab')
|
| 69 |
->_title($this->__('Chat Action'));
|
| 70 |
->createBlock('core/text', 'example-block')
|
| 71 |
->setText('clicca <a href="'.$url.'" target="blank">qui</a> per chattare<br/>');
|
| 72 |
->createBlock('core/text', 'example-block2')
|
| 73 |
->setText('clicca <a href="http://server.livehelp.it/admin/main.asp" target="blank">qui</a> per amministrare il tuo account<br/>');
|
| 74 |
->createBlock('core/text', 'example-block3')
|
| 75 |
->setText('clicca <a href="http://www.livehelp.it/index.asp?lingua=EN" target="blank">qui</a> per andare sul sito livehelp');
|
| 76 |
<tr>
|
| 77 |
<td><h1>What is LiveHelp®?</h1>
|
| 78 |
<td rowspan="3"><img src="http://www.livehelp.it/vedit/15/img/business-opportunity.png"></td>
|
| 79 |
</tr>
|
| 80 |
<tr>
|
| 81 |
<td>
|
| 82 |
</tr>
|
| 83 |
<tr>
|
| 84 |
<td><a href="'.$url.'" target="blank"><button>Start assisting</button></a>
|
| 85 |
</tr>
|
| 86 |
->createBlock('core/text', 'example-block4')
|
| 87 |
->setText($html);
|
| 88 |
$this->renderLayout();
|
| 89 |
}
|
| 1 |
+
<?php
|
| 2 |
* Sostanza LiveHelp® chat
|
| 3 |
*
|
| 4 |
* NOTICE OF LICENSE
|
| 5 |
*
|
| 6 |
* This source file is subject to the Open Software License (OSL 3.0)
|
| 7 |
* that is bundled with this package in the file LICENSE.txt.
|
| 8 |
* It is also available through the world-wide-web at this URL:
|
| 9 |
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
* If you did not receive a copy of the license and are unable to
|
| 11 |
* obtain it through the world-wide-web, please send an email
|
| 12 |
* to info@sostanza.it so we can send you a copy immediately.
|
| 13 |
*
|
| 14 |
* @category Sostanza
|
| 15 |
* @package Sostanza_LiveHelp
|
| 16 |
* @copyright Copyright 2014 Sostanza s.r.l (http://www.sostanza.it)
|
| 17 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 18 |
*/
|
| 19 |
public function indexAction()
|
| 20 |
{
|
| 21 |
$this->loadLayout()
|
| 22 |
->_setActiveMenu('mycustomtab')
|
| 23 |
->_title($this->__('Index Action'));
|
| 24 |
|
| 25 |
$key = Mage::helper("adminhtml")->getUrl("adminhtml/widget_instance/");
|
| 26 |
$url = '/index.php/admin/widget_instance/index/key/'.$key;
|
| 27 |
$this->renderLayout();
|
| 28 |
}
|
| 29 |
|
| 30 |
public function listAction()
|
| 31 |
{
|
| 32 |
$this->loadLayout()
|
| 33 |
->_setActiveMenu('mycustomtab')
|
| 34 |
->_title($this->__('List Action'));
|
| 35 |
//$url = 'http://server.livehelp.it/admin/main.asp';
|
| 36 |
// $this->getResponse()->setRedirect($url);
|
| 37 |
$key = Mage::helper("adminhtml")->getUrl("adminhtml/custom/chat");
|
| 38 |
$url = '/index.php/admin/custom/chat/key/'.$key;
|
| 39 |
$this->getResponse()->setRedirect($url);
|
| 40 |
$this->renderLayout();
|
| 41 |
}
|
| 42 |
public function aboutAction()
|
| 43 |
{
|
| 44 |
$this->loadLayout()
|
| 45 |
->_setActiveMenu('mycustomtab')
|
| 46 |
->_title($this->__('About Action'));
|
| 47 |
/* $url = "<script type='text/javascript'>window.open('http://www.livehelp.it/vedit/pagina.asp?pagina=1395')</script>";
|
| 48 |
// $this->getResponse()->setRedirect('http://magentogiulia.ilbello.com/index.php/admin');
|
| 49 |
$url2 = '/index.php/admin/widget_instance/index/key/'.$key2;*/
|
| 50 |
|
| 51 |
$url = '/index.php/admin/custom/chat/key/'.$key;
|
| 52 |
$this->getResponse()->setRedirect($url);
|
| 53 |
|
| 54 |
//$this->loadLayout();
|
| 55 |
$this->renderLayout();
|
| 56 |
}
|
| 57 |
{
|
| 58 |
|
| 59 |
/**
|
| 60 |
* Retrieve the read connection
|
| 61 |
*/
|
| 62 |
$readConnection = $resource->getConnection('core_read');
|
| 63 |
|
| 64 |
/**
|
| 65 |
* Retrieve our table name
|
| 66 |
*/
|
| 67 |
//$sku = $readConnection->fetchOne($query);
|
| 68 |
|
| 69 |
$this->loadLayout()
|
| 70 |
->_setActiveMenu('mycustomtab')
|
| 71 |
->_title($this->__('Chat Action'));
|
| 72 |
->createBlock('core/text', 'example-block')
|
| 73 |
->setText('clicca <a href="'.$url.'" target="blank">qui</a> per chattare<br/>');
|
| 74 |
->createBlock('core/text', 'example-block2')
|
| 75 |
->setText('clicca <a href="http://server.livehelp.it/admin/main.asp" target="blank">qui</a> per amministrare il tuo account<br/>');
|
| 76 |
->createBlock('core/text', 'example-block3')
|
| 77 |
->setText('clicca <a href="http://www.livehelp.it/index.asp?lingua=EN" target="blank">qui</a> per andare sul sito livehelp');
|
| 78 |
<tr>
|
| 79 |
<td><h1>What is LiveHelp®?</h1>
|
| 80 |
<td rowspan="3"><img src="http://www.livehelp.it/vedit/15/img/business-opportunity.png"></td>
|
| 81 |
</tr>
|
| 82 |
<tr>
|
| 83 |
<td>
|
| 84 |
</tr>
|
| 85 |
<tr>
|
| 86 |
<td><a href="'.$url.'" target="blank"><button>Start assisting</button></a>
|
| 87 |
</tr>
|
| 88 |
->createBlock('core/text', 'example-block4')
|
| 89 |
->setText($html);
|
| 90 |
$this->renderLayout();
|
| 91 |
}
|
app/code/community/Sostanza/Livehelp/etc/adminhtml.xml
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!--
|
| 2 |
+
/**
|
| 3 |
+
* Sostanza LiveHelp® chat
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to info@sostanza.it so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* @category Sostanza
|
| 16 |
+
* @package Sostanza_LiveHelp
|
| 17 |
+
* @copyright Copyright 2014 Sostanza s.r.l (http://www.sostanza.it)
|
| 18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 19 |
+
*/
|
| 20 |
+
-->
|
| 21 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 22 |
+
<config>
|
| 23 |
+
<menu>
|
| 24 |
+
<mycustomtab module="livehelp" translate="title">
|
| 25 |
+
<title>LiveHelp®</title>
|
| 26 |
+
<sort_order>10000</sort_order>
|
| 27 |
+
<children>
|
| 28 |
+
<index module="livehelp" translate="title">
|
| 29 |
+
<title>Configure widget</title>
|
| 30 |
+
<sort_order>1</sort_order>
|
| 31 |
+
<action>adminhtml/custom</action>
|
| 32 |
+
</index>
|
| 33 |
+
<list module="livehelp" translate="title">
|
| 34 |
+
<title>Go to administator panel</title>
|
| 35 |
+
<sort_order>2</sort_order>
|
| 36 |
+
<action>adminhtml/custom/list</action>
|
| 37 |
+
</list>
|
| 38 |
+
<chat module="livehelp" translate="title">
|
| 39 |
+
<title>Go assisting!</title>
|
| 40 |
+
<sort_order>3</sort_order>
|
| 41 |
+
<action>adminhtml/custom/chat</action>
|
| 42 |
+
</chat>
|
| 43 |
+
<about module="livehelp" translate="title">
|
| 44 |
+
<title>About LiveHelp®</title>
|
| 45 |
+
<sort_order>4</sort_order>
|
| 46 |
+
<action>adminhtml/custom/about</action>
|
| 47 |
+
</about>
|
| 48 |
+
</children>
|
| 49 |
+
</mycustomtab>
|
| 50 |
+
</menu>
|
| 51 |
+
<acl>
|
| 52 |
+
<resources>
|
| 53 |
+
<admin>
|
| 54 |
+
<children>
|
| 55 |
+
<custom translate="title" module="livehelp">
|
| 56 |
+
<title>My Controller</title>
|
| 57 |
+
<sort_order>-100</sort_order>
|
| 58 |
+
<children>
|
| 59 |
+
<index translate="title">
|
| 60 |
+
<title>Index Action</title>
|
| 61 |
+
<sort_order>1</sort_order>
|
| 62 |
+
</index>
|
| 63 |
+
<list translate="title">
|
| 64 |
+
<title>List Action</title>
|
| 65 |
+
<sort_order>2</sort_order>
|
| 66 |
+
</list>
|
| 67 |
+
<chat translate="title">
|
| 68 |
+
<title>Chat Action</title>
|
| 69 |
+
<sort_order>3</sort_order>
|
| 70 |
+
</chat>
|
| 71 |
+
<about translate="title">
|
| 72 |
+
<title>About Action</title>
|
| 73 |
+
<sort_order>3</sort_order>
|
| 74 |
+
</about>
|
| 75 |
+
</children>
|
| 76 |
+
</custom>
|
| 77 |
+
</children>
|
| 78 |
+
</admin>
|
| 79 |
+
</resources>
|
| 80 |
+
</acl>
|
| 81 |
+
</config>
|
app/code/community/Sostanza/Livehelp/etc/config.xml
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!--
|
| 2 |
+
/**
|
| 3 |
+
* Sostanza LiveHelp� chat
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to info@sostanza.it so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* @category Sostanza
|
| 16 |
+
* @package Sostanza_LiveHelp
|
| 17 |
+
* @copyright Copyright 2014 Sostanza s.r.l (http://www.sostanza.it)
|
| 18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 19 |
+
*/
|
| 20 |
+
-->
|
| 21 |
+
<?xml version="1.0"?>
|
| 22 |
+
<config>
|
| 23 |
+
<modules>
|
| 24 |
+
<Sostanza_Livehelp>
|
| 25 |
+
<version>1.0.9</version>
|
| 26 |
+
<cache_lifetime>0</cache_lifetime>
|
| 27 |
+
</Sostanza_Livehelp>
|
| 28 |
+
</modules>
|
| 29 |
+
<global>
|
| 30 |
+
<helpers>
|
| 31 |
+
<livehelp>
|
| 32 |
+
<class>Sostanza_Livehelp_Helper</class>
|
| 33 |
+
</livehelp>
|
| 34 |
+
</helpers>
|
| 35 |
+
<blocks>
|
| 36 |
+
<livehelp>
|
| 37 |
+
<class>Sostanza_Livehelp_Block</class>
|
| 38 |
+
</livehelp>
|
| 39 |
+
</blocks>
|
| 40 |
+
</global>
|
| 41 |
+
<admin>
|
| 42 |
+
<routers>
|
| 43 |
+
<adminhtml>
|
| 44 |
+
<use>admin</use>
|
| 45 |
+
<args>
|
| 46 |
+
<modules>
|
| 47 |
+
<foo_bar before="Mage_Adminhtml">Sostanza_Livehelp_Adminhtml</foo_bar>
|
| 48 |
+
</modules>
|
| 49 |
+
</args>
|
| 50 |
+
</adminhtml>
|
| 51 |
+
</routers>
|
| 52 |
+
</admin>
|
| 53 |
+
</config>
|
app/code/community/Sostanza/Livehelp/etc/widget.xml
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!--
|
| 2 |
+
/**
|
| 3 |
+
* Sostanza LiveHelp® chat
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to info@sostanza.it so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* @category Sostanza
|
| 16 |
+
* @package Sostanza_LiveHelp
|
| 17 |
+
* @copyright Copyright 2014 Sostanza s.r.l (http://www.sostanza.it)
|
| 18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 19 |
+
*/
|
| 20 |
+
-->
|
| 21 |
+
<widgets>
|
| 22 |
+
<livehelp_livehelp type="livehelp/livehelp" translate="name description" module="livehelp">
|
| 23 |
+
<name>LiveHelp® assistant</name>
|
| 24 |
+
<description>Add LiveHelp® to your website.</description>
|
| 25 |
+
<js></js>
|
| 26 |
+
<parameters>
|
| 27 |
+
<sostanza_livehelpID>
|
| 28 |
+
<label>LiveHelp® ID</label>
|
| 29 |
+
<visible>1</visible>
|
| 30 |
+
<required>1</required>
|
| 31 |
+
<type>text</type>
|
| 32 |
+
<description><![CDATA[
|
| 33 |
+
<a target="_blank" href="http://www.livehelp.it/vedit/15/landing-page.asp?campagna=magento">
|
| 34 |
+
create an account</a> and paste the LiveHelp® ID.
|
| 35 |
+
]]></description>
|
| 36 |
+
</sostanza_livehelpID>
|
| 37 |
+
<bottone>
|
| 38 |
+
<label>Choose the button</label>
|
| 39 |
+
<visible>1</visible>
|
| 40 |
+
<required>1</required>
|
| 41 |
+
<type>select</type>
|
| 42 |
+
<values>
|
| 43 |
+
<link translate="label">
|
| 44 |
+
<value>link</value>
|
| 45 |
+
<label>link</label>
|
| 46 |
+
</link>
|
| 47 |
+
<omino translate="label">
|
| 48 |
+
<value>omino livehelp</value>
|
| 49 |
+
<label>omino livehelp</label>
|
| 50 |
+
</omino>
|
| 51 |
+
<rosso translate="label">
|
| 52 |
+
<value>bottone rosso</value>
|
| 53 |
+
<label>bottone rosso</label>
|
| 54 |
+
</rosso>
|
| 55 |
+
<ragazza translate="label">
|
| 56 |
+
<value>bottone con ragazza</value>
|
| 57 |
+
<label>bottone con ragazza</label>
|
| 58 |
+
</ragazza>
|
| 59 |
+
<fumetto translate="label">
|
| 60 |
+
<value>bottone con fumetto</value>
|
| 61 |
+
<label>bottone con fumetto</label>
|
| 62 |
+
</fumetto>
|
| 63 |
+
<fumetto_en translate="label">
|
| 64 |
+
<value>bottone con fumetto en</value>
|
| 65 |
+
<label>bottone con fumetto en</label>
|
| 66 |
+
</fumetto_en>
|
| 67 |
+
<rosa translate="label">
|
| 68 |
+
<value>bottone rosa</value>
|
| 69 |
+
<label>bottone rosa</label>
|
| 70 |
+
</rosa>
|
| 71 |
+
<grigio_verde translate="label">
|
| 72 |
+
<value>bottone grigio-verde</value>
|
| 73 |
+
<label>bottone grigio-verde</label>
|
| 74 |
+
</grigio_verde>
|
| 75 |
+
<grigio_rosso translate="label">
|
| 76 |
+
<value>bottone grigio-rosso</value>
|
| 77 |
+
<label>bottone grigio-rosso</label>
|
| 78 |
+
</grigio_rosso>
|
| 79 |
+
</values>
|
| 80 |
+
<description>
|
| 81 |
+
Choose the button to display on frontend
|
| 82 |
+
</description>
|
| 83 |
+
</bottone>
|
| 84 |
+
<posizione>
|
| 85 |
+
<label>Choose position</label>
|
| 86 |
+
<visible>1</visible>
|
| 87 |
+
<required>1</required>
|
| 88 |
+
<type>select</type>
|
| 89 |
+
<values>
|
| 90 |
+
<left translate="label">
|
| 91 |
+
<value>bottom-left fixed</value>
|
| 92 |
+
<label>bottom-left fixed</label>
|
| 93 |
+
</left>
|
| 94 |
+
<right translate="label">
|
| 95 |
+
<value>bottom-right fixed</value>
|
| 96 |
+
<label>bottom-right fixed</label>
|
| 97 |
+
</right>
|
| 98 |
+
<inside translate="label">
|
| 99 |
+
<value>inside</value>
|
| 100 |
+
<label>inside</label>
|
| 101 |
+
</inside>
|
| 102 |
+
</values>
|
| 103 |
+
<description>
|
| 104 |
+
Choose the position of the button.
|
| 105 |
+
</description>
|
| 106 |
+
</posizione>
|
| 107 |
+
<generatore>
|
| 108 |
+
<label>Paste the html code for advanced configuration</label>
|
| 109 |
+
<visible>1</visible>
|
| 110 |
+
<required>0</required>
|
| 111 |
+
<type>textarea</type>
|
| 112 |
+
<description>go to the<![CDATA[
|
| 113 |
+
<a target="_blank" href="http://server.livehelp.it/admin/default.asp?noarg">
|
| 114 |
+
administrator panel</a>.
|
| 115 |
+
]]></description>
|
| 116 |
+
</generatore>
|
| 117 |
+
</parameters>
|
| 118 |
+
</livehelp_livehelp>
|
| 119 |
+
</widgets>
|
app/etc/modules/Sostanza_Livehelp.xml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<modules>
|
| 4 |
+
<Sostanza_Livehelp>
|
| 5 |
+
<active>true</active>
|
| 6 |
+
<codePool>community</codePool>
|
| 7 |
+
</Sostanza_Livehelp>
|
| 8 |
+
</modules>
|
| 9 |
+
</config>
|
package.xml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<package>
|
| 3 |
+
<name>Sostanza_LiveHelp</name>
|
| 4 |
+
<version>1.0.0</version>
|
| 5 |
+
<stability>stable</stability>
|
| 6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL-3.0</license>
|
| 7 |
+
<channel>community</channel>
|
| 8 |
+
<extends/>
|
| 9 |
+
<summary>Sostanza LiveHelp® chat support</summary>
|
| 10 |
+
<description>provide chat support for customers</description>
|
| 11 |
+
<notes>first release</notes>
|
| 12 |
+
<authors><author><name>Alessandro La Ciura</name><user>alaciura</user><email>a.laciura@sostanza.it</email></author></authors>
|
| 13 |
+
<date>2014-03-24</date>
|
| 14 |
+
<time>12:28:28</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Sostanza"><dir name="Livehelp"><dir name="Block"><file name="Livehelp.php" hash="07849f75773fb20b3a53fe041548cfb2"/></dir><dir name="Helper"><file name="Data.php" hash="98334f85f503ecce4828aa25feeba4ee"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CustomController.php" hash="508fa358cd50297c24c8093e7fb2de69"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="8ad1b51a2bf6dbc235b6b7d9a3ab1b26"/><file name="config.xml" hash="54ba4b04924e260aa1d144a428c8a26d"/><file name="widget.xml" hash="ae08de33c7bb3c10715ea160a5ce7125"/></dir><file name=".DS_Store" hash="f41f525169d6272ff2c77dc5440285c6"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sostanza_Livehelp.xml" hash="b1746da8a328bf3aada246bd68bee59b"/></dir></target></contents>
|
| 16 |
+
<compatible/>
|
| 17 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.7</min><max>1.8.1</max></package></required></dependencies>
|
| 18 |
+
</package>
|
