EpisodeArray[$epnum - 1]; if($epdata['comments'] == 1) { $oneOrMore = $epdata['comments'] . " Comment"; } else { $oneOrMore = $epdata['comments'] . " Comments"; } if($epdata['comments'] == 0) { $epComments = '

No comments? Be the first to comment on this video!

'; } else { $epComments = $episode->GetEpisodeComments($_GET['episode']); } if(!empty($_COOKIE['MadSplashUser'])) { $form = ParseTemplate($CommentForm, array('epid' => $_GET['episode'], 'id' => $_GET['show'])); } else { $form = ''; } $data = array( 't' => $epdata['title'], 'l' => $epdata['embed'], 'd' => $epdata['description'], 'thumb' => $episode->Thumbnail, 'comments' => $epComments, 'ccount' => $oneOrMore, 'form' => $form ); include("Pieces/Templates/show.php"); foreach($data as $a => $b) { $template = str_replace("{{{" . $a . "}}}", $b, $template); } echo $template; include("Pieces/footer.htm"); ?>