<?php

include_once('_functions.php');

$setting = isset($setting) ? $setting : array();

$mclass = modules_moduleClass($setting) . modules_screenClass($setting);

extract($setting);

$show_facepile = ($show_facepile == '1') ? 'true' : 'false';
$show_posts    = ($show_posts == '1')    ? 'true' : 'false';
$small_header  = ($small_header == '1')  ? 'true' : 'false';
$hide_cover    = ($hide_cover == '1')    ? 'true' : 'false';

?>
<div class="oc-fblikebox <?php echo $mclass; ?>">

	<div class="fb-page"
		data-href="<?php echo $href; ?>"
		data-adapt-container-width="true"
		data-width="500"
		data-height="<?php echo $height; ?>"
		data-show-facepile="<?php echo $show_facepile; ?>"
		data-show-posts="<?php echo $show_posts; ?>"
		data-small-header="<?php echo $small_header; ?>"
		data-hide-cover="<?php echo $hide_cover; ?>"
	><div class="fb-xfbml-parse-ignore"><blockquote cite="<?php echo $href; ?>"><a href="<?php echo $href; ?>"><?php echo $this->registry->get('config')->get('config_meta_title'); ?></a></blockquote></div></div>

</div>
