示例#1
0
	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
0
文件: Engine.php 项目: krecek/nrsn
	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);
	}
<?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()) ; 
 function _lb0547d0d2a9_sectionC($_l, $_args)
 {
     extract($_args);
     NUIMacros::callBlock($_l, 'content', $template->getParams());
 }
<![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>
 function _lba4ace7fd9e_sectionC($_l, $_args)
 {
     extract($_args);
     NUIMacros::callBlock($_l, 'content', $template->getParams());
 }
			<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 
 function _lbc90e4cec0c_sectionC($_l, $_args)
 {
     extract($_args);
     NUIMacros::callBlock($_l, 'content', $template->getParams());
 }