本文整理汇总了PHP中mosLoadModules函数的典型用法代码示例。如果您正苦于以下问题:PHP mosLoadModules函数的具体用法?PHP mosLoadModules怎么用?PHP mosLoadModules使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了mosLoadModules函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadPosition
function loadPosition($position, $style = -2)
{
$modules = '';
if (mosCountModules($position)) {
ob_start();
mosLoadModules($position, $style);
$modules = ob_get_contents();
ob_end_clean();
}
return $modules;
}
示例2: mosLoadModules
<?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>
示例3: str_replace
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>
示例4: mosLoadModules
<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>
示例5: artxModules
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 . '"' : '') . ' />';
}
示例6: mosLoadModules
<?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>
示例7: mosLoadModules
<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>
示例8: mosLoadModules
?>
/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>
示例9: mosShowHead
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>
示例10: mosLoadModules
<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>
示例11: mosMainBody
<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>
示例12: array
}
//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");