<?php /* Smarty version Smarty-3.1.15, created on 2015-04-28 11:10:49
         compiled from "/home/hushdogcafe/public_html/cube/admin/skins/default/templates/settings.hooks.php" */ ?>
<?php /*%%SmartyHeaderCode:1571294132553efa39391e52-77571645%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'df9c4a547a5a100007a64c2999831f462b94e182' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/admin/skins/default/templates/settings.hooks.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1571294132553efa39391e52-77571645',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'VAL_SELF' => 0,
    'DISPLAY_PLUGINS' => 0,
    'LANG' => 0,
    'PLUGINS' => 0,
    'SKIN_VARS' => 0,
    'plugin' => 0,
    'SNIPPETS' => 0,
    'snippet' => 0,
    'DISPLAY_SNIPPET_FORM' => 0,
    'SNIPPET' => 0,
    'TRIGGERS' => 0,
    'trigger' => 0,
    'DISPLAY_HOOKS' => 0,
    'PLUGIN' => 0,
    'HOOKS' => 0,
    'hook' => 0,
    'DISPLAY_FORM' => 0,
    'HOOK' => 0,
    'SESSION_TOKEN' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_553efa3987dc45_40286293',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_553efa3987dc45_40286293')) {function content_553efa3987dc45_40286293($_smarty_tpl) {?>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post" enctype="multipart/form-data">
   <?php if ($_smarty_tpl->tpl_vars['DISPLAY_PLUGINS']->value) {?>
   <div id="plugins" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['title_plugins_installed'];?>
</h3>
      <fieldset>
         <?php  $_smarty_tpl->tpl_vars['plugin'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['plugin']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['PLUGINS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['plugin']->key => $_smarty_tpl->tpl_vars['plugin']->value) {
$_smarty_tpl->tpl_vars['plugin']->_loop = true;
?>
         <div>
            <span class="actions">&nbsp;</span>
            <img src="<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['admin_folder'];?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['skin_folder'];?>
/images/plugin.png" alt=""> <a href="<?php echo $_smarty_tpl->tpl_vars['plugin']->value['edit'];?>
"><?php echo $_smarty_tpl->tpl_vars['plugin']->value['name'];?>
</a>
         </div>
         <?php }
if (!$_smarty_tpl->tpl_vars['plugin']->_loop) {
?>
         <div><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['error_plugin_none'];?>
</div>
         <?php } ?>
      </fieldset>
   </div>
   <div id="snippets" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['title_code_snippets'];?>
</h3>
      <p><a href="?_g=settings&node=hooks&add_snippet=1#snippets" class="delete"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['add_snippet'];?>
</a></p>
      <table width="70%">
         <thead>
            <tr>
               <th width="10"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['status'];?>
</th>
               <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['description'];?>
</th>
               <th width="50"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['action'];?>
</th>
            </tr>
         </thead>
         <tbody>
            <?php  $_smarty_tpl->tpl_vars['snippet'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['snippet']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['SNIPPETS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['snippet']->key => $_smarty_tpl->tpl_vars['snippet']->value) {
$_smarty_tpl->tpl_vars['snippet']->_loop = true;
?>
            <tr>
               <td width="10"><span class="toggle"><input type="hidden" id="snippet_status_<?php echo $_smarty_tpl->tpl_vars['snippet']->value['snippet_id'];?>
" name="snippet_status[<?php echo $_smarty_tpl->tpl_vars['snippet']->value['snippet_id'];?>
]" value="<?php echo $_smarty_tpl->tpl_vars['snippet']->value['enabled'];?>
" class="toggle"></span></td>
               <td><a href="?_g=settings&node=hooks&snippet=<?php echo $_smarty_tpl->tpl_vars['snippet']->value['snippet_id'];?>
#snippets"><?php echo $_smarty_tpl->tpl_vars['snippet']->value['description'];?>
</a></td>
               <td width="50"><span class="actions"><a href="?_g=settings&node=hooks&snippet=<?php echo $_smarty_tpl->tpl_vars['snippet']->value['snippet_id'];?>
#snippets"><i class="fa fa-pencil-square-o" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['edit'];?>
"></i></a> <a href="?_g=settings&node=hooks&delete_snippet=<?php echo $_smarty_tpl->tpl_vars['snippet']->value['snippet_id'];?>
#snippets" class="delete" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['notification']['confirm_continue'];?>
"><i class="fa fa-trash"></i></a></span></td>
            </tr>
            <?php }
if (!$_smarty_tpl->tpl_vars['snippet']->_loop) {
?>
            <tr>
               <td colspan="3"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['error_snippet_none'];?>
</td>
            </tr>
            <?php } ?>
         </tbody>
      </table>
      <?php if ($_smarty_tpl->tpl_vars['DISPLAY_SNIPPET_FORM']->value) {?>
      <?php if ($_smarty_tpl->tpl_vars['SNIPPET']->value) {?>
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['title_code_snippet_edit'];?>
</h3>
      <?php } else { ?>
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['title_code_snippet_add'];?>
</h3>
      <?php }?>
      <p><a href="?_g=settings&node=hooks#snippets" class="delete"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['cancel'];?>
</a></p>
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['title_code_snippet'];?>
</legend>
         <div><label for="enabled"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['enabled'];?>
</label><span><input name="snippet[enabled]" id="enabled" type="hidden" class="toggle" value="<?php echo $_smarty_tpl->tpl_vars['SNIPPET']->value['enabled'];?>
"></span></div>
         <div>
            <label for="unique_id"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['unique_id'];?>
</label>
            <span>
            <input type="text" name="snippet[unique_id]" id="unique_id" class="textbox required" value="<?php echo $_smarty_tpl->tpl_vars['SNIPPET']->value['unique_id'];?>
">
            </span>
         </div>
         <div>
            <label for="priority"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['priority'];?>
</label>
            <span>
            <input type="text" name="snippet[priority]" id="priority" class="textbox required number" value="<?php echo $_smarty_tpl->tpl_vars['SNIPPET']->value['priority'];?>
">
            </span>
         </div>
         <div>
            <label for="description"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['description'];?>
</label>
            <span>
            <input type="text" name="snippet[description]" id="description" class="textbox required" value="<?php echo $_smarty_tpl->tpl_vars['SNIPPET']->value['description'];?>
">
            </span>
         </div>
         <div>
            <label for="trigger"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['trigger'];?>
</label>
            <span>
               <select name="snippet[hook_trigger]" id="hook_trigger" class="required">
                  <option value=""><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['please_select'];?>
</option>
                  <?php  $_smarty_tpl->tpl_vars['trigger'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['trigger']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TRIGGERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['trigger']->key => $_smarty_tpl->tpl_vars['trigger']->value) {
$_smarty_tpl->tpl_vars['trigger']->_loop = true;
?><option value="<?php echo $_smarty_tpl->tpl_vars['trigger']->value['trigger'];?>
"<?php echo $_smarty_tpl->tpl_vars['trigger']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['trigger']->value['trigger'];?>
</option><?php } ?>
               </select>
            </span>
         </div>
         <div>
            <label for="php_code"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['php_code'];?>
</label>
            <span><textarea id="php_code" class="required" rows="12" cols="50"><?php echo $_smarty_tpl->tpl_vars['SNIPPET']->value['php_code'];?>
</textarea></span>
         </div>
         <div>
            <label for="version"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['version'];?>
</label>
            <span>
            <input type="text" name="snippet[version]" id="version" class="textbox" value="<?php echo $_smarty_tpl->tpl_vars['SNIPPET']->value['version'];?>
">
            </span>
         </div>
         <div>
            <label for="author"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['author'];?>
</label>
            <span>
            <input type="text" name="snippet[author]" id="author" class="textbox" value="<?php echo $_smarty_tpl->tpl_vars['SNIPPET']->value['author'];?>
">
            </span>
         </div>
         <input type="hidden" name="snippet[snippet_id]" id="snippet_id" class="textbox" value="<?php echo $_smarty_tpl->tpl_vars['SNIPPET']->value['snippet_id'];?>
">
         <input type="hidden" name="snippet[php_code]" id="php_code_base64" class="textbox" value="<?php echo $_smarty_tpl->tpl_vars['SNIPPET']->value['php_code_base64'];?>
">
      </fieldset>
      <?php }?>
   </div>
   <div id="snippets_import" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['title_import_code_snippets'];?>
</h3>
      <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['example_code_snippet_xml'];?>
</p>
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['browse_for_file'];?>
</legend>
         <input type="file" name="code_snippet_import" id="code_snippet_import">
      </fieldset>
   </div>
   <?php }?>
   <?php if ($_smarty_tpl->tpl_vars['DISPLAY_HOOKS']->value) {?>
   <div id="hooks" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['PLUGIN']->value;?>
</h3>
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['title_hook_available'];?>
</legend>
         <?php  $_smarty_tpl->tpl_vars['hook'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['hook']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['HOOKS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['hook']->key => $_smarty_tpl->tpl_vars['hook']->value) {
$_smarty_tpl->tpl_vars['hook']->_loop = true;
?>
         <div>
            <span class="actions">
            <a href="<?php echo $_smarty_tpl->tpl_vars['hook']->value['edit'];?>
"><i class="fa fa-pencil-square-o" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['edit'];?>
"></i></a>
            </span>
            <input type="hidden" name="status[<?php echo $_smarty_tpl->tpl_vars['hook']->value['hook_id'];?>
]" value="<?php echo $_smarty_tpl->tpl_vars['hook']->value['enabled'];?>
" id="status_<?php echo $_smarty_tpl->tpl_vars['hook']->value['hook_id'];?>
" class="toggle">
            <a href="<?php echo $_smarty_tpl->tpl_vars['hook']->value['edit'];?>
"><?php echo $_smarty_tpl->tpl_vars['hook']->value['hook_name'];?>
</a>
         </div>
         <?php }
if (!$_smarty_tpl->tpl_vars['hook']->_loop) {
?>
         <div><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['error_hook_none'];?>
</div>
         <?php } ?>
      </fieldset>
      <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['notify_hook_magic'];?>
</p>
   </div>
   <?php }?>
   <?php if ($_smarty_tpl->tpl_vars['DISPLAY_FORM']->value) {?>
   <div id="hook_edit" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['title_hook_configure'];?>
</h3>
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['title_hook_required'];?>
</legend>
         <div><label for="hook_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['name'];?>
</label><span><input type="text" name="hook[hook_name]" id="hook_name" class="textbox required" value="<?php echo $_smarty_tpl->tpl_vars['HOOK']->value['hook_name'];?>
"></span></div>
         <?php if (isset($_smarty_tpl->tpl_vars['PLUGINS']->value)) {?>
         <div>
            <label for="plugin"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['title_plugin'];?>
</label>
            <span>
               <select name="hook[plugin]" id="plugin" class="required">
                  <option value=""><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['please_select'];?>
</option>
                  <?php  $_smarty_tpl->tpl_vars['plugin'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['plugin']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['PLUGINS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['plugin']->key => $_smarty_tpl->tpl_vars['plugin']->value) {
$_smarty_tpl->tpl_vars['plugin']->_loop = true;
?><option value="<?php echo $_smarty_tpl->tpl_vars['plugin']->value['plugin'];?>
"<?php echo $_smarty_tpl->tpl_vars['plugin']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['plugin']->value['name'];?>
</option><?php } ?>
               </select>
            </span>
         </div>
         <?php }?>
         <div>
            <label for="trigger"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['trigger'];?>
</label>
            <span>
               <select name="hook[trigger]" id="trigger" class="required">
                  <option value=""><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['please_select'];?>
</option>
                  <?php  $_smarty_tpl->tpl_vars['trigger'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['trigger']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TRIGGERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['trigger']->key => $_smarty_tpl->tpl_vars['trigger']->value) {
$_smarty_tpl->tpl_vars['trigger']->_loop = true;
?><option value="<?php echo $_smarty_tpl->tpl_vars['trigger']->value['trigger'];?>
"<?php echo $_smarty_tpl->tpl_vars['trigger']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['trigger']->value['trigger'];?>
</option><?php } ?>
               </select>
            </span>
         </div>
      </fieldset>
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['title_hook_optional'];?>
</legend>
         <div><label for="filepath"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['hooks']['path_to_file'];?>
</label><span><input type="text" name="hook[filepath]" id="filepath" class="textbox" value="<?php echo $_smarty_tpl->tpl_vars['HOOK']->value['filepath'];?>
"></span></div>
         <input type="hidden" name="hook[hook_id]" value="<?php echo $_smarty_tpl->tpl_vars['HOOK']->value['hook_id'];?>
">
      </fieldset>
   </div>
   <?php }?>
   <?php echo $_smarty_tpl->getSubTemplate ('templates/element.hook_form_content.php', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

   <div class="form_control"><input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['save'];?>
"></div>
   <input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
</form><?php }} ?>
