1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-26 07:44:49 +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

@@ -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');