This commit is contained in:
minic studio
2013-03-03 11:46:45 +02:00
parent 77bc1fffb6
commit 2ce502f50e
4 changed files with 39 additions and 78 deletions

View File

@@ -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;
}

View File

@@ -18,10 +18,9 @@
* versions in the future. If you wish to customize PrestaShop for your * versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information. * needs please refer to http://www.prestashop.com for more information.
* *
* @author PrestaShop SA <contact@prestashop.com> * @author Minic Studio <office@minic.ro>
* @copyright 2007-2012 PrestaShop SA * @copyright 2013 S.C. Minic Studio S.R.L.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * @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_')) if (!defined('_PS_VERSION_'))
@@ -35,15 +34,15 @@ class MinicMailchimp extends Module
{ {
$this->name = 'minicmailchimp'; $this->name = 'minicmailchimp';
$this->tab = 'front_office_features'; $this->tab = 'front_office_features';
$this->version = '0.0.0'; $this->version = '0.1';
$this->author = 'minic studio'; $this->author = 'minic studio';
$this->need_instance = 0; $this->need_instance = 0;
$this->secure_key = Tools::encrypt($this->name); $this->secure_key = Tools::encrypt($this->name);
parent::__construct(); parent::__construct();
$this->displayName = $this->l('Mailchimp subscriber module.'); $this->displayName = $this->l('Minic mailchimp sync');
$this->description = $this->l('Displays a subscriber form.'); $this->description = $this->l('Displays the Mailchimp subscriber form.');
} }
/** /**
@@ -51,7 +50,7 @@ class MinicMailchimp extends Module
*/ */
public function install() public function install()
{ {
if (!parent::install() || !$this->registerHook('displayHome') || !$this->registerHook('displayHeader')) if (!parent::install() || !$this->registerHook('displayFooter') || !$this->registerHook('displayHeader'))
return false; return false;
return true; return true;
} }
@@ -63,20 +62,18 @@ class MinicMailchimp extends Module
return true; return true;
} }
public function getContent()
{
}
public function hookDisplayHeader() 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');
}
} }

View File

@@ -0,0 +1 @@
/* */

View File

@@ -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 <office@minic.ro>
* @copyright 2013 S.C. Minic Studio S.R.L.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*}
<!-- Begin MailChimp Signup Form --> <!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup" class="content-separator"> <div id="mc_embed_signup" class="content-separator">
<form action="http://minic.us6.list-manage.com/subscribe/post?u=7c9480b10caf70408b459694e&amp;id=ee4b05e9de" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> <form action="http://minic.us6.list-manage.com/subscribe/post?u=7c9480b10caf70408b459694e&amp;id=ee4b05e9de" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>