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


PHP NCoreMacros::includeTemplate方法代码示例

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


在下文中一共展示了NCoreMacros::includeTemplate方法的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 
    }
开发者ID:ssuhss,项目名称:Begara,代码行数:30,代码来源:_Templates.404.php-afc161dc94512f8d58ada44440871ec5.php

示例2: 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
}}
开发者ID:krecek,项目名称:nrsn,代码行数:9,代码来源:_templates._layout.latte-2abf8da8d1ded21778ab2c44c0dcac39.php

示例3: _lb2ae0cf8578_sectionD

 function _lb2ae0cf8578_sectionD($_l, $_args)
 {
     extract($_args);
     NCoreMacros::includeTemplate("snippets/products.php", array('options' => $themeOptions->sections) + $template->getParams(), $_l->templates['zab63gd7v6'])->render();
 }
开发者ID:ssuhss,项目名称:Begara,代码行数:5,代码来源:_Templates._layout.php-b1fc9feb1f6eb55981b3e1ce8ed631ab.php

示例4: _lb569a2977b8_sectionD

 function _lb569a2977b8_sectionD($_l, $_args)
 {
     extract($_args);
     NCoreMacros::includeTemplate("snippets/products.php", array('options' => $themeOptions->sections) + $template->getParams(), $_l->templates['d824im22lt'])->render();
 }
开发者ID:ssuhss,项目名称:Begara,代码行数:5,代码来源:_Templates._layout.php-b1fc9feb1f6eb55981b3e1ce8ed631ab.php

示例5: dynamic_sidebar

<?php 
if (is_active_sidebar("footer-widgets")) {
    ?>
				<div id="footer-widgets" class="widget-area" role="complementary">
<?php 
    dynamic_sidebar('footer-widgets');
    ?>
				</div>
<?php 
}
?>

			</div>

<?php 
NCoreMacros::includeTemplate('snippets/branding-footer.php', $template->getParams(), $_l->templates['6h12xlrako'])->render();
?>

		</footer>

	</div><!-- #page -->

<?php 
wp_footer();
?>

	<?php 
echo WpLatteMacros::googleAnalyticsCode($themeOptions->general->ga_code);
?>

开发者ID:kivivuori,项目名称:jotain,代码行数:29,代码来源:_Templates.footer.php-43fac2180a8b28cec91e29ddc962303d.php

示例6: putRevSlider

<?php 
if ($headerType == 'slider') {
    if (function_exists('putRevSlider')) {
        putRevSlider($headerSlider);
    }
}
?>
				</div>
			</div>

<?php 
if (isset($isDirSingle)) {
    NCoreMacros::includeTemplate('snippets/map-single-javascript.php', $template->getParams(), $_l->templates['p43q75hso3'])->render();
} else {
    if ($headerType == 'map') {
        NCoreMacros::includeTemplate('snippets/map-javascript.php', $template->getParams(), $_l->templates['p43q75hso3'])->render();
    }
}
?>

			<div id="directory-search" data-interactive="<?php 
if (isset($themeOptions->search->enableInteractiveSearch)) {
    ?>
yes<?php 
} else {
    ?>
no<?php 
}
?>
">
				<div class="defaultContentWidth clearfix">
开发者ID:kivivuori,项目名称:jotain,代码行数:31,代码来源:_Templates.header.php-c7be931652957f2fec5d4f3448c6f6f3.php

示例7: unset

<?php 
        }
        ?>

<?php 
    }
}
//
// end of blocks
//
// template extending and snippets support
$_l->extends = true;
unset($_extends, $template->_extends);
if ($_l->extends) {
    ob_start();
} elseif (!empty($control->snippetMode)) {
    return NUIMacros::renderSnippets($control, $_l, get_defined_vars());
}
//
// main template
//
$_l->extends = $layout;
$sectionsOrder = isset($post->options('sections-order')->overrideGlobal) ? $post->options('sections-order')->sectionsOrder : null;
?>

<?php 
// template extending support
if ($_l->extends) {
    ob_end_clean();
    NCoreMacros::includeTemplate($_l->extends, get_defined_vars(), $template)->render();
}
开发者ID:ssuhss,项目名称:Begara,代码行数:31,代码来源:_Templates.page-servicos.php-e4759c4c84d58c135e15cc60be7a292d.php

示例8: _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 
    }
开发者ID:ssuhss,项目名称:Begara,代码行数:99,代码来源:_Templates.category.php-20b5ba3237c6d4867163d25de5f0e531.php

示例9: _lba3e8984406__sectionD

 function _lba3e8984406__sectionD($_l, $_args)
 {
     extract($_args);
     NCoreMacros::includeTemplate("snippets/products.php", array('options' => $post->options('tabs')) + $template->getParams(), $_l->templates['d17l81i8rg'])->render();
 }
开发者ID:ssuhss,项目名称:Begara,代码行数:5,代码来源:_Templates.page-fullwidth.php-320d66c0c68a4eb6b19b829e3bf2a65d.php

