I want to Make Template of Season Tabs

azad_panchi_2f98eb33183ce

Azad Panchi

Posted on May 8, 2024

I want to Make Template of Season Tabs

I want to make its Style like EpisoDate.Com Episodes List Season Tabs, Episodes List, Episode Details, Timeline Dot, Before Day and Date

`<?php
/**

// Main data
$tmdb = get_post_meta($post->ID,'ids',true);
$ctrl = get_post_meta($post->ID,'clgnrt',true);
/=====================================================/
$query_seasons = DDbmoviesHelpers::GetAllSeasons($tmdb);
/=====================================================/
// Start Query
if($query_seasons && is_array($query_seasons) && $ctrl == true){
$html_out = "

";
$html_out .="

".__d('Seasons and episodes')."

";
$html_out .="";
$numb = 0;
foreach($query_seasons as $season){
$senumb = get_post_meta($season,'temporada', true);
$aidate = get_post_meta($season,'air_date', true);
$rating = get_post_meta($season,'_starstruck_avg', true);
/=====================================================/
$query_episodes = DDbmoviesHelpers::GetAllEpisodes($tmdb,$senumb);
/=====================================================/
$mnseo = $numb == 0 ? ' se-o' : false;
$dsply = $numb == 0 ? ' style="display:block"' : false;
$title = $senumb == '0' ? __d('Specials') : sprintf( __d('Season %s %s'), $senumb, ''.doo_date_compose($aidate, false).'');
$nseas = $senumb == '0' ? '' : $senumb;
// Continue View HTML
$html_out .="";
$html_out .="";
$html_out .="{$senumb}";
$html_out .="{$title}";
if($rating >= '1'){
$html_out .="{$rating}";
}
$html_out .="
";
$html_out .="
    "; if($query_episodes && is_array($query_episodes)){ foreach($query_episodes as $episode){ // Post Data
            $episo = get_post_meta($episode,'episodio', true);
            $edate = get_post_meta($episode,'air_date', true);
            $edate = doo_date_compose($edate, false);
            $plink = get_permalink($episode);
            $title = !empty($name) ? $name : __('Episode').' '.$episo;
            // The View
            $html_out .= "<li class='mark-{$episo}'>";
            if($senumb !== '0'){
                $html_out .= "<div class='numerando'>{$senumb} - {$episo}</div>";
            } else{
                $html_out .= "<div class='numerando'><i class='icon-star'></i> - {$episo}</div>";
            }
            $html_out .= "<div class='episodiotitle'><a href='{$plink}'>{$title}</a> <span class='date'>{$edate}</span></div>";
            $html_out .= "</li>";
        }
    } else{
        $html_out .= "<li class='none'>".__d('There are still no episodes this season')."</li>";
    }
    $html_out .="</ul></div></div>";
    $numb++;
}
$html_out .="</div></div></div>";
echo apply_filters('dooplay_list_seasons_episodes', $html_out, $tmdb);

}
`

💖 💪 🙅 🚩
azad_panchi_2f98eb33183ce
Azad Panchi

Posted on May 8, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related