def promo_video_twilight(request): """Twilight parody promo video.""" desc = _lazy('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=_lazy('Twilight'), video_description=desc, tweet_text=desc, page_type='videos', video_embed=Markup(embedCode(promo_video_shortlink('twilight'), width=600, height=337))) return render(request, 'videos/promo.html', d)
def promo_video_dance(request): """Dancing promo video.""" d = dict(video_title=_lazy('Dance'), video_description=_lazy("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."), page_type='videos', video_embed=Markup(embedCode(promo_video_shortlink('dance'), width=600, height=337))) return render(request, 'videos/promo.html', d)
def promo_video_noir(request): """Film Noir promo video.""" d = dict(video_title=_lazy('Noir'), video_description=_lazy('The fox meets a damsel in distress, but ' 'can he help her? Get inspired for your ' 'Firefox Flicks entry by checking out ' 'our video.'), page_type='videos', video_embed=Markup(embedCode(promo_video_shortlink('noir'), width=600, height=337))) return render(request, 'videos/promo.html', d)
def embed_html(self): """Return the escaped HTML code to embed this video.""" return Markup(embedCode(self.shortlink))
def embed_html(self, width=600, height=337): """Return the escaped HTML code to embed this video.""" return Markup(embedCode(self.shortlink, width, height))