blob: 9209e01a6ec8264a689925bc90abe313ae03d8e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
/**
* Elgg identi.ca view page
*
* @package ElggIdentica
*/
//some required params
$username = $vars['entity']->identica_username;
$num = $vars['entity']->identica_num;
$id = md5($vars['entity']->identica_username.rand(0, 99999));
// if the identi.ca username is empty, then do not show
if ($username) {
?>
<div id="identica_widget">
<ul id="identica_update_list"></ul>
<p class="visit_identica"><a href="http://identi.ca/<?php echo $username; ?>"><?php echo elgg_echo("identica:visit"); ?></a></p>
<script type="text/javascript" src="<?php echo $vars['url']; ?>mod/identica/views/default/identica/identi.ca.js.php?id=<?php echo $id ?>"></script>
<script type="text/javascript" src="https://identi.ca/api/statuses/user_timeline/<?php echo $username; ?>.json?callback=identicaCallback&count=<?php echo $num; ?>"></script>
</div>
<?php
} else {
echo "<p>" . elgg_echo("identica:notset") . ".</p>";
}
|