Erster Stand des mvc-Frameworks
This commit is contained in:
18
templates/imagetext.phtml
Normal file
18
templates/imagetext.phtml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
if ($this->data['type'] === 'imageSmall')
|
||||
{
|
||||
$imageClass = 'col-md-4';
|
||||
$textClass = 'col-md-8';
|
||||
}
|
||||
else
|
||||
{
|
||||
$imageClass = 'col-md-8';
|
||||
$textClass = 'col-md-4';
|
||||
}
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="<?php echo $imageClass; ?>"><img class="img-responsive" src="<?php echo HTML_IMG . $this->data['image']; ?>"/></div>
|
||||
<div class="<?php echo $textClass; ?>"><?php echo nl2br($this->data['text']); ?></div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="row"> </div>
|
||||
61
templates/index.phtml
Normal file
61
templates/index.phtml
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
if (strpos($this->data['headline'], "\n") !== false)
|
||||
{
|
||||
$headline = explode("\n", $this->data['headline']);
|
||||
$headline[1] = '</h1><h3 class="col-md-offset-4 col-md-8">' . $headline[1] . '';
|
||||
$this->data['headline'] = implode('', $headline);
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title><?php echo $this->data['title']; ?></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="<?php echo HTML_CSS; ?>bootstrap.min.css">
|
||||
<link rel="stylesheet" href="<?php echo HTML_CSS; ?>bootstrap-theme.min.css">
|
||||
<link rel="stylesheet" href="<?php echo HTML_CSS; ?>ahd.css">
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="container">
|
||||
<?php echo $this->data['navigation']; ?>
|
||||
<div class="pull-right">
|
||||
<img src="<?php echo HTML_IMG; ?>subaru/subaru_logo.png"/>
|
||||
<img src="<?php echo HTML_IMG; ?>daihatsu/daihatsu_logo.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<img class="img-responsive" src="<?php echo HTML_IMG; ?>allradhaus/header/allradhaus_01.jpg"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container" id="content">
|
||||
<div class="row"><h1><span class="col-md-12"><?php echo nl2br($this->data['headline']); ?></span></h1></div>
|
||||
<div class="row"> </div>
|
||||
<?php echo $this->data['content']; ?>
|
||||
</div>
|
||||
<nav class="navbar navbar-inverse navbar-fixed-bottom">
|
||||
<div class="container" id="footer">
|
||||
<div class="row col-md-12">
|
||||
<div class="navbar-brand">
|
||||
<p>
|
||||
Kontakt <span class="caret"></span><br/> <br/>AHD Allradhaus GmbH<br/>Hauptstraße 45<br/>87466 Oy-Mittelberg<br/>Telefon 08366 / 232<br/>Telefax 08366 / 286
|
||||
</p>
|
||||
</div>
|
||||
<div class="navbar-brand">
|
||||
<p>
|
||||
Öffnungszeiten <span class="caret"></span><br/> <br/>Montag - Freitag:<br/>8-12 Uhr und 13-17 Uhr<br/>Samstag:<br/>9-12 Uhr
|
||||
</p>
|
||||
</div>
|
||||
<div class="navbar-brand pull-right">
|
||||
<img src="<?php echo HTML_IMG; ?>allradhaus/ahd_allradhaus_logo.png"><br/>
|
||||
<img class="center-block" src="<?php echo HTML_IMG; ?>allradhaus/ahd_allradhaus_raeder_gross.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user