diff options
author | Sem <sembrestels@riseup.net> | 2012-01-06 13:25:03 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-01-06 13:25:03 +0100 |
commit | 9895df4280a7be9465fe148a356327edf370f6fa (patch) | |
tree | 18a8ecb3a50fe4da0164a2b5a572ed3274343aa2 /views/default/widgets | |
download | elgg-9895df4280a7be9465fe148a356327edf370f6fa.tar.gz elgg-9895df4280a7be9465fe148a356327edf370f6fa.tar.bz2 |
Initial commit for Elgg 1.8
Diffstat (limited to 'views/default/widgets')
-rw-r--r-- | views/default/widgets/identica/content.php | 33 | ||||
-rw-r--r-- | views/default/widgets/identica/edit.php | 16 |
2 files changed, 49 insertions, 0 deletions
diff --git a/views/default/widgets/identica/content.php b/views/default/widgets/identica/content.php new file mode 100644 index 000000000..9209e01a6 --- /dev/null +++ b/views/default/widgets/identica/content.php @@ -0,0 +1,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>"; + +} diff --git a/views/default/widgets/identica/edit.php b/views/default/widgets/identica/edit.php new file mode 100644 index 000000000..888f4e908 --- /dev/null +++ b/views/default/widgets/identica/edit.php @@ -0,0 +1,16 @@ +<?php + + /** + * Elgg identi.ca edit page + * + * @package ElggIdentica + */ + +?> + <p> + <?php echo elgg_echo("identica:username"); ?> + <input type="text" name="params[identica_username]" value="<?php echo htmlentities($vars['entity']->identica_username); ?>" /> + <br /><?php echo elgg_echo("twitter:num"); ?> + <input type="text" name="params[identica_num]" value="<?php echo htmlentities($vars['entity']->identica_num); ?>" /> + + </p> |