function artxPositions($document, $positions, $style) { ob_start(); if (count($positions) == 3) { if (artxCountModules($document, $positions[0]) && artxCountModules($document, $positions[1]) && artxCountModules($document, $positions[2])) { ?> <table class="position" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"> <td width="33%"><?php echo artxModules($document, $positions[0], $style); ?> </td> <td width="33%"><?php echo artxModules($document, $positions[1], $style); ?> </td> <td><?php echo artxModules($document, $positions[2], $style); ?> </td> </tr> </table> <?php } elseif (artxCountModules($document, $positions[0]) && artxCountModules($document, $positions[1])) { ?> <table class="position" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"> <td width="33%"><?php echo artxModules($document, $positions[0], $style); ?> </td> <td><?php echo artxModules($document, $positions[1], $style); ?> </td> </tr> </table> <?php } elseif (artxCountModules($document, $positions[1]) && artxCountModules($document, $positions[2])) { ?> <table class="position" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"> <td width="67%"><?php echo artxModules($document, $positions[1], $style); ?> </td> <td><?php echo artxModules($document, $positions[2], $style); ?> </td> </tr> </table> <?php } elseif (artxCountModules($document, $positions[0]) && artxCountModules($document, $positions[2])) { ?> <table class="position" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"> <td width="50%"><?php echo artxModules($document, $positions[0], $style); ?> </td> <td><?php echo artxModules($document, $positions[2], $style); ?> </td> </tr> </table> <?php } else { echo artxModules($document, $positions[0], $style); echo artxModules($document, $positions[1], $style); echo artxModules($document, $positions[2], $style); } } elseif (count($positions) == 2) { if (artxCountModules($document, $positions[0]) && artxCountModules($document, $positions[1])) { ?> <table class="position" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"> <td width="50%"><?php echo artxModules($document, $positions[0], $style); ?> </td> <td><?php echo artxModules($document, $positions[1], $style); ?> </td> </tr> </table> <?php } else { echo artxModules($document, $positions[0], $style); echo artxModules($document, $positions[1], $style); } } // count($positions) return ob_get_clean(); }
<div class="art-Footer-inner"> <?php echo artxModules($document, 'syndicate'); ?> <div class="art-Footer-text"> <?php if (artxCountModules($document, 'copyright') == 0) { ?> <p>Copyright © 2009 ---.<br/> All Rights Reserved.</p> <?php } else { ?> <?php echo artxModules($document, 'copyright', 'art-nostyle'); ?> <?php } ?> </div> </div> <div class="art-Footer-background"></div> </div> <div class="cleared"></div> </div> </div> <div class="cleared"></div> <p class="art-page-footer">Designed by <a href="http://www.gamingguide.net" target="_blank">USA Casino</a>. Distributed by <a href="http://www.joomlatemplatesdownload.com" target="_blank">Joomla Template Download</a>.</p> </div>
<div class="Footer-inner"> <?php echo artxModules($document, 'syndicate'); ?> <div class="Footer-text"> <?php if (artxCountModules($document, 'copyright') == 0) { ?> <p>Copyright © 2009 ---.<br/> All Rights Reserved.</p> <?php } else { ?> <?php echo artxModules($document, 'copyright', 'xhtml'); ?> <?php } ?> </div> </div> <div class="Footer-background"></div> </div> </div> </div> <div class="cleared"></div> <p class="page-footer"><a href="http://www.pc-didi.at/?p=joomla_templates">Webdesign Tirol</a> designed by pc-didi.</p> </div>