| Server IP : 68.178.247.200 / Your IP : 216.73.217.131 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/x9dppmxs4rgd/public_html/wp-content/plugins/youtube-showcase/includes/ |
Upload File : |
<?php
/**
* Content Functions
*
* @package EMD
* @copyright Copyright (c) 2014, Emarket Design
* @since 5.3
*/
if (!defined('ABSPATH')) exit;
function youtube_showcase_content(){
global $post;
ob_start();
if(is_single()){
$file = emd_get_single_template('youtube_showcase',$post->post_type);
if($file == 'emd-no-access.php'){
emd_get_template_part('youtube-showcase', 'no-access');
}
else {
while ( have_posts() ) : the_post();
emd_get_template_part('youtube-showcase', 'single', str_replace("_","-",$post->post_type));
endwhile;
}
}elseif (is_tax()) {
$file = emd_get_taxonomy_template('youtube_showcase');
if($file == 'emd-no-access.php'){
emd_get_template_part('youtube-showcase', 'no-access');
}
else {
$queried_object = get_queried_object();
if ( have_posts() ) :
while ( have_posts() ) : the_post();
emd_get_template_part('youtube-showcase', 'taxonomy', str_replace("_","-",$queried_object->taxonomy . '-' . $post->post_type));
endwhile;
endif;
}
} elseif (is_post_type_archive()){
$file = emd_get_archive_template('youtube_showcase');
if($file == 'emd-no-access.php'){
emd_get_template_part('youtube-showcase', 'no-access');
}
else {
if ( have_posts() ) :
while ( have_posts() ) : the_post();
emd_get_template_part('youtube-showcase', 'archive', str_replace("_","-",$post->post_type));
endwhile;
endif;
}
}
$layout = ob_get_clean();
echo $layout;
}