| Current Path : /var/www/modules/mod_yendifvideoshare_categories/tmpl/ |
| Current File : /var/www/modules/mod_yendifvideoshare_categories/tmpl/default.php |
<?php
/**
* @version 1.2.9
* @package Com_YendifVideoShare
* @author PluginsWare Interactive Pvt. Ltd <admin@yendifplayer.com>
* @copyright Copyright (c) 2012 - 2021 PluginsWare Interactive Pvt. Ltd. All Rights Reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// Prevent direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$span = 'span' . floor( 12 / $cols );
?>
<div class="yendif-video-share categories <?php echo $moduleclass_sfx; ?>">
<div class="row-fluid">
<ul class="thumbnails">
<?php
foreach ( $items as $item ) {
if ( $column >= $cols ) {
echo '</ul><ul class="thumbnails">';
$column = 0;
}
$target_url = YendifVideoShareUtils::buildRoute( $item, 'category', $itemId );
$image = YendifVideoShareUtils::getImage( $item->image, '_thumb', $config->default_image );
$count = '';
if ( $show_videos_count ) {
$count = YendifVideoShareUtils::getMediaCount( $item->id );
$count = ' (' . $count . ')';
}
?>
<li class="<?php echo $span; ?>">
<div class="thumbnail">
<a href="<?php echo $target_url; ?>" class="yendif-thumbnail">
<div class="yendif-image" style="background-image: url(<?php echo $image; ?>);"> </div>
</a>
<div class="caption">
<h4><a href="<?php echo $target_url; ?>"><?php echo $item->name . $count; ?></a></h4>
<?php if ( $show_excerpt && ! empty( $item->description ) ) : ?>
<p><?php echo YendifVideoShareUtils::Truncate( $item->description, $excerpt_length ); ?></p>
<?php endif; ?>
</div>
</div>
</li>
<?php
if ( $column >= $cols ) echo '</ul>';
$column++;
}
?>
</ul>
</div>
</div>