Exemplo n.º 1
0
 * @author     Apptha Team <*****@*****.**>
 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html 
 */
/** Creating object for VideosSubController class */
$videoOBJ = new VideosSubController();
/** Call function to add videos data  */
$videoOBJ->add_newvideo();
/** Assign class variables into local variables */
$videoId = $videoOBJ->_videoId;
$videosearchQuery = $videoOBJ->_videosearchQuery;
$searchBtn = $videoOBJ->_searchBtn;
$searchMsg = $videoOBJ->_videosearchQuery;
$settingsGrid = $videoOBJ->_settingsData;
/** Call function to get message for the corresponding action */
$displayMsg = $videoOBJ->get_message();
/** Call function to delete videos data */
$videoOBJ->get_delete();
/** Call function to display videos data in grid section */
$gridVideo = $videoOBJ->video_data();
/** Call function to count videos data */
$Video_count = $videoOBJ->video_count($videosearchQuery, $searchBtn);
/** Get video publish option */
$player_colors = unserialize($settingsGrid->player_colors);
/** Initialize variables for videos page */
$page = $ordervalue = '';
/** Get current user role for videos page */
$userid = wp_get_current_user();
$userDetails = get_user_by('id', $userid->ID);
if (isset($userDetails->roles)) {
    $user_role = $userDetails->roles[0];