diff --git a/minicmailchimp.css b/minicmailchimp.css deleted file mode 100644 index e6b1b74..0000000 --- a/minicmailchimp.css +++ /dev/null @@ -1,61 +0,0 @@ -h2{ - font-weight: normal; - font-size: 22px; - letter-spacing: -0.025em; -} -.mail-center{ - text-align: center; - font-style: italic; -} -.subscription-holder{ - height: 40px; -} -.subscription-holder p{ - display: inline-block; - margin-left: 44%; - cursor: pointer; -} -.email{ - border: solid 1px #b0b0b0; - height: 30px; - background: #f8f8f8; - -webkit-box-shadow: inset 0 0 0 1px #fff; - -moz-box-shadow: inset 0 0 0 1px #fff; - box-shadow: inset 0 0 0 1px #fff; - color: #666666; - font-size: 16px; - width: 260px; - margin-right: 10px; - padding: 0 5px; -} -#mc-embedded-subscribe{ - height: 32px; -} -.email:hover, -.email:active, -.email:focus{ - background: #fff; - outline: none; -} -.inline{ - float: left; -} -.mail-input{ - margin: 0 auto; - width: 420px; - height: 0px; - display: none; - opacity: 0; - - -webkit-transition: all 300ms ease-in-out; - -moz-transition: all 300ms ease-in-out; - -ms-transition: all 300ms ease-in-out; - -o-transition: all 300ms ease-in-out; - transition: all 300ms ease-in-out; -} - -.mail-active{ - height: 40px; - opacity: 1; - display: block; -} diff --git a/minicmailchimp.php b/minicmailchimp.php index 85baf2a..bf4bfdc 100644 --- a/minicmailchimp.php +++ b/minicmailchimp.php @@ -18,10 +18,9 @@ * 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 -* @copyright 2007-2012 PrestaShop SA +* @author Minic Studio +* @copyright 2013 S.C. Minic Studio S.R.L. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA */ if (!defined('_PS_VERSION_')) @@ -35,15 +34,15 @@ class MinicMailchimp extends Module { $this->name = 'minicmailchimp'; $this->tab = 'front_office_features'; - $this->version = '0.0.0'; + $this->version = '0.1'; $this->author = 'minic studio'; $this->need_instance = 0; $this->secure_key = Tools::encrypt($this->name); parent::__construct(); - $this->displayName = $this->l('Mailchimp subscriber module.'); - $this->description = $this->l('Displays a subscriber form.'); + $this->displayName = $this->l('Minic mailchimp sync'); + $this->description = $this->l('Displays the Mailchimp subscriber form.'); } /** @@ -51,7 +50,7 @@ class MinicMailchimp extends Module */ public function install() { - if (!parent::install() || !$this->registerHook('displayHome') || !$this->registerHook('displayHeader')) + if (!parent::install() || !$this->registerHook('displayFooter') || !$this->registerHook('displayHeader')) return false; return true; } @@ -63,20 +62,18 @@ class MinicMailchimp extends Module return true; } + public function getContent() + { + + } + public function hookDisplayHeader() { - $this->context->controller->addCSS($this->_path.$this->name.'.css'); + // $this->context->controller->addCSS($this->_path.$this->name.'.css'); } - public function hookDisplayHome() + public function hookDisplayFooter() { - return $this->display(__FILE__, 'minicmailchimp.tpl'); + // return $this->display(__FILE__, ''); } - - public function hookDisplayFooterProduct() - { - return $this->display(__FILE__, 'minicmailchimp.tpl'); - } - - } diff --git a/views/css/minicmailchimp.css b/views/css/minicmailchimp.css new file mode 100644 index 0000000..e674748 --- /dev/null +++ b/views/css/minicmailchimp.css @@ -0,0 +1 @@ +/* */ \ No newline at end of file diff --git a/minicmailchimp.tpl b/views/templates/hooks/minicmailchimp.tpl similarity index 57% rename from minicmailchimp.tpl rename to views/templates/hooks/minicmailchimp.tpl index 5a9b0fa..1ef4ce2 100644 --- a/minicmailchimp.tpl +++ b/views/templates/hooks/minicmailchimp.tpl @@ -1,3 +1,27 @@ +{* +* 2007-2012 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 Minic Studio +* @copyright 2013 S.C. Minic Studio S.R.L. +* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) +*} +