aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/widgets')
-rw-r--r--views/default/widgets/identica/content.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/views/default/widgets/identica/content.php b/views/default/widgets/identica/content.php
index 9209e01a6..42cbd1853 100644
--- a/views/default/widgets/identica/content.php
+++ b/views/default/widgets/identica/content.php
@@ -10,19 +10,16 @@
$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) {
-
+ elgg_load_js('friendly_time');
+ elgg_load_js('identica');
?>
<div id="identica_widget">
- <ul id="identica_update_list"></ul>
+ <ul id="identica_update_list" data-username="<?php echo $username; ?>" data-num="<?php echo $num; ?>"></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