| Current Path : /var/www/modules/mod_yendifvideoshare_playlist/ |
| Current File : /var/www/modules/mod_yendifvideoshare_playlist/mod_yendifvideoshare_playlist.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' );
if ( ! defined( 'DS' ) ) {
define( 'DS', DIRECTORY_SEPARATOR );
}
require_once dirname( __FILE__ ) . DS . 'helper.php';
require_once JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_yendifvideoshare' . DS . 'libraries' . DS . 'utils.php';
require_once JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_yendifvideoshare' . DS . 'libraries' . DS . 'player.php';
$config = YendifVideoShareUtils::getConfig();
$canDo = isset( $config->access ) ? 1 : 0;
$params_array = (array) json_decode( $params );
if ( isset( $params_array['filterby'] ) && ! empty( $params_array['filterby'] ) ) {
$params_array['featured'] = $params_array['filterby'];
}
unset( $params_array['filterby'] );
$items = YendifVideoSharePlaylistHelper::getItems( $params_array, $config->schedule_video_publishing );
if ( empty( $items ) ) {
return;
}
$show_excerpt = $params->get( 'show_excerpt', $config->show_excerpt );
if ( $show_excerpt == 'global' ) {
$show_excerpt = $config->show_excerpt;
}
$moduleclass_sfx = htmlspecialchars( $params->get( 'moduleclass_sfx' ) );
require JModuleHelper::getLayoutPath( 'mod_yendifvideoshare_playlist' );