Premiere version Tweetwall
authorRaphael Velt <raph.velt@gmail.com>
Fri, 10 Feb 2012 18:28:43 +0100
changeset 501 a5ce7d08e4f8
parent 500 4f5d9f654aaa
child 502 b035e0787bb0
Premiere version Tweetwall
web/res/css/tweetcast.css
web/res/js-tweetcast/live-polemic.js
web/tweetwall.php
--- a/web/res/css/tweetcast.css	Fri Feb 10 18:24:21 2012 +0100
+++ b/web/res/css/tweetcast.css	Fri Feb 10 18:28:43 2012 +0100
@@ -590,4 +590,57 @@
     color: #0099FF;
 }
 
+/* TWEET WALL */
 
+.tweetwall #tweetviz {
+    width: 800px; height: 770px;
+}
+
+.tweetwall #tweetlist {
+    width: 490px; height: 770px;
+}
+
+.tweetwall #timeline {
+    width: 280px; height: 770px;
+}
+
+.tweetwall li.full {
+    width: 475px; height: 140px; border-right: 15px solid #ff0;
+}
+
+.tweetwall li.half {
+    width: 490px; height: 80px;
+}
+
+.tweetwall li.icons {
+    width: 35px; height: 35px; border: none;
+}
+
+.tweetwall .full p.tweet_text {
+    font-weight: bold; font-size: 18px; margin: 10px 0 10px 100px;
+    height: 120px; width: 365px; color: #000000; line-height: 22px;
+}
+
+.tweetwall .half p.tweet_text {
+    font-weight: bold; font-size: 16px; margin: 10px 0 10px 70px; height: 60px; line-height: 20px; width: 410px;
+}
+
+.tweetwall .full .profile_image {
+    margin: 10px 10px 0 10px; width: 80px; height: 80px;
+}
+
+.tweetwall .half .profile_image {
+    margin: 10px; width: 60px; height: 60px;
+}
+
+.tweetwall .icons .profile_image {
+    margin: 5px; width: 25px; height: 25px;
+}
+
+.tweetwall p.created_at {
+    font-size: 18px; text-align: center; font-style: italic; color: #999999; width: 90px; overflow: hidden;
+}
+
+.tweetwall .tweet_actions {
+    display: none;
+}
--- a/web/res/js-tweetcast/live-polemic.js	Fri Feb 10 18:24:21 2012 +0100
+++ b/web/res/js-tweetcast/live-polemic.js	Fri Feb 10 18:28:43 2012 +0100
@@ -1045,6 +1045,8 @@
 }
 
 $(document).ready(function() {
+    twCx.tlWidth = $("#timeline").width();
+    twCx.tlHeight = $("#timeline").height();
     twCx.tlPaper = Raphael("timeline", twCx.tlWidth, twCx.tlHeight);
     
     connectTweets();
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/tweetwall.php	Fri Feb 10 18:28:43 2012 +0100
@@ -0,0 +1,89 @@
+<?php
+
+if(!isset($_REQUEST['rep'])) {
+    include_once dirname(__FILE__).'/common.php';
+    header('Location: ' . URL_ROOT . "$C_default_rep/tweetwall.php" );
+    exit();
+}
+
+$rep = $_REQUEST['rep'];
+include_once dirname(__FILE__).'/'.$rep.'/config.php';
+
+include_once 'common.php';
+
+$head_logo = URL_ROOT."$rep/images/head_logo.gif";
+if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) {
+    $head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo');
+}
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+   "http://www.w3.org/TR/html4/strict.dtd">
+
+<html lang="<?php echo($actual); ?>">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+    <title>Tweet Wall</title>
+    <meta http-equiv="X-UA-Compatible" content="IE=9" />
+
+    <!-- FONT -->
+    <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
+    <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
+    
+    <!-- CSS -->
+    <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/>
+
+    <!-- JAVASCRIPT -->
+    <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
+    <script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script>
+    <script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script>
+    <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script>
+    <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script>
+    
+    <script type="text/javascript">
+//        <?php if (isset($config['hashtag'])) echo "var tracking_keywords = ".json_encode(array($config['hashtag'])).";"; ?>
+
+
+        var tracking_keywords = ['sarkozy'];
+
+        <?php if (isset($config['js_config'])) echo $config['js_config']; ?>
+    </script>
+    <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script>
+
+    <script type="text/javascript">
+    
+      var _gaq = _gaq || [];
+      _gaq.push(['_setAccount', 'UA-23581291-1']);
+      _gaq.push(['_trackPageview']);
+      _gaq.push(['_setAllowAnchor', true]);
+    
+      (function() {
+        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+      })();
+    
+    </script>
+    
+  </head>
+  <body class="tweetwall">
+    <div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
+
+        <div id="container">
+
+            
+                <div id="tweetviz">
+                    <ul id="tweetlist"></ul>
+                    <div id="timeline"></div>
+                    <div id="scrollcont">
+                        <div id="scrollin"></div>
+                    </div>
+                </div>
+            </div>
+        </div>
+                <img src="<?php echo($head_logo); ?>" width="171" height="63" />
+<!--        <div id="hovertweet">
+            <div id="hovercontent"></div>
+            <div id="hoverarrow"></div>
+</div> -->
+  </body>
+</html>
\ No newline at end of file