improve embed code for mashup festival V00.66
authorYves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Mon, 04 Jul 2011 18:44:47 +0200
changeset 210 ce76cecb5ca2
parent 209 b3091d5aa6cc
child 211 292660b3f7a5
improve embed code for mashup festival
web/mashup/embed_form.php
web/mashup/player_embed.php
--- a/web/mashup/embed_form.php	Mon Jul 04 10:44:39 2011 +0200
+++ b/web/mashup/embed_form.php	Mon Jul 04 18:44:47 2011 +0200
@@ -59,7 +59,10 @@
   <h1 class="tweetWriterTitle" style="width:300px;" > <?php print $translate->_("EmbedTitle"); ?></h1>
   
   <p style="font-size:12px;width:300px;"><?php print $translate->_("EmbedText"); ?> </p>
-  <textarea cols="10" rows="10"><iframe src="<?php echo($config['root'].$config['rep']); ?>/player_embed.php<?php echo(array_key_exists("metadata",$_GET)?"?metadata=".$_GET["metadata"]:"") ?>" width="<?php echo($player_width); ?>" height="<?php echo($player_height); ?>" frameborder="0"></iframe><p><a href="<?php echo($config['root'].$config['rep']); ?>"><?php echo($config['title']); ?></a> from <a href="<?php echo($config['link']); ?>">RSLN</a>on <a href="<?php echo($config['root']); ?>">Polemical Tweet</a>.</p>
+  
+  <textarea cols="10" rows="10">
+  <iframe src="<?php echo($config['root'].$config['rep']); ?>/player_embed.php<?php echo(array_key_exists("metadata",$_GET)?"?metadata=".$_GET["metadata"]:""); ?>" width="650" height="640" frameborder="0"></iframe>
+  <p><a href="<?php echo($config['root'].$config['rep']); ?>/polemicaltimeline.php<?php echo(array_key_exists("metadata",$_GET)?"#metadata=".$_GET["metadata"]:""); ?>">Source</a> on <a href="<?php echo($config['root']); ?>">PolemicTweet</a>.</p>
   </textarea>
 
   </body>
--- a/web/mashup/player_embed.php	Mon Jul 04 10:44:39 2011 +0200
+++ b/web/mashup/player_embed.php	Mon Jul 04 18:44:47 2011 +0200
@@ -67,7 +67,7 @@
 
 	</style>
 	<script type="text/javascript">
-	  		// Configuration Polemical Timeline
+	    // Configuration Polemical Timeline	  		
   		<?php
   		if(is_array($config['metadata'])) {
   		    if(!$metadata_key) {
@@ -92,13 +92,13 @@
 					height:<?php echo($player_height); ?>,
 					heightmax:<?php echo($player_height); ?>,
 					duration:<?php echo($duration); ?>,
-					metadata:<?php echo($metadata); ?>
+					metadata:"<?php echo($url); ?>"
 					};
 	</script>
 	
   	<script type='text/javascript' src='../res/metadataplayer.polemic/src/js/polemic.js'></script>
   	<script type="text/javascript">
-  		jQuery..extend(__IriSP.lib,{jQueryToolTip:"../res/metadataplayer/res/js/jquery.tools.min.js"});
+  		jQuery.extend(__IriSP.lib,{jQueryToolTip:"../res/metadataplayer/res/js/jquery.tools.min.js"});
 	</script>
   	
 	<script type="text/javascript">