<?php /* Smarty version Smarty-3.1.15, created on 2015-05-12 00:11:43
         compiled from "/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.newsletter.php" */ ?>
<?php /*%%SmartyHeaderCode:10527153585550d4bf65a203-31541666%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ad7a620d4d191ad5569bec47659554ccf094b559' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.newsletter.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10527153585550d4bf65a203-31541666',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'CTRL_VIEW' => 0,
    'NEWSLETTER' => 0,
    'LANG' => 0,
    'IS_USER' => 0,
    'SUBSCRIBED' => 0,
    'URL' => 0,
    'VAL_SELF' => 0,
    'NEWSLETTERS' => 0,
    'newsletter' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_5550d4bf8b81f9_18025937',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5550d4bf8b81f9_18025937')) {function content_5550d4bf8b81f9_18025937($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['CTRL_VIEW']->value)&&$_smarty_tpl->tpl_vars['CTRL_VIEW']->value) {?>
<h2><?php echo $_smarty_tpl->tpl_vars['NEWSLETTER']->value['subject'];?>
</h2>
<div><?php echo $_smarty_tpl->tpl_vars['NEWSLETTER']->value['content_html'];?>
</div>
<?php } else { ?>
<h2><?php echo $_smarty_tpl->tpl_vars['LANG']->value['newsletter']['subscription'];?>
</h2>
<?php if ($_smarty_tpl->tpl_vars['IS_USER']->value) {?>
<?php if ($_smarty_tpl->tpl_vars['SUBSCRIBED']->value) {?>
<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['newsletter']['customer_is_subscribed'];?>
</p>
<a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value['unsubscribe'];?>
" class="button alert"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['newsletter']['unsubscribe'];?>
</a>
<?php } else { ?>
<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['newsletter']['customer_not_subscribed'];?>
</p>
<a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value['subscribe'];?>
" class="button"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['newsletter']['subscribe_now'];?>
</a>
<?php }?>
<?php } else { ?>
<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['newsletter']['enter_email_subscribe_unsubscribe'];?>
</p>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post" id="newsletter_form">
   <div class="row">
      <div class="small-12 large-8 columns">
         <label for="newsletter_email"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['email'];?>
</label>
         <input type="text" name="subscribe" class="required" id="newsletter_email" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['email'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['required'];?>
">
      </div>
   </div>
   <div class="hide" id="validate_email"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['error_email_invalid'];?>
</div>
   <div class="hide" id="validate_already_subscribed"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['newsletter']['notify_already_subscribed'];?>
</div>
   <div class="row">
      <div class="small-12 large-8 columns"><input name="submit" class="button" type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['submit'];?>
"></div>
   </div>
</form>
<?php }?>
<h2><?php echo $_smarty_tpl->tpl_vars['LANG']->value['newsletter']['newsletters'];?>
</h2>
<?php if (isset($_smarty_tpl->tpl_vars['NEWSLETTERS']->value)) {?>
<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['newsletter']['view_newsletter_archive'];?>
</p>
<table>
   <thead>
      <tr>
         <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['subject'];?>
</th>
         <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['date'];?>
</th>
      </tr>
   </thead>
   <tbody>
      <?php  $_smarty_tpl->tpl_vars['newsletter'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['newsletter']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['NEWSLETTERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['newsletter']->key => $_smarty_tpl->tpl_vars['newsletter']->value) {
$_smarty_tpl->tpl_vars['newsletter']->_loop = true;
?>
      <tr>
         <td><a href="<?php echo $_smarty_tpl->tpl_vars['newsletter']->value['view'];?>
"><?php echo $_smarty_tpl->tpl_vars['newsletter']->value['subject'];?>
</a></td>
         <td><?php echo $_smarty_tpl->tpl_vars['newsletter']->value['date_sent'];?>
</td>
      </tr>
      <?php } ?>
   </tbody>
</table>
<?php } else { ?>
<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['newsletter']['no_archived_newsletters'];?>
</p>
<?php }?>
<?php }?><?php }} ?>
