* This typically includes any information, if any, that is rendered to the * frontend of the theme when the plugin is activated. * * @package Easy Facebook like box * @author Your Name <*****@*****.**> * @link http://jwebsol.com * @copyright 2015 jwebsol */ extract($instance); error_reporting(0); //Switch to test mode to disable cache $test_mode = false; if (empty($fanpage_url)) { $page_id = 'jwebsol'; } else { $page_id = efbl_parse_url($fanpage_url); } $access_token = $access_token ? $access_token : '395202813876688|73e8ede72008b231a0322e40f0072fe6'; //$access_token = ($access_token) ? $access_token : '1489500477999288|KFys5ppNi3sreihdreqPkU2ChIE'; $post_limit = $post_limit ? $post_limit : '10'; $number_of_posts = $post_number ? $post_number : '10'; if ($layout == 'half') { $layout = 'halfwidth'; } elseif ($layout == 'full') { $layout = 'fullwidth'; } else { $layout = 'thumbnail'; } $image_size = $image_size ? $image_size : 'normal'; $link_target = $links_new_tab ? '_blank' : '_self'; if (empty($show_logo) || $show_logo == 0) {
/** * Back-end widget form. * * @see WP_Widget::form() * * @param array $instance Previously saved values from database. */ public function form($instance) { $locales = array('af_ZA' => 'Afrikaans', 'ar_AR' => 'Arabic', 'az_AZ' => 'Azeri', 'be_BY' => 'Belarusian', 'bg_BG' => 'Bulgarian', 'bn_IN' => 'Bengali', 'bs_BA' => 'Bosnian', 'ca_ES' => 'Catalan', 'cs_CZ' => 'Czech', 'cy_GB' => 'Welsh', 'da_DK' => 'Danish', 'de_DE' => 'German', 'el_GR' => 'Greek', 'en_US' => 'English (US)', 'en_GB' => 'English (UK)', 'eo_EO' => 'Esperanto', 'es_ES' => 'Spanish (Spain)', 'es_LA' => 'Spanish', 'et_EE' => 'Estonian', 'eu_ES' => 'Basque', 'fa_IR' => 'Persian', 'fb_LT' => 'Leet Speak', 'fi_FI' => 'Finnish', 'fo_FO' => 'Faroese', 'fr_FR' => 'French (France)', 'fr_CA' => 'French (Canada)', 'fy_NL' => 'NETHERLANDS (NL)', 'ga_IE' => 'Irish', 'gl_ES' => 'Galician', 'hi_IN' => 'Hindi', 'hr_HR' => 'Croatian', 'hu_HU' => 'Hungarian', 'hy_AM' => 'Armenian', 'id_ID' => 'Indonesian', 'is_IS' => 'Icelandic', 'it_IT' => 'Italian', 'ja_JP' => 'Japanese', 'ka_GE' => 'Georgian', 'km_KH' => 'Khmer', 'ko_KR' => 'Korean', 'ku_TR' => 'Kurdish', 'la_VA' => 'Latin', 'lt_LT' => 'Lithuanian', 'lv_LV' => 'Latvian', 'mk_MK' => 'Macedonian', 'ml_IN' => 'Malayalam', 'ms_MY' => 'Malay', 'nb_NO' => 'Norwegian (bokmal)', 'ne_NP' => 'Nepali', 'nl_NL' => 'Dutch', 'nn_NO' => 'Norwegian (nynorsk)', 'pa_IN' => 'Punjabi', 'pl_PL' => 'Polish', 'ps_AF' => 'Pashto', 'pt_PT' => 'Portuguese (Portugal)', 'pt_BR' => 'Portuguese (Brazil)', 'ro_RO' => 'Romanian', 'ru_RU' => 'Russian', 'sk_SK' => 'Slovak', 'sl_SI' => 'Slovenian', 'sq_AL' => 'Albanian', 'sr_RS' => 'Serbian', 'sv_SE' => 'Swedish', 'sw_KE' => 'Swahili', 'ta_IN' => 'Tamil', 'te_IN' => 'Telugu', 'th_TH' => 'Thai', 'tl_PH' => 'Filipino', 'tr_TR' => 'Turkish', 'uk_UA' => 'Ukrainian', 'ur_PK' => 'Urdu', 'vi_VN' => 'Vietnamese', 'zh_CN' => 'Simplified Chinese (China)', 'zh_HK' => 'Traditional Chinese (Hong Kong)', 'zh_TW' => 'Traditional Chinese (Taiwan)'); $defaults = array('title' => '', 'fb_appid' => '', 'fanpage_url' => 'https://www.facebook.com/jwebsol', 'box_width' => 250, 'box_height' => '', 'show_faces' => 1, 'show_stream' => 0, 'hide_cover' => 0, 'responsive' => 0, 'hide_cta' => 0, 'small_header' => 0, 'locale' => 'en_US', 'locale_other' => ''); $instance = wp_parse_args((array) $instance, $defaults); extract($instance, EXTR_SKIP); ?> <p> <label for="<?php echo $this->get_field_id('title'); ?> "><?php _e('Title:', 'easy-facebook-likebox'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " type="text" value="<?php echo esc_attr($title); ?> "> </p> <p> <label for="<?php echo $this->get_field_id('fanpage_url'); ?> "><?php _e('Fanpage Url:', 'easy-facebook-likebox'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('fanpage_url'); ?> " name="<?php echo $this->get_field_name('fanpage_url'); ?> " type="text" value="<?php echo esc_attr($fanpage_url); ?> "><br /> <i>Full url including http://</i> </p> <p> <label for="<?php echo $this->get_field_id('fb_appid'); ?> "><?php _e('Application ID:', 'easy-facebook-likebox'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('fb_appid'); ?> " name="<?php echo $this->get_field_name('fb_appid'); ?> " type="text" value="<?php echo esc_attr($fb_appid); ?> "><br /> <i>Optional</i> </p> <p> <label for="<?php echo $this->get_field_id('box_width'); ?> "><?php _e('Width:', 'easy-facebook-likebox'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('box_width'); ?> " name="<?php echo $this->get_field_name('box_width'); ?> " type="text" value="<?php echo esc_attr($box_width); ?> "><br /> </p> <p> <label for="<?php echo $this->get_field_id('box_height'); ?> "><?php _e('Height:', 'easy-facebook-likebox'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('box_height'); ?> " name="<?php echo $this->get_field_name('box_height'); ?> " type="text" value="<?php echo esc_attr($box_height); ?> "><br /> </p> <p > <label for="<?php echo $this->get_field_id('locale'); ?> "><?php _e('Locale:', 'easy-facebook-likebox'); ?> </label> <select class="widefat" id="<?php echo $this->get_field_id('locale'); ?> " name="<?php echo $this->get_field_name('locale'); ?> "> <?php if ($locales) { foreach ($locales as $key => $value) { ?> <option <?php selected($locale, $key, $echo = true); ?> value="<?php echo $key; ?> "><?php echo $value; ?> </option> <?php } } ?> </select> <i><?php _e('Language of your page', 'easy-facebook-likebox'); ?> </i> </p> <p> <label for="<?php echo $this->get_field_id('locale_other'); ?> "><?php _e('Locale (Other):', 'easy-facebook-likebox'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('locale_other'); ?> " name="<?php echo $this->get_field_name('locale_other'); ?> " type="text" value="<?php echo esc_attr($locale_other); ?> " placeholder="en_US"> <i><?php _e('input locale if you can not find yours in dropdown list in this format e.g fr_FR for frecnh.', 'easy-facebook-likebox'); ?> </i> </p> <p class="widget-half"> <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id('responsive'); ?> " name="<?php echo $this->get_field_name('responsive'); ?> " value="1" <?php checked($responsive, 1); ?> > <label for="<?php echo $this->get_field_id('responsive'); ?> ">Responsive</label> </p> <p class="widget-half"> <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id('show_faces'); ?> " name="<?php echo $this->get_field_name('show_faces'); ?> " value="1" <?php checked($show_faces, 1); ?> > <label for="<?php echo $this->get_field_id('show_faces'); ?> "><?php _e('Show Faces', 'easy-facebook-likebox'); ?> </label> </p> <p class="widget-half"> <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id('hide_cover'); ?> " name="<?php echo $this->get_field_name('hide_cover'); ?> " value="1" <?php checked($hide_cover, 1); ?> > <label for="<?php echo $this->get_field_id('hide_cover'); ?> "><?php _e('Hide Cover Photo', 'easy-facebook-likebox'); ?> </label> </p> <p class="widget-half"> <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id('show_stream'); ?> " name="<?php echo $this->get_field_name('show_stream'); ?> " value="1" <?php checked($show_stream, 1); ?> > <label for="<?php echo $this->get_field_id('show_stream'); ?> "><?php _e('Show Posts', 'easy-facebook-likebox'); ?> </label> </p> <p class="widget-half"> <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id('hide_cta'); ?> " name="<?php echo $this->get_field_name('hide_cta'); ?> " value="1" <?php checked($hide_cta, 1); ?> > <label for="<?php echo $this->get_field_id('hide_cta'); ?> "><?php _e('Hide CTA button', 'easy-facebook-likebox'); ?> </label> </p> <p class="widget-half"> <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id('small_header'); ?> " name="<?php echo $this->get_field_name('small_header'); ?> " value="1" <?php checked($small_header, 1); ?> > <label for="<?php echo $this->get_field_id('small_header'); ?> "><?php _e('Use small header', 'easy-facebook-likebox'); ?> </label> </p> <div class="clearfix"></div> <p><?php _e('Use below shortcode to display like box inside pages, posts or in any shortcode aware textarea/editor', 'easy-facebook-likebox'); ?> </p> <?php if (empty($show_stream)) { $show_stream = 0; } if (empty($show_faces)) { $show_faces = 0; } if (empty($show_header)) { $show_header = 0; } if (empty($hide_cover)) { $hide_cover = 0; } if (!empty($locale_other)) { $locale = $locale_other; } if (!empty($fb_appid)) { $fb_appid = 'fb_appid="' . $fb_appid . '"'; } $fanpage_url = efbl_parse_url($fanpage_url); /*echo "<pre>"; print_r( $fb_url ); echo "</pre>";*/ $responsive = empty($responsive) ? strip_tags(0) : $responsive; $hide_cta = empty($hide_cta) ? strip_tags(0) : $hide_cta; $small_header = empty($small_header) ? strip_tags(0) : $small_header; ?> <p style="background:#ddd; padding:5px; "><?php echo '[efb_likebox fanpage_url="' . $fanpage_url . '" ' . $fb_appid . ' box_width="' . $box_width . '" box_height="' . $box_height . '" locale="' . $locale . '" responsive="' . $responsive . '" show_faces="' . $show_faces . '" show_stream="' . $show_stream . '" hide_cover="' . $hide_cover . '" small_header="' . $small_header . '" hide_cta="' . $hide_cta . '" ]'; ?> </p> <?php }
/** * This fucntion will render the facebook page plugin * * * @since 4.0 */ public function render_fb_page_plugin($options) { /*echo "<pre>"; print_r($options); exit;*/ extract($options, EXTR_SKIP); if (empty($fb_appid)) { $fb_appid = '395202813876688'; } if (empty($locale)) { $locale = 'en_US'; } if (!empty($locale_other)) { $locale = $locale_other; } $page_name_id = efbl_parse_url($fanpage_url); $show_stream = $show_stream == 1 ? 'data-show-posts=true' : 'data-show-posts=false'; $show_faces = $show_faces == 1 ? 'data-show-facepile=true' : 'data-show-facepile=false'; $hide_cover = $hide_cover == 1 ? 'data-hide-cover="true"' : 'data-hide-cover=false'; $responsive = $responsive == 1 ? 'data-adapt-container-width=true' : 'data-adapt-container-width=false'; $hide_cta = $hide_cta == 1 ? 'data-hide-cta=true' : 'data-hide-cta=false'; $small_header = $small_header == 1 ? 'data-small-header="true"' : 'data-small-header="false"'; $returner = '<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/' . $locale . '/all.js#xfbml=1&appId=' . $fb_appid . '"; fjs.parentNode.insertBefore(js, fjs); }(document, \'script\', \'facebook-jssdk\'));</script>'; $returner .= '<div class="fb-page " data-href="https://www.facebook.com/' . $page_name_id . '" ' . $hide_cover . ' data-width="' . $box_width . '" data-height="' . $box_height . '" ' . $show_faces . ' ' . $show_stream . ' ' . $responsive . ' ' . $hide_cta . ' ' . $small_header . '></div>'; return $returner; }
/** * Back-end widget form. * * @see WP_Widget::form() * * @param array $instance Previously saved values from database. */ public function form($instance) { $locales = array('af_ZA' => 'Afrikaans', 'ar_AR' => 'Arabic', 'az_AZ' => 'Azeri', 'be_BY' => 'Belarusian', 'bg_BG' => 'Bulgarian', 'bn_IN' => 'Bengali', 'bs_BA' => 'Bosnian', 'ca_ES' => 'Catalan', 'cs_CZ' => 'Czech', 'cy_GB' => 'Welsh', 'da_DK' => 'Danish', 'de_DE' => 'German', 'el_GR' => 'Greek', 'en_US' => 'English (US)', 'en_GB' => 'English (UK)', 'eo_EO' => 'Esperanto', 'es_ES' => 'Spanish (Spain)', 'es_LA' => 'Spanish', 'et_EE' => 'Estonian', 'eu_ES' => 'Basque', 'fa_IR' => 'Persian', 'fb_LT' => 'Leet Speak', 'fi_FI' => 'Finnish', 'fo_FO' => 'Faroese', 'fr_FR' => 'French (France)', 'fr_CA' => 'French (Canada)', 'fy_NL' => 'NETHERLANDS (NL)', 'ga_IE' => 'Irish', 'gl_ES' => 'Galician', 'hi_IN' => 'Hindi', 'hr_HR' => 'Croatian', 'hu_HU' => 'Hungarian', 'hy_AM' => 'Armenian', 'id_ID' => 'Indonesian', 'is_IS' => 'Icelandic', 'it_IT' => 'Italian', 'ja_JP' => 'Japanese', 'ka_GE' => 'Georgian', 'km_KH' => 'Khmer', 'ko_KR' => 'Korean', 'ku_TR' => 'Kurdish', 'la_VA' => 'Latin', 'lt_LT' => 'Lithuanian', 'lv_LV' => 'Latvian', 'mk_MK' => 'Macedonian', 'ml_IN' => 'Malayalam', 'ms_MY' => 'Malay', 'nb_NO' => 'Norwegian (bokmal)', 'ne_NP' => 'Nepali', 'nl_NL' => 'Dutch', 'nn_NO' => 'Norwegian (nynorsk)', 'pa_IN' => 'Punjabi', 'pl_PL' => 'Polish', 'ps_AF' => 'Pashto', 'pt_PT' => 'Portuguese (Portugal)', 'pt_BR' => 'Portuguese (Brazil)', 'ro_RO' => 'Romanian', 'ru_RU' => 'Russian', 'sk_SK' => 'Slovak', 'sl_SI' => 'Slovenian', 'sq_AL' => 'Albanian', 'sr_RS' => 'Serbian', 'sv_SE' => 'Swedish', 'sw_KE' => 'Swahili', 'ta_IN' => 'Tamil', 'te_IN' => 'Telugu', 'th_TH' => 'Thai', 'tl_PH' => 'Filipino', 'tr_TR' => 'Turkish', 'uk_UA' => 'Ukrainian', 'ur_PK' => 'Urdu', 'vi_VN' => 'Vietnamese', 'zh_CN' => 'Simplified Chinese (China)', 'zh_HK' => 'Traditional Chinese (Hong Kong)', 'zh_TW' => 'Traditional Chinese (Taiwan)'); $defaults = array('title' => '', 'fb_appid' => '', 'fanpage_url' => 'jwebsol', 'layout' => 'half', 'image_size' => 'normal', 'type' => 'page', 'post_by' => 'me', 'post_number' => 10, 'post_limit' => 10, 'show_logo' => 1, 'show_image' => 1, 'show_like_box' => 1, 'links_new_tab' => '1', 'cache_unit' => 1, 'cache_duration' => 'hours', 'locale' => 'en_US', 'locale_other' => ''); /*echo "<pre>"; print_r($defaults); echo "</pre>";*/ $instance = wp_parse_args((array) $instance, $defaults); /*echo "<pre>"; print_r($instance); echo "</pre>";*/ extract($instance, EXTR_SKIP); ?> <div class="efbl_widget"> <p> <label for="<?php echo $this->get_field_id('title'); ?> "><?php _e('Title:', 'easy-facebook-likebox'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " type="text" value="<?php echo esc_attr($title); ?> "> </p> <p> <label for="<?php echo $this->get_field_id('fanpage_url'); ?> "><?php _e('Fanpage ID:', 'easy-facebook-likebox'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('fanpage_url'); ?> " name="<?php echo $this->get_field_name('fanpage_url'); ?> " type="text" value="<?php echo esc_attr($fanpage_url); ?> "><br /> <i>E.g jwebsol or 123456789</i> </p> <p class="widget-half"> <label for="<?php echo $this->get_field_id('layout'); ?> "><?php _e('Posts Layout:', 'easy-facebook-likebox'); ?> </label> <select id="<?php echo $this->get_field_id('layout'); ?> " name="<?php echo $this->get_field_name('layout'); ?> "> <option <?php selected($layout, 'thumbnail', $echo = true); ?> value="thumbnail" ><?php _e('Thumbnail', 'easy-facebook-likebox'); ?> </option> <option <?php selected($layout, 'half', $echo = true); ?> value="half" ><?php _e('Half Width', 'easy-facebook-likebox'); ?> </option> <option <?php selected($layout, 'full', $echo = true); ?> value="full"><?php _e('Full Width', 'easy-facebook-likebox'); ?> </option> </select><br /> </p> <p class="widget-half"> <label for="<?php echo $this->get_field_id('image_size'); ?> "><?php _e('Image size:', 'easy-facebook-likebox'); ?> </label> <select id="<?php echo $this->get_field_id('image_size'); ?> " name="<?php echo $this->get_field_name('image_size'); ?> "> <option <?php selected($image_size, 'thumbnail', $echo = true); ?> value="thumbnail" ><?php _e('Thumbnail', 'easy-facebook-likebox'); ?> </option> <option <?php selected($image_size, 'album', $echo = true); ?> value="album" ><?php _e('Album', 'easy-facebook-likebox'); ?> </option> <option <?php selected($image_size, 'normal', $echo = true); ?> value="normal"><?php _e('Normal', 'easy-facebook-likebox'); ?> </option> </select><br /> </p> <p class="widget-half efbl_last"> <label for="<?php echo $this->get_field_id('type'); ?> "><?php _e('Page type:', 'easy-facebook-likebox'); ?> </label> <select id="<?php echo $this->get_field_id('type'); ?> " name="<?php echo $this->get_field_name('type'); ?> "> <option <?php selected($type, 'page', $echo = true); ?> value="page"><?php _e('Page', 'easy-facebook-likebox'); ?> </option> <option <?php selected($type, 'group', $echo = true); ?> value="group"><?php _e('Group', 'easy-facebook-likebox'); ?> </option> </select><br /> </p> <p class="widget-half efbl_last"> <label for="<?php echo $this->get_field_id('post_by'); ?> "><?php _e('Posts by:', 'easy-facebook-likebox'); ?> </label> <select class="widefat" id="<?php echo $this->get_field_id('post_by'); ?> " name="<?php echo $this->get_field_name('post_by'); ?> "> <option <?php selected($post_by, 'me', $echo = true); ?> value="me"><?php _e('Only the page owner (me)', 'easy-facebook-likebox'); ?> </option> <option <?php selected($post_by, 'others', $echo = true); ?> value="others" ><?php _e('Page owner + other people', 'easy-facebook-likebox'); ?> </option> <option <?php selected($post_by, 'onlyothers', $echo = true); ?> value="onlyothers" ><?php _e('Only other people', 'easy-facebook-likebox'); ?> </option> </select> </p> <div class="clearfix"></div> <p> <label for="<?php echo $this->get_field_id('post_number'); ?> "><?php _e('Posts to display:', 'easy-facebook-likebox'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('post_number'); ?> " name="<?php echo $this->get_field_name('post_number'); ?> " type="text" value="<?php echo esc_attr($post_number); ?> " size="5"><br /> <i><?php _e('Define how many posts you want to display in feed', 'easy-facebook-likebox'); ?> </i> </p> <p> <label for="<?php echo $this->get_field_id('post_limit'); ?> "><?php _e('Posts limit to retrieve:', 'easy-facebook-likebox'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('post_limit'); ?> " name="<?php echo $this->get_field_name('post_limit'); ?> " type="text" value="<?php echo esc_attr($post_limit); ?> " size="5"><br /> <i><?php _e('Define how many posts you want to retrieve from facebook', 'easy-facebook-likebox'); ?> </i> </p> <p class="widget-half"> <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id('show_logo'); ?> " name="<?php echo $this->get_field_name('show_logo'); ?> " value="1" <?php checked($show_logo, 1, true); ?> > <label for="<?php echo $this->get_field_id('show_logo'); ?> "><?php _e('Show page logo', 'easy-facebook-likebox'); ?> </label> </p> <p class="widget-half"> <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id('show_image'); ?> " name="<?php echo $this->get_field_name('show_image'); ?> " value="1" <?php checked($show_image, 1); ?> > <label for="<?php echo $this->get_field_id('show_image'); ?> "><?php _e('Show image', 'easy-facebook-likebox'); ?> </label> </p> <p class="widget-half"> <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id('show_like_box'); ?> " name="<?php echo $this->get_field_name('show_like_box'); ?> " value="1" <?php checked($show_like_box, 1); ?> > <label for="<?php echo $this->get_field_id('show_like_box'); ?> "><?php _e('Show like box', 'easy-facebook-likebox'); ?> </label> </p> <p class="widget-half"> <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id('links_new_tab'); ?> " name="<?php echo $this->get_field_name('links_new_tab'); ?> " value="1" <?php checked($links_new_tab, 1); ?> > <label for="<?php echo $this->get_field_id('links_new_tab'); ?> "><?php _e('Open links in New tab', 'easy-facebook-likebox'); ?> </label> </p> <div class="clearfix"></div> <p> <label for="<?php echo $this->get_field_id('cache_unit'); ?> "><?php _e('Check new posts after every:', 'easy-facebook-likebox'); ?> </label><br /> <input class="half_field" id="<?php echo $this->get_field_id('cache_unit'); ?> " name="<?php echo $this->get_field_name('cache_unit'); ?> " type="text" value="<?php echo esc_attr($cache_unit); ?> " size="5"> <select class="half_field" id="<?php echo $this->get_field_id('cache_duration'); ?> " name="<?php echo $this->get_field_name('cache_duration'); ?> "> <option <?php selected($cache_duration, 'minutes', $echo = true); ?> value="minutes" ><?php _e('Minutes', 'easy-facebook-likebox'); ?> </option> <option <?php selected($cache_duration, 'hours', $echo = true); ?> value="hours"><?php _e('Hours', 'easy-facebook-likebox'); ?> </option> <option <?php selected($cache_duration, 'days', $echo = true); ?> value="days" ><?php _e('Days', 'easy-facebook-likebox'); ?> </option> </select><br /> <i><?php _e('Plugin will store the posts in database temporarily and will look for new posts after every selected time duration', 'easy-facebook-likebox'); ?> </i> </p> <p><?php _e('Use below shortcode to display like box inside pages, posts or in any shortcode aware textarea/editor', 'easy-facebook-likebox'); ?> </p> <?php $fanpage_url = efbl_parse_url($fanpage_url); /*echo "<pre>"; print_r( $fb_url ); echo "</pre>";*/ $show_logo = isset($show_logo) ? $show_logo : 0; $show_image = isset($show_image) ? $show_image : 0; $show_like_box = isset($show_like_box) ? $show_like_box : 0; $links_new_tab = isset($links_new_tab) ? $links_new_tab : '1'; ?> <p style="background:#ddd; padding:5px; "><?php echo '[efb_feed fanpage_url="' . $fanpage_url . '" layout="' . $layout . '" image_size="' . $image_size . '" type="' . $type . '" post_by="' . $post_by . '" show_logo="' . $show_logo . '" show_image="' . $show_image . '" show_like_box="' . $show_like_box . '" links_new_tab="' . $links_new_tab . '" post_number="' . $post_number . '" post_limit="' . $post_limit . '" cache_unit="' . $cache_unit . '" cache_duration="' . $cache_duration . '" ]'; ?> </p> </div> <?php }