<?php /* Smarty version 2.6.22, created on 2014-02-25 01:07:53
         compiled from D:/Program+Files/Ampps/www/zipmarket%5Capps%5Citems%5Cviews/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'url', 'D:/Program Files/Ampps/www/zipmarket\\apps\\items\\views/index.html', 6, false),array('modifier', 'escape', 'D:/Program Files/Ampps/www/zipmarket\\apps\\items\\views/index.html', 35, false),)), $this); ?>
  <div class="page-info">
    <div class="container">
      <div id="breadcrumbs">
        <a href='/' class="first">صفحه اصلی</a> \  <a href="/categories/all/">محصولات</a>  \ 	<?php $_from = $this->_tpl_vars['item']['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['e']):
?>
								<?php $_from = $this->_tpl_vars['e']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['c']):
        $this->_foreach['foo']['iteration']++;
?>
									<a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
categories/<?php echo $this->_tpl_vars['categories'][$this->_tpl_vars['c']]['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['categories'][$this->_tpl_vars['c']]['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
" title=""><?php echo $this->_tpl_vars['categories'][$this->_tpl_vars['c']]['name']; ?>
</a> <?php if (! ($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?> \ <?php endif; ?>
								<?php endforeach; endif; unset($_from); ?>
							<?php endforeach; endif; unset($_from); ?>  \
     </div>
   <h1 class="page-title"><?php echo $this->_tpl_vars['item']['name']; ?>
</h1>
    </div>
      <div id="tabsy">
          <ul>
            <li class="selected"><div></div><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['item']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
">جزئیات محصول</a></li>
			<?php if ($this->_tpl_vars['faqs'] > 0 || check_login_bool ( ) && $this->_tpl_vars['item']['user_id'] == $_SESSION['user']['user_id']): ?>
			<li class="<?php if ($_GET['controller'] == 'faq'): ?>selected<?php endif; ?>" id="faq-tab"><div></div><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/faq/<?php echo $this->_tpl_vars['item']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
"><?php echo $this->_tpl_vars['lang']['faqs']; ?>
</a></li>
			<?php endif; ?>
			<?php if (check_login_bool ( ) && $this->_tpl_vars['item']['user_id'] == $_SESSION['user']['user_id']): ?>
			<li class="last<?php if ($_GET['controller'] == 'edit'): ?>selected<?php endif; ?>" ><div></div><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/edit/<?php echo $this->_tpl_vars['item']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
"><?php echo $this->_tpl_vars['lang']['edit']; ?>
</a></li>
			<?php endif; ?>
			<li class="last<?php if ($_GET['controller'] == 'comments'): ?>selected last<?php endif; ?>  <?php if (check_login_bool ( ) && $this->_tpl_vars['item']['user_id'] == $_SESSION['user']['user_id']): ?>last<?php endif; ?>"><div></div><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/comments/<?php echo $this->_tpl_vars['item']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
"><?php echo $this->_tpl_vars['lang']['comments1']; ?>
</a><div class="last"></div></li>
          </ul>
      </div>
  </div>
    <div id="content">
      <div class="container">
	  		<?php echo $this->_tpl_vars['errorMessage']; ?>

			
<?php if (isset ( $this->_tpl_vars['paypal_show'] )): ?>
	<div class="box-warning"><?php echo $this->_tpl_vars['lang']['paypal_proceed']; ?>
</div>
	<form id="form" action="<?php echo $this->_tpl_vars['paypal']['url']; ?>
" method="post">
		<input type="hidden" name="cmd" value="_ext-enter">
		<input type="hidden" name="redirect_cmd" value="_xclick">
		<input type="hidden" name="business" value="<?php echo $this->_tpl_vars['paypal']['business']; ?>
">
		<input type="hidden" name="item_name" value="Buy <?php echo ((is_array($_tmp=$this->_tpl_vars['item']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
">
		<input type="hidden" name="currency_code" value="<?php echo $this->_tpl_vars['currency']['code']; ?>
">
		<input type="hidden" name="no_shipping" value="1">
		<input type="hidden" name="no_note" value="1">
		<input type="hidden" name="notify_url" value="http://<?php echo $this->_tpl_vars['domain']; ?>
/<?php echo $this->_tpl_vars['languageURL']; ?>
items/paypal/notify/">
		<input type="hidden" name="return" value="http://<?php echo $this->_tpl_vars['domain']; ?>
/<?php echo $this->_tpl_vars['languageURL']; ?>
items/paypal/success/">
		<input type="hidden" name="cancel_return" value="http://<?php echo $this->_tpl_vars['domain']; ?>
/<?php echo $this->_tpl_vars['languageURL']; ?>
items/paypal/cancel/">
		<input type="hidden" name="image_url" value="">
		<input type="hidden" name="email" value="<?php echo $_SESSION['user']['email']; ?>
">
		<input type="hidden" name="first_name" value="<?php echo $_SESSION['user']['firstname']; ?>
">
		<input type="hidden" name="last_name" value="<?php echo $_SESSION['user']['lastname']; ?>
">
		<input type="hidden" name="custom" value="<?php echo $this->_tpl_vars['orderID']; ?>
">
		<input type="hidden" name="custom2" value="<?php echo $_POST['licence']; ?>
">
		<input type="hidden" name="amount" value="<?php echo $this->_tpl_vars['price']; ?>
">
		<input type="hidden" name="cs" value="0">
		<input type="hidden" name="page_style" value="PayPal">
		<noscript>
			<button type="submit">Click here to pay</button>
		</noscript>
	</form>
	
	<?php echo '
	<script type="text/javascript">
	$(document).ready(function() {
		$("#form").submit();
	});
	</script>
	'; ?>

<?php endif; ?>      

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['root_path'])."/zipmarket/apps/items/views/purchase_panel.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="content-s">
  <div class="item-preview content-box">
        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/screenshots/<?php echo $this->_tpl_vars['item']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
" class="details-image" target="_blank"><img alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" src="<?php echo $this->_tpl_vars['data_server']; ?>
/uploads/items/<?php echo $this->_tpl_vars['item']['id']; ?>
/preview.jpg" /></a>    
        <div id="fullscreen">
		<?php if ($this->_tpl_vars['item']['demo_url']): ?>
            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/preview/<?php echo $this->_tpl_vars['item']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
" role="button" class='btn btn-icon live-preview' target='_blank'>پیش نمایش</a>
	    <?php endif; ?>
			<a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/screenshots/<?php echo $this->_tpl_vars['item']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
" role="button" class='btn btn-icon screenshots' target='_blank'><?php echo $this->_tpl_vars['lang']['screenshots']; ?>
</a>
        </div>
  </div>
    <div class="item-description">
	 <div class="user-html">
        <?php echo $this->_tpl_vars['item']['description']; ?>

	 </div>
    </div>

        <div class="more-work">
        <div>
       <?php if ($this->_tpl_vars['otherItems']): ?>
   		<?php $_from = $this->_tpl_vars['otherItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>   
  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
"><img alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" border="0" class="landscape-image-magnifier preload no_preview" data-item-author="توسط <?php echo $this->_tpl_vars['item']['user']['username']; ?>
" data-item-category="<?php $_from = $this->_tpl_vars['i']['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['e']):
?><?php $_from = $this->_tpl_vars['e']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['c']):
        $this->_foreach['foo']['iteration']++;
?><?php echo $this->_tpl_vars['categories'][$this->_tpl_vars['c']]['name']; ?>
 <?php if (! ($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?> \ <?php endif; ?><?php endforeach; endif; unset($_from); ?><?php endforeach; endif; unset($_from); ?>" data-item-cost="<?php echo $this->_tpl_vars['i']['price']; ?>
 <?php echo $this->_tpl_vars['currency']['symbol']; ?>
" data-item-name="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" data-preview-height="" data-preview-url="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['i']['id']; ?>
/preview.jpg" data-preview-width="" height="80" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['i']['id']; ?>
/<?php echo $this->_tpl_vars['i']['thumbnail']; ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" width="80" /></a>          
        	<?php endforeach; endif; unset($_from); ?>
		<?php endif; ?>
		<?php if ($this->_tpl_vars['otherItemsCount'] < 7): ?>
    	<?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)$this->_tpl_vars['otherItemsCount'];
$this->_sections['foo']['loop'] = is_array($_loop=7) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
          <div class="thumbnail"></div>
        <?php endfor; endif; ?>      
		<?php endif; ?>
        </div>
        <div class="clear"><!-- --></div>
        <small><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/portfolio/<?php echo $this->_tpl_vars['item']['user']['username']; ?>
"><?php echo $this->_tpl_vars['lang']['more_items_by']; ?>
 <?php echo $this->_tpl_vars['item']['user']['username']; ?>
</a></small>
      </div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['root_path'])."/zipmarket/apps/items/views/rightside.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="clear"><!-- --></div>
      </div>
    </div>

        <div class="clear"><!-- --></div>
