Небольшое улучшение разметки.

This commit is contained in:
Linux User 2011-06-29 15:55:55 +08:00
parent 44f3a586d7
commit b4479c938d
18 changed files with 15 additions and 10552 deletions

View file

@ -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('');}
}
}

View file

@ -2,5 +2,6 @@
return array(
'this_year' => "2011",
'title' => ""
'title' => "Название",
'logo' => "logo_transparent.png"
);

View file

@ -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 } ?>

View file

@ -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;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 426 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB