def promo_video_twilight(request): """Twilight parody promo video.""" desc = _('A teenage girl learns the truth about the fox. Get inspired for ' 'your Firefox Flicks entry by checking out our video.') d = dict(video_title=_('Twilight'), video_description=desc, tweet_text=desc, page_type='videos', video_embed=vidly_embed_code(promo_video_shortlink('twilight'), width='100%')) return render(request, 'videos/2012/promo.html', d)
def promo_video_noir(request): """Film Noir promo video.""" d = dict(video_title=_('Noir'), video_description=_('The fox meets a damsel in distress, but can ' 'he help her? Get inspired for your Firefox ' 'Flicks entry by checking out our video.'), tweet_text=_('The fox meets a damsel in distress, but can he help ' 'her?'), page_type='videos', video_embed=vidly_embed_code(promo_video_shortlink('noir'), width='100%')) return render(request, 'videos/2012/promo.html', d)
def promo_video_dance(request): """Dancing promo video.""" d = dict(video_title=_('Dance'), video_description=_("He's got the moves, he's got ambition. How " "far can this fox's feet take him? Get " "inspired for your Firefox Flicks entry by " "checking out our video."), tweet_text=_("He's got the moves. He's got ambition. How far can " "this fox's feet take him?"), page_type='videos', video_embed=vidly_embed_code(promo_video_shortlink('dance'), width='100%')) return render(request, 'videos/2012/promo.html', d)
def embed_html(self, width=600, height=337): """Return the escaped HTML code to embed this video.""" return vidly_embed_code(self.shortlink, width=width, height=height)