<?php
/**
  @licence GPL 2005-2010  The osCSS developers - osCSS Open Source E-commerce
  @package osCSS-2 <www http://www.oscss.org>
  @version 2.1.0
  @date  12/12/10, 18:53
  @author oscim <mail aurelien@oscim.fr> <www http://www.oscim.fr>
  @encode UTF-8
*/
$osCSS_Cache=new osCSS_Cache;
$osCSS_Cache->read('repository-source');
$variable = $osCSS_Cache->getCache();
?>
<div id="packageRepository" class="<?php echo $widg['class'] ?>" >
  <h3><?php echo '<a href="' . tep_href_link(FILENAME_PACKAGE, 'type_data=source', 'NONSSL') . '">'. __('text heading depot configure') .'</a>';?></h3>
  <p><?php if(count($variable)==0) echo '<a href="' . tep_href_link(FILENAME_PACKAGE, 'type_data=source', 'NONSSL') . '">'. __('text configure repository') .'</a>' ; ?></p>
  <ul class="spacer">
    <?php if(is_array($variable)) foreach($variable as $k=>$item):  if($k !='global'): ?>
      <li><a href="<?php echo $item['link'] ?>" ><?php echo $item['title'] ?></a> <?php echo __('text extension disponible').' x'.$item['count'].' '. __('last update').' '.tep_date_short($item['last_update'])  ?></li>
    <?php endif; endforeach; ?>
  </ul>
  <ul class="spacer">
    <?php  if(is_array($variable))  foreach($variable as $k=>$item):  if($k !='global'): ?>
      <li><?php echo __('text global') .' x'.$variable['global']['count'] ?></li>
    <?php endif; endforeach; ?>
  </ul>
</div>