当前位置: 首页>>代码示例>>PHP>>正文


PHP NUIMacros类代码示例

本文整理汇总了PHP中NUIMacros的典型用法代码示例。如果您正苦于以下问题:PHP NUIMacros类的具体用法?PHP NUIMacros怎么用?PHP NUIMacros使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了NUIMacros类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

	public function __construct()
	{
		$this->parser = new NParser;
		NCoreMacros::install($this->parser);
		$this->parser->addMacro('cache', new NCacheMacro($this->parser));
		NUIMacros::install($this->parser);
		NFormMacros::install($this->parser);
	}
开发者ID:rinaldinoor,项目名称:scoreBoard,代码行数:8,代码来源:Engine.php

示例2: __construct

	public function __construct()
	{
		$this->parser = new NParser;
		$this->compiler = new NLatteCompiler;
		$this->compiler->defaultContentType = NLatteCompiler::CONTENT_XHTML;

		NCoreMacros::install($this->compiler);
		$this->compiler->addMacro('cache', new NCacheMacro($this->compiler));
		NUIMacros::install($this->compiler);
		NFormMacros::install($this->compiler);
	}
开发者ID:krecek,项目名称:nrsn,代码行数:11,代码来源:Engine.php

示例3: elseif

<?php endif ?>
        </td>
    </tr>
<?php $iterations++; endforeach ;endif ?>
</table>
<?php
}}

//
// end of blocks
//

// template extending and snippets support

$_l->extends = 'base.latte'; $template->_extended = $_extended = TRUE;


if ($_l->extends) {
	ob_start();

} elseif (!empty($_control->snippetMode)) {
	return NUIMacros::renderSnippets($_control, $_l, get_defined_vars());
}

//
// main template
//
 if ($_l->extends) { ob_end_clean(); return NCoreMacros::includeTemplate($_l->extends, get_defined_vars(), $template)->render(); }
call_user_func(reset($_l->blocks['sekce']), $_l, get_defined_vars())  ?>

<?php call_user_func(reset($_l->blocks['obsah']), $_l, get_defined_vars()) ; 
开发者ID:krecek,项目名称:nrsn,代码行数:31,代码来源:_Redakce.default.latte-6e11368b7878542160e289c9be986a18.php

示例4: _lb0547d0d2a9_sectionC

 function _lb0547d0d2a9_sectionC($_l, $_args)
 {
     extract($_args);
     NUIMacros::callBlock($_l, 'content', $template->getParams());
 }
开发者ID:ssuhss,项目名称:Begara,代码行数:5,代码来源:_Templates._layout.php-b1fc9feb1f6eb55981b3e1ce8ed631ab.php

示例5: htmlSpecialChars

<![endif]-->
        <link rel="stylesheet" media="screen,projection,tv" href="<?php echo htmlSpecialChars($basePath) ?>/css/ui-lightness/jquery-ui-1.10.3.custom.css" />
        <link rel="stylesheet" media="print" href="<?php echo htmlSpecialChars($basePath) ?>/css/print.css" />
       	<link rel="shortcut icon" href="<?php echo htmlSpecialChars($basePath) ?>/favicon.ico" />
	<?php call_user_func(reset($_l->blocks['head']), $_l, get_defined_vars())  ?>

    </head>

    <body<?php if ($debugMod): ?> class="demo"<?php endif ?>>
        <div id="container">
            <script> document.documentElement.className+=' js' </script>
<?php if ($user->isLoggedIn()): ?>
            <div class="top inner"><span id="pos"><a class="home" title="Home" href="<?php echo htmlSpecialChars($_control->link("Homepage:")) ?>
"><span>&nbsp;</span></a></span>
                <div class="user">
                    <span class="icon_user"><a href="<?php echo htmlSpecialChars($_control->link("Osoby:prehled", array($user->getIdentity()->id))) ?>
"><?php echo NTemplateHelpers::escapeHtml($user->getIdentity()->username, ENT_NOQUOTES) ?></a></span>  |
                    <a href="<?php echo htmlSpecialChars($_control->link("odhlasit!")) ?>
">Odhlásit se</a>
                </div>

            </div>
            <div class="bgline"><div class="span3">&nbsp;</div><div class="span9 hlmenu"><?php $_ctrl = $_control->getComponent("hlavniMenu"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ?></div><div class="cl">&nbsp;</div></div>
<?php endif ?>

<?php NUIMacros::callBlock($_l, 'content', $template->getParameters()) ?>
            <div class="footer cl"></div>
        </div>
    </body>
</html>
开发者ID:krecek,项目名称:nrsn,代码行数:30,代码来源:_templates._layout.latte-7f894fa5740ded17d9df16cd3d6bc6f6.php

示例6: _lba4ace7fd9e_sectionC

 function _lba4ace7fd9e_sectionC($_l, $_args)
 {
     extract($_args);
     NUIMacros::callBlock($_l, 'content', $template->getParams());
 }
开发者ID:ssuhss,项目名称:Begara,代码行数:5,代码来源:_Templates._layout.php-b1fc9feb1f6eb55981b3e1ce8ed631ab.php

示例7:

			<div id="content" role="main">
<?php 
if (isset($themeOptions->advertising->showBox2)) {
    ?>
	            <div id="advertising-box-2" class="advertising-box">
	                <?php 
    echo $themeOptions->advertising->box2Content;
    ?>

	            </div>
<?php 
}
?>
				
<?php 
NUIMacros::callBlock($_l, 'content', $template->getParams());
?>
			</div><!-- /#content -->

		</div><!-- /#primary -->

<?php 
if (isset($fullwidth)) {
} else {
    ?>

<?php 
    if (is_front_page()) {
        ?>
				<div id="secondary" class="widget-area" role="complementary">
<?php 
开发者ID:kivivuori,项目名称:jotain,代码行数:31,代码来源:_Templates._layout.php-a455fdd3a795b19c32d827b27647c78d.php

示例8: _lbc90e4cec0c_sectionC

 function _lbc90e4cec0c_sectionC($_l, $_args)
 {
     extract($_args);
     NUIMacros::callBlock($_l, 'content', $template->getParams());
 }
开发者ID:ssuhss,项目名称:Begara,代码行数:5,代码来源:_Templates._layout.php-bd5e3a83716367de428b04c67d01442c.php


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