<?php /* Smarty version 2.6.22, created on 2014-03-25 09:27:23
         compiled from C:/xampp/htdocs/zipmarket%5Capps%5Cindex%5Cviews/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'string_format', 'C:/xampp/htdocs/zipmarket\\apps\\index\\views/index.html', 24, false),array('modifier', 'url', 'C:/xampp/htdocs/zipmarket\\apps\\index\\views/index.html', 45, false),array('modifier', 'escape', 'C:/xampp/htdocs/zipmarket\\apps\\index\\views/index.html', 46, false),)), $this); ?>
    <div id="content">
      <div class="container">
	  	  		<?php echo $this->_tpl_vars['errorMessage']; ?>

		<?php if (check_login_bool ( )): ?>
<div id="home-panel" class="loggedin shadowed">
  <div class="inner-boundary">
    <div class="inner-border">
    <div class="featured-collection">
   <?php if ($this->_tpl_vars['qnews_data']): ?> <?php $_from = $this->_tpl_vars['qnews_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?> <?php if ($this->_tpl_vars['i']['url']): ?><a href="<?php echo $this->_tpl_vars['i']['url']; ?>
" title="<?php echo $this->_tpl_vars['i']['name']; ?>
"><?php endif; ?><img src="<?php echo $this->_tpl_vars['i']['thumb']; ?>
" alt="<?php echo $this->_tpl_vars['i']['name']; ?>
" title="<?php echo $this->_tpl_vars['i']['name']; ?>
" /><?php if ($this->_tpl_vars['i']['url']): ?></a><?php endif; ?>
    <?php if ($this->_tpl_vars['i']['url']): ?><a style="font-family:byekan;" href="<?php echo $this->_tpl_vars['i']['url']; ?>
" title="<?php echo $this->_tpl_vars['i']['name']; ?>
"><?php echo $this->_tpl_vars['i']['name']; ?>
</a><br><?php endif; ?>
    <p style="font-size:12px;line-height:22px;text-align:justify;font-family:tahoma;"><?php echo $this->_tpl_vars['i']['description']; ?>
</p><?php endforeach; endif; unset($_from); ?> <?php endif; ?> 
    </div>
      <h3 class="decorator">سلام !</h3>
        <p style="font-size:12px;line-height:22px;text-align:justify;font-family:tahoma;">
به مارکت پرشین اسکریپت خوش آمدید .
		امیدواریم بتوانید محصول خود را در این مارکت بدست آورده باشید .
		نمایش  <a href="/categories/all">کل محصولات</a> و بهترین  <a href="/top_authors/">نویسندگان</a>.
		چک کردن  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $_SESSION['user']['username']; ?>
/">پروفایل</a> خودتان<br>
		برای خرید یا فروش محصول ، حتما <a href="/make_money/affiliate_program/">قوانین سایت</a> را مطالعه کنید .
       </p>
      <div class="balance-signin-container">
        <div class="balance">
          <small>موجودی شما</small>
          <strong><?php echo ((is_array($_tmp=$_SESSION['user']['total'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
 <?php echo $this->_tpl_vars['currency']['symbol']; ?>
</strong>
          <a role="button" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
deposit/" class="auto-width">شارژ حساب</a>
        </div>
      </div>
    </div>
  </div>
</div>
<div id="home-following" class="shadowed">
    <div class="following-slider">
<div class="inner-boundary">
  <div class="inner-border">
	<?php if ($this->_tpl_vars['followingItemsCount'] > 9): ?>			    	
		<?php echo '<a href="javascript: void(0);" onclick="$.ajax({complete: function(request) { hideLoading(); }, beforeSend: function() { showLoading(); }, dataType: \'script\', type: \'post\', url: \'/'; ?>
<?php echo $this->_tpl_vars['languageURL']; ?>
<?php echo 'users/following/?p=2\'}); return false;" class="slider-control slider-next">Next</a>'; ?>
	        
	<?php else: ?>
     <span class="slider-control slider-next-disabled"></span>
	<?php endif; ?>
    <div>
     <ul id="recently-followed-items">
	<?php if ($this->_tpl_vars['followingItems']): ?>
	 <?php $_from = $this->_tpl_vars['followingItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['f']):
?>
	   <li class="thumbnail">
	    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['f']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['f']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
" onclick="">
         <img data-tooltip="<?php echo ((is_array($_tmp=$this->_tpl_vars['f']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['f']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" class="landscape-image-magnifier preload no_preview" data-item-author="توسط <?php echo $this->_tpl_vars['users'][$this->_tpl_vars['f']['user_id']]['username']; ?>
" data-item-category="<?php $_from = $this->_tpl_vars['f']['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 ((is_array($_tmp=$this->_tpl_vars['f']['price'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
 <?php echo $this->_tpl_vars['currency']['symbol']; ?>
" data-item-name="<?php echo ((is_array($_tmp=$this->_tpl_vars['f']['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['f']['id']; ?>
/preview.jpg" data-preview-width="" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['f']['id']; ?>
/<?php echo $this->_tpl_vars['f']['thumbnail']; ?>
" title="" border="0" height="80" width="80">
        </a>
	   </li>
	 <?php endforeach; endif; unset($_from); ?><?php else: ?>
    <div style="position: absolute; margin-top: 75px; padding: 21px;margin-left:10px;">
      <p style="font-family:byekan;">
        آخرین محصولات کاربرانی که شما دنبال کرده اید . </p>
       <p style="font-size:12px;line-height:23px;"> شما می توانید آخرین کارهای نویسندگان مورد نظرتان را دنبال کنید . کافیست آنها را دنبال کنید . </p>
      
    </div>
	<?php endif; ?>	
     </ul>			
    </div>
  </div>
</div>
</div>
 </div>
<?php else: ?>
  <div id="home-panel" class="guest shadowed">
  <div class="inner-boundary">
       <div class="inner-border">
        <h1>
          <span><?php echo $this->_tpl_vars['itemsCount']; ?>
</span>
          محصول و قالب های فارسی از <?php echo $this->_tpl_vars['lowPrice']; ?>
 <?php echo $this->_tpl_vars['currency']['symbol']; ?>

        </h1>
        <h2><a href="/categories/all"><?php if ($this->_tpl_vars['randCategories']): ?><?php $_from = $this->_tpl_vars['randCategories']; 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['mainCategories'][$this->_tpl_vars['c']]['name']; ?>
<?php if (! ($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?>, <?php endif; ?><?php endforeach; endif; unset($_from); ?><?php echo $this->_tpl_vars['lang']['home_info2']; ?>
<?php endif; ?></a></h2>
      <div class="btns">
        <div class="relative-wrapper">
          <div class="center">
            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
categories/all" role="button"><?php echo $this->_tpl_vars['lang']['start_browsing']; ?>
</a>
            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
top_sellers" role="button"><?php echo $this->_tpl_vars['lang']['popular_files']; ?>
</a>
            <a href="/help/getting_started" role="button">درباره ما</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<?php endif; ?>  
 <div id="weekly-features" class="shadowed">
<div class="inner-boundary">
  <div class="inner-border">
    <h3 class="decorator">محصولات ویژه</h3>
     <div class="slider">
                    <span class="slider-control slider-prev-disabled"></span>
					<?php if (isset ( $this->_tpl_vars['haveWeekly'] )): ?>
					<?php echo '
		          <a href="/'; ?>
<?php echo $this->_tpl_vars['languageURL']; ?>
<?php echo 'feature/" onclick="$.ajax({complete: function(request) { screenshotPreview(); hideLoading(); }, beforeSend: function() { showLoading(); }, dataType: \'script\', type: \'post\', url: \'/'; ?>
<?php echo $this->_tpl_vars['languageURL']; ?>
<?php echo 'items/weekly/?p=2\'}); return false;" class="slider-control slider-next"></a> 
				   '; ?>

					<?php endif; ?>
					
	<?php if ($this->_tpl_vars['weeklyItems']): ?>
					
      	 <ul id="weekly-featured-items">
            
		      	<?php $_from = $this->_tpl_vars['weeklyItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
            <li class="thumbnail">
  <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 data-tooltip="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" class="landscape-image-magnifier preload no_preview" data-item-author="توسط <?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['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="" 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="" border="0" width="80" height="80"></a>
  </li>
				<?php endforeach; endif; unset($_from); ?>

                 </ul>				<?php endif; ?>
    </div>
  </div>
</div>
</div>

  <div id="free-file" class="shadowed">
    <div class="inner-boundary">
      <div class="inner-border">
        <div class="thumbnail itemcontainer">
         <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['freeItem']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['freeItem']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
" onclick="">
          <img alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['freeItem']['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['users'][$this->_tpl_vars['freeItem']['user_id']]['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['freeItem']['price']; ?>
 <?php echo $this->_tpl_vars['currency']['symbol']; ?>
" data-item-name="<?php echo ((is_array($_tmp=$this->_tpl_vars['freeItem']['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['freeItem']['id']; ?>
/preview.jpg" data-preview-width="" height="80" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['freeItem']['id']; ?>
/<?php echo $this->_tpl_vars['freeItem']['thumbnail']; ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['freeItem']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" width="80" />
         </a>            
		</div>
            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['freeItem']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['freeItem']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
"><h3 class="decorator"><?php echo $this->_tpl_vars['lang']['free_file']; ?>
!</h3></a>
            <p>
                قالب رایگان این ماه : <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['freeItem']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['freeItem']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
">دانلود کنید </a>!
            </p>
      </div>
    </div>
  </div>
<div class="clear"><!--  --></div>
<?php if ($this->_tpl_vars['recentItems']): ?>
    <div id="recent-files-wrapper">
  <div id="recent-files" class="shadowed">
    <div class="inner-boundary">
      <div class="inner-border">
        <h3 class="decorator">آخرین محصولات</h3>
	   <ul class="nav">
	    <li><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
categories/all/">نمایش کل</a></li>
        <?php if ($this->_tpl_vars['mainCategories']): ?>
	    	<?php $_from = $this->_tpl_vars['mainCategories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?>
          <li><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
categories/<?php echo $this->_tpl_vars['c']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
"><?php echo $this->_tpl_vars['c']['name']; ?>
</a></li>
            <?php endforeach; endif; unset($_from); ?>
       	<?php endif; ?>
        </ul>
        <div class="clear"><!-- --></div>
          <ul class="recent-items">
	     <?php $_from = $this->_tpl_vars['recentItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
        <li class="thumbnail">
	     <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['users'][$this->_tpl_vars['i']['user_id']]['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 ((is_array($_tmp=$this->_tpl_vars['i']['price'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
 <?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>
	    </li>
	   	<?php endforeach; endif; unset($_from); ?>
          </ul>
        <div class="category-links"><span class="prefix">نمایش : </span><a class="all" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
categories/all/" >تمامی محصولات</a> <span>|</span> <a class="popular" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
categories/all?sort_by=sales_count&order=desc">محصولات پر فروش</a></div>
      </div>
    </div>
  </div>
</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['featuredAuthor']): ?>
<div id="featured-author" class="shadowed">
        <div class="inner-boundary">
        <div class="inner-border">
          <div class="avatar-wrapper">
            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['featuredAuthor']['username']; ?>
" class="avatar" title="<?php echo $this->_tpl_vars['featuredAuthor']['username']; ?>
">
			<?php if ($this->_tpl_vars['featuredAuthor']['avatar'] != ''): ?> 
  <img alt="<?php echo $this->_tpl_vars['featuredAuthor']['username']; ?>
" class="" height="80" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['featuredAuthor']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['featuredAuthor']['avatar']; ?>
" width="80" />
            <?php else: ?>
  <img alt="<?php echo $this->_tpl_vars['featuredAuthor']['username']; ?>
" class="" height="80" src="<?php echo $this->_tpl_vars['data_server']; ?>
img/default-user.jpg" width="80" />
			<?php endif; ?>
			</a>

          </div>
          <div class="info">
            <h3 class="decorator"><?php echo $this->_tpl_vars['lang']['featured_author']; ?>
: <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['featuredAuthor']['username']; ?>
"><?php echo $this->_tpl_vars['featuredAuthor']['username']; ?>
</a></h3>
            <p>
              <?php echo $this->_tpl_vars['featuredAuthorInfo']; ?>
<br />
              <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/portfolio/<?php echo $this->_tpl_vars['featuredAuthor']['username']; ?>
"><?php echo $this->_tpl_vars['lang']['view_portfolio_of']; ?>
 <?php echo $this->_tpl_vars['featuredAuthor']['username']; ?>
</a>
            </p>
          </div>
          <div class="other-work">
		  <?php if ($this->_tpl_vars['featuredItems']): ?>
						<?php $_from = $this->_tpl_vars['featuredItems']; 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 border="0" class="landscape-image-magnifier preload no_preview" data-item-author="توسط <?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" data-item-cost="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['price'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
 <?php echo $this->_tpl_vars['currency']['symbol']; ?>
" 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-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; ?>
		 
		 <small>برخی از کارهای <?php echo $this->_tpl_vars['featuredAuthor']['username']; ?>
 </small>
          </div>
        </div>
      </div>

</div>
<?php endif; ?>
<div class="clear"><!--  --></div>

<script><?php echo '
  marketplace.queue(function() {
    marketplace.ajaxify_weekly_features();
  });'; ?>

</script>

      </div>
    </div>