1
0
www.mikescher.com/www/protected/components/widgets/views/thumbnailProgPreview.php
Mike Schwörer 6e39aefd52 Added various things
Translated Log + Short Prog Desc to Eng
Added Category filter to progs
2014-06-30 22:51:59 +02:00

77 lines
2.0 KiB
PHP

<?php
/* @var $this ThumbnailProgPreview */
?>
<li class="thumbnailParentSpan">
<div >
<div class="thumbnail <?php if (! $this->enabled) print("thumbnailDisabled"); ?>">
<div class="thumbnailInnerHead">
<a <?php if($this->enabled) echo 'href="'. $this->link . '"'; ?>>
<img class="thumbnailInnerImage <?php if (! $this->enabled) print('grayscale'); ?>" src="<?php echo $this->image; ?>">
</a>
</div>
<div class="caption">
<?php $h_level = (strlen($this->caption) > 13) ? ["<h3>", "</h3>"] : ["<h2>", "</h2>"]; ?>
<?php echo $h_level[0]; ?>
<?php
if ($this->enabled)
echo '<a class="progThumbnailCaption" href="' . $this->link . '">' . $this->caption . '</a>';
else
echo '<a class="progThumbnailCaption">' . $this->caption . '</a>';
?>
<?php echo $h_level[1]; ?>
<p class="thumbnailInnerDescription">
<?php echo $this->description; ?>
</p>
<p>
<?php
if (!empty($this->category)) {
echo MsHtml::icon(MsHtml::ICON_TAG);
echo MsHtml::link($this->category . '', '/programs/cat/' . $this->category);
}
?>
</p>
<p>
<?php
foreach ($this->language as $lang) {
echo MsHtml::icon(MsHtml::ICON_GLOBE);
echo $lang;
echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
}
?>
</p>
</div>
<div class="modal-footer thumbnailInnerFooter">
<div class="text-center">
<?php
for ($i = 0; $i < 4; $i++) {
if ($i < $this->starcount)
echo MsHtml::icon(MsHtml::ICON_STAR);
else
echo MsHtml::icon(MsHtml::ICON_STAR_EMPTY);
}
?>
</div>
<br>
<div class="row-fluid">
<div class="span4"><b><?php echo $this->downloads; ?></b><br/>
<small>Downloads</small>
</div>
<div class="span4"><b><?php echo $this->date->format('d.m.y'); ?></b><br/>
<small>Added On</small>
</div>
<div class="span4"><b><?php echo $this->programminglang; ?></b><br/>
<small>Language</small>
</div>
</div>
</div>
</div>
</div>
</li>