Your IP : 10.10.0.253


Current Path : /var/www/modules/mod_yendifvideoshare_videos/tmpl/
Upload File :
Current File : /var/www/modules/mod_yendifvideoshare_videos/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' );

$popup_class_suffix = $enable_popup ? ' yendif-popup-gallery' : '';
$span = 'span' . floor( 12 / $cols );
?>

<div class="yendif-video-share videos <?php echo $moduleclass_sfx; ?>"> 
  	<div class="row-fluid<?php echo $popup_class_suffix; ?>"  data-ratio="<?php echo (float) $ratio; ?>">
    	<ul class="thumbnails">
    	<?php 
		foreach ( $items as $item ) {
			if ( $column >= $cols ) {
				echo '</ul><ul class="thumbnails">';
				$column = 0;
			}
	
			$image = YendifVideoShareUtils::getImage( $item->image, '_thumb', $config->default_image );	
	
			if ( $enable_popup ) {
				$iframe_src = JURI::root() . 'index.php?option=com_yendifvideoshare&view=player&id=' . $item->id . '&format=raw';
				$target_url = 'javascript:void(0)';
			} else {
				$iframe_src = '';
				$target_url = YendifVideoShareUtils::buildRoute( $item, 'video', $itemId );
			}		
			?>    
			<li class="<?php echo $span; ?>" data-mfp-src="<?php echo $iframe_src; ?>" data-title="<?php echo $item->title ?>">
				<div class="thumbnail">
					<a href="<?php echo $target_url; ?>" class="yendif-thumbnail">
						<div class="yendif-image" style="background-image: url(<?php echo $image; ?>);">&nbsp;</div>
						<img class="yendif-play-icon" src="<?php echo JURI::root( true ); ?>/media/yendifvideoshare/assets/site/images/play.png" alt="<?php echo $item->title; ?>" />
						<?php if ( !empty( $item->duration ) ) : ?>
							<span class="yendif-duration"><?php echo $item->duration; ?></span>
						<?php endif; ?> 
					</a>
					<div class="caption">
						<h4><a href="<?php echo $target_url; ?>"><?php echo $item->title; ?></a></h4>

						<?php if ( $show_excerpt && ! empty( $item->description ) ) : ?>
							<p><?php echo YendifVideoShareUtils::Truncate( $item->description, $excerpt_length ); ?></p>
						<?php endif; ?>
						
						<?php if ( $show_rating ) : ?>
							<p><?php echo YendifVideoShareUtils::showRating( $item->rating ); ?></p>
						<?php endif; ?>
						
						<?php if ( $show_views ) : ?>
							<p class="muted"><?php echo $item->views . ' ' . JText::_( 'YENDIF_VIDEO_SHARE_VIEWS' ); ?></p>
						<?php endif; ?> 
					</div>
				</div>
			</li> 
			<?php
			if ( $column >= $cols ) echo '</ul>';
			$column++;
		}
		?>                  
    	</ul>
        
        <!-- More Button -->
        <?php if ( $has_more_btn ) : ?>
        	<p><a href="<?php echo $more_link; ?>" class="btn btn-primary"><?php echo $params->get( 'more_btn_label', 'More Videos' ); ?></a></p>
        <?php endif; ?>
    </div>
</div>