/** * 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; }