<?php /* Smarty version Smarty-3.1.19, created on 2020-06-21 09:24:53
         compiled from "template_flow_user:/home/myjobsnearme/public_html/templates/Bootstrap/classifieds/edit_listing.tpl" */ ?>
<?php /*%%SmartyHeaderCode:16815886295eef19557a1cf0-18650400%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '06028fb2a2e761b7562bcc84b224ad90ec3455da' => 
    array (
      0 => 'template_flow_user:/home/myjobsnearme/public_html/templates/Bootstrap/classifieds/edit_listing.tpl',
      1 => 1483999076,
      2 => 'template_flow_user',
    ),
  ),
  'nocache_hash' => '16815886295eef19557a1cf0-18650400',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'listingTypeID' => 0,
    'errors' => 0,
    'error_id' => 0,
    'error_data' => 0,
    'listing' => 0,
    'pages' => 0,
    'original_listing' => 0,
    'GLOBALS' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_5eef19558b4697_38576043',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5eef19558b4697_38576043')) {function content_5eef19558b4697_38576043($_smarty_tpl) {?><a href="javascript:history.go(-1)" class="btn__back edit-listing-back"><?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();?>
Back<?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>
<h1 class="title__primary title__primary-small title__centered title__bordered"><?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 echo $_smarty_tpl->tpl_vars['listingTypeID']->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);?>
</h1>
<?php if ($_smarty_tpl->tpl_vars['errors']->value) {?>
	<?php  $_smarty_tpl->tpl_vars["error_data"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["error_data"]->_loop = false;
 $_smarty_tpl->tpl_vars["error_id"] = new Smarty_Variable;
 $_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_data"]->key => $_smarty_tpl->tpl_vars["error_data"]->value) {
$_smarty_tpl->tpl_vars["error_data"]->_loop = true;
 $_smarty_tpl->tpl_vars["error_id"]->value = $_smarty_tpl->tpl_vars["error_data"]->key;
?>
		<div class="alert alert-danger">
			<?php if ($_smarty_tpl->tpl_vars['error_id']->value=='MAX_FILE_SIZE_EXCEEDED') {?>
				<?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();?>
File size shouldn't be larger than 5 MB.<?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 } elseif ($_smarty_tpl->tpl_vars['error_id']->value=='NOT_OWNER_OF_LISTING') {?>
				<?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();?>
You're not the owner of this posting<?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 } elseif ($_smarty_tpl->tpl_vars['error_id']->value=='NO_SUCH_FILE') {?><?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();?>
No such file found in the system<?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 } else { ?>
				<?php echo $_smarty_tpl->tpl_vars['error_id']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['error_data']->value;?>

			<?php }?>
		</div>
	<?php } ?>
<?php } else { ?>
	<?php echo $_smarty_tpl->getSubTemplate ('field_errors.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<form method="post" action="" enctype="multipart/form-data" <?php if (isset($_smarty_tpl->tpl_vars['listing']->value['ApplicationSettings'])) {?>onsubmit="return validateForm('editListingForm');"<?php }?> id="editListingForm" class="form">
		<input type="hidden" name="action" value="save_info" />
		<input type="hidden" name="listing_id" id="listing_id" value="<?php echo $_smarty_tpl->tpl_vars['listing']->value['id'];?>
" />

		<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['set_token_field'][0][0]->tpl_set_token_field(array(),$_smarty_tpl);?>


        <div class="col-xs-12 col-sm-8 edit-listing--form">
            <?php  $_smarty_tpl->tpl_vars['form_fields'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['form_fields']->_loop = false;
 $_smarty_tpl->tpl_vars['page'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['pages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['form_fields']->key => $_smarty_tpl->tpl_vars['form_fields']->value) {
$_smarty_tpl->tpl_vars['form_fields']->_loop = true;
 $_smarty_tpl->tpl_vars['page']->value = $_smarty_tpl->tpl_vars['form_fields']->key;
?>
                <?php echo $_smarty_tpl->getSubTemplate ("input_form_default.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

            <?php } ?>
            <div class="form-group form-group__btns text-center clearfix">
                <input type="submit" value="<?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();?>
Save<?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);?>
" class="btn btn__orange btn__bold" />
            </div>
        </div>
        <div class="col-sm-3 col-xs-12 well edit-listing--action pull-right">
            <div class="form-group form-group__btns text-center">
                <input type="submit" name="preview_listing" value="<?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();?>
View <?php echo $_smarty_tpl->tpl_vars['listingTypeID']->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);?>
" class="btn btn__blue btn__bold" id="listingPreview"/>
				<?php if ($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['status'][0][0]->status($_smarty_tpl->tpl_vars['original_listing']->value['active'])!='pending') {?>
					<?php if ($_smarty_tpl->tpl_vars['original_listing']->value['active']) {?>
						<a class="btn btn__blue btn__bold" href="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['site_url'];?>
/my-listings/<?php echo mb_strtolower($_smarty_tpl->tpl_vars['listingTypeID']->value, 'UTF-8');?>
/?action=deactivate&amp;listings[<?php echo $_smarty_tpl->tpl_vars['original_listing']->value['sid'];?>
]=1">
							<?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();?>
Make Hidden<?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 } else { ?>
						<a class="btn btn__blue btn__bold" href="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['site_url'];?>
/pay-for-listing/?listing_id=<?php echo $_smarty_tpl->tpl_vars['original_listing']->value['sid'];?>
">
							<?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();?>
Make Visible<?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 }?>
				<?php }?>
				<button type="button" class="btn btn__orange btn__bold btn__delete-listing" data-toggle="modal" data-target="#confirm-delete"><?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();?>
Delete <?php echo $_smarty_tpl->tpl_vars['listingTypeID']->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);?>
</button>
            </div>
        </div>
	</form>

	<div class="modal fade confirm-delete" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="message-modal-label">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
				</div>
				<div class="modal-body">
					<div class="form">
						<div class="form-group text-center">
							<?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();?>
Your <?php echo mb_strtolower($_smarty_tpl->tpl_vars['listingTypeID']->value, 'UTF-8');?>
 will be removed permanently. Are you sure?<?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>
						<div class="form-group form-group__btns text-center">
							<a href="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['site_url'];?>
/my-listings/<?php echo mb_strtolower($_smarty_tpl->tpl_vars['listingTypeID']->value, 'UTF-8');?>
/?action=delete&amp;listings[<?php echo $_smarty_tpl->tpl_vars['original_listing']->value['sid'];?>
]=1" class="btn btn__orange btn__bold">
								<?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();?>
Delete <?php echo $_smarty_tpl->tpl_vars['listingTypeID']->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);?>

							</a>
							<button type="button" class="btn btn__white" data-dismiss="modal"><?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();?>
Cancel<?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);?>
</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<?php }?>
<?php }} ?>
