<?php /* Smarty version Smarty-3.1.8, created on 2020-07-15 15:03:52
         compiled from "/home/agmc/beta/application/core/views/frontend/mini/OfferListing.tpl" */ ?>
<?php /*%%SmartyHeaderCode:7754085365f0ee29854ce02-89827266%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7815fe1ec399bbf4d2f15813672ef77de147ba05' => 
    array (
      0 => '/home/agmc/beta/application/core/views/frontend/mini/OfferListing.tpl',
      1 => 1592891063,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '7754085365f0ee29854ce02-89827266',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'listOffer' => 0,
    'offer' => 0,
    'sefUrl' => 0,
    'view_public_path' => 0,
    'languageDirection' => 0,
    'language' => 0,
    'pageID' => 0,
    'offerPageCount' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5f0ee29856b637_61109718',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5f0ee29856b637_61109718')) {function content_5f0ee29856b637_61109718($_smarty_tpl) {?><?php if (count($_smarty_tpl->tpl_vars['listOffer']->value)>0){?>
    <?php  $_smarty_tpl->tpl_vars['offer'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['offer']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['listOffer']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['offer']->key => $_smarty_tpl->tpl_vars['offer']->value){
$_smarty_tpl->tpl_vars['offer']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['offer']->key;
?>
        <?php $_smarty_tpl->tpl_vars["sefUrl"] = new Smarty_variable($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['sef_path'][0][0]->getSefRequestPath($_smarty_tpl->tpl_vars['offer']->value['offerID'],'offer'), null, 0);?>
         <div class="col-md-6 col-12 pb-5 offers-card-pane">
                            <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>($_smarty_tpl->tpl_vars['sefUrl']->value),'content'=>"<img src='".($_smarty_tpl->tpl_vars['view_public_path']->value)."/uploads/offer/thumb/".($_smarty_tpl->tpl_vars['offer']->value['offerImage'])."' class='img-fluid' alt='".($_smarty_tpl->tpl_vars['offer']->value['offerTitle'])."'>"),$_smarty_tpl);?>
    
                            <h4 class="font-weight-bold text-uppercase mb-3 mt-4"><?php echo $_smarty_tpl->tpl_vars['offer']->value['offerTitle'];?>
</h4>
                            <p class="text-secondary mb-3"><?php echo strip_tags(htmlspecialchars_decode($_smarty_tpl->tpl_vars['offer']->value['offerSubTitle'], ENT_QUOTES));?>
</p>
                            <?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['languageDirection']->value=='rtl'){?><?php echo "<i class='icon-arrow-left text-muted font-small'></i>";?><?php }else{ ?><?php echo "<i class='icon-arrow-right text-muted font-small'></i>";?><?php }?><?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>($_smarty_tpl->tpl_vars['sefUrl']->value),'class'=>"text-secondary font-weight-bold font-normal",'content'=>$_tmp1.($_smarty_tpl->tpl_vars['language']->value['lblFindOutMore'])),$_smarty_tpl);?>

                        </div>
        

            
    <?php } ?>
<?php }else{ ?>
    <?php if ($_smarty_tpl->tpl_vars['pageID']->value==1){?>
        <div class="no-results">
                 <?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>

        </div> 
    <?php }?>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['pageID']->value==1){?>
    <script language="javascript">
            $(document).ready(function(){
                $('#pageCount').val(<?php echo $_smarty_tpl->tpl_vars['offerPageCount']->value;?>
);
            });
        </script>
<?php }?>

<?php }} ?>