Erste lauffähige Umgebung

This commit is contained in:
2017-01-09 07:12:57 +00:00
parent b974059208
commit 30efdc809c
25 changed files with 1770 additions and 193 deletions

View File

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