本文整理汇总了PHP中NCoreMacros类的典型用法代码示例。如果您正苦于以下问题:PHP NCoreMacros类的具体用法?PHP NCoreMacros怎么用?PHP NCoreMacros使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了NCoreMacros类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _lbbee78bef56_content
function _lbbee78bef56_content($_l, $_args)
{
extract($_args);
?>
<section class="section content-section blog-section not-found-section">
<div id="container" class="subpage blog 404 wrapper <?php
if (is_active_sidebar("blog-sidebar")) {
} else {
?>
onecolumn<?php
}
?>
">
<div id="content" class="entry-content clearfix" role="main">
<div class="content-wrapper">
<?php
NCoreMacros::includeTemplate("snippets/nothing-found.php", $template->getParams(), $_l->templates['pemu234rbc'])->render();
?>
</div> <!-- /.content-wrapper -->
</div> <!-- /#content -->
</div> <!-- /#container -->
</section>
<?php
}
示例2: __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);
}
示例3: if
if (!function_exists($_l->blocks['pravy_blok'][] = '_lb6fc8a9f5af_pravy_blok')) { function _lb6fc8a9f5af_pravy_blok($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
?> <div class="box-3 hidden-print">
<!-- pravý blok-->
<?php $_ctrl = $_control->getComponent("vyhledavani"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;$_ctrl = $_control->getComponent("neprehlednete"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;$_ctrl = $_control->getComponent("post"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;NCoreMacros::includeTemplate("sponzori.latte", $template->getParameters(), $_l->templates['jm4gabvjw5'])->render() ?>
<!-- -->
<?php call_user_func(reset($_l->blocks['scripts']), $_l, get_defined_vars()) ?>
</div>
<?php
}}
示例4: __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);
}
示例5: list
<?php //netteCache[01]000376a:2:{s:4:"time";s:21:"0.06762100 1430968071";s:9:"callbacks";a:2:{i:0;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:9:"checkFile";}i:1;s:87:"/home/svn/repos/gymfed/trunk/app/WebModule/templates/Kalendar/terminovaListinaPdf.latte";i:2;i:1415377191;}i:1;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:10:"checkConst";}i:1;s:20:"NFramework::REVISION";i:2;s:30:"dc83a21 released on 2013-07-11";}}}?><?php
// source file: /home/svn/repos/gymfed/trunk/app/WebModule/templates/Kalendar/terminovaListinaPdf.latte
?><?php
// prolog NCoreMacros
list($_l, $_g) = NCoreMacros::initRuntime($template, '09g6rzwbzj')
;
// prolog NUIMacros
// snippets support
if (!empty($_control->snippetMode)) {
return NUIMacros::renderSnippets($_control, $_l, get_defined_vars());
}
//
// main template
//
?>
<link rel="stylesheet" media="print" href="<?php echo htmlSpecialChars($basePath) ?>/css/pdf.css" />
<!--mpdf
<?php $iterations = 0; foreach ($sporty as $zkr=>$sport): if ($zkr=='XX'): ?>
<pageheader name="XX" content-right="Termínová listina" header-style="font-size: 9pt; font-weight: bold; color: grey; font-style:italic;"/>
<?php else: ?>
<pageheader name="<?php echo NTemplateHelpers::escapeHtmlComment($zkr) ?>" content-right="<?php echo NTemplateHelpers::escapeHtmlComment($template->firstUpper($sport->sport)) ?>" header-style="font-size: 9pt; font-weight: bold; color: grey; font-style:italic;"/>
<?php endif ;$iterations++; endforeach ?>
<pagefooter name="paticka" content-left="Termínová listina" content-right="{PAGENO} / {nb}" footer-style="font-size: 9pt; font-weight: bold; color: grey; font-style:italic;"/>
mpdf-->
<div style="text-align:center;">
<span style="text-transform: uppercase; letter-spacing: 1px; font-weight: bold; font-size: 150%;">Česká gymnastická federace</span><br />
<span><i>Zátopkova 100/2, 160 17 Praha 6, tel./fax: 242 429 260, e-mail: cgf@gymfed.cz</i></span><br /><br /><br /><br />
开发者ID:krecek,项目名称:nrsn,代码行数:31,代码来源:_Kalendar.terminovaListinaPdf.latte-9e1def86fe8aa10066800dcf6715c2e4.php
示例6: list
<?php //netteCache[01]000361a:2:{s:4:"time";s:21:"0.79017400 1429781019";s:9:"callbacks";a:2:{i:0;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:9:"checkFile";}i:1;s:72:"/home/svn/repos/gymfed/trunk/app/GisModule/templates/M2m/startovka.latte";i:2;i:1428681070;}i:1;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:10:"checkConst";}i:1;s:20:"NFramework::REVISION";i:2;s:30:"dc83a21 released on 2013-07-11";}}}?><?php
// source file: /home/svn/repos/gymfed/trunk/app/GisModule/templates/M2m/startovka.latte
?><?php
// prolog NCoreMacros
list($_l, $_g) = NCoreMacros::initRuntime($template, 'hf5gnkr7ts')
;
// prolog NUIMacros
// snippets support
if (!empty($_control->snippetMode)) {
return NUIMacros::renderSnippets($_control, $_l, get_defined_vars());
}
//
// main template
//
$netteHttpResponse->setHeader("Content-Type", 'application/xml') ?>
<<?php ?>?xml version="1.0" encoding="UTF-8"?>
<gis>
<?php $iterations = 0; foreach ($iterator = $_l->its[] = new NSmartCachingIterator($kategorie) as $id=>$kat): ?>
<kategorie>
<id><?php echo NTemplateHelpers::escapeXml($id) ?></id>
<nazev><?php echo NTemplateHelpers::escapeXml($kat->nazev) ?></nazev>
<sport><?php echo NTemplateHelpers::escapeXml($kat->sport) ?></sport>
<typ><?php if ($kat->druzstvo==1): ?>jednotlivci<?php else: ?>družstva<?php endif ?></typ>
<?php $iterations = 0; foreach ($iterator = $_l->its[] = new NSmartCachingIterator($kat['prihlasky']) as $prihlaska): ?>
<?php if ($iterator->isFirst()): if ($kat->druzstvo<>1): ?>
<druzstvo>
<id><?php echo NTemplateHelpers::escapeXml($prihlaska['druzstvo']) ?></id>
示例7: list
<?php //netteCache[01]000364a:2:{s:4:"time";s:21:"0.64700100 1429520478";s:9:"callbacks";a:2:{i:0;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:9:"checkFile";}i:1;s:75:"/home/svn/repos/gymfed/trunk/app/WebModule/components/webMenu/webMenu.latte";i:2;i:1398666033;}i:1;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:10:"checkConst";}i:1;s:20:"NFramework::REVISION";i:2;s:30:"dc83a21 released on 2013-07-11";}}}?><?php
// source file: /home/svn/repos/gymfed/trunk/app/WebModule/components/webMenu/webMenu.latte
?><?php
// prolog NCoreMacros
list($_l, $_g) = NCoreMacros::initRuntime($template, 'a2t4mr3c7j')
;
// prolog NUIMacros
// snippets support
if (!empty($_control->snippetMode)) {
return NUIMacros::renderSnippets($_control, $_l, get_defined_vars());
}
//
// main template
//
?>
<ul class="menu naradek">
<li><a href="<?php echo htmlSpecialChars($_presenter->link("Homepage:default")) ?>">Hlavní strana</a></li>
<li><a href="<?php echo htmlSpecialChars($_presenter->link("Homepage:rubriky", array('o-nas'))) ?>">O nás</a></li>
<li><a href="<?php echo htmlSpecialChars($_presenter->link("Homepage:rubriky", array('media'))) ?>">Media</a></li>
<li><a href="<?php echo htmlSpecialChars($_presenter->link("Clanky:default", array('3-kontakt'))) ?>">Kontakt</a></li>
<li><a href="<?php echo htmlSpecialChars($_presenter->link("Homepage:rubriky", array('o-nas/zpravodaj-cgf'))) ?>">Zpravodaj ČGF</a></li>
<li><a href="https://gis.gymfed.cz" target="_blank">GIS</a></li>
</ul>
示例8: list
<?php //netteCache[01]000364a:2:{s:4:"time";s:21:"0.76541100 1429520478";s:9:"callbacks";a:2:{i:0;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:9:"checkFile";}i:1;s:75:"/home/svn/repos/gymfed/trunk/app/WebModule/components/podmenu/podmenu.latte";i:2;i:1396269845;}i:1;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:10:"checkConst";}i:1;s:20:"NFramework::REVISION";i:2;s:30:"dc83a21 released on 2013-07-11";}}}?><?php
// source file: /home/svn/repos/gymfed/trunk/app/WebModule/components/podmenu/podmenu.latte
?><?php
// prolog NCoreMacros
list($_l, $_g) = NCoreMacros::initRuntime($template, 'agxft3dafj')
;
// prolog NUIMacros
// snippets support
if (!empty($_control->snippetMode)) {
return NUIMacros::renderSnippets($_control, $_l, get_defined_vars());
}
//
// main template
//
?>
<h2>Menu</h2>
<ul class="naradek blok">
<?php $iterations = 0; foreach ($items as $item): ?>
<li><a href="<?php echo htmlSpecialChars($item['url']) ?>"><?php echo NTemplateHelpers::escapeHtml($item['nazev'], ENT_NOQUOTES) ?></a></li>
<?php $iterations++; endforeach ?>
</ul>
示例9: list
<?php //netteCache[01]000374a:2:{s:4:"time";s:21:"0.67031600 1429802538";s:9:"callbacks";a:2:{i:0;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:9:"checkFile";}i:1;s:85:"/home/svn/repos/gymfed/trunk/app/GisModule/components/PrehledPrav/nastaveniPrav.latte";i:2;i:1384333686;}i:1;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:10:"checkConst";}i:1;s:20:"NFramework::REVISION";i:2;s:30:"dc83a21 released on 2013-07-11";}}}?><?php
// source file: /home/svn/repos/gymfed/trunk/app/GisModule/components/PrehledPrav/nastaveniPrav.latte
?><?php
// prolog NCoreMacros
list($_l, $_g) = NCoreMacros::initRuntime($template, 'cjfwhxuzzu')
;
// prolog NUIMacros
// snippets support
if (!empty($_control->snippetMode)) {
return NUIMacros::renderSnippets($_control, $_l, get_defined_vars());
}
//
// main template
//
?>
<table>
<tr>
<th>Jméno:</th>
<td><?php echo NTemplateHelpers::escapeHtml($osoba['jmeno'], ENT_NOQUOTES) ?>
<?php echo NTemplateHelpers::escapeHtml($osoba['prijmeni'], ENT_NOQUOTES) ?></td>
</tr>
<tr>
<th>Evidenční číslo:</th>
<td><?php echo NTemplateHelpers::escapeHtml($osoba['id'], ENT_NOQUOTES) ?></td>
</tr>
<tr>
<th>Rok narození:</th>
开发者ID:krecek,项目名称:nrsn,代码行数:31,代码来源:_PrehledPrav.nastaveniPrav.latte-311aa1097556dcf08ed40dcc2618ca2e.php
示例10: _lbbd8dd06e01_content
function _lbbd8dd06e01_content($_l, $_args)
{
extract($_args);
?>
<section class="section content-section blog-section category-section">
<div id="container" class="subpage blog category wrapper <?php
if (is_active_sidebar("blog-sidebar")) {
} else {
?>
onecolumn<?php
}
?>
">
<?php
if ($posts) {
?>
<div id="content" class="entry-content clearfix" role="main">
<div class="content-wrapper">
<header class="subpage-header">
<h1 class="page-title">
<?php
echo NTemplateHelpers::escapeHtml(__('Category Archives:', 'ait'), ENT_NOQUOTES);
?>
<span><?php
echo NTemplateHelpers::escapeHtml($category->title, ENT_NOQUOTES);
?>
</span>
</h1>
<?php
if (strlen($category->description) !== 0) {
?>
<div class="category-archive-meta"><?php
echo $category->description;
?>
</div>
<?php
}
?>
</header>
<?php
NCoreMacros::includeTemplate("snippets/content-nav.php", array('location' => 'nav-above') + $template->getParams(), $_l->templates['yadarop70c'])->render();
?>
<?php
NCoreMacros::includeTemplate("snippets/content-loop.php", array('posts' => $posts) + $template->getParams(), $_l->templates['yadarop70c'])->render();
?>
<?php
NCoreMacros::includeTemplate("snippets/content-nav.php", array('location' => 'nav-below') + $template->getParams(), $_l->templates['yadarop70c'])->render();
?>
</div> <!-- /.content-wrapper -->
</div> <!-- /#content -->
<?php
if (is_active_sidebar("blog-sidebar")) {
?>
<div class="page-sidebar blog-sidebar right clearfix">
<?php
dynamic_sidebar('blog-sidebar');
?>
</div>
<?php
}
?>
<?php
} else {
?>
<div id="content" class="entry-content" role="main">
<div class="content-wrapper">
<?php
NCoreMacros::includeTemplate("snippets/nothing-found.php", $template->getParams(), $_l->templates['yadarop70c'])->render();
?>
</div> <!-- /.content-wrapper -->
</div> <!-- /#content -->
<?php
}
?>
</div> <!-- /#container -->
</section>
<?php
}
示例11: _lb9392ba4007__sectionD
function _lb9392ba4007__sectionD($_l, $_args)
{
extract($_args);
NCoreMacros::includeTemplate("snippets/products.php", array('options' => $post->options('tabs')) + $template->getParams(), $_l->templates['kwjpuxbgc0'])->render();
}
示例12: array_pop
}
$iterations++;
}
array_pop($_l->its);
$iterator = end($_l->its);
echo "</li>";
echo str_repeat("</ul></li>", $depth - 1);
if (isset($a["end"])) {
echo $a["end"];
} else {
echo "</ol>";
}
?>
<?php
NCoreMacros::includeTemplate("snippets/comments-pagination.php", array('location' => 'below') + $template->getParams(), $_l->templates['iw57ute96m'])->render();
?>
<?php
} elseif (!$post->hasOpenComments && $post->type != 'page' && $post->hasSupportFor('comments')) {
?>
<p class="nocomments">Comments are closed.</p>
<?php
}
?>
<?php
comment_form(array());
?>
示例13: list
<?php //netteCache[01]000386a:2:{s:4:"time";s:21:"0.99912400 1429520478";s:9:"callbacks";a:2:{i:0;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:9:"checkFile";}i:1;s:97:"/home/svn/repos/gymfed/trunk/app/WebModule/components/drobeckovaNavigace/drobeckovaNavigace.latte";i:2;i:1396870187;}i:1;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:10:"checkConst";}i:1;s:20:"NFramework::REVISION";i:2;s:30:"dc83a21 released on 2013-07-11";}}}?><?php
// source file: /home/svn/repos/gymfed/trunk/app/WebModule/components/drobeckovaNavigace/drobeckovaNavigace.latte
?><?php
// prolog NCoreMacros
list($_l, $_g) = NCoreMacros::initRuntime($template, '0w44ps6nj0')
;
// prolog NUIMacros
// snippets support
if (!empty($_control->snippetMode)) {
return NUIMacros::renderSnippets($_control, $_l, get_defined_vars());
}
//
// main template
//
?>
<div class="naradek mini">
<?php $iterations = 0; foreach ($iterator = $_l->its[] = new NSmartCachingIterator($items) as $item): ?>
<a href="<?php echo htmlSpecialChars($_presenter->link($item['url'], array($item['parametry']))) ?>
"><?php echo NTemplateHelpers::escapeHtml($item['nazev'], ENT_NOQUOTES) ?></a> <?php if (!$iterator->isLast()): ?>
»<?php endif ?>
<?php $iterations++; endforeach; array_pop($_l->its); $iterator = end($_l->its) ?>
</div>
开发者ID:krecek,项目名称:nrsn,代码行数:27,代码来源:_drobeckovaNavigace.drobeckovaNavigace.latte-641b1299f927877ee35064ac03b1ce40.php
示例14: list
<?php //netteCache[01]000393a:2:{s:4:"time";s:21:"0.88763000 1429785167";s:9:"callbacks";a:2:{i:0;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:9:"checkFile";}i:1;s:103:"/home/svn/repos/gymfed/trunk/app/WebModule/components/seznamOstatnichPriloh/seznamOstatnichPriloh.latte";i:2;i:1396434155;}i:1;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:10:"checkConst";}i:1;s:20:"NFramework::REVISION";i:2;s:30:"dc83a21 released on 2013-07-11";}}}?><?php
// source file: /home/svn/repos/gymfed/trunk/app/WebModule/components/seznamOstatnichPriloh/seznamOstatnichPriloh.latte
?><?php
// prolog NCoreMacros
list($_l, $_g) = NCoreMacros::initRuntime($template, 'g93hc68ezy')
;
// prolog NUIMacros
// snippets support
if (!empty($_control->snippetMode)) {
return NUIMacros::renderSnippets($_control, $_l, get_defined_vars());
}
//
// main template
//
if ($prilohy): ?>
<h3>Ke stažení:</h3>
<div class="prilohy">
<ul>
<?php $iterations = 0; foreach ($prilohy as $adresa=>$priloha): ?>
<li><img src="<?php echo htmlSpecialChars($basePath) ?>/<?php echo htmlSpecialChars($priloha['nahled']) ?>
" alt="" title="zobrazit" /> <a href="<?php echo htmlSpecialChars($basePath) ?>/<?php echo htmlSpecialChars($adresa) ?>
"><?php echo NTemplateHelpers::escapeHtml($priloha['nazev'], ENT_NOQUOTES) ?></a></li>
<?php $iterations++; endforeach ?>
</ul>
</div>
<?php endif ;
开发者ID:krecek,项目名称:nrsn,代码行数:30,代码来源:_seznamOstatnichPriloh.seznamOstatnichPriloh.latte-f8aba80c07d8daff8e51d73b657cf139.php
示例15: list
<?php //netteCache[01]000357a:2:{s:4:"time";s:21:"0.21944800 1429609577";s:9:"callbacks";a:2:{i:0;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:9:"checkFile";}i:1;s:68:"/home/svn/repos/gymfed/trunk/app/GisModule/templates/M2m/error.latte";i:2;i:1419947299;}i:1;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:10:"checkConst";}i:1;s:20:"NFramework::REVISION";i:2;s:30:"dc83a21 released on 2013-07-11";}}}?><?php
// source file: /home/svn/repos/gymfed/trunk/app/GisModule/templates/M2m/error.latte
?><?php
// prolog NCoreMacros
list($_l, $_g) = NCoreMacros::initRuntime($template, 'ri8tloj865')
;
// prolog NUIMacros
// snippets support
if (!empty($_control->snippetMode)) {
return NUIMacros::renderSnippets($_control, $_l, get_defined_vars());
}
//
// main template
//
$netteHttpResponse->setHeader("Content-Type", 'application/xml') ?>
<<?php ?>?xml version="1.0" encoding="UTF-8"?>
<gis>
<error><?php echo NTemplateHelpers::escapeXml($error) ?></error>
</gis>