blob: 67c66dc37ca061652ae00cc1f5dfb9ad40e1f26b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
/**
* Adds required HTML head tags for Twitter Services.
*
* @package TwitterAPI
*/
if ($api_key = elgg_get_plugin_setting('consumer_key', 'twitter_api')) {
$tags = <<<__HTML
<script src="http://platform.twitter.com/anywhere.js?id=$api_key&v=1" type="text/javascript"></script>
<script type="text/javascript">
twttr.anywhere(function (T) {
T(".twitter_anywhere").hovercards();
});
</script>
__HTML;
echo $tags;
}
|