<?php /* Smarty version Smarty-3.1.8, created on 2019-10-23 15:24:49
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/BannerView.tpl" */ ?>
<?php /*%%SmartyHeaderCode:5602218435db038814361f8-72507646%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1e7ff153c837ede2c3229366ba1c71be466aba58' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/BannerView.tpl',
      1 => 1571049180,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '5602218435db038814361f8-72507646',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'resBanner' => 0,
    'view_public_path' => 0,
    'view_images' => 0,
    'view_host' => 0,
    'date_format' => 0,
    'time_format' => 0,
    'resSelected' => 0,
    'selected' => 0,
    'k' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5db038814e6222_37065880',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5db038814e6222_37065880')) {function content_5db038814e6222_37065880($_smarty_tpl) {?><?php if (!is_callable('smarty_mb_wordwrap')) include '/home/stg70/public_html/agmc-v2/library/template/plugins/shared.mb_wordwrap.php';
if (!is_callable('smarty_modifier_date_format')) include '/home/stg70/public_html/agmc-v2/library/template/plugins/modifier.date_format.php';
?><!DOCTYPE	html	PUBLIC	"-//W3C//DTD	XHTML	1.0	Transitional//EN"	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html	xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta	http-equiv="Content-Type"	content="text/html;	charset=utf-8"	/>
<title><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
:	<?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuSiteDesign'];?>
:	<?php echo $_smarty_tpl->tpl_vars['language']->value['lblBannerDetails'];?>
</title>
<?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScript.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<link	rel="stylesheet"	type="text/css"	href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/detail-listing.css"	/>
<?php echo $_smarty_tpl->getSubTemplate ('CommonCustomStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

</head>
<body>
<div	class="outer_container"> <?php echo $_smarty_tpl->getSubTemplate ('CommonTop.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
  <!--End:Header	Container--> 
  <!--*********************************************END	HEADER	CONTAINER******************************************************-->
  <div	class="content_container">
    <div	class="content_wrapper">
     <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"banner/index/",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblBack']),'class'=>"back-link fixing_right"),$_smarty_tpl);?>
 
      <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"banner/edit/",'href'=>"banner/edit/id/".($_smarty_tpl->tpl_vars['resBanner']->value['bannerID'])."/",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblEdit']),'class'=>"button-link01  fixing_right"),$_smarty_tpl);?>
		
      <?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

      <h2> <?php echo smarty_mb_wordwrap($_smarty_tpl->tpl_vars['resBanner']->value['bannerTitle'],46,"<br	/>
        ",true);?>
 <span	class="<?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerStatus']=='Active'){?>active-txt<?php }else{ ?>inactive-txt<?php }?>">
			<?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerStatus']=='Active'){?> 
				<?php echo $_smarty_tpl->tpl_vars['language']->value['lblActive'];?>

			<?php }else{ ?>
				<?php echo $_smarty_tpl->tpl_vars['language']->value['lblInactive'];?>

			<?php }?>
			
			</span></h2>
         <div	id="common_message"></div>
      <div	class="first-block	clearfix">
        <h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBannerDetails'];?>
</span></h3>
        <div	class="img-block">
          <div> <?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerDisplayType']=='Image'){?> <img	src="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/banner/thumb/<?php echo $_smarty_tpl->tpl_vars['resBanner']->value['bannerImage'];?>
"/> 
          <?php }else{ ?><img	src="<?php echo $_smarty_tpl->tpl_vars['view_images']->value;?>
/logo_noimg.gif"		width="140"	height="125"/><?php }?> </div>
        </div>
        <div	class="details-right"> <?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerLink']){?><?php echo $_smarty_tpl->tpl_vars['view_host']->value;?>

          <?php echo $_smarty_tpl->tpl_vars['language']->value['lblLink'];?>
	:	<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>($_smarty_tpl->tpl_vars['resBanner']->value['bannerLink']),'target'=>"_blank",'caption'=>($_smarty_tpl->tpl_vars['resBanner']->value['bannerLink'])),$_smarty_tpl);?>
<br	/>
          <?php }?>
          <?php if ($_smarty_tpl->tpl_vars['resBanner']->value['brandName']){?>
          <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuBrands'];?>
	:	<?php echo $_smarty_tpl->tpl_vars['resBanner']->value['brandName'];?>
<br	/>
          <?php }?>    
          <?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerTarget']){?>
          <?php echo $_smarty_tpl->tpl_vars['language']->value['lblTarget'];?>
	:	<?php echo $_smarty_tpl->tpl_vars['resBanner']->value['bannerTarget'];?>
<br	/>
          <?php }?>
          <?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerTextBlend']){?>
          <?php echo $_smarty_tpl->tpl_vars['language']->value['lblTextBlend'];?>
	:	<?php echo $_smarty_tpl->tpl_vars['resBanner']->value['bannerTextBlend'];?>
<br	/>
          <?php }?>
          <?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerPlatform']){?>
          <?php echo $_smarty_tpl->tpl_vars['language']->value['lblBannerPlatform'];?>
	:	<?php echo $_smarty_tpl->tpl_vars['resBanner']->value['bannerPlatform'];?>
<br	/>
          <?php }?>		  
           <?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerCssStyle']){?>
          <?php echo $_smarty_tpl->tpl_vars['language']->value['lblBannerCssStyle'];?>
	:	<?php echo $_smarty_tpl->tpl_vars['resBanner']->value['bannerCssStyle'];?>
<br	/>
          <?php }?>
          <?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerDisplayType']){?>
          <?php echo $_smarty_tpl->tpl_vars['language']->value['lblType'];?>
	:	<?php echo $_smarty_tpl->tpl_vars['resBanner']->value['bannerDisplayType'];?>
<br	/>
          <?php }?>
          <?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerStartTime']!=''&&$_smarty_tpl->tpl_vars['resBanner']->value['bannerStartTime']!="0000-00-00 00:00:00"){?>	
          <?php echo $_smarty_tpl->tpl_vars['language']->value['lblStartDate'];?>
	:	<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['resBanner']->value['bannerStartTime'],$_smarty_tpl->tpl_vars['date_format']->value);?>

          <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['resBanner']->value['bannerStartTime'],$_smarty_tpl->tpl_vars['time_format']->value);?>
<br	/>
          <?php }?>
          <?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerEndTime']!=''&&$_smarty_tpl->tpl_vars['resBanner']->value['bannerEndTime']!="0000-00-00 00:00:00"){?>	
          <?php echo $_smarty_tpl->tpl_vars['language']->value['lblEndDate'];?>
	:	<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['resBanner']->value['bannerEndTime'],$_smarty_tpl->tpl_vars['date_format']->value);?>

          <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['resBanner']->value['bannerEndTime'],$_smarty_tpl->tpl_vars['time_format']->value);?>
<br	/>
          <?php }?> 
		  <?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerLoc']){?>
			<?php echo $_smarty_tpl->tpl_vars['language']->value['lblBannerLocation'];?>
	:	
			<?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerLoc']==1){?> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuItem'];?>

			<?php }elseif($_smarty_tpl->tpl_vars['resBanner']->value['bannerLoc']==2){?> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblHomePage'];?>

			<?php }elseif($_smarty_tpl->tpl_vars['resBanner']->value['bannerLoc']==3){?> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductCategories'];?>

			<?php }elseif($_smarty_tpl->tpl_vars['resBanner']->value['bannerLoc']==4){?> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblBrands'];?>

			<?php }?> 
		  <br	/>
          <?php }?>
		  <?php if ((($tmp = @$_smarty_tpl->tpl_vars['resSelected']->value)===null||$tmp==='' ? '' : $tmp)){?>
			<?php if ($_smarty_tpl->tpl_vars['resBanner']->value['bannerLoc']==4){?> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblBrands'];?>
 <?php }elseif($_smarty_tpl->tpl_vars['resBanner']->value['bannerLoc']==3){?> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductCategories'];?>
<?php }?>  : 
			<?php  $_smarty_tpl->tpl_vars["selected"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["selected"]->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['resSelected']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["selected"]->key => $_smarty_tpl->tpl_vars["selected"]->value){
$_smarty_tpl->tpl_vars["selected"]->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars["selected"]->key;
?>
				<?php echo $_smarty_tpl->tpl_vars['selected']->value['name'];?>

				<?php if ($_smarty_tpl->tpl_vars['k']->value+1!=count($_smarty_tpl->tpl_vars['resSelected']->value)){?>, <?php }?>
			<?php } ?>
		  <?php }?>
		  </div>
      </div>
      <div	class="detail_listing02">
        <ul>
          <li	class="txt-normal"> <?php echo htmlspecialchars_decode($_smarty_tpl->tpl_vars['resBanner']->value['bannerContent'], ENT_QUOTES);?>
 </li>
        </ul>
      </div>
      <!--End:	Right	Block--> 
      <!--End:Content	Container--> 
    </div>
  </div>
  <?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 </div>
<!--End:Outer	Container--> 
<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('id'=>"common_message"),$_smarty_tpl);?>

</body>
</html>
<?php }} ?>