Ejemplo n.º 1
0
<?php

/**  
 * Video player myextract xml file for video details and related  video settings.
 *
 * @category   Apptha
 * @package    Contus video Gallery
 * @version    2.7
 * @author     Apptha Team <*****@*****.**>
 * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html 
 */
// Include config file
require_once dirname(__FILE__) . '/hdflv-config.php';
$pageOBJ = new ContusVideoView();
// include class from Videohome view
$contOBJ = new ContusVideoController();
// include class from Videohome controller
$getVid = $pageOBJ->_vId;
// Get video ID from video home view
$getPid = $pageOBJ->_pId;
// Get playlist ID from video home view
$numberofvideos = filter_input(INPUT_GET, 'numberofvideos');
// Get number of videos from URL
if (empty($numberofvideos)) {
    $numberofvideos = $contOBJ->related_video_count();
}
if (empty($numberofvideos)) {
    $numberofvideos = 4;
}
$banner = 0;
Ejemplo n.º 2
0
/**
 * Function to display Plugin home page
 */
function video_homereplace()
{
    global $frontControllerPath, $frontModelPath, $frontViewPath;
    /** Include video home controller file */
    include_once $frontControllerPath . 'videohomeController.php';
    /** Create object for ContusVideoView class */
    $pageOBJ = new ContusVideoView();
    /** Call function to display home page player, popular, recent, featured and home page category videos */
    $contentPlayer = $pageOBJ->home_player();
    $contentPopular = $pageOBJ->home_thumb('popular');
    $contentRecent = $pageOBJ->home_thumb('recent');
    $contentFeatured = $pageOBJ->home_thumb('featured');
    $contentCategories = $pageOBJ->home_thumb('cat');
    /** Return home page palyer and content */
    return $contentPlayer . $contentPopular . $contentRecent . $contentFeatured . $contentCategories;
}
/**
 * Function to display Plugin home page
 */
function video_homereplace($atts)
{
    global $frontControllerPath;
    include_once $frontControllerPath . 'videohomeController.php';
    $pageOBJ = new ContusVideoView();
    $contentPlayer = $pageOBJ->home_player();
    $contentPopular = $pageOBJ->home_thumb('popular');
    $contentRecent = $pageOBJ->home_thumb('recent');
    $contentRandom = $pageOBJ->home_thumb('recent');
    $contentFeatured = $pageOBJ->home_thumb('featured');
    $contentCategories = $pageOBJ->home_thumb('cat');
    return $contentPlayer . $contentPopular . $contentRecent . $contentFeatured . $contentCategories;
}