upload
This commit is contained in:
22
.gitattributes
vendored
Normal file
22
.gitattributes
vendored
Normal file
@@ -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
|
||||
163
.gitignore
vendored
Normal file
163
.gitignore
vendored
Normal file
@@ -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
|
||||
61
minicmailchimp.css
Normal file
61
minicmailchimp.css
Normal file
@@ -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;
|
||||
}
|
||||
82
minicmailchimp.php
Normal file
82
minicmailchimp.php
Normal file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/*
|
||||
* 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 PrestaShop SA <contact@prestashop.com>
|
||||
* @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');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
20
minicmailchimp.tpl
Normal file
20
minicmailchimp.tpl
Normal file
@@ -0,0 +1,20 @@
|
||||
<!-- Begin MailChimp Signup Form -->
|
||||
<div id="mc_embed_signup" class="content-separator">
|
||||
<form action="http://minic.us6.list-manage.com/subscribe/post?u=7c9480b10caf70408b459694e&id=ee4b05e9de" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
|
||||
<h2 class="mail-center">{l s='Sign up for our newsletter to get the latest news and promotions sent straight to your inbox.' mod='minicmailchimp'}</h2>
|
||||
<div id="mail-link" class="mail-input">
|
||||
<div class="mc-field-group inline">
|
||||
<input type="email" value="" name="EMAIL" placeholder="{l s='example@email.com' mod='minicmailchimp'}" class="required email" id="mce-EMAIL">
|
||||
</div>
|
||||
|
||||
<div class="clear inline"><input type="submit" value="{l s='Subscribe' mod='minicmailchimp'}" name="subscribe" id="mc-embedded-subscribe" class="button green-button"></div>
|
||||
<div id="mce-responses" class="clear">
|
||||
<div class="response" id="mce-error-response" style="display:none"></div>
|
||||
<div class="response" id="mce-success-response" style="display:none"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="subscription-holder"><p class="mail-link mail-center">— {l s='subscribe' mod='minicmailchimp'} —</p></div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!--End mc_embed_signup-->
|
||||
Reference in New Issue
Block a user