73 lines
1.6 KiB
PHTML
73 lines
1.6 KiB
PHTML
<?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
|
|
}
|
|
} |