• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP mosCountModules函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;
}
开发者ID:patricmutwiri,项目名称:joomlaclube,代码行数:11,代码来源:mosloadposition.php


示例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>
开发者ID:jwest00724,项目名称:mambo,代码行数:31,代码来源:index.green.php


示例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">
开发者ID:allenahner,项目名称:mizzou,代码行数:31,代码来源:index.php


示例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 
}
开发者ID:jwest00724,项目名称:mambo,代码行数:31,代码来源:index.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);
 }
开发者ID:ercankuru,项目名称:hattrick,代码行数:9,代码来源:functions.php


示例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())) {
开发者ID:KlabsTechnology,项目名称:andro,代码行数:31,代码来源:index.php


示例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">
开发者ID:koery,项目名称:Vcanbuy,代码行数:31,代码来源:index.php


示例8: strftime

?>
</td>
<td align="right">&nbsp;</td>
<td align="right" width="180"><?php 
echo strftime(_DATE_FORMAT_LC, time() + $mosConfig_offset * 60 * 60);
?>
&nbsp;</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 
}
开发者ID:jwest00724,项目名称:mambo,代码行数:31,代码来源:index.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>
开发者ID:RangerWalt,项目名称:ecci,代码行数:31,代码来源:index.php


示例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;
        }
    }
开发者ID:KlabsTechnology,项目名称:andro,代码行数:33,代码来源:x_table2.php


示例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>
开发者ID:patricmutwiri,项目名称:joomlaclube,代码行数:31,代码来源:kunena.php


示例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 
}
开发者ID:cwcw,项目名称:cms,代码行数:31,代码来源:index.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>';
开发者ID:KlabsTechnology,项目名称:andro,代码行数:31,代码来源:index.php


示例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>
开发者ID:KlabsTechnology,项目名称:andro,代码行数:31,代码来源:index.php



注:本文中的mosCountModules函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP mosErrorAlert函数代码示例发布时间:2022-05-15
下一篇:
PHP mosArrayToInts函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap