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

73
templates/keyvisual.phtml Normal file
View File

@@ -0,0 +1,73 @@
<?php
if (isset($this->data['Type']))
{
$editorData = '';
if ($this->isEditable === true)
{
$editorData = ' data-editor="' . $this->data['Type'] . '" data-id="' . $this->data['navID'] . '" data-element="' . $this->data['Type'] . '_' . $this->data['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')
{
?>
<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>
</div>
<?php
}
}