Notice: Undefined variable: video_type

Hi how do i fix this error? Notice: Undefined variable: video_type
wp-content/themes/multinews/framework/includes/post-formats.php 56

Here is the code.

<?php } elseif ($video_type == ‘facebook’) { ?>
<div class=”video_frame”>
<iframe src=”//www.facebook.com/video/embed?video_id=<?php echo $video_id; ?>” width=”<?php echo $vi_width; ?>” height=”<?php echo $vi_height; ?>” frameborder=”0″></iframe>
</div><!–End Vido_frame–>
<?php } elseif ($video_type == ‘vimeo’) { ?>
<div class=”video_frame”>
<iframe src=”//player.vimeo.com/video/<?php echo $video_id; ?>?<?php echo $e_autoplay; ?>title=0&amp;byline=0&amp;portrait=0&amp;color=ffffff” width=”<?php echo $vi_width; ?>” height=”<?php echo $vi_height; ?>” frameborder=”0″ webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
<?php } elseif ($video_type == ‘daily’) { ?>
<div class=”video_frame”>
<iframe frameborder=”0″ width=”<?php echo $vi_width; ?>” height=”<?php echo $vi_height; ?>” src=”//www.dailymotion.com/embed/video/<?php echo $video_id ?>?<?php echo $e_autoplay; ?>logo=0″></iframe>
</div>
<?php } elseif ($video_type == ‘html5’) { ?>
<div class=”video_frame”>
<?php echo do_shortcode(‘’); ?>
</div>
<?php } ?>

Read more here:: Notice: Undefined variable: video_type

Leave a Reply

Your email address will not be published. Required fields are marked *