Небольшое улучшение разметки.
|
@ -22,6 +22,9 @@ class Controller_Header extends Controller_Template {
|
|||
$temp .= '<script type="text/javascript" charset="utf-8" src="'.URL::site('assets/javascript/'.$script).'"></script>'."\n";
|
||||
endforeach;
|
||||
$this->template->scripts = $temp;
|
||||
if (Kohana::config('common.logo') != '') {
|
||||
$this->template->logo = "<img src='".URL::site('assets/images/'.Kohana::config('common.logo'))."' height='100px'>";
|
||||
} else $this->template->logo = "";
|
||||
}
|
||||
public function action_view(){$this->request->redirect('');}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
|
||||
return array(
|
||||
'this_year' => "2011",
|
||||
'title' => ""
|
||||
'title' => "Название",
|
||||
'logo' => "logo_transparent.png"
|
||||
);
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
<div id="main_container">
|
||||
<?php if (Kohana::config('common.title') != '') { ?>
|
||||
<div id="header">
|
||||
<?php echo $logo?>
|
||||
<h1><?php echo Kohana::config('common.title')?></h1>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
|
|
@ -1,11 +1,18 @@
|
|||
body{
|
||||
background: url('/assets/images/bgr1.png'), url('/assets/images/bgr2.png'), url('/assets/images/bgr3.png'), url('/assets/images/bgr4.png');
|
||||
background: darkblue;
|
||||
color: #ffffff;
|
||||
font-family: 'PT Sans', arial, serif;
|
||||
}
|
||||
#header h1{
|
||||
padding-top: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
#header img{
|
||||
float: left;
|
||||
}
|
||||
#header{
|
||||
height: 100px;
|
||||
}
|
||||
#menu a{
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 162 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 426 KiB |
Before Width: | Height: | Size: 121 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 290 KiB |
BIN
assets/images/logo_transparent.png
Normal file
After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 8.8 KiB |