[cc-commits] [SCM] Integrates CC licensing into media manager and posts (branch master) updated. 0.5-21-gc028d68

git version control git at a7.creativecommons.org
Tue Jul 13 02:28:10 EDT 2010


The branch, master has been updated
       via  c028d68e168d89adbbf0ddae72e350c35d6e3d59 (commit)
      from  59713115d271d5c61e913ba629616c694b080519 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c028d68e168d89adbbf0ddae72e350c35d6e3d59
Author: Nils Dagsson Moskopp <nils at dieweltistgarnichtso.net>
Date:   Tue Jul 13 08:27:24 2010 +0200

    + audio, video and object now all have a hyperlink as fallback content

-----------------------------------------------------------------------

Summary of changes (followed by patch):
 wordpress-cc-plugin/wordpress-cc-plugin.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/wordpress-cc-plugin/wordpress-cc-plugin.php b/wordpress-cc-plugin/wordpress-cc-plugin.php
index fe640a2..ef365f2 100644
--- a/wordpress-cc-plugin/wordpress-cc-plugin.php
+++ b/wordpress-cc-plugin/wordpress-cc-plugin.php
@@ -385,12 +385,12 @@ function cc_wordpress_create_figure($attachment_id, $title, $size = '', $is_post
         }
     } elseif ($type == 'audio') {
         $dmci_type_url = 'http://purl.org/dc/dcmitype/Sound';
-        $media_html = '<audio src="'. $url . '"/>';
+        $media_html = '<audio src="'. $url . '"><a href="'. $url .'">audio download</a></audio>';
     } elseif ($type == 'video') {
         $dmci_type_url = 'http://purl.org/dc/dcmitype/MovingImage';
-        $media_html = '<video src="'. $url .'"/>';
+        $media_html = '<video src="'. $url .'"><a href="'. $url .'">video download</a></video>';
     } else {
-        $media_html = '<object src="'. $url .'"/>';
+        $media_html = '<object src="'. $url .'"><a href="'. $url .'">download</a></object>';
     }
 
     $attribution_name = get_post_meta($id, 'cc_rights_holder', true);


hooks/post-receive
-- 
Integrates CC licensing into media manager and posts



More information about the cc-commits mailing list