示例10: _lbc776462133__sectionD

 function _lbc776462133__sectionD($_l, $_args)
 {
     extract($_args);
     NCoreMacros::includeTemplate("snippets/products.php", array('options' => $post->options('tabs')) + $template->getParams(), $_l->templates['qua3fhiidj'])->render();
 }
开发者ID:ssuhss,项目名称:Begara,代码行数:5,代码来源:_Templates.single.php-b7d19f674e9bc828fe34d6cca001bd41.php

示例11: _lbe5d497be66_content

    function _lbe5d497be66_content($_l, $_args)
    {
        extract($_args);
        ?>
<article id="post-<?php 
        echo htmlSpecialChars($post->id);
        ?>
" class="<?php 
        echo htmlSpecialChars($post->htmlClasses);
        ?>
">

	<header class="entry-header">

		<h1 class="entry-title">
			<a href="<?php 
        echo htmlSpecialChars($post->permalink);
        ?>
" title="<?php 
        echo htmlSpecialChars(__('Permalink to', 'ait'));
        ?>
 <?php 
        echo htmlSpecialChars($post->title);
        ?>
" rel="bookmark"><?php 
        echo NTemplateHelpers::escapeHtml($post->title, ENT_NOQUOTES);
        ?>
</a>
		</h1>

	</header>
	
<?php 
        if ($post->thumbnailSrc) {
            ?>
	<a href="<?php 
            echo $post->thumbnailSrc;
            ?>
">
<?php 
            if (isset($fullwidth)) {
                ?>
		<div class="entry-thumbnail"><img src="<?php 
                echo TIMTHUMB_URL . "?" . http_build_query(array('src' => $post->thumbnailSrc, 'w' => 940, 'h' => 250), "", "&amp;");
                ?>
" alt="" /></div>
<?php 
            } else {
                ?>
		<div class="entry-thumbnail"><img src="<?php 
                echo TIMTHUMB_URL . "?" . http_build_query(array('src' => $post->thumbnailSrc, 'w' => 629, 'h' => 250), "", "&amp;");
                ?>
" alt="" /></div>
<?php 
            }
            ?>
	</a>
<?php 
        }
        ?>

	<div class="entry-content">
		<?php 
        echo $post->content;
        ?>

	</div>

</article><!-- /#post-<?php 
        echo NTemplateHelpers::escapeHtmlComment($post->id);
        ?>
 -->

<?php 
        NCoreMacros::includeTemplate("comments.php", array('closeable' => $themeOptions->general->closeComments, 'defaultState' => $themeOptions->general->defaultPosition) + $template->getParams(), $_l->templates['vtzdkbc282'])->render();
        ?>

<?php 
        if (isset($themeOptions->advertising->showBox4)) {
            ?>
<div id="advertising-box-4" class="advertising-box">
    <?php 
            echo $themeOptions->advertising->box4Content;
            ?>

</div>
<?php 
        }
        ?>

<?php 
    }
开发者ID:kivivuori,项目名称:jotain,代码行数:92,代码来源:_Templates.page.php-cb1db7f4d9a2397c8aa5be00d7219933.php

