annotate gpp/templates/podcast/detail.html @ 490:f0f3966ea44f

For #233, switched to asynchronous loading of the social media sharing javascript. Also switched to Facebook's javascript SDK instead of using an iframe for the like/share button.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Oct 2011 00:36:37 +0000
parents a747215e9a5a
children 2bfb2755f70b
rev   line source
gremmie@1 1 {% extends 'podcast/base.html' %}
bgneal@310 2 {% load url from future %}
bgneal@487 3 {% load script_tags %}
bgneal@487 4 {% load core_tags %}
gremmie@1 5 {% block title %}Podcast: {{ podcast.title }}{% endblock %}
bgneal@487 6 {% block custom_meta %}
bgneal@487 7 {% open_graph_meta_tags podcast %}
bgneal@487 8 {% endblock %}
bgneal@402 9 {% block custom_css %}
bgneal@402 10 <link type="text/css" href="{{ STATIC_URL }}js/jplayer/skins/blue.monday/jplayer.blue.monday.css" rel="stylesheet" />
bgneal@402 11 {% endblock %}
bgneal@402 12 {% block custom_js %}
bgneal@402 13 <script type="text/javascript" src="{{ STATIC_URL }}js/jplayer/jquery.jplayer.min.js"></script>
bgneal@402 14
bgneal@402 15 <script type="text/javascript">
bgneal@402 16 //<![CDATA[
bgneal@402 17 var jplayer_media = {{ jplayer_media|safe }};
bgneal@402 18 $(document).ready(function(){
bgneal@402 19 $("#jquery_jplayer_1").jPlayer({
bgneal@402 20 ready: function () {
bgneal@402 21 $(this).jPlayer("setMedia", jplayer_media);
bgneal@402 22 },
bgneal@402 23 swfPath: "{{ STATIC_URL }}js/jplayer",
bgneal@402 24 supplied: "{{ jplayer_supplied }}"
bgneal@402 25 });
bgneal@402 26 });
bgneal@402 27 //]]>
bgneal@402 28 </script>
bgneal@402 29 {% endblock %}
bgneal@490 30 {% block begin_body %}{% include 'core/social_sharing_begin.html' %}{% endblock %}
gremmie@1 31 {% block podcast-content %}
bgneal@225 32 <div class="breadcrumbs">
bgneal@310 33 <a href="{% url 'podcast.views.index' %}">Podcast Index</a> &gt;&gt; {{ podcast.title }}
gremmie@1 34 </div>
gremmie@1 35 <h3>{{ podcast.pubdate|date:"F d, Y" }} &bull; {{ podcast.title }}</h3>
gremmie@1 36 <h4>{{ podcast.subtitle }}</h4>
gremmie@1 37 {{ podcast.summary|linebreaks }}
bgneal@402 38
bgneal@402 39 <p>Listen:</p>
bgneal@402 40 <div id="jquery_jplayer_1" class="jp-jplayer"></div>
bgneal@488 41 <div id="jp_container_1" class="jp-audio">
bgneal@402 42 <div class="jp-type-single">
bgneal@488 43 <div class="jp-gui jp-interface">
bgneal@402 44 <ul class="jp-controls">
bgneal@488 45 <li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
bgneal@488 46 <li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
bgneal@488 47 <li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li>
bgneal@488 48 <li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute">mute</a></li>
bgneal@488 49 <li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute">unmute</a></li>
bgneal@488 50 <li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume">max volume</a></li>
bgneal@402 51 </ul>
bgneal@402 52 <div class="jp-progress">
bgneal@402 53 <div class="jp-seek-bar">
bgneal@402 54 <div class="jp-play-bar"></div>
bgneal@402 55 </div>
bgneal@402 56 </div>
bgneal@402 57 <div class="jp-volume-bar">
bgneal@402 58 <div class="jp-volume-bar-value"></div>
bgneal@402 59 </div>
bgneal@488 60 <div class="jp-time-holder">
bgneal@488 61 <div class="jp-current-time"></div>
bgneal@488 62 <div class="jp-duration"></div>
bgneal@488 63 <ul class="jp-toggles">
bgneal@488 64 <li><a href="javascript:;" class="jp-repeat" tabindex="1" title="repeat">repeat</a></li>
bgneal@488 65 <li><a href="javascript:;" class="jp-repeat-off" tabindex="1" title="repeat off">repeat off</a></li>
bgneal@488 66 </ul>
bgneal@488 67 </div>
bgneal@402 68 </div>
bgneal@488 69 <div class="jp-title">
bgneal@402 70 <ul>
bgneal@488 71 <li>{{ podcast.title }} - {{ podcast.subtitle }}</li>
bgneal@402 72 </ul>
bgneal@402 73 </div>
bgneal@488 74 <div class="jp-no-solution">
bgneal@488 75 <span>Update Required</span>
bgneal@488 76 To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
bgneal@488 77 </div>
bgneal@402 78 </div>
bgneal@402 79 </div>
bgneal@402 80
bgneal@402 81 <br />
bgneal@402 82 <p> Or download:</p>
bgneal@143 83 <ul>
bgneal@143 84 <li>
bgneal@143 85 <a href="{{ podcast.enclosure_url }}">Download Now ({{ ext }})</a> &bull;
bgneal@143 86 {{ podcast.enclosure_length|filesizeformat }} &bull; {{ podcast.duration }}
bgneal@143 87 </li>
bgneal@143 88 {% if alt_ext %}
bgneal@143 89 <li>
bgneal@143 90 <a href="{{ podcast.alt_enclosure_url }}">Download Now ({{ alt_ext }})</a>
bgneal@143 91 </li>
bgneal@143 92 {% endif %}
bgneal@143 93 </ul>
bgneal@487 94 {% social_sharing podcast.search_title podcast.get_absolute_url %}
gremmie@1 95 {% endblock %}
bgneal@490 96 {% block end_body %}{% include 'core/social_sharing_end.html' %}{% endblock %}