<?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 ($modright as $rrow): ?>
<div class="right-mod-wrap<?php if($rrow['alt_class'] !="") echo " ".$rrow['alt_class'];?>">
  <div class="right-mod-inner<?php if($rrow['alt_class'] !="") echo " ".$rrow['alt_class'];?>">
    <?php if ($rrow['show_title'] == 1) echo "<h3>".$rrow['title'.$core->dblang]."</h3>";?>
    <?php if ($rrow['body'.$core->dblang]) echo "<div class=\"mod-body\">".cleanOut($rrow['body'.$core->dblang])."</div>";?>
    <?php if ($rrow['system'] == 1):?>
    <?php $modfile = MODDIR .$rrow['modalias']."/main.php";?>
    <?php if(file_exists($modfile)) include_once($modfile);?>
    <?php endif;?>
  </div>
</div>
<?php endforeach; ?>
<?php endif;?>