1
0

Adjustments to The ProgramsView

This commit is contained in:
2014-05-28 21:29:49 +02:00
parent b5fd33e012
commit ad5226a1d1
5 changed files with 148 additions and 118 deletions

View File

@@ -2,6 +2,7 @@
class ThumbnailPreview extends CWidget {
public $caption = '';
public $link = '';
public $description = '';
public $category = '';
public $language = [];

View File

@@ -2,21 +2,23 @@
/* @var $this ThumbnailPreview */
?>
<li class="span3" style="width: 270px">
<div style="min-height: 600px">
<div class="thumbnail" style="padding: 0;">
<div style="padding:4px; height: 225px; overflow-y: hidden">
<img style="width: 100%" src="<?php echo $this->image; ?>">
<li class="span3 thumbnailParentSpan">
<div >
<div class="thumbnail">
<div class="thumbnailInnerHead">
<a href="<?php echo $this->link; ?>">
<img style="width: 100%" src="<?php echo $this->image; ?>">
</a>
</div>
<div class="caption">
<?php //TODO Line out css to styles.css !!!!
<?php
if ( strlen($this->caption) > 13)
echo '<h3 class="progThumbnailCaption">' . $this->caption . '</h3>';
echo '<h3><a class="progThumbnailCaption" href="' . $this->link . '">' . $this->caption . '</a></h3>';
else
echo '<h2 class="progThumbnailCaption">' . $this->caption . '</h2>';
echo '<h2><a class="progThumbnailCaption" href="' . $this->link . '">' . $this->caption . '</a></h2>';
?>
<p style="min-height: 70px;"><?php echo $this->description; ?></p>
<p class="thumbnailInnerDescription"><?php echo $this->description; ?></p>
<p>
<?php
@@ -36,7 +38,7 @@
}
?>
</div>
<div class="modal-footer" style="text-align: left">
<div class="modal-footer thumbnailInnerFooter">
<div class="text-center">
<?php
for ($i = 0; $i < 4; $i++) {