Erste lauffähige Umgebung
This commit is contained in:
@@ -1,24 +1,27 @@
|
||||
<?php
|
||||
if ($this->data['type'] === 'small')
|
||||
{
|
||||
$imageClass = 'col-md-4';
|
||||
$textClass = 'col-md-8';
|
||||
}
|
||||
else
|
||||
{
|
||||
$imageClass = 'col-md-8';
|
||||
$textClass = 'col-md-4';
|
||||
}
|
||||
$registry = Helper\Registry::getInstance();
|
||||
if ($this->data['type'] === 'small')
|
||||
{
|
||||
$imageClass = 'col-md-4';
|
||||
$textClass = 'col-md-8';
|
||||
}
|
||||
else
|
||||
{
|
||||
$imageClass = 'col-md-8';
|
||||
$textClass = 'col-md-4';
|
||||
}
|
||||
|
||||
$editorData = '';
|
||||
if ($this->isEditable === true)
|
||||
{
|
||||
$editorData = ' data-editor="ImageText" data-id="' . $this->data['imageTextID'] . '" data-element="ImageText_' . $this->data['imageTextID'] . '"';
|
||||
}
|
||||
|
||||
$editorData = '';
|
||||
if ($this->isEditable === true)
|
||||
{
|
||||
$editorData = ' data-editor="ImageText" data-id="' . $this->data['ID'] . '" data-element="ImageText_' . $this->data['ID'] . '"';
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="row"<?php echo $editorData; ?>>
|
||||
<div class="col-md-4 col-sm-6 col-xs-8 col-xs-offset-2 col-sm-offset-0"><img class="img-responsive" src="<?php echo HTML_IMG . $this->data['image']; ?>"/></div>
|
||||
<div class="col-md-4 col-sm-6 col-xs-8 col-xs-offset-2 col-sm-offset-0">
|
||||
<img class="img-responsive" src="<?php echo HTML_MED . 'ahd/' . $registry->navID . '/' . $this->data['imageName'] . '.' . $this->data['imageExtension']; ?>"/>
|
||||
</div>
|
||||
<div class="col-md-8 col-sm-6 col-xs-12">
|
||||
<p><?php echo nl2br($this->data['text']); ?></p>
|
||||
</div>
|
||||
|
||||
@@ -8,18 +8,25 @@
|
||||
<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.min.css">
|
||||
<?php
|
||||
$registry = \Helper\Registry::getInstance();
|
||||
?>
|
||||
<script type="text/javascript">var keyVisualData = <?php echo json_encode($registry->editorConfig['imageDimension']['keyVisual']); ?></script>
|
||||
<script type="text/javascript" src="<?php echo HTML_JS; ?>jquery-3.1.1.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HTML_JS; ?>jquery-ui-1.12.1.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HTML_JS; ?>bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HTML_JS; ?>ahd.js"></script>
|
||||
<?php
|
||||
|
||||
if ($this->isEditable)
|
||||
{
|
||||
$registry = \Helper\Registry::getInstance();
|
||||
$registry->editorConfig['navID'] = $this->data['navID'];
|
||||
$registry->editorConfig['navID'] = $registry->navID;
|
||||
$registry->editorConfig['navigationPath'] = $registry->navigationPath;
|
||||
?>
|
||||
<link rel="stylesheet" href="<?php echo $registry->editorConfig['editorUrl'] . $registry->editorConfig['editorVersion']; ?>/css/editor.min.css">
|
||||
<script type="text/javascript">var csEditorParams = <?php echo json_encode($registry->editorConfig, JSON_UNESCAPED_UNICODE); ?>;</script>
|
||||
<script type="text/javascript" src="<?php echo $registry->editorConfig['editorUrl'] . $registry->editorConfig['editorVersion']; ?>/js/ckeditor/ckeditor.js"></script>
|
||||
<script type="text/javascript" src="<?php echo $registry->editorConfig['editorUrl'] . $registry->editorConfig['editorVersion']; ?>/js/ckeditor/adapters/jquery.js"></script>
|
||||
<script type="text/javascript" src="<?php echo $registry->editorConfig['editorUrl'] . $registry->editorConfig['editorVersion']; ?>/editor.js.php?lang=<?php echo $_SESSION['lang']; ?>"></script>
|
||||
<?php
|
||||
}
|
||||
@@ -27,59 +34,61 @@
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<header class="navbar navbar-fixed-top navbar-inverse">
|
||||
<div class="container">
|
||||
<div class="navbar-header pull-left">
|
||||
<button aria-controls="main-navbar" aria-expanded="false" class="navbar-toggle collapsed" data-target="#main-navbar" data-toggle="collapse" type="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
<?php echo $this->data['navigation']; ?>
|
||||
<div class="navbar-header pull-right">
|
||||
<div class="pull-right">
|
||||
<div class="subaru_logo pull-left"></div>
|
||||
<div class="daihatsu_logo pull-right"></div>
|
||||
<div class="pageWrapper">
|
||||
<header class="navbar navbar-fixed-top navbar-inverse">
|
||||
<div class="container">
|
||||
<div class="navbar-header pull-left">
|
||||
<button aria-controls="main-navbar" aria-expanded="false" class="navbar-toggle collapsed" data-target="#main-navbar" data-toggle="collapse" type="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
<?php echo $this->data['navigation']; ?>
|
||||
<div class="navbar-header pull-right">
|
||||
<div class="pull-right">
|
||||
<div class="subaru_logo pull-left"></div>
|
||||
<div class="daihatsu_logo pull-right"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container" id="content">
|
||||
<?php
|
||||
echo $this->data['keyVisual'];
|
||||
$editorData = '';
|
||||
if ($this->isEditable === true)
|
||||
{
|
||||
$editorData = ' data-editor="Headline" data-id="' . $registry->navID . '" data-element="Headline_' . $registry->navID . '"';
|
||||
}
|
||||
?>
|
||||
<div class="row"<?php echo $editorData; ?>><h1 class="col-md-12"><?php echo $this->data['headline']; ?></h1></div>
|
||||
<div class="sortable">
|
||||
<?php echo $this->data['content']; ?>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container" id="content">
|
||||
<?php
|
||||
echo $this->data['keyVisual'];
|
||||
$editorData = '';
|
||||
if ($this->isEditable === true)
|
||||
{
|
||||
$editorData = ' data-editor="Headline" data-id="' . $this->data['navID'] . '" data-element="Headline_' . $this->data['navID'] . '"';
|
||||
}
|
||||
?>
|
||||
<div class="row"<?php echo $editorData; ?>><h1 class="col-md-12"><?php echo $this->data['headline']; ?></h1></div>
|
||||
<div class="sortable">
|
||||
<?php echo $this->data['content']; ?>
|
||||
</div>
|
||||
<nav class="navbar navbar-inverse navbar-fixed-bottom">
|
||||
<div class="container" id="footer">
|
||||
<div class="row">
|
||||
<div class="navbar-brand">
|
||||
Kontakt <span class="caret"></span><br/> <br/>
|
||||
<p>
|
||||
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">
|
||||
Öffnungszeiten <span class="caret"></span><br/> <br/>
|
||||
<p>
|
||||
Montag - Freitag:<br/>8-12 Uhr und 13-17 Uhr<br/> <br/>Samstag:<br/>9-12 Uhr
|
||||
</p>
|
||||
</div>
|
||||
<div class="navbar-brand ahd pull-right">
|
||||
<img src="<?php echo HTML_IMG; ?>ahd_allradhaus_logo.png"><br/>
|
||||
<img class="center-block" src="<?php echo HTML_IMG; ?>ahd_allradhaus_raeder_gross.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
<nav class="navbar navbar-inverse navbar-fixed-bottom">
|
||||
<div class="container" id="footer">
|
||||
<div class="row">
|
||||
<div class="navbar-brand">
|
||||
Kontakt <span class="caret"></span><br/> <br/>
|
||||
<p>
|
||||
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">
|
||||
Öffnungszeiten <span class="caret"></span><br/> <br/>
|
||||
<p>
|
||||
Montag - Freitag:<br/>8-12 Uhr und 13-17 Uhr<br/> <br/>Samstag:<br/>9-12 Uhr
|
||||
</p>
|
||||
</div>
|
||||
<div class="navbar-brand ahd pull-right">
|
||||
<img src="<?php echo HTML_IMG; ?>ahd_allradhaus_logo.png"><br/>
|
||||
<img class="center-block" src="<?php echo HTML_IMG; ?>ahd_allradhaus_raeder_gross.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</body>
|
||||
</html>
|
||||
@@ -2,70 +2,79 @@
|
||||
|
||||
if (isset($this->data['Type']))
|
||||
{
|
||||
$registry = Helper\Registry::getInstance();
|
||||
$mediaPath = $registry->editorConfig['mediaPrefix'] . $registry->navID . '/';
|
||||
|
||||
$editorData = '';
|
||||
if ($this->isEditable === true)
|
||||
{
|
||||
$editorData = ' data-editor="' . $this->data['Type'] . '" data-id="' . $this->data['navID'] . '" data-element="' . $this->data['Type'] . '_' . $this->data['navID'] . '"';
|
||||
$editorData = ' data-editor="KeyVisual" data-id="' . $registry->navID . '" data-element="' . $this->data['Type'] . '_' . $registry->navID . '"';
|
||||
}
|
||||
|
||||
if ($this->data['Type'] === 'slider')
|
||||
{
|
||||
?>
|
||||
<div class="row slider"<?php echo $editorData; ?>>
|
||||
<div class="col-md-12">
|
||||
<?php
|
||||
|
||||
foreach ($this->data as $key => $data)
|
||||
{
|
||||
if (!is_numeric($key))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<img class="img-responsive" src="<?php echo HTML_MED . $this->data['navID'] . '/' . $data['imageName'] . '.' . $data['imageExtension']; ?>"/>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
elseif ($this->data['Type'] === 'kenburns')
|
||||
{
|
||||
?>
|
||||
<div class="row kenburns"<?php echo $editorData; ?>>
|
||||
<div class="col-md-12">
|
||||
<?php
|
||||
|
||||
foreach ($this->data as $key => $data)
|
||||
{
|
||||
if (!is_numeric($key))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<img class="img-responsive" src="<?php echo HTML_MED . $this->data['navID'] . '/' . $data['imageName'] . '.' . $data['imageExtension']; ?>" data-zoom="<?php echo $data['imageZoom']; ?>" data-direction="<?php echo $data['imageZoomDirection']; ?>"/>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
elseif ($this->data['Type'] === 'single')
|
||||
if ($this->data['Type'] === 'Slider')
|
||||
{
|
||||
?>
|
||||
<div class="row"<?php echo $editorData; ?>>
|
||||
<div class="col-md-12">
|
||||
<img class="img-responsive" src="<?php echo HTML_MED . $this->data['navID'] . '/' . $this->data[0]['imageName'] . '.' . $this->data[0]['imageExtension']; ?>"/>
|
||||
<div class="col-md-12 keyvisual slider">
|
||||
<div class="carousel-inner">
|
||||
<?php
|
||||
|
||||
foreach ($this->data as $key => $data)
|
||||
{
|
||||
if (!is_numeric($key))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<img class="img-responsive" src="<?php echo $mediaPath . $data['imageName'] . '.' . $data['imageExtension']; ?>"/>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
elseif ($this->data['Type'] === 'Kenburns')
|
||||
{
|
||||
?>
|
||||
<div class="row"<?php echo $editorData; ?>>
|
||||
<div class="col-md-12 keyvisual kenburns">
|
||||
<div class="carousel-inner">
|
||||
<?php
|
||||
|
||||
foreach ($this->data as $key => $data)
|
||||
{
|
||||
if (!is_numeric($key))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<img src="<?php echo $mediaPath . $data['imageName'] . '.' . $data['imageExtension']; ?>" data-zoom="<?php echo $data['imageZoom']; ?>" data-start="<?php echo $data['imageZoomDirection']; ?>"/>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
elseif ($this->data['Type'] === 'Single')
|
||||
{
|
||||
?>
|
||||
<div class="row"<?php echo $editorData; ?>>
|
||||
<div class="col-md-12 keyvisual single">
|
||||
<div class="carousel-inner">
|
||||
<img class="img-responsive" src="<?php echo $mediaPath . $this->data[0]['imageName'] . '.' . $this->data[0]['imageExtension']; ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
14
templates/subline.phtml
Normal file
14
templates/subline.phtml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
$editorData = '';
|
||||
if ($this->isEditable === true)
|
||||
{
|
||||
$editorData = ' data-editor="Subline" data-id="' . $this->data['sublineID'] . '" data-element="Subline_' . $this->data['sublineID'] . '"';
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="row"<?php echo $editorData; ?>>
|
||||
<div class="col-md-12">
|
||||
<h2><?php echo $this->data['text']; ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
14
templates/text.phtml
Normal file
14
templates/text.phtml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
$editorData = '';
|
||||
if ($this->isEditable === true)
|
||||
{
|
||||
$editorData = ' data-editor="Text" data-id="' . $this->data['textID'] . '" data-element="Text_' . $this->data['textID'] . '"';
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="row"<?php echo $editorData; ?>>
|
||||
<div class="col-md-12">
|
||||
<p><?php echo $this->data['text']; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user