/** * 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'; } }
?> </h2> <form action="<?php echo osc_admin_render_plugin_url('fb_page_plugin/admin.php'); ?> " class="form-horizontal" method="post"> <input type="hidden" name="fbpageoption" value="fbpagesettings" /> <fieldset> <div class="control-group"> <label class="control-label"><?php _e('Facebook Page URL', 'fb_page_plugin'); ?> </label> <div class="controls"> <input type="text" name="fb_page_url" value="<?php echo osc_esc_html(dd_fb_page_url()); ?> "> </div> <span class="help">Get your Facebook page - <a href="https://www.facebook.com/pages/create/" target="_blank">Click here</a></span> </div> <div class="control-group"> <label class="control-label"><?php _e('Width', 'fb_page_plugin'); ?> </label> <div class="controls"> <input type="text" class="swidth" name="fb_page_width" value="<?php echo osc_esc_html(dd_fb_page_width()); ?> ">