| author | ymh <ymh.work@gmail.com> |
| Sun, 23 Sep 2018 15:20:40 +0200 | |
| changeset 1477 | bdf75c8cff6b |
| parent 932 | a7653f7d1412 |
| child 1557 | 7c67caaafdeb |
| permissions | -rw-r--r-- |
| 501 | 1 |
<?php |
2 |
||
3 |
if(!isset($_REQUEST['rep'])) { |
|
4 |
include_once dirname(__FILE__).'/common.php'; |
|
5 |
header('Location: ' . URL_ROOT . "$C_default_rep/tweetwall.php" ); |
|
6 |
exit(); |
|
7 |
} |
|
8 |
||
9 |
$rep = $_REQUEST['rep']; |
|
10 |
include_once dirname(__FILE__).'/'.$rep.'/config.php'; |
|
11 |
||
12 |
include_once 'common.php'; |
|
13 |
||
14 |
$head_logo = URL_ROOT."$rep/images/head_logo.gif"; |
|
15 |
if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) { |
|
16 |
$head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo'); |
|
17 |
} |
|
18 |
?> |
|
19 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|
20 |
"http://www.w3.org/TR/html4/strict.dtd"> |
|
21 |
||
22 |
<html lang="<?php echo($actual); ?>"> |
|
23 |
<head> |
|
24 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
25 |
<title>Tweet Wall</title> |
|
26 |
<meta http-equiv="X-UA-Compatible" content="IE=9" /> |
|
27 |
||
28 |
<!-- FONT --> |
|
29 |
<link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'> |
|
30 |
<link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'> |
|
31 |
||
32 |
<!-- CSS --> |
|
33 |
<link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/> |
|
34 |
||
35 |
<!-- JAVASCRIPT --> |
|
36 |
<script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script> |
|
37 |
<script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script> |
|
38 |
<script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script> |
|
39 |
<script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script> |
|
40 |
<script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script> |
|
41 |
||
42 |
<script type="text/javascript"> |
|
| 932 | 43 |
<?php |
44 |
if (isset($config['tracking_keywords']) && count($config['tracking_keywords'])) { |
|
45 |
echo "var tracking_keywords = ".json_encode($config['tracking_keywords']).';'; |
|
46 |
} elseif (isset($config['hashtag'])) { |
|
47 |
echo "var tracking_keywords = ".json_encode(array($config['hashtag'])).";"; |
|
48 |
} |
|
49 |
?> |
|
| 501 | 50 |
|
51 |
<?php if (isset($config['js_config'])) echo $config['js_config']; ?> |
|
52 |
</script> |
|
| 932 | 53 |
<?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])) { ?> |
| 501 | 54 |
<script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script> |
| 932 | 55 |
<?php } ?> |
| 501 | 56 |
|
57 |
<script type="text/javascript"> |
|
58 |
|
|
59 |
var _gaq = _gaq || []; |
|
60 |
_gaq.push(['_setAccount', 'UA-23581291-1']); |
|
61 |
_gaq.push(['_trackPageview']); |
|
62 |
_gaq.push(['_setAllowAnchor', true]); |
|
63 |
|
|
64 |
(function() { |
|
65 |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
|
66 |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
|
67 |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
|
68 |
})(); |
|
69 |
|
|
70 |
</script> |
|
71 |
||
72 |
</head> |
|
73 |
<body class="tweetwall"> |
|
74 |
||
75 |
<div id="container"> |
|
76 |
||
|
502
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
77 |
<div class="barre"> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
78 |
<img src="<?php echo($head_logo); ?>" width="171" height="63" /> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
79 |
<form id="recherche"> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
80 |
<input autocomplete="off" class="greyed" id="inp_q" value="<?php echo $translate->_('Rechercher'); ?>" /> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
81 |
<input id="inp_submit" type="submit" /> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
82 |
<input id="inp_reset" type="reset" /> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
83 |
<div id="time_controls"> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
84 |
<div id="time_legende"></div> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
85 |
<div id="time_scale"></div> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
86 |
<a href="#" id="time_zoomout"></a> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
87 |
<a href="#" id="time_zoomin"></a> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
88 |
</div> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
89 |
<div id="recherche_annot"> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
90 |
<?php echo $translate->_('SearchByPolemic'); ?> : <span id="rech_list_annot"></span><br /> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
91 |
</div> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
92 |
</form> |
|
b035e0787bb0
iri homepage iframe correction
Raphael Velt <raph.velt@gmail.com>
parents:
501
diff
changeset
|
93 |
</div> |
| 501 | 94 |
|
| 932 | 95 |
<?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])) { ?> |
96 |
||
| 501 | 97 |
<div id="tweetviz"> |
98 |
<ul id="tweetlist"></ul> |
|
99 |
<div id="timeline"></div> |
|
100 |
<div id="scrollcont"> |
|
101 |
<div id="scrollin"></div> |
|
102 |
</div> |
|
103 |
</div> |
|
| 932 | 104 |
|
105 |
<?php } else {?> |
|
106 |
||
107 |
<p class="connect-message"><a href="<?php echo URL_ROOT.$rep; ?>/client.php?CONNECT=true"><?php echo $translate->_('You must be connected with your Twitter account to read the conversation'); ?></a></p> |
|
108 |
||
109 |
<?php } ?> |
|
| 501 | 110 |
</div> |
111 |
</div> |
|
112 |
<!-- <div id="hovertweet"> |
|
113 |
<div id="hovercontent"></div> |
|
114 |
<div id="hoverarrow"></div> |
|
115 |
</div> --> |
|
116 |
</body> |
|
117 |
</html> |