Version Notes
Ekomi Snippets
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Magmodules_Ekomisnippets |
| Version | 1.0.0 |
| Comparing to | |
| See all releases | |
Version 1.0.0
- app/code/local/Magmodules/Core/Block/Adminhtml/System/Config/Form/Field/Heading.php +23 -0
- app/code/local/Magmodules/Core/etc/config.xml +45 -0
- app/code/local/Magmodules/Core/etc/system.xml +21 -0
- app/code/local/Magmodules/Ekomisnippets/Block/Snippets.php +58 -0
- app/code/local/Magmodules/Ekomisnippets/Helper/Data.php +62 -0
- app/code/local/Magmodules/Ekomisnippets/etc/adminhtml.xml +44 -0
- app/code/local/Magmodules/Ekomisnippets/etc/config.xml +78 -0
- app/code/local/Magmodules/Ekomisnippets/etc/system.xml +135 -0
- app/design/frontend/base/default/layout/magmodules_ekomisnippets.xml +8 -0
- app/design/frontend/base/default/template/magmodules/ekomisnippets/block.phtml +42 -0
- app/etc/modules/Magmodules_Core.xml +9 -0
- app/etc/modules/Magmodules_Ekomisnippets.xml +9 -0
- app/locale/en_US/Magmodules_Ekomisnippets.csv +0 -0
- app/locale/it_IT/Magmodules_Ekomisnippets.csv +13 -0
- app/locale/nl_NL/Magmodules_Ekomisnippets.csv +13 -0
- package.xml +18 -0
- skin/adminhtml/default/default/images/magmodules/comments.png +0 -0
- skin/adminhtml/default/default/images/magmodules/logo-small.png +0 -0
- skin/adminhtml/default/default/magmodules.css +53 -0
- skin/frontend/base/default/magmodules/ekomisnippets.css +9 -0
app/code/local/Magmodules/Core/Block/Adminhtml/System/Config/Form/Field/Heading.php
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magmodules.eu
|
| 4 |
+
* Http://www.magmodules.eu
|
| 5 |
+
* ========================
|
| 6 |
+
* @category Magmodules
|
| 7 |
+
* @package Magmodules_Core
|
| 8 |
+
* @author Magmodules <info@magmodules.eu)
|
| 9 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
| 10 |
+
* @license http://www.magmodules.eu/license-agreement/ [ Single domain license ]
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
class Magmodules_Core_Block_Adminhtml_System_Config_Form_Field_Heading extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
|
| 14 |
+
{
|
| 15 |
+
|
| 16 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
| 17 |
+
{
|
| 18 |
+
$useContainerId = $element->getData('use_container_id');
|
| 19 |
+
return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4>%s</h4></td></tr>',
|
| 20 |
+
$element->getHtmlId(), $element->getLabel()
|
| 21 |
+
);
|
| 22 |
+
}
|
| 23 |
+
}
|
app/code/local/Magmodules/Core/etc/config.xml
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* Magmodules.eu
|
| 5 |
+
* Http://www.magmodules.eu
|
| 6 |
+
* ========================
|
| 7 |
+
* @category Magmodules
|
| 8 |
+
* @package Magmodules_Core
|
| 9 |
+
* @author Magmodules <info@magmodules.eu)
|
| 10 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
| 11 |
+
* @license http://www.magmodules.eu/license-agreement/ [ Single domain license ]
|
| 12 |
+
*/
|
| 13 |
+
-->
|
| 14 |
+
<config>
|
| 15 |
+
<modules>
|
| 16 |
+
<Magmodules_Core>
|
| 17 |
+
<version>1.0.0</version>
|
| 18 |
+
</Magmodules_Core>
|
| 19 |
+
</modules>
|
| 20 |
+
<global>
|
| 21 |
+
<blocks>
|
| 22 |
+
<magmodules_core>
|
| 23 |
+
<class>Magmodules_Core_Block_Adminhtml</class>
|
| 24 |
+
</magmodules_core>
|
| 25 |
+
</blocks>
|
| 26 |
+
</global>
|
| 27 |
+
<adminhtml>
|
| 28 |
+
<layout>
|
| 29 |
+
<updates>
|
| 30 |
+
<magmodulescore>
|
| 31 |
+
<file>magmodules/core.xml</file>
|
| 32 |
+
</magmodulescore>
|
| 33 |
+
</updates>
|
| 34 |
+
</layout>
|
| 35 |
+
<translate>
|
| 36 |
+
<modules>
|
| 37 |
+
<Magmodules_Core>
|
| 38 |
+
<files>
|
| 39 |
+
<default>Magmodules_Core.csv</default>
|
| 40 |
+
</files>
|
| 41 |
+
</Magmodules_Core>
|
| 42 |
+
</modules>
|
| 43 |
+
</translate>
|
| 44 |
+
</adminhtml>
|
| 45 |
+
</config>
|
app/code/local/Magmodules/Core/etc/system.xml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* Magmodules.eu
|
| 5 |
+
* Http://www.magmodules.eu
|
| 6 |
+
* ========================
|
| 7 |
+
* @category Magmodules
|
| 8 |
+
* @package Magmodules_Core
|
| 9 |
+
* @author Magmodules <info@magmodules.eu)
|
| 10 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
| 11 |
+
* @license http://www.magmodules.eu/license-agreement/ [ Single domain license ]
|
| 12 |
+
*/
|
| 13 |
+
-->
|
| 14 |
+
<config>
|
| 15 |
+
<tabs>
|
| 16 |
+
<magmodules>
|
| 17 |
+
<label>Magmodules</label>
|
| 18 |
+
<sort_order>200</sort_order>
|
| 19 |
+
</magmodules>
|
| 20 |
+
</tabs>
|
| 21 |
+
</config>
|
app/code/local/Magmodules/Ekomisnippets/Block/Snippets.php
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magmodules.eu
|
| 4 |
+
* http://www.magmodules.eu
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 10 |
+
* It is also available through the world-wide-web at this URL:
|
| 11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 12 |
+
* If you did not receive a copy of the license and are unable to
|
| 13 |
+
* obtain it through the world-wide-web, please send an email
|
| 14 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
| 15 |
+
*
|
| 16 |
+
* @category Magmodules
|
| 17 |
+
* @package Magmodules_Ekomisnippets
|
| 18 |
+
* @author Magmodules <info@magmodules.eu)
|
| 19 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
| 20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 21 |
+
*/
|
| 22 |
+
|
| 23 |
+
class Magmodules_Ekomisnippets_Block_Snippets extends Mage_Core_Block_Template
|
| 24 |
+
{
|
| 25 |
+
|
| 26 |
+
protected function _construct()
|
| 27 |
+
{
|
| 28 |
+
if(Mage::getStoreConfig('ekomisnippets/api/enabled')) {
|
| 29 |
+
$this->setSnippetsEnabled(1);
|
| 30 |
+
} else {
|
| 31 |
+
$this->setSnippetsEnabled(0);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
parent::_construct();
|
| 35 |
+
$this->setTemplate('magmodules/ekomisnippets/block.phtml');
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
public function getSnapshopRequest()
|
| 39 |
+
{
|
| 40 |
+
return $this->helper('ekomisnippets')->getSnapshopRequest();
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
public function getEkomiLink()
|
| 44 |
+
{
|
| 45 |
+
return $this->helper('ekomisnippets')->getEkomiLink();
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
public function getShopName()
|
| 49 |
+
{
|
| 50 |
+
return Mage::getStoreConfig('ekomisnippets/api/shop_name');
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
public function getEkomiStars($rating)
|
| 54 |
+
{
|
| 55 |
+
return $this->helper('ekomisnippets')->getEkomiStars($rating);
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
}
|
app/code/local/Magmodules/Ekomisnippets/Helper/Data.php
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magmodules.eu
|
| 4 |
+
* http://www.magmodules.eu
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 10 |
+
* It is also available through the world-wide-web at this URL:
|
| 11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 12 |
+
* If you did not receive a copy of the license and are unable to
|
| 13 |
+
* obtain it through the world-wide-web, please send an email
|
| 14 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
| 15 |
+
*
|
| 16 |
+
* @category Magmodules
|
| 17 |
+
* @package Magmodules_Ekomisnippets
|
| 18 |
+
* @author Magmodules <info@magmodules.eu)
|
| 19 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
| 20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 21 |
+
*/
|
| 22 |
+
|
| 23 |
+
class Magmodules_Ekomisnippets_Helper_Data extends Mage_Core_Helper_Abstract
|
| 24 |
+
{
|
| 25 |
+
|
| 26 |
+
function getSnapshopRequest()
|
| 27 |
+
{
|
| 28 |
+
$ekomi_api_id = Mage::getStoreConfig('ekomisnippets/api/api_id');
|
| 29 |
+
$ekomi_api_key = Mage::getStoreConfig('ekomisnippets/api/api_key');
|
| 30 |
+
$ekomi_version = 'cust-1.0.0';
|
| 31 |
+
|
| 32 |
+
if($ekomi_api_id && $ekomi_api_key) {
|
| 33 |
+
$api = 'http://api.ekomi.de/v2/wsdl';
|
| 34 |
+
$client = new SoapClient($api, array('exceptions' => 0));
|
| 35 |
+
$send_snapshot_request = $client->getSnapshot($ekomi_api_id.'|'.$ekomi_api_key, $ekomi_version);
|
| 36 |
+
$ret = unserialize(utf8_decode($send_snapshot_request));
|
| 37 |
+
return $ret;
|
| 38 |
+
} else {
|
| 39 |
+
return false;
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
function getEkomiLink()
|
| 44 |
+
{
|
| 45 |
+
if(Mage::getStoreConfig('ekomisnippets/api/show_link')) {
|
| 46 |
+
$ekomi_link = Mage::getStoreConfig('ekomisnippets/api/ekomi_link');
|
| 47 |
+
return Mage::helper('ekomisnippets')->__('customer reviews on') . '<a href="' . $ekomi_link . '"> Ekomi</a>';
|
| 48 |
+
} else {
|
| 49 |
+
return false;
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
function getEkomiStars($rating)
|
| 54 |
+
{
|
| 55 |
+
$perc = round(($rating * 20), 0);
|
| 56 |
+
$html .= '<div class="rating-box">';
|
| 57 |
+
$html .= ' <div class="rating" style="width:' . $perc . '%"></div>';
|
| 58 |
+
$html .= '</div>';
|
| 59 |
+
return $html;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
}
|
app/code/local/Magmodules/Ekomisnippets/etc/adminhtml.xml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* Magmodules.eu
|
| 5 |
+
* http://www.magmodules.eu
|
| 6 |
+
*
|
| 7 |
+
* NOTICE OF LICENSE
|
| 8 |
+
*
|
| 9 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 10 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 11 |
+
* It is also available through the world-wide-web at this URL:
|
| 12 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 13 |
+
* If you did not receive a copy of the license and are unable to
|
| 14 |
+
* obtain it through the world-wide-web, please send an email
|
| 15 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
| 16 |
+
*
|
| 17 |
+
* @category Magmodules
|
| 18 |
+
* @package Magmodules_Colorbox
|
| 19 |
+
* @author Magmodules <info@magmodules.eu)
|
| 20 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
| 21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 22 |
+
*/
|
| 23 |
+
-->
|
| 24 |
+
<config>
|
| 25 |
+
<acl>
|
| 26 |
+
<resources>
|
| 27 |
+
<admin>
|
| 28 |
+
<children>
|
| 29 |
+
<system>
|
| 30 |
+
<children>
|
| 31 |
+
<config>
|
| 32 |
+
<children>
|
| 33 |
+
<ekomisnippets translate="title" module="ekomisnippets">
|
| 34 |
+
<title>Ekomi Snippets</title>
|
| 35 |
+
</ekomisnippets>
|
| 36 |
+
</children>
|
| 37 |
+
</config>
|
| 38 |
+
</children>
|
| 39 |
+
</system>
|
| 40 |
+
</children>
|
| 41 |
+
</admin>
|
| 42 |
+
</resources>
|
| 43 |
+
</acl>
|
| 44 |
+
</config>
|
app/code/local/Magmodules/Ekomisnippets/etc/config.xml
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* Magmodules.eu
|
| 5 |
+
* http://www.magmodules.eu
|
| 6 |
+
*
|
| 7 |
+
* NOTICE OF LICENSE
|
| 8 |
+
*
|
| 9 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 10 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 11 |
+
* It is also available through the world-wide-web at this URL:
|
| 12 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 13 |
+
* If you did not receive a copy of the license and are unable to
|
| 14 |
+
* obtain it through the world-wide-web, please send an email
|
| 15 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
| 16 |
+
*
|
| 17 |
+
* @category Magmodules
|
| 18 |
+
* @package Magmodules_Colorbox
|
| 19 |
+
* @author Magmodules <info@magmodules.eu)
|
| 20 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
| 21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 22 |
+
*/
|
| 23 |
+
-->
|
| 24 |
+
<config>
|
| 25 |
+
<modules>
|
| 26 |
+
<Magmodules_Ekomisnippets>
|
| 27 |
+
<version>1.0.0</version>
|
| 28 |
+
</Magmodules_Ekomisnippets>
|
| 29 |
+
</modules>
|
| 30 |
+
<global>
|
| 31 |
+
<helpers>
|
| 32 |
+
<ekomisnippets>
|
| 33 |
+
<class>Magmodules_Ekomisnippets_Helper</class>
|
| 34 |
+
</ekomisnippets>
|
| 35 |
+
</helpers>
|
| 36 |
+
<blocks>
|
| 37 |
+
<ekomisnippets>
|
| 38 |
+
<class>Magmodules_Ekomisnippets_Block</class>
|
| 39 |
+
</ekomisnippets>
|
| 40 |
+
</blocks>
|
| 41 |
+
</global>
|
| 42 |
+
<frontend>
|
| 43 |
+
<layout>
|
| 44 |
+
<updates>
|
| 45 |
+
<magmodules_ekomisnippets>
|
| 46 |
+
<file>magmodules_ekomisnippets.xml</file>
|
| 47 |
+
</magmodules_ekomisnippets>
|
| 48 |
+
</updates>
|
| 49 |
+
</layout>
|
| 50 |
+
<translate>
|
| 51 |
+
<modules>
|
| 52 |
+
<magmodules_ekomisnippets>
|
| 53 |
+
<files>
|
| 54 |
+
<default>Magmodules_Ekomisnippets.csv</default>
|
| 55 |
+
</files>
|
| 56 |
+
</magmodules_ekomisnippets>
|
| 57 |
+
</modules>
|
| 58 |
+
</translate>
|
| 59 |
+
</frontend>
|
| 60 |
+
<adminhtml>
|
| 61 |
+
<translate>
|
| 62 |
+
<modules>
|
| 63 |
+
<magmodules_ekomisnippets>
|
| 64 |
+
<files>
|
| 65 |
+
<default>Magmodules_Ekomisnippets.csv</default>
|
| 66 |
+
</files>
|
| 67 |
+
</magmodules_ekomisnippets>
|
| 68 |
+
</modules>
|
| 69 |
+
</translate>
|
| 70 |
+
</adminhtml>
|
| 71 |
+
<default>
|
| 72 |
+
<ekomi_snippets>
|
| 73 |
+
<general>
|
| 74 |
+
<enabled>0</enabled>
|
| 75 |
+
</general>
|
| 76 |
+
</ekomi_snippets>
|
| 77 |
+
</default>
|
| 78 |
+
</config>
|
app/code/local/Magmodules/Ekomisnippets/etc/system.xml
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* Magmodules.eu
|
| 5 |
+
* http://www.magmodules.eu
|
| 6 |
+
*
|
| 7 |
+
* NOTICE OF LICENSE
|
| 8 |
+
*
|
| 9 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 10 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 11 |
+
* It is also available through the world-wide-web at this URL:
|
| 12 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 13 |
+
* If you did not receive a copy of the license and are unable to
|
| 14 |
+
* obtain it through the world-wide-web, please send an email
|
| 15 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
| 16 |
+
*
|
| 17 |
+
* @category Magmodules
|
| 18 |
+
* @package Magmodules_Ekomisnippets
|
| 19 |
+
* @author Magmodules <info@magmodules.eu)
|
| 20 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
| 21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 22 |
+
*/
|
| 23 |
+
-->
|
| 24 |
+
<config>
|
| 25 |
+
<tabs>
|
| 26 |
+
<magmodules translate="label" module="ekomisnippets">
|
| 27 |
+
<label>Magmodules</label>
|
| 28 |
+
<sort_order>200</sort_order>
|
| 29 |
+
</magmodules>
|
| 30 |
+
</tabs>
|
| 31 |
+
<sections>
|
| 32 |
+
<ekomisnippets translate="label" module="ekomisnippets">
|
| 33 |
+
<label>Ekomi Snippets</label>
|
| 34 |
+
<tab>magmodules</tab>
|
| 35 |
+
<header_css>mm-moduleheader</header_css>
|
| 36 |
+
<frontend_type>text</frontend_type>
|
| 37 |
+
<sort_order>40</sort_order>
|
| 38 |
+
<show_in_default>1</show_in_default>
|
| 39 |
+
<show_in_website>1</show_in_website>
|
| 40 |
+
<show_in_store>1</show_in_store>
|
| 41 |
+
<groups>
|
| 42 |
+
<api translate="label" module="ekomisnippets">
|
| 43 |
+
<label>General configuration</label>
|
| 44 |
+
<frontend_type>text</frontend_type>
|
| 45 |
+
<sort_order>2</sort_order>
|
| 46 |
+
<show_in_default>1</show_in_default>
|
| 47 |
+
<show_in_website>1</show_in_website>
|
| 48 |
+
<show_in_store>1</show_in_store>
|
| 49 |
+
<expanded>1</expanded>
|
| 50 |
+
<comment>
|
| 51 |
+
<![CDATA[<p style="padding: 5px; border: 1px solid #ccc">Use: {{block type="ekomisnippets/snippets" name="ekomisnippets" template="magmodules/ekomisnippets/block.phtml"}} to call the block on the homepage</p>]]>
|
| 52 |
+
</comment>
|
| 53 |
+
<fields>
|
| 54 |
+
<enabled translate="label">
|
| 55 |
+
<label>Enabled</label>
|
| 56 |
+
<frontend_type>select</frontend_type>
|
| 57 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 58 |
+
<sort_order>1</sort_order>
|
| 59 |
+
<show_in_default>1</show_in_default>
|
| 60 |
+
<show_in_website>1</show_in_website>
|
| 61 |
+
<show_in_store>1</show_in_store>
|
| 62 |
+
</enabled>
|
| 63 |
+
<heading_api translate="label">
|
| 64 |
+
<label>API CREDENTIALS</label>
|
| 65 |
+
<frontend_model>magmodules_core/system_config_form_field_heading</frontend_model>
|
| 66 |
+
<sort_order>2</sort_order>
|
| 67 |
+
<show_in_default>1</show_in_default>
|
| 68 |
+
<show_in_website>1</show_in_website>
|
| 69 |
+
<show_in_store>1</show_in_store>
|
| 70 |
+
</heading_api>
|
| 71 |
+
<api_id translate="label">
|
| 72 |
+
<label>API ID</label>
|
| 73 |
+
<frontend_type>text</frontend_type>
|
| 74 |
+
<sort_order>3</sort_order>
|
| 75 |
+
<show_in_default>1</show_in_default>
|
| 76 |
+
<show_in_website>1</show_in_website>
|
| 77 |
+
<show_in_store>1</show_in_store>
|
| 78 |
+
</api_id>
|
| 79 |
+
<api_key translate="label">
|
| 80 |
+
<label>API Key</label>
|
| 81 |
+
<frontend_type>text</frontend_type>
|
| 82 |
+
<sort_order>4</sort_order>
|
| 83 |
+
<show_in_default>1</show_in_default>
|
| 84 |
+
<show_in_website>1</show_in_website>
|
| 85 |
+
<show_in_store>1</show_in_store>
|
| 86 |
+
</api_key>
|
| 87 |
+
<heading_design translate="label">
|
| 88 |
+
<label>DESIGN</label>
|
| 89 |
+
<frontend_model>magmodules_core/system_config_form_field_heading</frontend_model>
|
| 90 |
+
<sort_order>5</sort_order>
|
| 91 |
+
<show_in_default>1</show_in_default>
|
| 92 |
+
<show_in_website>1</show_in_website>
|
| 93 |
+
<show_in_store>1</show_in_store>
|
| 94 |
+
</heading_design>
|
| 95 |
+
<shop_name translate="label">
|
| 96 |
+
<label>Shopname</label>
|
| 97 |
+
<frontend_type>text</frontend_type>
|
| 98 |
+
<sort_order>6</sort_order>
|
| 99 |
+
<show_in_default>1</show_in_default>
|
| 100 |
+
<show_in_website>1</show_in_website>
|
| 101 |
+
<show_in_store>1</show_in_store>
|
| 102 |
+
</shop_name>
|
| 103 |
+
<show_link translate="label">
|
| 104 |
+
<label>Show Link to Ekomi</label>
|
| 105 |
+
<frontend_type>select</frontend_type>
|
| 106 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 107 |
+
<sort_order>7</sort_order>
|
| 108 |
+
<show_in_default>1</show_in_default>
|
| 109 |
+
<show_in_website>1</show_in_website>
|
| 110 |
+
<show_in_store>1</show_in_store>
|
| 111 |
+
</show_link>
|
| 112 |
+
<ekomi_link translate="label">
|
| 113 |
+
<label>Ekomi Link</label>
|
| 114 |
+
<frontend_type>text</frontend_type>
|
| 115 |
+
<sort_order>8</sort_order>
|
| 116 |
+
<show_in_default>1</show_in_default>
|
| 117 |
+
<show_in_website>1</show_in_website>
|
| 118 |
+
<show_in_store>1</show_in_store>
|
| 119 |
+
<depends><show_link>1</show_link></depends>
|
| 120 |
+
</ekomi_link>
|
| 121 |
+
<show_stars translate="label">
|
| 122 |
+
<label>Show Stars</label>
|
| 123 |
+
<frontend_type>select</frontend_type>
|
| 124 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 125 |
+
<sort_order>9</sort_order>
|
| 126 |
+
<show_in_default>1</show_in_default>
|
| 127 |
+
<show_in_website>1</show_in_website>
|
| 128 |
+
<show_in_store>1</show_in_store>
|
| 129 |
+
</show_stars>
|
| 130 |
+
</fields>
|
| 131 |
+
</api>
|
| 132 |
+
</groups>
|
| 133 |
+
</ekomisnippets>
|
| 134 |
+
</sections>
|
| 135 |
+
</config>
|
app/design/frontend/base/default/layout/magmodules_ekomisnippets.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<layout version="0.1.0">
|
| 3 |
+
<cms_index_index>
|
| 4 |
+
<reference name="head">
|
| 5 |
+
<action method="addCss"><stylesheet>magmodules/ekomisnippets.css</stylesheet></action>
|
| 6 |
+
</reference>
|
| 7 |
+
</cms_index_index>
|
| 8 |
+
</layout>
|
app/design/frontend/base/default/template/magmodules/ekomisnippets/block.phtml
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magmodules.eu
|
| 4 |
+
* http://www.magmodules.eu
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 10 |
+
* It is also available through the world-wide-web at this URL:
|
| 11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 12 |
+
* If you did not receive a copy of the license and are unable to
|
| 13 |
+
* obtain it through the world-wide-web, please send an email
|
| 14 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
| 15 |
+
*
|
| 16 |
+
* @category Magmodules
|
| 17 |
+
* @package Magmodules_Ekomisnippets
|
| 18 |
+
* @author Magmodules <info@magmodules.eu)
|
| 19 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
| 20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 21 |
+
*/
|
| 22 |
+
if($this->getSnippetsEnabled()) {
|
| 23 |
+
// GET API DATA
|
| 24 |
+
$_snapshot = $this->getSnapshopRequest();
|
| 25 |
+
$_snippets = $_snapshot['info'];
|
| 26 |
+
// GET VALUES
|
| 27 |
+
$ekomilink = $this->getEkomiLink();
|
| 28 |
+
$shopname = $this->getShopname();
|
| 29 |
+
?>
|
| 30 |
+
<?php if($_snapshot['done']) { ?>
|
| 31 |
+
<div class="ekomi-shop-snippets">
|
| 32 |
+
<?php echo $this->getEkomiStars($_snippets['fb_avg']); ?>
|
| 33 |
+
<div class="ekomi-schema" itemscope="itemscope" itemtype="http://schema.org/Product">
|
| 34 |
+
<meta itemprop="name" content="<?php echo $shopname; ?>">
|
| 35 |
+
<div itemprop="aggregateRating" itemscope="itemscope" itemtype="http://schema.org/AggregateRating">
|
| 36 |
+
<meta itemprop="bestRating" content="5">
|
| 37 |
+
<p><?php echo Mage::helper('ekomisnippets')->__('Rating') ?> <span itemprop="ratingValue"><?php echo $_snippets['fb_avg']; ?></span> <?php echo Mage::helper('ekomisnippets')->__('based on') ?> <span itemprop="reviewCount"><?php echo $_snippets['fb_count']; ?></span> <?php echo $ekomilink; ?></p>
|
| 38 |
+
</div>
|
| 39 |
+
</div>
|
| 40 |
+
</div>
|
| 41 |
+
<?php } ?>
|
| 42 |
+
<?php } ?>
|
app/etc/modules/Magmodules_Core.xml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<modules>
|
| 4 |
+
<Magmodules_Core>
|
| 5 |
+
<active>true</active>
|
| 6 |
+
<codePool>local</codePool>
|
| 7 |
+
</Magmodules_Core>
|
| 8 |
+
</modules>
|
| 9 |
+
</config>
|
app/etc/modules/Magmodules_Ekomisnippets.xml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<modules>
|
| 4 |
+
<Magmodules_Ekomisnippets>
|
| 5 |
+
<active>true</active>
|
| 6 |
+
<codePool>local</codePool>
|
| 7 |
+
</Magmodules_Ekomisnippets>
|
| 8 |
+
</modules>
|
| 9 |
+
</config>
|
app/locale/en_US/Magmodules_Ekomisnippets.csv
ADDED
|
File without changes
|
app/locale/it_IT/Magmodules_Ekomisnippets.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"General configuration","Configurazione generale"
|
| 2 |
+
"Use: {{block type="ekomisnippets/snippets" name="ekomisnippets" template="magmodules/ekomisnippets/block.phtml"}} to call the block on the homepage","Use: {{block type="ekomisnippets/snippets" name="ekomisnippets" template="magmodules/ekomisnippets/block.phtml"}} to call the block on the homepage"
|
| 3 |
+
"API CREDENTIALS","API CREDENZIALI"
|
| 4 |
+
"API ID","API ID"
|
| 5 |
+
"API Key","API Key"
|
| 6 |
+
"DESIGN","Design"
|
| 7 |
+
"Shopname","Nome del negozio"
|
| 8 |
+
"Show Link to Ekomi","Mostra Link eKomi"
|
| 9 |
+
"Ekomi Link","Ekomi Link"
|
| 10 |
+
"Show Stars","Mostra Stars"
|
| 11 |
+
"Rating","Valutazione"
|
| 12 |
+
"based on","sulla base"
|
| 13 |
+
"customer reviews on","recensioni dei clienti su"
|
app/locale/nl_NL/Magmodules_Ekomisnippets.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"General configuration","Algemene Configuratie"
|
| 2 |
+
"Use: {{block type="ekomisnippets/snippets" name="ekomisnippets" template="magmodules/ekomisnippets/block.phtml"}} to call the block on the homepage","Gebruik: {{block type="ekomisnippets/snippets" name="ekomisnippets" template="magmodules/ekomisnippets/block.phtml"}} to call the block on the homepage"
|
| 3 |
+
"API CREDENTIALS","API Gegevens"
|
| 4 |
+
"API ID","API ID"
|
| 5 |
+
"API Key","API sleutel"
|
| 6 |
+
"DESIGN","Ontwerp"
|
| 7 |
+
"Shopname","Winkelnaam"
|
| 8 |
+
"Show Link to Ekomi","Toon link naar Ekomi"
|
| 9 |
+
"Ekomi Link","Ekomi Link"
|
| 10 |
+
"Show Stars","Toon sterren"
|
| 11 |
+
"Rating","Beoordeeld"
|
| 12 |
+
"based on","gebasseerd op"
|
| 13 |
+
"customer reviews on","klant beoordelingen"
|
package.xml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<package>
|
| 3 |
+
<name>Magmodules_Ekomisnippets</name>
|
| 4 |
+
<version>1.0.0</version>
|
| 5 |
+
<stability>stable</stability>
|
| 6 |
+
<license uri="http://www.magmodules.eu/license-agreement/">Single Server License</license>
|
| 7 |
+
<channel>community</channel>
|
| 8 |
+
<extends/>
|
| 9 |
+
<summary>Add Ekomi rich snippets to Magento Homepage</summary>
|
| 10 |
+
<description>Add Ekomi rich snippets to Magento Homepage</description>
|
| 11 |
+
<notes>Ekomi Snippets</notes>
|
| 12 |
+
<authors><author><name>Magmodules</name><user>auto-converted</user><email>info@magmodules.nl</email></author></authors>
|
| 13 |
+
<date>2013-07-03</date>
|
| 14 |
+
<time>09:33:40</time>
|
| 15 |
+
<contents><target name="magelocal"><dir name="Magmodules"><dir name="Ekomisnippets"><dir name="Block"><file name="Snippets.php" hash="2ca4e5acc0b4cd11eb22710822da677d"/></dir><dir name="Helper"><file name="Data.php" hash="9a84194b5797b9b32596ba5d7d0c3d19"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e17b618677f4f1afa9833affd23cd11a"/><file name="config.xml" hash="2e54cd5634d2c8a698296d1007dbd47a"/><file name="system.xml" hash="a22dc55f0cf235ae577175545478db74"/></dir></dir><dir name="Core"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Heading.php" hash="225f6b0c38c0416999bca84ed585f8a0"/></dir></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="00d42a8d48f8990f6df2baf5e35227cc"/><file name="system.xml" hash="a6af45002ccaf73cca5bdff49704d100"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magmodules_ekomisnippets.xml" hash="ae6f75bb712023b93b2549879c577a94"/></dir><dir name="template"><dir name="magmodules"><dir name="ekomisnippets"><file name="block.phtml" hash="d91cea649e416604ccecd363db5e0bf6"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="magmodules"><file name="comments.png" hash="f187231e161acd185dbb918c8d9b7b6d"/><file name="logo-small.png" hash="b7f5334665d500cd6068a0ce55cd6d74"/></dir></dir><file name="magmodules.css" hash="7cd6b3eca521f94eba537d89e772fc9c"/></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="magmodules"><file name="ekomisnippets.css" hash="88760e43d5d33696025759ba49f43bb5"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Magmodules_Ekomisnippets.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="it_IT"><file name="Magmodules_Ekomisnippets.csv" hash="edcb455cc33427722626fe8e5d786248"/></dir><dir name="nl_NL"><file name="Magmodules_Ekomisnippets.csv" hash="e98bea3206e6f2d200da950bea9e7972"/></dir></target><target name="mageetc"><dir name="modules"><file name="Magmodules_Ekomisnippets.xml" hash="d54b6a04b8cf9490ff29bbc95ee40e54"/><file name="Magmodules_Core.xml" hash="2697672510696f9cc390b995103c89c7"/></dir></target></contents>
|
| 16 |
+
<compatible/>
|
| 17 |
+
<dependencies><required><package><name></name><channel>community</channel><min></min><max></max></package></required></dependencies>
|
| 18 |
+
</package>
|
skin/adminhtml/default/default/images/magmodules/comments.png
ADDED
|
Binary file
|
skin/adminhtml/default/default/images/magmodules/logo-small.png
ADDED
|
Binary file
|
skin/adminhtml/default/default/magmodules.css
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Magmodules.eu
|
| 3 |
+
* http://www.magmodules.eu
|
| 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@magmodules.eu so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* @category Magmodules
|
| 16 |
+
* @package Magmodules_Core
|
| 17 |
+
* @author Magmodules <info@magmodules.eu>
|
| 18 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
| 19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 20 |
+
*/
|
| 21 |
+
|
| 22 |
+
h3.mm-moduleheader {
|
| 23 |
+
background: url("images/magmodules/logo-small.png") no-repeat scroll 4px 0 transparent;
|
| 24 |
+
padding: 18px 0 2px 160px;
|
| 25 |
+
height: 20px;
|
| 26 |
+
font-size: 16px;
|
| 27 |
+
color: #6C6C6C;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
p.mm-info {
|
| 31 |
+
border: 1px solid #ccc;
|
| 32 |
+
padding: 5px;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
a.magtooltip span {
|
| 36 |
+
display:none;
|
| 37 |
+
padding:2px 3px;
|
| 38 |
+
margin-left:8px;
|
| 39 |
+
width:550px;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
a.magtooltip:hover span {
|
| 43 |
+
display:inline;
|
| 44 |
+
position:absolute;
|
| 45 |
+
background:#ffffff;
|
| 46 |
+
border:1px solid #cccccc;
|
| 47 |
+
color:#6c6c6c;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
.magtooltip hr {
|
| 51 |
+
height:1px;
|
| 52 |
+
border: 1px dotted #606;
|
| 53 |
+
}
|
skin/frontend/base/default/magmodules/ekomisnippets.css
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.ekomi-shop-snippets {
|
| 2 |
+
|
| 3 |
+
}
|
| 4 |
+
|
| 5 |
+
.ekomi-shop-snippets .rating-box {
|
| 6 |
+
float: left;
|
| 7 |
+
margin-right: 4px;
|
| 8 |
+
margin-top: 3px;
|
| 9 |
+
}
|
