Created
May 6, 2025 08:43
-
-
Save jmabbas/3628986822d584aebd66427cb6b0f12a to your computer and use it in GitHub Desktop.
Vodi - Display label if movies Empty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function masvideos_template_single_movie_player_wrap_open() { | |
ob_start(); // Start output buffering | |
masvideos_the_movie(); | |
$output = ob_get_clean(); // Get the output | |
if (!empty($output)) { | |
?> | |
<div class="movie__player"> | |
<?php | |
} else { | |
?> | |
<div>Empty</div> | |
<?php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment