aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-01-06 16:07:45 +0100
committerSem <sembrestels@riseup.net>2012-01-06 16:07:45 +0100
commit479e5b1bb819967665bb1933d268e16c16c69b70 (patch)
tree4e2a98cf72dfd72109f18263991d61cf407852c4 /views/default/widgets
parent9895df4280a7be9465fe148a356327edf370f6fa (diff)
downloadelgg-479e5b1bb819967665bb1933d268e16c16c69b70.tar.gz
elgg-479e5b1bb819967665bb1933d268e16c16c69b70.tar.bz2
Refactored javascripts. Added elgg.get_friendly_time() function.
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