From 425af6767c3f2e8819a9d80880089e001aed1ae6 Mon Sep 17 00:00:00 2001 From: minic studio Date: Sun, 3 Mar 2013 11:14:55 +0200 Subject: [PATCH] upload --- .gitattributes | 22 ++++++ .gitignore | 163 +++++++++++++++++++++++++++++++++++++++++++++ minicmailchimp.css | 61 +++++++++++++++++ minicmailchimp.php | 82 +++++++++++++++++++++++ minicmailchimp.tpl | 20 ++++++ 5 files changed, 348 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 minicmailchimp.css create mode 100644 minicmailchimp.php create mode 100644 minicmailchimp.tpl diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..412eeda --- /dev/null +++ b/.gitattributes @@ -0,0 +1,22 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp +*.sln merge=union +*.csproj merge=union +*.vbproj merge=union +*.fsproj merge=union +*.dbproj merge=union + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ebd21a --- /dev/null +++ b/.gitignore @@ -0,0 +1,163 @@ +################# +## Eclipse +################# + +*.pydevproject +.project +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.classpath +.settings/ +.loadpath + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# CDT-specific +.cproject + +# PDT-specific +.buildpath + + +################# +## Visual Studio +################# + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results +[Dd]ebug/ +[Rr]elease/ +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.vspscc +.builds +*.dotCover + +## TODO: If you have NuGet Package Restore enabled, uncomment this +#packages/ + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf + +# Visual Studio profiler +*.psess +*.vsp + +# ReSharper is a .NET coding add-in +_ReSharper* + +# Installshield output folder +[Ee]xpress + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish + +# Others +[Bb]in +[Oo]bj +sql +TestResults +*.Cache +ClientBin +stylecop.* +~$* +*.dbmdl +Generated_Code #added for RIA/Silverlight projects + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML + + + +############ +## Windows +############ + +# Windows image file caches +Thumbs.db + +# Folder config file +Desktop.ini + + +############# +## Python +############# + +*.py[co] + +# Packages +*.egg +*.egg-info +dist +build +eggs +parts +bin +var +sdist +develop-eggs +.installed.cfg + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +.coverage +.tox + +#Translations +*.mo + +#Mr Developer +.mr.developer.cfg + +# Mac crap +.DS_Store diff --git a/minicmailchimp.css b/minicmailchimp.css new file mode 100644 index 0000000..e6b1b74 --- /dev/null +++ b/minicmailchimp.css @@ -0,0 +1,61 @@ +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 new file mode 100644 index 0000000..85baf2a --- /dev/null +++ b/minicmailchimp.php @@ -0,0 +1,82 @@ + +* @copyright 2007-2012 PrestaShop SA +* @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_')) + exit; + +class MinicMailchimp extends Module +{ + private $_html = ''; + + public function __construct() + { + $this->name = 'minicmailchimp'; + $this->tab = 'front_office_features'; + $this->version = '0.0.0'; + $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.'); + } + + /** + * @see Module::install() + */ + public function install() + { + if (!parent::install() || !$this->registerHook('displayHome') || !$this->registerHook('displayHeader')) + return false; + return true; + } + + public function uninstall() + { + if (!parent::uninstall()) + return false; + return true; + } + + public function hookDisplayHeader() + { + $this->context->controller->addCSS($this->_path.$this->name.'.css'); + } + + public function hookDisplayHome() + { + return $this->display(__FILE__, 'minicmailchimp.tpl'); + } + + public function hookDisplayFooterProduct() + { + return $this->display(__FILE__, 'minicmailchimp.tpl'); + } + + +} diff --git a/minicmailchimp.tpl b/minicmailchimp.tpl new file mode 100644 index 0000000..5a9b0fa --- /dev/null +++ b/minicmailchimp.tpl @@ -0,0 +1,20 @@ + +
+
+

{l s='Sign up for our newsletter to get the latest news and promotions sent straight to your inbox.' mod='minicmailchimp'}

+ +
+
+
+ + \ No newline at end of file