aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/identica/content.php
blob: 42cbd1853f02df7acb22274c63d04d0ee84f48d5 (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
<?php

/**
 * Elgg identi.ca view page
 *
 * @package ElggIdentica
 */

//some required params

$username = $vars['entity']->identica_username;
$num = $vars['entity']->identica_num;

// 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" 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>
</div>

<?php
} else {

	echo "<p>" . elgg_echo("identica:notset") . ".</p>";

}