本文整理汇总了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);
}
示例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);
}
示例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()) ;
示例4: _lb0547d0d2a9_sectionC
function _lb0547d0d2a9_sectionC($_l, $_args)
{
extract($_args);
NUIMacros::callBlock($_l, 'content', $template->getParams());
}
示例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> </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"> </div><div class="span9 hlmenu"><?php $_ctrl = $_control->getComponent("hlavniMenu"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ?></div><div class="cl"> </div></div>
<?php endif ?>
<?php NUIMacros::callBlock($_l, 'content', $template->getParameters()) ?>
<div class="footer cl"></div>
</div>
</body>
</html>
示例6: _lba4ace7fd9e_sectionC
function _lba4ace7fd9e_sectionC($_l, $_args)
{
extract($_args);
NUIMacros::callBlock($_l, 'content', $template->getParams());
}
示例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());
}