Пример #1
0
		<?php 
if (ENVIRONMENT == 'development') {
    ?>
			<p style="float: right; margin-right: 80px;">Page rendered in {elapsed_time} seconds, using {memory_usage}.</p>
		<?php 
}
?>
		
		<p>Powered by <a href="http://cibonfire.com" target="_blank">Bonfire <?php 
echo BONFIRE_VERSION;
?>
</a></p>
	</div>
	
	<div id="debug"></div>
	
	<script>
		head.js(<?php 
echo Assets::external_js(null, true);
?>
);
		head.js(<?php 
echo Assets::module_js(true);
?>
);
	</script>
	<?php 
echo Assets::inline_js();
?>
</body>
</html>
Пример #2
0
 public function test_external_js_includes_global()
 {
     $r = Assets::external_js();
     $this->assertTrue(strpos($r, 'global') !== false);
 }
Пример #3
0
				<a href="<?php echo site_url('admin/settings') ?>" <?php echo check_class('settings') ?> id="tb_settings" title="Settings">Settings</a>
			<?php endif; ?>
			<?php if (has_permission('Site.Developer.View')) :?>
				<a href="<?php echo site_url('admin/developer') ?>" <?php echo check_class('developer') ?> id="tb_developer" title="Developer Tools">Developer Tools</a>
			<?php endif; ?>
		</div>	<!-- /toolbar-left -->
	</div>
	
	<?php echo modules::run('subnav/subnav/index', $this->uri->segment(2)); ?>

	<div id="nav-bar">
		<?php if (isset($toolbar_title)) : ?>
			<h1><?php echo $toolbar_title ?></h1>
		<?php endif; ?>
		
		<?php Template::block('sub_nav', ''); ?>
	</div>

	<div class="content-main <?php echo isset(Template::$blocks['nav_bottom']) ? 'with-bottom-bar' : '' ?>">
			<?php echo Template::yield(); ?>
	</div>
	
	<?php Template::block('nav_bottom', ''); ?>
	
	<script>
		head.js(<?php echo Assets::external_js(null, true) ?>);
	</script>
	<?php echo Assets::inline_js(); ?>

</body>
</html>