<!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>{$language.lblAdmin} : {$language.lblWidget} </title>
{include file="CommonStyles.tpl"}
{include file="CommonCustomStyles.tpl"}
{include file="CommonJavaScript.tpl"}
<link rel="stylesheet" type="text/css" href="{$view_styles}/product-details.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/right-menu.css" />
</head><body>
<div class="outer_container"> {include file='CommonTop.tpl'} 
  <!--End:Header Container--> 
  <!--*************************************************START CONTAINER SECTION*************************************************-->
  <div class="content_container2 clearfix">

	<div class="right-sidebar">
	  <div class="side_wrapper"> 
	  {html->anchor priv_href="widget/new/" href="widget/new/" class="custom-btnt" content=" <strong><span class='add'></span>{$language.lblWidgetAddNew} </strong>" title="{$language.lblWidgetList}"}
		<ul>
			<li>
			{html->anchor priv_href="widget/index/" href="/widget/index/"  class="side_menu_a selected" content="{$language.lblModuleWidgets}<br /><span>{$language.lblManageWidgets}</span>"} 
			</li>
		</ul>
	  </div>
	</div>
	<!--End: Right Block-->
	<div class="left_wrapper">
	  <div class="content_wrapper">
      <div class="fixing_right">
			{html->anchor href=$previousURl caption="{$language.lblBack}" class="back-link fixing_right"} 
			{if $editPrivilege}  
			  {html->anchor href="widget/edit/id/{$widgetID}/" class="button-link01 fixing_right" content=$language.lblEdit}
			{/if}  
				
			</div>
		<h2>
			{$getWidget['widgetTitle']}
		</h2>
		<div class="inner_content_wrapper">
		<div id="common_message"></div>
        <h3><span>{$language.lblWidgetDetails}</span></h3>
		  <div class="form_listing form_listing01">
			<ul>
			      <li class="clearfix"><div class="left-pane">
				<div class="leftside01 fixing_left mandatory">
					{$language.lblWidgetwidgetTitle} :
				</div>
				<!--End:Left-->
				<div class="rightside01-new"> 
					{$getWidget['widgetTitle']}
					
				</div>
				<!--End:right-->
			  </div>
			     <div class="right-pane">
				<div class="leftside01 fixing_left mandatory">
					{$language.lblWidgetshowTitle} :
				</div>
				<!--End:Left-->
				<div class="rightside01-new fixing_right "> 
					{if $getWidget['showTitle']=='Yes'}
					{$language.lblYes}{else} {$language.lblNo}{/if}
					
				</div>
				<!--End:right-->
                </div>
			  </li>
			      <li class="clearfix">
                  <div class="left-pane">
			
			
			
				<div class="leftside01 fixing_left mandatory">
					{$language.lblWidgetcategoryID} :
				</div>
				<!--End:Left-->
				<div class="rightside01-new fixing_right "> 
		  {if $resProductcategory}
                    <div class="category-section">
                    <ol>{foreach item="productCategory" key=k from=$resProductcategory}<li>
                     
                        {$productCategory.productCategoryName}
                        
                    </li>{/foreach} </ol>
                    </div>
                    {else}{$language.lblNotSpecified}{/if}
					
				</div>
				<!--End:right-->
				
				
				
				</div>
              {*  <div class="right-pane">
				<div class="leftside01 fixing_left mandatory">
					{$language.lblWidgetType} :
				</div>
				<!--End:Left-->
				<div class="rightside01-new fixing_right "> 
					{$getWidget['widgetType']}
					
				</div>
				<!--End:right-->
                </div>
				*}
			  </li>
			      <li class="clearfix">
                  <div class="left-pane">
				<div class="leftside01 fixing_left mandatory">
					{$language.lblWidgetwidgetDisplayedOn} :
				</div>
				<!--End:Left-->
				<div class="rightside01-new fixing_right "> 
					{$getWidget['widgetDisplayedOn']}
					
				</div>
				<!--End:right-->
			  </div>
              <div class="right-pane">
              <div class="leftside01 fixing_left mandatory">
				{$language.lblWidgetPlatform} :
				</div>
				<!--End:Left-->
				<div class="rightside01-new fixing_right "> 
				{if $getWidget['widgetPlatform']=='desktop'}
				    {$language.lblDesktop}
				    {elseif $getWidget['widgetPlatform']=='mobile'}    
				   {$language.lblMobile}
                                 {else}    
                                     {$language.lblMobileApp}
				    {/if}
					</div>
