Files
edx-platform/lms/templates/public_video.html
2023-04-21 10:07:03 -04:00

48 lines
2.2 KiB
HTML

<%page expression_filter="h"/>
<%!
from django.utils.translation import gettext as _
%>
<%inherit file="courseware/courseware-chromeless.html"/>
<%block name="head_extra">
<!-- OpenGraph tags -->
<meta data-rh="true" property="og:type" content="website">
<meta data-rh="true" property="og:site_name" content="edX">
<meta data-rh="true" property="og:title" content="${social_sharing_metadata['video_title']}">
<meta data-rh="true" property="og:description" content="${social_sharing_metadata['video_description']}">
<meta data-rh="true" property="og:image" content="${social_sharing_metadata['video_thumbnail']}">
<meta data-rh="true" property="og:url" content="${social_sharing_metadata['video_embed_url']}">
<meta data-rh="true" property="og:type" content="video.other">
<meta data-rh="true" property="og:video" content="${social_sharing_metadata['video_embed_url']}">
<meta data-rh="true" property="og:video:url" content="${social_sharing_metadata['video_embed_url']}">
<meta data-rh="true" property="og:video:secure_url" content="${social_sharing_metadata['video_embed_url']}">
<meta data-rh="true" property="og:video:width" content="1280">
<meta data-rh="true" property="og:video:height" content="720">
<meta data-rh="true" property="og:video:type" content="text/html">
<!-- Twitter-specific video player tags -->
<meta data-rh="true" name="twitter:card" content="player">
<meta data-rh="true" name="twitter:site" content="@edxOnline">
<meta data-rh="true" name="twitter:player" content="${social_sharing_metadata['video_embed_url']}">
<meta data-rh="true" name="twitter:player:width" content="1280">
<meta data-rh="true" name="twitter:player:height" content="720">
</%block>
<%block name="bodyclass">view-in-course view-courseware courseware ${course.css_class or ''} public-video-page</%block>
<%block name="body_extra">
<nav class="public-video-share-cta" aria-label="Learn More">
% if org_logo:
<img class="org-logo" src="${org_logo}" alt="Organization Logo"/>
% endif
<div class="nav-links">
<a class="btn-learn-more btn" href="${learn_more_url}">
${_("Learn more about this course")}
</a>
<a class="btn-enroll btn" href="${enroll_url}">
${_("Enroll in this course")}
</a>
</div>
</nav>
</%block>