本文整理匯總了PHP中Section::yield方法的典型用法代碼示例。如果您正苦於以下問題:PHP Section::yield方法的具體用法?PHP Section::yield怎麽用?PHP Section::yield使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Section
的用法示例。
在下文中一共展示了Section::yield方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: active_sidebar
public static function active_sidebar($section)
{
return Section::yield('active_sidebar') == $section ? true : false;
}
示例2:
}
?>
<div class="container" id="content">
<?php
echo Section::yield('content');
?>
</div>
<script>
var dojoConfig = {
async: 1,
baseUrl: "<?php
echo URL::to_asset('js/dojo');
?>
",
packages: [
{ name: "bootstrap", location: "Dojo-Bootstrap" },
{ name: "clementia", location: "clementia" }
]
};
</script>
<?php
echo Asset::container('footer')->scripts();
?>
<?php
echo Section::yield('additional_footer_content');
?>
</body>
</html>
示例3:
<?php
}
?>
<?php
echo Section::yield('content');
?>
</div>
<!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> -->
<script>window.jQuery || document.write('<script src="/js/jquery-1.7.1.min.js"><\/script>')</script>
<script src="/js/jquery-ui-1.8.22.custom.min.js"></script>
<?php
echo Section::yield('additional-scripts');
?>
<?php
echo Basset::show('website.js');
?>
<?php
echo HTML::script('js/bootstrap.js');
?>
<script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
示例4: e
<?php
if (!Section::yield('no_page_header')) {
?>
<h4>
<?php
echo e(Section::yield('page_title'));
?>
<?php
echo Section::yield('inside_header');
?>
</h4>
<?php
}
?>
<?php
echo Section::yield('subnav');
?>
</div>
<?php
echo $content;
?>
</div>
<?php
if (!Config::get('application.maint') == true) {
?>
<?php
echo View::make('partials.footer');
?>
<?php
}
?>