NexusLeads Webshell
NexusLeads


Server : LiteSpeed
System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : alsaif ( 1057)
PHP Version : 7.4.33
Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/alsaif/public_html/components/com_allvideoshare/views/category/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alsaif/public_html/components/com_allvideoshare/views/category/view.feed.php
<?php
/*
 * @version		$Id: view.feed.php 3.5.0 2020-01-25 $
 * @package		All Video Share
 * @copyright   Copyright (C) 2012-2020 MrVinoth
 * @license     GNU/GPL http://www.gnu.org/licenses/gpl-2.0.html
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

class AllVideoShareViewCategory extends AllVideoShareView {

	public function display( $tpl = null ) {
		
		$app = JFactory::getApplication();	
		$doc = JFactory::getDocument();	
			
		$model = $this->getModel();
		$item = $model->getItem();
		
		if ( ! $item ) return;
		if ( ! AllVideoShareUtils::hasPermission( $item->access ) ) return;
		
		$config = AllVideoShareUtils::getConfig();
	
		$doc->editor = $app->getCfg( 'fromname' );
		$doc->editorEmail = $app->getCfg( 'mailfrom' );	

		$params = $app->getParams();
	
		$items = $model->getVideos( $item->id, $params, 20 );	

		$itemId = AllVideoShareUtils::getVideoMenuId( $config );		
		$itemId = ! empty( $itemId ) ? '&Itemid=' . $itemId : '';
				 
		foreach ( $items as $item ) {
			$title = $this->escape( $item->title );
			$title = html_entity_decode( $title, ENT_COMPAT, 'UTF-8' );
			
			$target = JRoute::_( "index.php?option=com_allvideoshare&view=video&slg=" . $item->slug . $itemId );
			
			$description = $item->description;
			
			$image = ! empty( $item->preview ) ? $item->preview : $item->thumb;
			if ( ! empty( $image ) ) {
				$description .= '<img src="' . $image . '" />';
			}		
							
			// load individual item creator class
			$feeditem = new JFeedItem();
			
			$feeditem->title	   = $title;
			$feeditem->link		   = $target;				
			$feeditem->description = $description;			
			$feeditem->category	   = $item->category;	
			$feeditem->date		   = $item->created_date;	
										
			// loads item info into rss array
			$doc->addItem( $feeditem );									
		}	
		
    }
	
}

NexusLeads