2014-05-28 17:19:57 +02:00
|
|
|
<?php
|
|
|
|
/* @var $this ThumbnailPreview */
|
|
|
|
?>
|
|
|
|
|
2014-05-28 21:29:49 +02:00
|
|
|
<li class="span3 thumbnailParentSpan">
|
|
|
|
<div >
|
2014-06-02 19:31:14 +02:00
|
|
|
<div class="thumbnail <?php if (! $this->enabled) print("thumbnailDisabled"); ?>">
|
2014-05-28 21:29:49 +02:00
|
|
|
<div class="thumbnailInnerHead">
|
2014-06-02 19:31:14 +02:00
|
|
|
<a <?php if($this->enabled) echo 'href="'. $this->link . '"'; ?>>
|
2014-05-28 21:29:49 +02:00
|
|
|
<img style="width: 100%" src="<?php echo $this->image; ?>">
|
|
|
|
</a>
|
2014-05-28 17:19:57 +02:00
|
|
|
</div>
|
|
|
|
<div class="caption">
|
2014-06-02 19:31:14 +02:00
|
|
|
<?php $h_level = (strlen($this->caption) > 13) ? ["<h3>", "</h3>"] : ["<h2>", "</h2>"]; ?>
|
|
|
|
|
|
|
|
<?php echo $h_level[0]; ?>
|
|
|
|
|
2014-05-28 21:29:49 +02:00
|
|
|
<?php
|
2014-06-02 19:31:14 +02:00
|
|
|
if ($this->enabled)
|
|
|
|
echo '<a class="progThumbnailCaption" href="' . $this->link . '">' . $this->caption . '</a>';
|
|
|
|
else
|
|
|
|
echo '<a class="progThumbnailCaption">' . $this->caption . '</a>';
|
2014-05-28 17:19:57 +02:00
|
|
|
?>
|
|
|
|
|
2014-06-02 19:31:14 +02:00
|
|
|
<?php echo $h_level[1]; ?>
|
|
|
|
|
|
|
|
<p class="thumbnailInnerDescription">
|
|
|
|
<?php echo $this->description; ?>
|
|
|
|
</p>
|
2014-05-28 17:19:57 +02:00
|
|
|
|
|
|
|
<p>
|
|
|
|
<?php
|
|
|
|
if (!empty($this->category)) {
|
|
|
|
echo TbHtml::icon(TbHtml::ICON_TAG);
|
|
|
|
echo $this->category . '';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<?php
|
|
|
|
foreach ($this->language as $lang) {
|
|
|
|
echo TbHtml::icon(TbHtml::ICON_GLOBE);
|
|
|
|
echo $lang;
|
|
|
|
echo ' ';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
2014-05-28 21:29:49 +02:00
|
|
|
<div class="modal-footer thumbnailInnerFooter">
|
2014-05-28 17:19:57 +02:00
|
|
|
<div class="text-center">
|
|
|
|
<?php
|
|
|
|
for ($i = 0; $i < 4; $i++) {
|
|
|
|
if ($i < $this->starcount)
|
|
|
|
echo TbHtml::icon(TbHtml::ICON_STAR);
|
|
|
|
else
|
|
|
|
echo TbHtml::icon(TbHtml::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->starcount . '/4'; ?></b><br/>
|
|
|
|
<small>Rating</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|