Пример #1
0
 /**
  * Incluye un archivo javascript
  * @param  string $jsFile Nombre de archivo sin extension .js
  * @return string         Vinculo con el archivo JS
  */
 public static function includeJs($jsFile)
 {
     $publicUrl = \Supernova\Route::getPublicUrl();
     $prefix = empty(\Supernova\Core::$elements['prefix']) ? "Default" : \Supernova\Core::$elements['prefix'];
     $output = "<script type='text/javascript' src='{$publicUrl}/{$prefix}/js/{$jsFile}.js' ></script>";
     return $output;
 }
Пример #2
0
	<div id="wrapper">
		<header id="header">
			<!-- Header Left : Logo and Site name -->
			<div class="header-left">
				<!-- Header Logo --><img src='<?php 
echo \Supernova\Route::getPublicUrl();
?>
/errors/img/snf_logo_t.png' />
				<!-- Site name --><h1></h1>
			</div>
		</header><!-- #header-->
		<section id="middle">
			<div id="container">
				<div id="content">
					<div style="float:left; width: 110px"><img src='<?php 
echo \Supernova\Route::getPublicUrl();
?>
/errors/img/error404.jpg' /></div>
					<div style="float:left; width: 80%">
						<h2>Error 404</h2>
						<h3><?php 
echo __("OOPS, Nothing found here");
?>
</h3>
						<p><?php 
echo __("The page you are trying to access seems to no longer exists.");
?>
</p>
						<p><?php 
echo __("Check you address bar, meaby you got a mistaken address");
?>