-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathblock-FB-ActivityFeed.php
More file actions
32 lines (27 loc) · 973 Bytes
/
block-FB-ActivityFeed.php
File metadata and controls
32 lines (27 loc) · 973 Bytes
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
31
32
<?php
/**
* @author Enrique Montes <emontes@dstr.net>
* @version 1.0
* @package phpNuke Social Blocks
* @link https://github.com/emontes/phpNuke-Social-Blocks
* Documentation on FB : http://developers.facebook.com/docs/reference/plugins/activity/
*/
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
$domain = "turista.com.mx";
$fwidth = 300; //width of the displaying area
$fheight = 300; //height of the displaying area
?>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<?php
$content ="<div class=\"fb-activity\" data-site=\"$domain\" data-width=\"$fwidth\" data-height=\"$fheight\" data-header=\"true\" data-recommendations=\"false\"></div>";
?>