示例12: _lbec99d56a6f_content

    function _lbec99d56a6f_content($_l, $_args)
    {
        extract($_args);
        ?>

<section class="section content-section blog-section archive-section">

<div id="container" class="subpage blog archive 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 
            if ($archive->isDay) {
                ?>
							<?php 
                echo NTemplateHelpers::escapeHtml(__('Daily Archives:', 'ait'), ENT_NOQUOTES);
                ?>
 <span><?php 
                echo NTemplateHelpers::escapeHtml($template->date($posts[0]->date, $site->dateFormat), ENT_NOQUOTES);
                ?>
</span>
<?php 
            } elseif ($archive->isMonth) {
                ?>
							<?php 
                echo NTemplateHelpers::escapeHtml(__('Monthly Archives:', 'ait'), ENT_NOQUOTES);
                ?>
' <span><?php 
                echo NTemplateHelpers::escapeHtml($template->date($posts[0]->date, 'F Y'), ENT_NOQUOTES);
                ?>
</span>
<?php 
            } elseif ($archive->isYear) {
                ?>
							<?php 
                echo NTemplateHelpers::escapeHtml(__('Yearly Archives:', 'ait'), ENT_NOQUOTES);
                ?>
' <span><?php 
                echo NTemplateHelpers::escapeHtml($template->date($posts[0]->date, 'Y'), ENT_NOQUOTES);
                ?>
</span>
<?php 
            } else {
                ?>
							<?php 
                echo NTemplateHelpers::escapeHtml(__('Blog Archives', 'ait'), ENT_NOQUOTES);
                ?>

<?php 
            }
            ?>
					</h1>
				</header>

<?php 
            NCoreMacros::includeTemplate("snippets/content-nav.php", array('location' => 'nav-above') + $template->getParams(), $_l->templates['4t9g4yrz11'])->render();
            ?>

<?php 
            NCoreMacros::includeTemplate("snippets/content-loop.php", array('posts' => $posts) + $template->getParams(), $_l->templates['4t9g4yrz11'])->render();
            ?>

<?php 
            NCoreMacros::includeTemplate("snippets/content-nav.php", array('location' => 'nav-below') + $template->getParams(), $_l->templates['4t9g4yrz11'])->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 {
            ?>
//.........这里部分代码省略.........
开发者ID:ssuhss,项目名称:Begara,代码行数:101,代码来源:_Templates.archive.php-f909915430c75f6fd4cbc8994102fff4.php

示例13: list

<?php

//netteCache[01]000493a:2:{s:4:"time";s:21:"0.31916400 1429748526";s:9:"callbacks";a:3:{i:0;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:9:"checkFile";}i:1;s:103:"/home/storage/9/d7/dd/begara1/public_html/wp-content/themes/lawyer/Templates/snippets/nothing-found.php";i:2;i:1426731167;}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:"eee17d5 released on 2011-08-13";}i:2;a:3:{i:0;a:2:{i:0;s:6:"NCache";i:1;s:10:"checkConst";}i:1;s:21:"WPLATTE_CACHE_VERSION";i:2;i:4;}}}
// source file: /home/storage/9/d7/dd/begara1/public_html/wp-content/themes/lawyer/Templates/snippets/nothing-found.php
list($_l, $_g) = NCoreMacros::initRuntime($template, 'slw82l5hve');
// snippets support
if (!empty($control->snippetMode)) {
    return NUIMacros::renderSnippets($control, $_l, get_defined_vars());
}
//
// main template
//
?>
<article id="post-0" class="post no-results not-found">
	<header class="entry-header">
		<h1 class="entry-title"><?php 
echo NTemplateHelpers::escapeHtml(__('Nothing Found', 'ait'), ENT_NOQUOTES);
?>
</h1>
	</header><!-- .entry-header -->

	<div class="entry-content">
		<p><?php 
echo NTemplateHelpers::escapeHtml(__('Apologies, but no results were found for the request. Perhaps searching will help find a related post.', 'ait'), ENT_NOQUOTES);
?>
</p>
<?php 
NCoreMacros::includeTemplate("search-form.php", $template->getParams(), $_l->templates['slw82l5hve'])->render();
?>
	</div><!-- .entry-content -->
</article><!-- #post-0 -->
开发者ID:ssuhss,项目名称:Begara,代码行数:31,代码来源:_snippets.nothing-found.php-33a4530e0bb1fa8a30f775448792a9ad.php

示例14: _lb6762e04ece_content

    function _lb6762e04ece_content($_l, $_args)
    {
        extract($_args);
        ?>

<section class="section content-section blog-section author-section">

<div id="container" class="subpage blog author 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">

            <h1 class="page-title author">
                <?php 
            echo NTemplateHelpers::escapeHtml(__('Author Archives:', 'ait'), ENT_NOQUOTES);
            ?>

                <span class="vcard">
                    <a class="url fn n" href="<?php 
            echo htmlSpecialChars($author->postsUrl);
            ?>
" title="<?php 
            echo htmlSpecialChars($author->name);
            ?>
" rel="me"><?php 
            echo NTemplateHelpers::escapeHtml($author->name, ENT_NOQUOTES);
            ?>
</a>
                </span>
            </h1>

<?php 
            NCoreMacros::includeTemplate("snippets/content-nav.php", array('location' => 'nav-above') + $template->getParams(), $_l->templates['rjeh8snbuy'])->render();
            ?>

<?php 
            if (strlen($author->bio) !== 0) {
                ?>
			<div class="author-archive-meta clearfix">
				<div id="author-avatar" class="left"><?php 
                echo $author->avatar(60);
                ?>
</div>
				<div id="author-description" class="clearfix">
					<div class="author-name"><?php 
                echo NTemplateHelpers::escapeHtml(_x('About', 'about author', 'ait'), ENT_NOQUOTES);
                ?>
 <?php 
                echo NTemplateHelpers::escapeHtml($author->name, ENT_NOQUOTES);
                ?>
</div>
					<div class="bio"><?php 
                echo NTemplateHelpers::escapeHtml($author->bio, ENT_NOQUOTES);
                ?>
</div>
				</div>
			</div>
<?php 
            }
            ?>

<?php 
            NCoreMacros::includeTemplate("snippets/content-loop.php", array('posts' => $posts) + $template->getParams(), $_l->templates['rjeh8snbuy'])->render();
            ?>

<?php 
            NCoreMacros::includeTemplate("snippets/content-nav.php", array('location' => 'nav-below') + $template->getParams(), $_l->templates['rjeh8snbuy'])->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">
//.........这里部分代码省略.........
开发者ID:ssuhss,项目名称:Begara,代码行数:101,代码来源:_Templates.author.php-1f59cad75ddef3860e5bdb4c2bec6d17.php

示例15: _lb32de605720_sectionD

 function _lb32de605720_sectionD($_l, $_args)
 {
     extract($_args);
     NCoreMacros::includeTemplate("snippets/products.php", array('options' => $themeOptions->sections) + $template->getParams(), $_l->templates['g7ly26ljag'])->render();
 }
开发者ID:ssuhss,项目名称:Begara,代码行数:5,代码来源:_Templates._layout.php-bd5e3a83716367de428b04c67d01442c.php


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