-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblock-Likebox.php
More file actions
31 lines (26 loc) · 878 Bytes
/
block-Likebox.php
File metadata and controls
31 lines (26 loc) · 878 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
<?php
/**
* @author Enrique Montes <emontes@dstr.net>
* @version 1.0
* @package phpNuke Likebox
* @link https://github.com/emontes/phpNuke-Likebox-Block
*/
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
$faceurl = "http://www.facebook.com/pages/Fun-Vacation-World/328531917165895";
$fwidth = 600;
$fheight = 800;
?>
<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-like-box\" data-href=\"$faceurl\" data-width=\"$fwidth\" data-height=\"$fheight\" data-show-faces=\"false\" data-stream=\"true\" data-header=\"false\"></div>";
?>