function loadPosition($position, $style = -2) { $modules = ''; if (mosCountModules($position)) { ob_start(); mosLoadModules($position, $style); $modules = ob_get_contents(); ob_end_clean(); } return $modules; }
<?php include_once "mainbody.php"; ?> </td> <td width="168" align="center" valign="top" background="<?php echo $mosConfig_live_site; ?> /templates/allm_clock/images/right_bck.gif"> <?php mosLoadModules('right'); ?> <?php mosLoadModules('user2'); ?> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="171"><img src="<?php echo $mosConfig_live_site; ?> /templates/allm_clock/images/left_footer.gif" width="171" height="26" /></td>
echo '<div class="span3" style="clear:both;">'; echo '<div class="well sidebar-nav">'; echo $left; echo '</div>'; echo '</div>'; } } echo '<div class=" test span' . ($left === false ? '12' : '9') . '" style="padding-bottom:15px;">'; echo str_replace('--COMMANDS--', $commands, mosMainBody()); echo '</div>'; ?> </div> </div> <div class="templatefooter"> <?php echo mosLoadModules('footer'); ?> </div> <?php jsInclude("clib/bootstrap-wysiwyg/wysihtml5-0.3.0.min.js"); jsInclude("templates/{$template}/bootstrap/js/bootstrap.min.js"); jsInclude("clib/bootstrap-wysiwyg/bootstrap-wysihtml5.js"); jsInclude("clib/bootstrap-wysiwyg/prettify.js"); jsInclude("templates/{$template}/bootstrap/datepicker/js/bootstrap-datepicker.js"); jsInclude("clib/androLib.js"); jsInclude("clib/androLibDeprecated.js"); jsInclude("clib/x4.js"); include 'androHTMLFoot.php'; ?> </body> </html>
<td width="50%" valign="top"> <?php mosLoadModules('user2'); ?> </td> </tr> </table> <br> <?php if (mosCountModules("inset") > 0) { ?> <table width="96%" cellpadding="0" cellspacing="0" align="center"> <tr> <td> <?php mosLoadModules('inset'); ?> </td> </tr> </table> <?php } ?> </td> <!-- END OF RIGHT MODULES --> </tr> <tr> <td align="right" colspan="3" height="25"> <div style="float:left"><a href="http://validator.w3.org/check/referer">Validate XHTML</a></div> <div style="float:right"><a href="http://jigsaw.w3.org/css-validator/check/referer">Validate CSS</a></div>
<tr> <td valign="middle" height="19"><b><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">Navigation</font></b></td> </tr> <tr> <td height="8"></td> </tr> </table></td> </tr> <tr> <td width="31" height="103" valign="top"> </td> <td valign="top" width="114"><font color="#333300" size="1" face="Arial, Helvetica, sans-serif"><b> <?php mosLoadModules('left'); ?> <?php mosLoadModules('user1'); ?> </b></font></td> </tr> <tr> <td height="31"> </td> <td valign="top"><!--DWLayoutEmptyCell--> </td> </tr> <tr> <td height="23" valign="top"> </td> <td valign="top"><!--DWLayoutEmptyCell--> </td> </tr> </table> </td> <td width="485" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
function artxModules($document, $position, $style = null) { if ($document == null) { // for Joomla 1.0 ob_start(); mosLoadModules($position, -2); $content = ob_get_clean(); if (null == $style || 'xhtml' == $style) { return $content; } $decorator = 'artblock' == $style ? 'artxBlock' : ('artpost' == $style ? 'artxPost' : null); $result = ''; $modules = preg_split('~</div>\\s*<div class="moduletable">~', $content); $lastModule = count($modules) - 1; if ($lastModule > -1) { $modules[0] = preg_replace('~^\\s*<div class="moduletable">~', '', $modules[0]); $modules[$lastModule] = preg_replace('~</div>\\s*$~', '', $modules[$lastModule]); foreach ($modules as $module) { if (preg_match('~^\\s*<h3>([^<]*)</h3>~', $module, $matches, PREG_OFFSET_CAPTURE)) { $result .= $decorator($matches[1][0], substr($module, 0, $matches[0][1]) . substr($module, $matches[0][1] + strlen($matches[0][0]))); } else { $result .= $decorator(null, $module); } } } return $result; } // for Joomla 1.5 return '<jdoc:include type="modules" name="' . $position . '"' . (null != $style ? ' style="artstyle" artstyle="' . $style . '"' : '') . ' />'; }
<?php if ($right > 0) { ?> <td> <div id="right_outer"> <div id="right_inner"> <?php mosLoadModules('right', -2); ?> </div> </div> </td> <?php } ?> </tr> </table> </div> </div> </td> </tr> </table> </div> <?php include_once $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php'; mosLoadModules('debug', -1); ?> </body> </html>
<tr> <td align="right" colspan="3" height="25"> <div align="center"> <?php // if (file_exists("display.php")) { include("display.php"); } ?> </div> <div style="float:left"><a href="http://validator.w3.org/check/referer">Validate XHTML</a></div> <div style="float:right"><a href="http://jigsaw.w3.org/css-validator/check/referer">Validate CSS</a></div> </td> </tr> <tr> <td colspan="3" height="1" class="pathway"> <hr size="1" /> <?php if (mosCountModules("advert3") > 0) { mosLoadModules('advert3'); } ?> </td> </tr> </table> <?php if (file_exists("mosmodule/ga.php")) { include "mosmodule/ga.php"; } ?> </body> </html>
?> /templates/jm_medical/images/bot_logo2.jpg" /></td> </tr> <tr> <td> <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table6"> <tr> <td style="height: 2px" valign="top"> <img border="0" src="<?php echo $mosConfig_live_site; ?> /templates/jm_medical/images/top_right.png" /></td> </tr> <tr> <td valign="top" class="bac_right"><?php mosLoadModules('right', -3); ?> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> </body>
echo _ISO; ?> " /> <?php mosShowHead(); ?> <link rel="stylesheet" type="text/css" href="<?php echo $GLOBALS['mosConfig_live_site']; ?> /templates/humberng/css/default.css" /> </head> <body> <div class="header"><img src="images/humberng.png" border="0" alt="Humber NG Project" /></div> <div class="navigation"> <?php mosLoadModules('top'); ?> </div> <?php /* * Main Content */ ?> <div class="body" style="padding:20px 20px 20px 20px;"> <table cellpadding="3" cellspacing="0" border="0" style="width:70%;"> <tr> <td> <?php mosMainBody(); ?> </td>
<font face="Arial Black" size="4" color="#FFFFFF"><?php echo $mosConfig_sitename; ?> </font></TD> </TR> <TR> <TD COLSPAN=10> <IMG SRC="templates/bluedream/images/bluedream_04.gif" WIDTH=770 HEIGHT=76 ALT=""></TD> </TR> <TR> <TD background="templates/bluedream/images/bluedream_05.gif"> </TD> <TD COLSPAN=3 valign="top" background="templates/bluedream/images/bluedream_06.gif"><table width="96%" border="0"> <tr> <td><?php mosLoadModules('left'); ?> </td> </tr> <tr> <td><?php mosLoadComponent("newsflash"); ?> </td> </tr> </table> </TD> <TD background="templates/bluedream/images/bluedream_07.gif"> </TD> <TD COLSPAN=4 valign="top" background="templates/bluedream/images/bluedream_08.gif"><table width="99%" border="0"> <tr>
<tr> <?php if (mosCountModules("right")) { ?> <td width="150" valign="top"> <!-- //########## Right boxMdules ##########// --> <table width="150" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="24" class="boxheading"><img src="templates/butterfly/images/index_3.gif" width="175" height="32" /></td> </tr> <tr> <td valign="top" background="templates/butterfly/images/index_15.gif"> <table width="95%" border="0" align="center" cellpadding="3" cellspacing="0"> <tr> <td> <?php $side = "right"; mosLoadModules('right'); ?> </td> </tr> </table></td> </tr> <tr> <td><img src="templates/butterfly/images/index_16.gif" width="175" height="24" /></td> </tr> </table> <?php } ?> </td> </tr> </table></td>
<div class="clearer"></div> </div> <?php } else { ?> <div class="col2"> <div class="mainleft"><?php mosMainBody(); ?> </div> <div class="right"><?php mosLoadModules('right', -2); ?> </div> <div class="clearer"></div> </div> <?php } ?> </div> </div>
} //hctiws // Bottom Module if (mosCountModules('kunena_bottom') || mosCountModules('kna_btm')) { ?> <div class = "bof-bottom-modul"> <?php if (CKunenaTools::isJoomla15()) { $document =& JFactory::getDocument(); $renderer = $document->loadRenderer('modules'); $options = array('style' => 'xhtml'); $position = 'kunena_bottom'; echo $renderer->render($position, $options, null); } else { mosLoadModules('kna_btm', -2); } ?> </div> <?php } // Credits echo '<div class="fb_credits"> ' . CKunenaLink::GetTeamCreditsLink($catid, _KUNENA_POWEREDBY) . ' ' . CKunenaLink::GetCreditsLink(); if ($fbConfig->enablerss) { $mainframe->addCustomHeadTag('<link rel="alternate" type="application/rss+xml" title="' . _LISTCAT_RSS . '" href="' . sefRelToAbs(KUNENA_LIVEURLREL . '&func=fb_rss&no_html=1') . '" />'); echo CKunenaLink::GetRSSLink('<img class="rsslink" src="' . KUNENA_URLEMOTIONSPATH . 'rss.gif" border="0" alt="' . _LISTCAT_RSS . '" title="' . _LISTCAT_RSS . '" />'); } echo '</div>'; // display footer $obj_KUNENA_tmpl->readTemplatesFromFile("footer.html");