3     {% load i18n compressed %}
 
   4     {% load catalogue_tags %}
 
   7         <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
 
   8         <meta name="description" 
 
   9             content="{{ book.title }} - darmowy audiobook na wolnej licencji" />
 
  10         <title>{% trans "Wolne Lektury" %} ::
 
  11             {{ book.title }} - {{ audiobook }}</title>
 
  12         <link rel="icon" href="{{ STATIC_URL }}img/favicon.png" type="image/png" />
 
  13         {% compressed_css "all" %}
 
  14         {% compressed_css "player" %}
 
  17     <body id="{% block bodyid %}player{% endblock %}">
 
  21                 {% thumbnail book.cover "101x140" as thumb %}
 
  26             " alt="Cover" style="float: left; margin: .5em 1em 1em 1em;" />
 
  30 <h1>{% book_title book %}</h1>
 
  32 <div class="player-info normal-text">
 
  33         <p><a target="_blank" href="{{ book.get_absolute_url }}">{% trans "Book's page" %}</a>.</p>
 
  34         <p>{% trans "Download as" %}
 
  35         <a href="{% url download_zip_mp3 book.slug %}">MP3</a>{% if have_oggs %},
 
  36             <a href="{% url download_zip_ogg book.slug %}">Ogg Vorbis</a>{% endif %}.
 
  39     {% if book.has_daisy_file %}
 
  41         <ul class="daisy-list">
 
  42         {% for media in book.get_daisy %}
 
  43             <li><a href="{{ media.file.url }}">{{ media.name }}</a></li>
 
  49 <div style="clear: both"></div>
 
  51 <div class="jp-type-playlist">
 
  52   <div id="jplayer" class="jp-jplayer"
 
  53     data-supplied="{% if have_oggs %}oga,{% endif %}mp3"></div>
 
  54   <div id="jp_container_1" class="jp-audio">
 
  55     <div class="jp-type-single">
 
  56       <div class="jp-gui jp-interface">
 
  57         <ul class="jp-controls">
 
  58           <li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
 
  59           <li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
 
  60           <li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li>
 
  61           <li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute">mute</a></li>
 
  62           <li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute">unmute</a></li>
 
  63           <li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume">max volume</a></li>
 
  65         <div class="jp-progress">
 
  66           <div class="jp-seek-bar">
 
  67             <div class="jp-play-bar"></div>
 
  70         <div class="jp-volume-bar">
 
  71           <div class="jp-volume-bar-value"></div>
 
  73         <div class="jp-time-holder">
 
  74           <div class="jp-current-time"></div>
 
  75           <div class="jp-duration"></div>
 
  79       <div class="jp-playlist">
 
  82         {% for i in audiobooks %}
 
  84             <span class='jp-free-media'>
 
  85               (<a class='mp3' href='{{ i.mp3.file.url }}'>mp3</a>{% if i.ogg %}
 
  86               | <a class='ogg' href='{{ i.ogg.file.url }}'>ogg</a>{% endif %})
 
  88             <div class='play'>{{ i.mp3.name }}
 
  89             <div class='extra-info'>
 
  90               {% trans "Artist" %}: <span class='artist'>{{ i.mp3.get_extra_info_value.artist_name }}</span>,
 
  91               {% trans "Director" %}: <span class='director'>{{ i.mp3.get_extra_info_value.director_name }}</span>
 
 100       <div class="jp-no-solution">
 
 101         <span>Update Required</span>
 
 102         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>.
 
 109         {% if projects|length > 1 %}
 
 110             <p>{% trans "Audiobooks were prepared as a part of the projects:" %}</p>
 
 112             {% for cs, fb in projects %}
 
 115                     {% blocktrans %}{{ cs }}, funded by {{ fb }}{% endblocktrans %}
 
 124             {% with projects.0.0 as cs %}
 
 125             {% with projects.0.1 as fb %}
 
 127                     {% blocktrans %}Audiobooks were prepared as a part of the {{ cs }} project funded by {{ fb }}.{% endblocktrans %}
 
 129                     {% blocktrans %}Audiobooks were prepared as a part of the {{ cs }} project.{% endblocktrans %}
 
 137         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
 
 138         {% compressed_js "player" %}
 
 140         <!--{{ piwik_tag|safe }}
 
 141         <script type="text/javascript">
 
 142         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
 
 143         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
 
 145         <script type="text/javascript">
 
 146         var pageTracker = _gat._getTracker("UA-2576694-1");
 
 147         pageTracker._trackPageview();