<?php /* Smarty version Smarty-3.1.19, created on 2020-06-12 14:20:08
         compiled from "template__system/admin_admin:/home/myjobsnearme/public_html/templates/_system/admin/miscellaneous/backfilling-plugins.tpl" */ ?>
<?php /*%%SmartyHeaderCode:20365629735ee38108a2f3f8-07362409%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '18ad64ce74804dd3001a802edf06d76d1a5b2d91' => 
    array (
      0 => 'template__system/admin_admin:/home/myjobsnearme/public_html/templates/_system/admin/miscellaneous/backfilling-plugins.tpl',
      1 => 1484002736,
      2 => 'template__system/admin_admin',
    ),
  ),
  'nocache_hash' => '20365629735ee38108a2f3f8-07362409',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'GLOBALS' => 0,
    'errors' => 0,
    'error' => 0,
    'groups' => 0,
    'plugins' => 0,
    'key' => 0,
    'plugin' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_5ee38108ad7128_77960993',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5ee38108ad7128_77960993')) {function content_5ee38108ad7128_77960993($_smarty_tpl) {?>
<div class="page-title">
	<h1 class="title"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Job Backfilling<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</h1>
</div>

<div class="panel panel-default list-widget panel__enable_backfilling">
	<div class="panel-body">
		<label class="control-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Enable job backfilling<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 &nbsp;</label>
		<div class="control-label control__toggle">
			<div class="toggle toggle-success"></div>
		</div>
	</div>
</div>

<div class="backfilling-list <?php if (!$_smarty_tpl->tpl_vars['GLOBALS']->value['settings']['enable_backfilling']) {?>hidden<?php }?>">
	<div>
		<?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Please select your backfilling provider below.<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	</div>
	<br>
    <?php  $_smarty_tpl->tpl_vars["error"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["error"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['errors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["error"]->key => $_smarty_tpl->tpl_vars["error"]->value) {
$_smarty_tpl->tpl_vars["error"]->_loop = true;
?>
		<p class="error"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo $_smarty_tpl->tpl_vars['error']->value;?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</p>
    <?php } ?>
	<form method="post">
		<input type="hidden" name="action" value="save" />
        <?php  $_smarty_tpl->tpl_vars['plugins'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['plugins']->_loop = false;
 $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['groups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['plugins']->key => $_smarty_tpl->tpl_vars['plugins']->value) {
$_smarty_tpl->tpl_vars['plugins']->_loop = true;
 $_smarty_tpl->tpl_vars['group']->value = $_smarty_tpl->tpl_vars['plugins']->key;
?>
            <?php  $_smarty_tpl->tpl_vars['plugin'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['plugin']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_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;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['plugin']->key;
?>
				<div class="panel panel-default list-widget panel__backfilling">
					<input type="hidden" name="" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8', true);?>
" />
					<div class="panel-body">
					<span>
						<label class="cr-styled cr-styled__radio">
							<input type="radio" name="plugin" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8', true);?>
" <?php if ($_smarty_tpl->tpl_vars['plugin']->value['active']) {?>checked="checked"<?php }?> />
							<i class="fa"></i>
							&nbsp;
							<?php $_smarty_tpl->_capture_stack[0][] = array('img', null, null); ob_start(); ?>
								<img class="list-widget__img <?php if (!$_smarty_tpl->tpl_vars['plugin']->value['active']) {?>panel__backfilling--inactive<?php }?>" src="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['image'][0][0]->getImageURL(array(),$_smarty_tpl);?>
<?php echo mb_strtolower($_smarty_tpl->tpl_vars['plugin']->value['name'], 'UTF-8');?>
-logo.png" border="0" alt="<?php echo $_smarty_tpl->tpl_vars['plugin']->value['name'];?>
"/>
                            <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
							<?php if ($_smarty_tpl->tpl_vars['plugin']->value['active']) {?>
								<a href="?action=settings&amp;plugin=<?php echo $_smarty_tpl->tpl_vars['plugin']->value['name'];?>
" title="<?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Edit <?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['plugin']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
">
									<?php echo Smarty::$_smarty_vars['capture']['img'];?>

								</a>
							<?php } else { ?>
								<?php echo Smarty::$_smarty_vars['capture']['img'];?>

							<?php }?>
						</label>
					</span>
                        <?php if ($_smarty_tpl->tpl_vars['plugin']->value['active']) {?>
							<a href="?action=settings&amp;plugin=<?php echo $_smarty_tpl->tpl_vars['plugin']->value['name'];?>
" class="btn btn--primary pull-right">
								<?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Edit<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

							</a>
                        <?php }?>
					</div>
				</div>
            <?php } ?>
        <?php } ?>
	</form>
</div>

<?php $_smarty_tpl->smarty->_tag_stack[] = array('javascript', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['javascript'][0][0]->_tpl_javascript(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

	<script>
        $(document).ready(function() {
            $('.toggle').toggles(<?php if ($_smarty_tpl->tpl_vars['GLOBALS']->value['settings']['enable_backfilling']) {?>{ on: true }<?php }?>);
            $('.toggle').on('toggle', function(e, active) {
                $.get('', {
                    enable: active ? 1 : 0,
                    action: 'switch_backfilling'
                });
                $('.backfilling-list').toggleClass('hidden', !active);
            });
            $(document).on('change', '.panel__backfilling input:radio', function() {
                $(this).closest('.panel-body').addClass('loading');
			    $(this).closest('form').submit();
			});
        });
	</script>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['javascript'][0][0]->_tpl_javascript(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

<?php }} ?>
