本文整理汇总了PHP中mosMainBody函数的典型用法代码示例。如果您正苦于以下问题:PHP mosMainBody函数的具体用法?PHP mosMainBody怎么用?PHP mosMainBody使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了mosMainBody函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: mosLoadModules
<?php
if (mosCountModules('left')) {
$left = mosLoadModules('left', -2);
if (is_null($left)) {
$left = false;
}
if ($left) {
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");
示例2: artxComponent
function artxComponent()
{
// for Joomla 1.0
ob_start();
mosMainBody();
$content = ob_get_clean();
if (false === strpos($content, '<div class="art-Post">')) {
$title = null;
if (preg_match('~<div\\s+class="(componentheading[^"]*)"([^>]*)>([^<]+)</div>~', $content, $matches, PREG_OFFSET_CAPTURE)) {
$content = substr($content, 0, $matches[0][1]) . substr($content, $matches[0][1] + strlen($matches[0][0]));
$title = '<span class="' . $matches[1][0] . '"' . $matches[2][0] . '>' . $matches[3][0] . '</span>';
}
return artxPost($title, $content);
}
return $content;
}
示例3: mosLoadModules
<td>
<?php
mosLoadModules('top');
?>
</td>
</tr>
</table>
<?php
}
?>
<br>
<table width="96%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<?php
mosMainBody();
if (file_exists($mosConfig_absolute_path . "/components/com_comments/comments.php")) {
require_once $mosConfig_absolute_path . "/components/com_comments/comments.php";
}
?>
</td>
</tr>
</table>
<br>
<?php
if (mosCountModules("bottom") > 0) {
?>
<table width="96%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<?php
示例4: mosMainBody
></script>
<?php
}
?>
</head>
<body>
<div class="x6menu">
<?php
include 'x6menuTop.php';
?>
</div>
<div style="clear: both"></div>
<div class="x6body">
<div class="x6main">
<?php
echo mosMainBody();
?>
</div>
</div>
<div class="x6footer">
<span style="float: left">Produced by Secure Data Software</span>
<span style="float: right">Server time: <?php
echo date('h:i:s a', time());
?>
</span>
</div>
<?php
include 'androHTMLFoot.php';
?>
</body>