1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 22:57:14 +02:00

Theme "Voux" - Added newsletter form in footer.

This commit is contained in:
Cameron
2016-06-05 14:32:12 -07:00
parent 8682707cf1
commit 815b3d3c34
4 changed files with 85 additions and 6 deletions

View File

@@ -1,13 +1,14 @@
<?xml version='1.0' encoding='utf-8' ?>
<e107Export version="2.1.2 (git)" timestamp="1464646050" >
<e107Export version="2.1.2 (git)" timestamp="1465161865" >
<prefs>
<core name="fb_active">1</core>
<core name="frontpage"><![CDATA[array (
0 => 'news.php',
)]]></core>
<core name="newsposts">3</core>
<core name="shortdate">%d %b %Y</core>
<core name="sitelogo">{e_THEME}voux/install/logo2B252832529.png</core>
<core name="signup_option_class">1</core>
<core name="sitetheme_custompages"><![CDATA[array (
'jumbotron_full' =>
array (
@@ -162,6 +163,7 @@
),
)]]></core>
<core name="url_main_module">page</core>
<core name="use_coppa">0</core>
<core name="xurl"><![CDATA[array (
'facebook' => 'http://facebook.com/themexpose',
'twitter' => '#',
@@ -1282,5 +1284,19 @@ Morbi porta leo iaculis, hendrerit lorem interdum, porta dui. Integer tempor con
<field name="menu_button_text"></field>
</item>
</dbTable>
<dbTable name="userclass_classes">
<item>
<field name="userclass_id">3</field>
<field name="userclass_name">NEWSLETTER</field>
<field name="userclass_description">Subscribe to Newsletter</field>
<field name="userclass_editclass">0</field>
<field name="userclass_parent">255</field>
<field name="userclass_accum">3</field>
<field name="userclass_visibility">0</field>
<field name="userclass_type">0</field>
<field name="userclass_icon"></field>
<field name="userclass_perms"></field>
</item>
</dbTable>
</database>
</e107Export>

View File

@@ -17,14 +17,17 @@ a:hover { color: #000000; }
.btn-primary { background: #FFF1F3; color: black; border-color:silver }
.btn-primary:hover,.btn-primary.focus, .btn-primary:focus {
background: #444;
color: #fff;
background-color: #E8839E;
border-color: #E8839E;
}
table label.checkbox {
margin-left: 20px;
}
#sidebar {
padding-top:20px;
padding-left: 40px;
@@ -432,7 +435,7 @@ nav { text-align: center }
.footer-xurl .xurl-social-icons a:hover span { background-color: black }
.footer-xurl .xurl-social-icons a:hover { color: black }
footer { background-color: #F8F8F8; padding:50px 0; margin-top:50px }
footer { background-color: #F8F8F8; padding:20px 0; margin-top:50px }
.tagcloud-menu span {
@@ -468,6 +471,18 @@ display: inline-block;
box-shadow: none;
}
.subscribe-box .block {
padding: 20px 30px;
border: 1px solid #f0f0f0;
margin: 20px auto;
width: 1080px;
}
form#newsletter { padding-top:30px }
form#newsletter #email { width: 70%; height:43px; margin-right:-3px;border:none; font-size: 15px; font-family: Playfair Display;
font-style: italic; }
div.comments-form-login { text-align: center }
@@ -492,7 +507,7 @@ img.news-image-1 { margin-bottom:15px }
}
#footer-copyright { padding-top: 12px; padding-bottom:12px; font-family: "Open Sans", sans-serif; }
#footer-copyright { padding-top: 20px; padding-bottom:12px; font-family: "Open Sans", sans-serif; }
.btn {

View File

@@ -254,6 +254,31 @@ $LAYOUT['_footer_'] = '
</div>
</div>
</div>
<div class="subscribe-box">
<div class="container">
<div class="block">
<div class="row">
<div class="col-lg-6">
<div class="caption">
<img src="'.THEME_ABS.'install/sketch-subscribe.png">
</div>
</div>
<div class="col-lg-6">
{VOUX_NEWSLETTER_FORM}
</div>
</div>
<!--block-->
</div>
</div>
</div>
</div>
<div id="footer-social">
<div class="container">
<div class="row">

View File

@@ -19,6 +19,29 @@ class theme_shortcodes extends e_shortcode
}
function sc_voux_newsletter_form()
{
$pref = e107::pref('core');
if(empty($pref['signup_option_class']))
{
return false;
}
$frm = e107::getForm();
$text = $frm->open('newsletter','post', e_SIGNUP, array('class'=>'form-inline'));
$text .= $frm->text('email','', null, array('placeholder'=>"Enter your email"));
$text .= $frm->button('subscribe', 1, 'primary', "Subscribe");
$text .= $frm->close();
return $text;
}
function sc_bootstrap_branding()
{
$pref = e107::pref('theme', 'branding');