Erweiterung der Funktionalität, erste Anbindung an Editoren, Einbinden von JS-Bibliotheken

This commit is contained in:
2016-10-05 15:27:09 +00:00
parent 5a1dd25023
commit f65b4db286
26 changed files with 31969 additions and 140 deletions

View File

@@ -1,5 +1,5 @@
<?php
if ($this->data['type'] === 'imageSmall')
if ($this->data['type'] === 'small')
{
$imageClass = 'col-md-4';
$textClass = 'col-md-8';
@@ -9,10 +9,18 @@
$imageClass = 'col-md-8';
$textClass = 'col-md-4';
}
$editorData = '';
if ($this->isEditable === true)
{
$editorData = ' data-editor="imageText" data-id="' . $this->data['ID'] . '" data-element="imageText_' . $this->data['ID'] . '"';
}
?>
<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="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-8 col-sm-6 col-xs-12">
<p><?php echo nl2br($this->data['text']); ?></p>
</div>
<div class="clearfix"></div>
</div>
<div class="row">&nbsp;</div>
</div>