Erster Stand des mvc-Frameworks
This commit is contained in:
18
templates/imagetext.phtml
Normal file
18
templates/imagetext.phtml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
if ($this->data['type'] === 'imageSmall')
|
||||
{
|
||||
$imageClass = 'col-md-4';
|
||||
$textClass = 'col-md-8';
|
||||
}
|
||||
else
|
||||
{
|
||||
$imageClass = 'col-md-8';
|
||||
$textClass = 'col-md-4';
|
||||
}
|
||||
?>
|
||||
<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="clearfix"></div>
|
||||
</div>
|
||||
<div class="row"> </div>
|
||||
Reference in New Issue
Block a user