<?php
  /**
   * Copyright 2011 Zazavi - http://www.zazavi.com
   * Zazavi is free software released under the terms of the GNU General Public License.
   * You should have received a copy of the license.  If not, see <http://www.gnu.org/licenses/>.
   */
  
  if (!defined("_VALID_PHP"))
      die('Direct access to this location is not allowed.');
?>
<?php if($content->getAccess()):?>
<?php foreach ($modleft as $lrow): ?>
<div class="right-mod-wrap<?php if($lrow['alt_class'] !="") echo " ".$lrow['alt_class'];?>">
  <div class="right-mod-inner<?php if($lrow['alt_class'] !="") echo " ".$lrow['alt_class'];?>">
    <?php if ($lrow['show_title'] == 1) echo "<h3>".$lrow['title'.$core->dblang]."</h3>";?>
    <?php if ($lrow['body'.$core->dblang]) echo "<div class=\"mod-body\">".cleanOut($lrow['body'.$core->dblang])."</div>";?>
    <?php if ($lrow['system'] == 1):?>
    <?php $modfile = MODDIR .$lrow['modalias']."/main.php";?>
    <?php if(file_exists($modfile)) include_once($modfile);?>
    <?php endif;?>
  </div>
</div>
<?php endforeach; ?>
<?php endif;?>