本文整理汇总了PHP中mosCountModules函数的典型用法代码示例。如果您正苦于以下问题:PHP mosCountModules函数的具体用法?PHP mosCountModules怎么用?PHP mosCountModules使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了mosCountModules函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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
<tr>
<td width="50%" valign="top">
<?php
mosLoadModules('user1');
?>
</td>
<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>
示例3: mosLoadModules
}
?>
</div>
</div>
</div>
<div id="left_outer">
<div id="left_inner">
<?php
mosLoadModules('left', -2);
?>
</div>
</div>
<div id="content_outer">
<div id="content_inner">
<?php
if (mosCountModules('banner')) {
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">
<tr>
<td>
<div id="banner_inner">
<img src="<?php
echo $mosConfig_live_site;
?>
/templates/rhuk_solarflare_ii/images/advertisement.png" alt="advertisement.png, 0 kB" title="advertisement" border="0" height="8" width="468" /><br />
<?php
mosLoadModules('banner', -1);
?>
<br />
</div>
<div id="poweredby_inner">
示例4: mosLoadModules
mosLoadModules('newsflash');
?>
<?php
mosLoadModules('right');
?>
<?php
mosLoadModules('user4');
?>
</div>
<!-- end right column. -->
</div>
<!-- start banner. position:banner -->
<div class="clear">
</div>
<?php
if (mosCountModules('banner') >= 1) {
?>
<div id="banner">
<div align="left">
<?php
mosLoadModules('banner');
?>
</div>
</div>
<?php
} else {
?>
<div id="blackline">
</div>
<?php
}
示例5: artxCountModules
function artxCountModules($document, $position)
{
if (null == $document) {
// for Joomla 1.0
return mosCountModules($position);
}
// for Joomla 1.5
return $document->countModules($position);
}
示例6: mosLoadModules
mosLoadModules('user9', -2);
?>
</td>
<?php
}
?>
</tr>
</table>
</div>
<?php
}
?>
</td>
<?php
if (mosCountModules('right')) {
?>
<td class="right">
<div class="sidepad">
<?php
mosLoadModules('right', -2);
?>
</div>
</td>
<?php
}
?>
</tr>
</table>
<?php
if (!(vgfGet('x4') === true && LoggedIn())) {
示例7: explode
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode('=', _ISO);
// xml prolog
echo '<?xml version="1.0" encoding="' . $iso[1] . '"?' . '>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
mosShowHead();
if ($my->id) {
initEditor();
}
$collspan_offset = mosCountModules('right') ? 2 : 1;
//right based combos
if (mosCountModules('user1', 'user2') and empty($_REQUEST['task']) || $_REQUEST['task'] != 'edit') {
$user1 = 1;
$user2 = 2;
}
?>
<meta http-equiv="Content-Language" content="en-us">
<link href="<?php
echo $mosConfig_live_site;
?>
/templates/jm_medical/css/template_css.css" type="text/css" rel="stylesheet" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="900" id="table1" class="main">
示例8: strftime
?>
</td>
<td align="right"> </td>
<td align="right" width="180"><?php
echo strftime(_DATE_FORMAT_LC, time() + $mosConfig_offset * 60 * 60);
?>
</td>
</tr>
</table>
</td></tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<?php
if (mosCountModules("left")) {
?>
<td width="178">
<table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr><td><?php
mosLoadModules('left', "-3");
?>
</td></tr>
<tr><td><?php
mosLoadModules('user1', "-3");
?>
</td></tr>
</table>
</td>
<?php
}
示例9: mosPathWay
<div id="content">
<table class="shadow">
<tr>
<td class="c1">
<div id="pathway">
<div class="space">
<?php
mosPathWay();
?>
</div>
</div>
<div class="c_tl">
<div class="c_bl">
<div class="space">
<?php
if (mosCountModules(user1) and mosCountModules(user2)) {
?>
<table>
<tr>
<td class="user1">
<div class="user_bg"><?php
mosLoadModules('user1', -3);
?>
</div>
</td>
<td><div class="column_separator"></div></td>
<td class="user2">
<div class="user_bg"><?php
mosLoadModules('user2', -3);
?>
</div>
示例10: ehMain
function ehMain()
{
$hN = $this->h['Links'] . ($this->h['Links'] == '' ? '' : '<br/>') . $this->h['NavBar'] . ($this->h['NavBar'] == '' ? '' : '<br>');
?>
<div class="hero-unit"><h1><?php
echo $this->PageSubtitle;
?>
</h1></div>
<?php
ehErrors();
if (mosCountModules('commands')) {
$commands = ehModuleCommands('commands');
if (!empty($commands)) {
$commands = '
<div class="container" style="padding-bottom:15px;">
<div class="span' . ($left === false ? '12' : '9') . '">' . $commands . '
</div>
</div>';
} else {
$commands = '';
}
}
echo $commands;
if (is_null($this->table_obj_child)) {
echo $this->h['ButtonBar'];
}
echo $this->ehMainModeComment($this->mode);
echo $this->h['Content'];
foreach ($this->h['Extra'] as $EKey => $EContent) {
echo $EContent;
}
}
示例11: array
case 'credits':
include KUNENA_ABSSOURCESPATH . 'kunena.credits.php';
break;
#########################################################################################
#########################################################################################
default:
if (file_exists(KUNENA_ABSTMPLTPATH . '/listcat.php')) {
include KUNENA_ABSTMPLTPATH . '/listcat.php';
} else {
include KUNENA_ABSPATH . '/template/default/listcat.php';
}
break;
}
//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>
示例12: mosLoadModules
?>
/templates/allm_classy/images/main_left.gif" width="25" height="14" /></td>
<td valign="top" bgcolor="#DBE7F2">
<?php
include_once "mainbody.php";
?>
</td>
<td width="25" valign="top" background="<?php
echo $mosConfig_live_site;
?>
/templates/allm_classy/images/main_right.gif"><img src="<?php
echo $mosConfig_live_site;
?>
/templates/allm_classy/images/main_right.gif" width="25" height="14" /></td>
<?php
if (mosCountModules("right")) {
?>
<td width="170" align="center" valign="top" bgcolor="#7EA1BD"><table width="157" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<?php
mosLoadModules('right');
?>
<?php
mosLoadModules('user2');
?>
</td>
</tr>
</table></td>
<?php
}
示例13: loadMenu
</li>
</ul>
<?php
}
?>
<?php
echo loadMenu();
?>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<?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>';
示例14: mosMainBody
?>
</td>
<?php
}
?>
<td class="templatemain">
<?php
echo mosMainBody();
?>
</td>
</tr>
</table>
<?php
if (mosCountModules('footer')) {
?>
<div class="templatefooter"><?php
echo mosLoadModules('footer');
?>
</div>
<?php
}
?>
</div>
</center>
<?php
include 'androHTMLFoot.php';
?>
</body>
</html>