<div class="fb-page" 
	data-href="<?php 
echo $fb_page_url;
?>
" 
    data-width="<?php 
echo $fb_page_width;
?>
" 
    data-height="<?php 
echo $fb_page_height;
?>
" 
    data-small-header="<?php 
if (dd_use_small_header() == "true") {
    echo "true";
} else {
    echo "false";
}
?>
" 
    data-adapt-container-width="<?php 
if (dd_adapt_container_width() == "true") {
    echo "true";
} else {
    echo "false";
}
?>
" 
    data-hide-cover="<?php 
/**
 * This function is called every time the page header is being rendered
 */
function fb_page_plugin()
{
    if (dd_fb_page_url() != '') {
        $fb_page_url = dd_fb_page_url();
        $fb_page_width = dd_fb_page_width();
        $fb_page_height = dd_fb_page_height();
        $fb_show_faces = dd_fb_show_faces();
        $hide_page_cover = dd_hide_page_cover();
        $show_page_posts = dd_show_page_posts();
        $use_small_header = dd_use_small_header();
        $adapt_container_width = dd_adapt_container_width();
        require_once osc_plugins_path() . 'fb_page_plugin/code.php';
    }
}
          <div class="control-group">
            <div class="controls checkbox">
                <input type="checkbox" <?php 
echo dd_show_page_posts() ? 'checked="true"' : '';
?>
 name="show_page_posts" id="show_page_posts" value="true" />
                <label><?php 
_e('Show Page Posts', 'fb_page_plugin');
?>
</label>
            </div>
          </div>
          <div class="control-group">
            <div class="controls checkbox">
                <input type="checkbox" <?php 
echo dd_use_small_header() ? 'checked="true"' : '';
?>
 name="use_small_header" id="use_small_header" value="true" />
                <label><?php 
_e('Use Small Header', 'fb_page_plugin');
?>
</label>
            </div>
          </div>
          <div class="control-group">
            <div class="controls checkbox">
                <input type="checkbox" <?php 
echo dd_adapt_container_width() ? 'checked="true"' : '';
?>
 name="adapt_container_width" id="adapt_container_width" value="true" />
                <label><?php