Erweiterung der Funktionalität, erste Anbindung an Editoren, Einbinden von JS-Bibliotheken
This commit is contained in:
73
templates/keyvisual.phtml
Normal file
73
templates/keyvisual.phtml
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user