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

PHP mosLoadModules函数代码示例

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

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


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


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


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


示例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 . '"' : '') . ' />';
 }
开发者ID:ercankuru,项目名称:hattrick,代码行数:30,代码来源:functions.php


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


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


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


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


示例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">&nbsp;
	  </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">&nbsp;
	  </TD>
		<TD COLSPAN=4 valign="top" background="templates/bluedream/images/bluedream_08.gif"><table width="99%" border="0">
		  <tr>
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:index.php


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


示例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 . '&amp;func=fb_rss&amp;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");
开发者ID:patricmutwiri,项目名称:joomlaclube,代码行数:31,代码来源:kunena.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP mosMail函数代码示例发布时间:2022-05-15
下一篇:
PHP mosGetParam函数代码示例发布时间: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