</div>
			<li class="clearfix">
			<div class="left-pane">
				<div class="leftside01 fixing_left mandatory">
					{$language.lblWidgetwidgetStartDate} :
				</div>
				<!--End:Left-->
				<div class="rightside01-new fixing_right "> 
				{if $getWidget['widgetStartDate']!='0000-00-00'}
				    {$getWidget['widgetStartDate']|date_format:$date_format}
				    {else}
				    {$language.lblNotSpecified}
				    {/if}
				</div>
				<!--End:right-->
                </div>
			 
            <div class="right-pane">
				<div class="leftside01 fixing_left mandatory">
					{$language.lblWidgetwidgetEndDate} :
				</div>
				<!--End:Left-->
				<div class="rightside01-new fixing_right "> 					
				    {if $getWidget['widgetEndDate']!='0000-00-00'}
				    {$getWidget['widgetEndDate']|date_format:$date_format}
				    {else}
				    {$language.lblNotSpecified}
				    {/if}
				</div>
				<!--End:right-->
			</div>
            </li>
            <li class="clearfix">
			<div class="left-pane">
				<div class="leftside01 fixing_left mandatory">
					{$language.lblWidgetstatus} :
				</div>
				<!--End:Left-->
				<div class="rightside01-new fixing_right "> 
					{if $getWidget['status']=='I'}{$language.lblInactive}{else}{$language.lblActive}{/if}
					
				</div>
				<!--End:right-->
                </div>
			  </li>
			
			<li class="clearfix  full_width_list">
				<div class="leftside01 fixing_left mandatory">
					{$language.lblWidgetwidgetDescription} :
				</div>
				<!--End:Left-->
				<div class="rightside01-new fixing_right">
				    {if $getWidget['widgetDescription']!=''}
				    {$getWidget['widgetDescription']}
				    {else}
				    {$language.lblNotSpecified}
				    {/if}
					
					
				</div>
				<!--End:right-->
			  </li>
			</ul>
		   </div>
		   
		   
		   
		   
			{if $resTabs|count >0}				
		  <div class="content_wrapper">
         <h3><span>{$language.lblPreviewWidget}</span></h3>
          <div class="wdgt-prv-block">
         	<div class="wdgt-header clearfix">
			<h4 class="wdgt-head">{$widget['widgetTitle']}</h4>
			{foreach $resTabs as $tabkey=>$widgetTabs} 
			{assign var="widgetType" value=$widgetTabs['widgetType']}			
			
			{if $widgetType=='static'}
							<div class="wdgt-prv-block clearfix">
								<div class="wdgt-header clearfix" data-class='widgets'>
									<div class="wdgt-tab-Container">
										{$widgetTabs['staticWidgetContent']|unescape:'html'}
									</div>
								</div>
							  </div>
							  
			{else}				  
            	
                <ul class="wdgt-tab fixing_right">
				              	
					<li>
						  <a 	href="javascript:void(0);" 
							  data-href="/widget/ajaxgetwidgettabitems/widgetdisplayedon/{$widget['widgetDisplayedOn']}/category/{$widget['categoryID']}/widgettab/{$widgetTabs['widgetTabID']}" 
							  data-tabnavid="tab_0_{$tabkey}" 
							  data-widget	="{$widget['widgetID']}" 
							  data-class='widgets_tab'
							  class="tab {if $tabkey eq 0}first_tab active{/if}">
							  {$widgetTabs['tabTitle']}
						  </a>
					</li>
				
				</ul>	
			{/if}	
			{/foreach}	
            </div>
            <div class="wdgt-slider-block clearfix">
				{foreach $resTabs as $tabkey=>$widgetTabs}
				<div class="tabpane_{$widget['widgetID']}" data-tabid="tab_0_{$tabkey}">
					<!-- Widget tab products will load here -->
				</div>
				 {/foreach}
			  </div>
          </div>
          <!--End:Border 3--> 
        </div>
		{/if}
		  <!--End:From Listing--> 
		</div>
		<!--End:Border 3--> 
	  </div>
	  <!--End:Border 2--> 
	  </div>
	<!--End: left Block-->
	<div class="clear"></div>
  </div>
  <!--End: left Block-->
  <div class="clear"></div>
</div>
<!--*********************************************END CONTAINER SECTION******************************************************--> 
<!--End:Content Container--> 
{include file='CommonBottom.tpl'}
</div>
<script type="text/javascript" src="{$common_js}/jquery.bxslider.min.js"></script> 
<script type="text/javascript" src="{$view_javascript}/widgetview.page.js"></script> 

<!--End:Outer Container--> 
{include file='CommonJavaScriptBottom.tpl'} 
{form->basepath_script}
</body>
</html>
