web/embed_form.php
changeset 229 74c9ddc3640b
parent 214 8aaabfa53bc5
child 233 10d6fd6ce9ab
equal deleted inserted replaced
228:1bcc79e78fa1 229:74c9ddc3640b
       
     1 <?php
       
     2 
       
     3 /**
       
     4  * include some common code (like we did in the 90s)
       
     5  * People still do this? ;)
       
     6  */
       
     7 $rep = $_REQUEST['rep'];
       
     8 include_once dirname(__FILE__).'/'.$rep.'/config.php';
       
     9 include_once 'common.php';
       
    10 
       
    11 ?>
       
    12 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
       
    13 <html lang="<?php echo($actual); ?>">
       
    14   <head>
       
    15     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
       
    16     <title>embed Configuration</title>
       
    17 	
       
    18 	<link rel="stylesheet" href="<?php echo(URL_ROOT); ?>res/css/custom.css" type="text/css" media="screen, projection">
       
    19 	
       
    20 	<!-- FONT -->
       
    21 	<link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
       
    22 	<link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
       
    23 	<link href='<?php echo(registry_url('Geo','font'))?>' rel='stylesheet' type='text/css'>
       
    24 
       
    25 	<style type="text/css"> 
       
    26 		body{
       
    27 			padding:0px;
       
    28 			margin:0px;
       
    29 			background-image:none;
       
    30 			width:300px;
       
    31 			padding:5px;
       
    32 		}
       
    33 		textarea {
       
    34 			margin-left:3px;
       
    35 			height: 150px;
       
    36 			width: 330px;
       
    37 			padding:5px;
       
    38 			background-image:none;
       
    39 			border:solid 1px #ccc;
       
    40 		}
       
    41 	</style>
       
    42 	<script type="text/javascript">
       
    43 	
       
    44 	  var _gaq = _gaq || [];
       
    45 	  _gaq.push(['_setAccount', 'UA-23581291-1']);
       
    46 	  _gaq.push(['_trackPageview']);
       
    47 	
       
    48 	  (function() {
       
    49 	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
       
    50 	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
       
    51 	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
       
    52 	  })();
       
    53 	
       
    54 	</script>
       
    55   </head>
       
    56   
       
    57   <h1 class="tweetWriterTitle" style="width:300px;" > <?php print $translate->_("EmbedTitle"); ?></h1>
       
    58   
       
    59   <p style="font-size:12px;width:300px;"><?php print $translate->_("EmbedText"); ?> </p>
       
    60   <textarea cols="10" rows="10"><iframe src="<?php echo(URL_ROOT.$rep); ?>/player_embed.php<?php echo(array_key_exists("metadata",$_GET)?"?metadata=".$_GET["metadata"]:""); ?>" width="<?php echo($config['player_width']); ?>" height="<?php echo($config['player_height']); ?>" frameborder="0"></iframe><p><a href="<?php echo(URL_ROOT.$rep); ?>/polemicaltimeline.php<?php echo(array_key_exists("metadata",$_GET)?"#metadata=".$_GET["metadata"]:""); ?>">Source</a> on <a href="<?php echo(URL_ROOT); ?>">PolemicTweet</a>.</p>
       
    61   </textarea>
       
    62 
       
    63   </body>
       
    64 </html>