Added buttons to download MP3 and Ogg Vorbis files to book_detail pages. Also added...
authorMarek Stępniowski <marek@stepniowski.com>
Fri, 28 Nov 2008 16:44:32 +0000 (17:44 +0100)
committerMarek Stępniowski <marek@stepniowski.com>
Mon, 1 Dec 2008 19:04:26 +0000 (20:04 +0100)
wolnelektury/media/css/master.css
wolnelektury/media/img/czytamysluchajac-logo-small.png [new file with mode: 0644]
wolnelektury/media/player.swf [new file with mode: 0644]
wolnelektury/templates/catalogue/book_detail.html

index 3d0f477..038eec1 100644 (file)
@@ -235,6 +235,20 @@ p .ac_input {
     text-align: center;    
 }
 
     text-align: center;    
 }
 
+#formats #czytamysluchajac-logo {
+    display: inline;
+    padding: 0 0.5em 0 0;
+    background: white;
+    float: left;
+    margin: 0.5em 0;
+    text-align: left;
+    width: 140px;
+    height: 62px;
+    -moz-border-radius: 0px;
+    -webkit-border-radius: 0px;
+    border-radius: 0px;
+}
+
 #tagged-object-list #themes-list, #book-detail #themes-list {
     margin-left: 14em;
 }
 #tagged-object-list #themes-list, #book-detail #themes-list {
     margin-left: 14em;
 }
diff --git a/wolnelektury/media/img/czytamysluchajac-logo-small.png b/wolnelektury/media/img/czytamysluchajac-logo-small.png
new file mode 100644 (file)
index 0000000..9c635aa
Binary files /dev/null and b/wolnelektury/media/img/czytamysluchajac-logo-small.png differ
diff --git a/wolnelektury/media/player.swf b/wolnelektury/media/player.swf
new file mode 100644 (file)
index 0000000..b2fde33
Binary files /dev/null and b/wolnelektury/media/player.swf differ
index 1ffcccc..2f14576 100644 (file)
             {% if book.txt_file %}
                 <a href="{{ book.txt_file.url }}">Pobierz plik TXT</a>
             {% endif %}
             {% if book.txt_file %}
                 <a href="{{ book.txt_file.url }}">Pobierz plik TXT</a>
             {% endif %}
+            {% if book.mp3_file and book.ogg_file %}
+                <a href="http://czytamysluchajac.pl/" id="czytamysluchajac-logo"><img src="/media/img/czytamysluchajac-logo-small.png" /></a>
+                <a href="{{ book.mp3_file.url }}">Pobierz plik MP3</a>
+                <a href="{{ book.ogg_file.url }}">Pobierz plik Ogg Vorbis</a>
+                <object type="application/x-shockwave-flash" data="/media/player.swf" width="426" height="20">
+                    <param name="movie" value="/media/player.swf" />
+                    <param name="bgcolor" value="#ffffff" />
+                    <param name="FlashVars" value="mp3={{ book.mp3_file.url }}&amp;width=426&amp;showvolume=1&amp;bgcolor1=eeeeee&amp;bgcolor2=eeeeee&amp;buttoncolor=666666" />
+                </object>
+            {% endif %}
             </div>
         </div>
     
             </div>
         </div>