Version Description
Its a maintenance release of this plugin. Fixed some issues with custom facebook feed layout and plugin icon.
Download this release
Release Info
Developer | sjaved |
Plugin | Easy Facebook Like Box (Facebook Page Plugin) – Custom Facebook Feed – Auto PopUp |
Version | 4.1 |
Comparing to | |
See all releases |
Code changes from version 4.0 to 4.1
- README.txt +10 -3
- admin/assets/css/admin.css +23 -0
- admin/easy-facebook-likebox-admin.php +8 -7
- admin/views/instructinos.php +2 -2
- admin/views/support-us.php +26 -23
- assets/PluginIcon - Copy.png +0 -0
- easy-facebook-likebox.php +2 -3
- languages/easy-facebook-likebox.pot +1 -1
- public/easy-facebook-likebox.php +1 -1
- public/views/feed.php +9 -13
README.txt
CHANGED
@@ -4,17 +4,17 @@ Tags: easy custom facebook feed, facebook feed, facebook page plugin, page plugi
|
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=sjaved786%40gmail%2ecom&lc=US&item_name=Easy%20Facebook%20Like%20Box%20WordPress%20Plugin&item_number=efbl¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.2.2
|
7 |
-
Stable tag: 4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Easy facebook like box WordPress plugin allows you to display
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
Displays a Facebook Like Box. The Facebook Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website. Easy facebook like box display fan page posts, like button, and connections on your website using widget, shortcode or in Auto PopUp.
|
16 |
|
17 |
-
[Custom facebook feed demo](https://jwebsol.com/
|
18 |
[Auto PopUp demo](https://jwebsol.com/easy-facebook-like-box-auto-popup-demo/ "See this plugin in action (Auto PopUp)")
|
19 |
|
20 |
### Features:
|
@@ -83,6 +83,9 @@ You can use easy facebook like box in number of ways:
|
|
83 |
3. Navigate to "Appearance > Widgets" and drag and drop "Easy Facebook Likebox" in desired widget area or use the shortcode in page/post generated by widget.
|
84 |
|
85 |
== Upgrade Notice ==
|
|
|
|
|
|
|
86 |
= 4.0.0 =
|
87 |
Its biggest release of all time. Want to use new custom facebook feed ? Then upgrade.
|
88 |
|
@@ -126,6 +129,10 @@ http://wordpress.org/support/topic/need-feed-back-on-plugin-feature/
|
|
126 |
|
127 |
|
128 |
== Changelog ==
|
|
|
|
|
|
|
|
|
129 |
= 4.0 =
|
130 |
* Added new custom facebook feed feature upon numerous feature requests.
|
131 |
* New enhanced backend user enterface.
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=sjaved786%40gmail%2ecom&lc=US&item_name=Easy%20Facebook%20Like%20Box%20WordPress%20Plugin&item_number=efbl¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.2.2
|
7 |
+
Stable tag: 4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Easy facebook like box WordPress plugin allows you to display custom facebook feed, page plugin (like box), like button, using widget, shortcode, Auto PopUp.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
Displays a Facebook Like Box. The Facebook Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website. Easy facebook like box display fan page posts, like button, and connections on your website using widget, shortcode or in Auto PopUp.
|
16 |
|
17 |
+
[Custom facebook feed demo](https://jwebsol.com/custom-facebook-feed-demo/ "See this plugin in action (Custom facebook feed demo)") | [Fixed width demo](https://jwebsol.com/easy-facebook-like-box-plugin-demo/ "See this plugin in action (Fixed width)") | [Responsive demo](https://jwebsol.com/easy-facebook-like-box-responsive-demo/ "See this plugin in action (Responsive)") |
|
18 |
[Auto PopUp demo](https://jwebsol.com/easy-facebook-like-box-auto-popup-demo/ "See this plugin in action (Auto PopUp)")
|
19 |
|
20 |
### Features:
|
83 |
3. Navigate to "Appearance > Widgets" and drag and drop "Easy Facebook Likebox" in desired widget area or use the shortcode in page/post generated by widget.
|
84 |
|
85 |
== Upgrade Notice ==
|
86 |
+
= 4.1 =
|
87 |
+
Its a maintenance release of this plugin. Fixed some issues with custom facebook feed layout and plugin icon.
|
88 |
+
|
89 |
= 4.0.0 =
|
90 |
Its biggest release of all time. Want to use new custom facebook feed ? Then upgrade.
|
91 |
|
129 |
|
130 |
|
131 |
== Changelog ==
|
132 |
+
= 4.1 =
|
133 |
+
* Fixed: Layout issue
|
134 |
+
* Fixed: Missing icon
|
135 |
+
|
136 |
= 4.0 =
|
137 |
* Added new custom facebook feed feature upon numerous feature requests.
|
138 |
* New enhanced backend user enterface.
|
admin/assets/css/admin.css
CHANGED
@@ -37,4 +37,27 @@ div#easy-facebook-likebox_popup_advanced{
|
|
37 |
|
38 |
#easy-facebook-likebox_popup .inside h3{
|
39 |
color:#21759b;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
37 |
|
38 |
#easy-facebook-likebox_popup .inside h3{
|
39 |
color:#21759b;
|
40 |
+
}
|
41 |
+
|
42 |
+
.efbl_donation{
|
43 |
+
display: inline-block;
|
44 |
+
clear: none;
|
45 |
+
float: right;
|
46 |
+
}
|
47 |
+
.efbl_donation a{
|
48 |
+
font-size: 26px;
|
49 |
+
text-decoration: none;
|
50 |
+
padding: 100px;
|
51 |
+
background: #7cc68d;
|
52 |
+
text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
|
53 |
+
-moz-border-radius: 6px;
|
54 |
+
-webkit-border-radius: 6px;
|
55 |
+
border-radius: 6px;
|
56 |
+
color: #FFF !important;
|
57 |
+
display: block;
|
58 |
+
text-align: center;
|
59 |
+
line-height: 35px;
|
60 |
+
}
|
61 |
+
.efbl_donation a:hover{
|
62 |
+
background: #67BD7B;
|
63 |
}
|
admin/easy-facebook-likebox-admin.php
CHANGED
@@ -66,7 +66,7 @@ class Easy_Facebook_Likebox_Admin {
|
|
66 |
add_action( 'admin_init', array( $this, 'i_have_supported_efbl') );
|
67 |
|
68 |
//if ( get_option('I_HAVE_SUPPORTED_THE_EFBL_PLUGIN') != 1 )
|
69 |
-
|
70 |
|
71 |
}
|
72 |
|
@@ -176,7 +176,7 @@ class Easy_Facebook_Likebox_Admin {
|
|
176 |
'manage_options',
|
177 |
$this->plugin_slug,
|
178 |
array( $this, 'display_plugin_admin_page' ),
|
179 |
-
plugins_url( 'easy-facebook-likebox
|
180 |
);
|
181 |
|
182 |
add_action('load-'.$this->plugin_screen_hook_suffix, array(&$this, 'on_load_page'));
|
@@ -191,7 +191,7 @@ class Easy_Facebook_Likebox_Admin {
|
|
191 |
add_meta_box('easy-facebook-feed', __('Settings', 'easy-facebook-likebox'), array(&$this, 'on_efbfeed_settings'), $this->plugin_screen_hook_suffix, 'easyfbfeed', 'core');
|
192 |
|
193 |
add_meta_box('easy-facebook-likebox_popup', __('Like box pup up settings', 'easy-facebook-likebox'), array(&$this, 'on_popup_settings'), $this->plugin_screen_hook_suffix, 'additional', 'core');
|
194 |
-
add_meta_box('efbl-support_us_box', __( 'Support us by liking our fan page!' , 'easy-facebook-likebox'), array(&$this, 'on_support_us'), $this->pagehook, 'side', 'core');
|
195 |
|
196 |
|
197 |
}
|
@@ -251,7 +251,7 @@ class Easy_Facebook_Likebox_Admin {
|
|
251 |
/**
|
252 |
* Display a thank you nag when the plugin has been installed/upgraded.
|
253 |
*/
|
254 |
-
public function post_installtion_upgrade_nag() {
|
255 |
if ( !current_user_can('install_plugins') ) return;
|
256 |
|
257 |
$plugin_verstion = Easy_Facebook_Likebox::VERSION;
|
@@ -279,7 +279,7 @@ class Easy_Facebook_Likebox_Admin {
|
|
279 |
', $this->plugin_slug ),
|
280 |
'https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=sjaved786%40gmail%2ecom&lc=US&item_name=Easy%20Facebook%20Like%20Box%20WordPress%20Plugin&item_number=efbl¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted',
|
281 |
'http://wordpress.org/plugins/easy-facebook-likebox/',
|
282 |
-
get_admin_url('', '
|
283 |
);
|
284 |
echo "<div class='update-nag'>$msg</div>";
|
285 |
|
@@ -447,8 +447,9 @@ class Easy_Facebook_Likebox_Admin {
|
|
447 |
'efbl_settings_display_options'
|
448 |
);
|
449 |
|
450 |
-
|
451 |
-
|
|
|
452 |
}
|
453 |
|
454 |
function efbl_options_callback(){
|
66 |
add_action( 'admin_init', array( $this, 'i_have_supported_efbl') );
|
67 |
|
68 |
//if ( get_option('I_HAVE_SUPPORTED_THE_EFBL_PLUGIN') != 1 )
|
69 |
+
add_action( 'admin_notices', array( $this, 'post_installtion_upgrade_nag') );
|
70 |
|
71 |
}
|
72 |
|
176 |
'manage_options',
|
177 |
$this->plugin_slug,
|
178 |
array( $this, 'display_plugin_admin_page' ),
|
179 |
+
plugins_url( 'easy-facebook-likebox/assets/PluginIcon.png' )
|
180 |
);
|
181 |
|
182 |
add_action('load-'.$this->plugin_screen_hook_suffix, array(&$this, 'on_load_page'));
|
191 |
add_meta_box('easy-facebook-feed', __('Settings', 'easy-facebook-likebox'), array(&$this, 'on_efbfeed_settings'), $this->plugin_screen_hook_suffix, 'easyfbfeed', 'core');
|
192 |
|
193 |
add_meta_box('easy-facebook-likebox_popup', __('Like box pup up settings', 'easy-facebook-likebox'), array(&$this, 'on_popup_settings'), $this->plugin_screen_hook_suffix, 'additional', 'core');
|
194 |
+
add_meta_box('efbl-support_us_box', __( 'Support us by liking our fan page and/or consider some dontaion!' , 'easy-facebook-likebox'), array(&$this, 'on_support_us'), $this->pagehook, 'side', 'core');
|
195 |
|
196 |
|
197 |
}
|
251 |
/**
|
252 |
* Display a thank you nag when the plugin has been installed/upgraded.
|
253 |
*/
|
254 |
+
public function post_installtion_upgrade_nag() {
|
255 |
if ( !current_user_can('install_plugins') ) return;
|
256 |
|
257 |
$plugin_verstion = Easy_Facebook_Likebox::VERSION;
|
279 |
', $this->plugin_slug ),
|
280 |
'https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=sjaved786%40gmail%2ecom&lc=US&item_name=Easy%20Facebook%20Like%20Box%20WordPress%20Plugin&item_number=efbl¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted',
|
281 |
'http://wordpress.org/plugins/easy-facebook-likebox/',
|
282 |
+
get_admin_url('', '/admin.php?page=easy-facebook-likebox&efbl_supported=1')
|
283 |
);
|
284 |
echo "<div class='update-nag'>$msg</div>";
|
285 |
|
447 |
'efbl_settings_display_options'
|
448 |
);
|
449 |
|
450 |
+
if(isset($_GET['efbl_supported'])) {
|
451 |
+
update_site_option( 'I_HAVE_SUPPORTED_THE_EFBL_PLUGIN', 1 );
|
452 |
+
}
|
453 |
}
|
454 |
|
455 |
function efbl_options_callback(){
|
admin/views/instructinos.php
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
<ol>
|
20 |
<li> <?php _e('Add the "Easy Facebook Feed" widget in sidebar to show the feed into your website sidebar', 'easy-facebook-likebox');?></li>
|
21 |
<li> <?php _e('Add "Easy Facebook Feed" widget in sidebar and generate shortcode by saving the widgets option to show custom facebook feed in posts, pages or custom posts.', 'easy-facebook-likebox');?> </li>
|
22 |
-
<li> <?php _e('You can also directly add below shortcode (without quotes) in post/page editor and change default values with your custom one according to your needs and requirments. "[efb_feed fanpage_url="YOUR_FB_FANPAGE_NAME_OR_URL" layout="CHOSE_LAYOUT(thumbnail/half/full)" image_size="CHOSE_IMAGE_SIZE(thumbnail/album/normal)" type="CHOSE_TYPE(page/group)" post_by="DISPLAY_POSTS_FROM(me/others/onlyothers)" show_logo="SHOW_HIDE_PAGE_LOGO(1/0)" show_image="SHOW_HIDE_IMAGES(1/0)" show_like_box="SHOW_HIDE_LIKEBOX(1/0)" post_number="NUMBER_OF_POST_DISPALAY(10)" post_limit="NUMBER_OF_POST_RETRIEVE(10)" cache_unit="NUMMBER_OF_MINUTES_HOURS_DAYS(1)" cache_duration="SELECT_CACHE_DURATION(minutes/hours/days)"
|
23 |
</li>
|
24 |
</ol>
|
25 |
</p>
|
@@ -31,7 +31,7 @@
|
|
31 |
<ol>
|
32 |
<li> <?php _e('Add the "Easy Facebook Likebox" widget in sidebar to show the like box in your website sidebar', 'easy-facebook-likebox');?></li>
|
33 |
<li> <?php _e('Add widget in sidebar and generate shortcode by saving the widgets option to show likebox somewhere else on your website.', 'easy-facebook-likebox');?> </li>
|
34 |
-
<li> <?php _e('You can also directly add below shortcode (without quotes) in post/page editor and change default values with your custom one according to your needs and requirments. "[efb_likebox fanpage_url="YOUR_FB_FANPAGE_NAME_OR_URL" fb_appid="OPTIONAL_SEE_FAQ" box_width="WIDTH_OF_BOX_IN_PIXELS" box_height=HEIGHT_OF_BOX_IN_PIXELS"" responsive="1" show_faces="SHOW_CONNECTIONS(1/0)" show_stream="SHOW_STREAM_POSTS(1/0)" hide_cover="HIDE_COVER_PHOTO(1/0)" small_header="USE_SMALL_HEADER(1/0)" hide_cta="OPTONAL_HIDE_CUSTOM_CTA_BUTTON(1/0)" locale="NAME_OF_YOUR_LANGUAGE_LOCAE(default en_US)"]
|
35 |
</li>
|
36 |
</ol>
|
37 |
</p>
|
19 |
<ol>
|
20 |
<li> <?php _e('Add the "Easy Facebook Feed" widget in sidebar to show the feed into your website sidebar', 'easy-facebook-likebox');?></li>
|
21 |
<li> <?php _e('Add "Easy Facebook Feed" widget in sidebar and generate shortcode by saving the widgets option to show custom facebook feed in posts, pages or custom posts.', 'easy-facebook-likebox');?> </li>
|
22 |
+
<li> <?php _e('You can also directly add below shortcode (without quotes) in post/page editor and change default values with your custom one according to your needs and requirments. "[efb_feed fanpage_url="YOUR_FB_FANPAGE_NAME_OR_URL" layout="CHOSE_LAYOUT(thumbnail/half/full)" image_size="CHOSE_IMAGE_SIZE(thumbnail/album/normal)" type="CHOSE_TYPE(page/group)" post_by="DISPLAY_POSTS_FROM(me/others/onlyothers)" show_logo="SHOW_HIDE_PAGE_LOGO(1/0)" show_image="SHOW_HIDE_IMAGES(1/0)" show_like_box="SHOW_HIDE_LIKEBOX(1/0)" post_number="NUMBER_OF_POST_DISPALAY(10)" post_limit="NUMBER_OF_POST_RETRIEVE(10)" cache_unit="NUMMBER_OF_MINUTES_HOURS_DAYS(1)" cache_duration="SELECT_CACHE_DURATION(minutes/hours/days)"] ', 'easy-facebook-likebox');?>
|
23 |
</li>
|
24 |
</ol>
|
25 |
</p>
|
31 |
<ol>
|
32 |
<li> <?php _e('Add the "Easy Facebook Likebox" widget in sidebar to show the like box in your website sidebar', 'easy-facebook-likebox');?></li>
|
33 |
<li> <?php _e('Add widget in sidebar and generate shortcode by saving the widgets option to show likebox somewhere else on your website.', 'easy-facebook-likebox');?> </li>
|
34 |
+
<li> <?php _e('You can also directly add below shortcode (without quotes) in post/page editor and change default values with your custom one according to your needs and requirments. "[efb_likebox fanpage_url="YOUR_FB_FANPAGE_NAME_OR_URL" fb_appid="OPTIONAL_SEE_FAQ" box_width="WIDTH_OF_BOX_IN_PIXELS" box_height=HEIGHT_OF_BOX_IN_PIXELS"" responsive="1" show_faces="SHOW_CONNECTIONS(1/0)" show_stream="SHOW_STREAM_POSTS(1/0)" hide_cover="HIDE_COVER_PHOTO(1/0)" small_header="USE_SMALL_HEADER(1/0)" hide_cta="OPTONAL_HIDE_CUSTOM_CTA_BUTTON(1/0)" locale="NAME_OF_YOUR_LANGUAGE_LOCAE(default en_US)"]', 'easy-facebook-likebox');?>
|
35 |
</li>
|
36 |
</ol>
|
37 |
</p>
|
admin/views/support-us.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Represents the view for the administration of support us section.
|
4 |
-
*
|
5 |
-
* This includes the header, options, and other information that should provide
|
6 |
-
* The User Interface to the end user.
|
7 |
-
*
|
8 |
-
* @package Plugin_Name
|
9 |
-
* @author Your Name <email@example.com>
|
10 |
-
* @license GPL-2.0+
|
11 |
-
* @link http://example.com
|
12 |
-
* @copyright 2014 Your Name or Company Name
|
13 |
-
*/
|
14 |
-
|
15 |
-
?>
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
js
|
23 |
-
|
|
|
|
|
|
|
24 |
}(document, 'script', 'facebook-jssdk'));</script>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Represents the view for the administration of support us section.
|
4 |
+
*
|
5 |
+
* This includes the header, options, and other information that should provide
|
6 |
+
* The User Interface to the end user.
|
7 |
+
*
|
8 |
+
* @package Plugin_Name
|
9 |
+
* @author Your Name <email@example.com>
|
10 |
+
* @license GPL-2.0+
|
11 |
+
* @link http://example.com
|
12 |
+
* @copyright 2014 Your Name or Company Name
|
13 |
+
*/
|
14 |
+
|
15 |
+
?>
|
16 |
+
|
17 |
+
|
18 |
+
<div class="efbl_donation"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=sjaved786%40gmail%2ecom&lc=US&item_name=Easy%20Facebook%20Like%20Box%20WordPress%20Plugin&item_number=efbl¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted">Donate</a></div>
|
19 |
+
<div class="fb-like-box" data-href="https://www.facebook.com/jwebsol" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="true"></div>
|
20 |
+
<div id="fb-root"></div>
|
21 |
+
<script>(function(d, s, id) {
|
22 |
+
var js, fjs = d.getElementsByTagName(s)[0];
|
23 |
+
if (d.getElementById(id)) return;
|
24 |
+
js = d.createElement(s); js.id = id;
|
25 |
+
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=517129121754984&version=v2.0";
|
26 |
+
fjs.parentNode.insertBefore(js, fjs);
|
27 |
}(document, 'script', 'facebook-jssdk'));</script>
|
assets/PluginIcon - Copy.png
DELETED
Binary file
|
easy-facebook-likebox.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Plugin Name: Easy Facebook Likebox
|
4 |
* Plugin URI: httt://wordpress.org/plugins/easy-facebook-likebox
|
5 |
* Description: Easy Facebook like box WordPress plugin allows you to easly display facebook like box fan page on your website using either widget or shortcode to increase facbook fan page likes. You can use the shortcode generated after saving the facebook like box widget. Its completely customizable with lots of optional settings. Its also responsive facebook like box at the same time.
|
6 |
-
* Version: 4.
|
7 |
* Author: Sajid Javed
|
8 |
* Author URI: http://jwebsol.com
|
9 |
* Text Domain: easy-facebook-likebox
|
@@ -92,7 +92,6 @@ require_once( plugin_dir_path( __FILE__ ) . 'includes/easy-facebook-page-plugin-
|
|
92 |
|
93 |
// register Foo_Widget widget
|
94 |
function register_fblx_widget() {
|
95 |
-
//register_widget( 'Easy_Facebook_Like_Box_Widget' );
|
96 |
register_widget( 'Easy_Custom_Facebook_Feed_Widget' );
|
97 |
register_widget( 'Easy_Facebook_Page_Plugin_Widget' );
|
98 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Plugin Name: Easy Facebook Likebox
|
4 |
* Plugin URI: httt://wordpress.org/plugins/easy-facebook-likebox
|
5 |
* Description: Easy Facebook like box WordPress plugin allows you to easly display facebook like box fan page on your website using either widget or shortcode to increase facbook fan page likes. You can use the shortcode generated after saving the facebook like box widget. Its completely customizable with lots of optional settings. Its also responsive facebook like box at the same time.
|
6 |
+
* Version: 4.1
|
7 |
* Author: Sajid Javed
|
8 |
* Author URI: http://jwebsol.com
|
9 |
* Text Domain: easy-facebook-likebox
|
92 |
|
93 |
// register Foo_Widget widget
|
94 |
function register_fblx_widget() {
|
|
|
95 |
register_widget( 'Easy_Custom_Facebook_Feed_Widget' );
|
96 |
register_widget( 'Easy_Facebook_Page_Plugin_Widget' );
|
97 |
}
|
languages/easy-facebook-likebox.pot
CHANGED
@@ -30,7 +30,7 @@ msgid "Like box pup up settings"
|
|
30 |
msgstr ""
|
31 |
|
32 |
#: ../admin/easy-facebook-likebox-admin.php:191
|
33 |
-
msgid "Support us by liking our fan page!"
|
34 |
msgstr ""
|
35 |
|
36 |
#: ../admin/easy-facebook-likebox-admin.php:241
|
30 |
msgstr ""
|
31 |
|
32 |
#: ../admin/easy-facebook-likebox-admin.php:191
|
33 |
+
msgid "Support us by liking our fan page and/or consider some dontaion!"
|
34 |
msgstr ""
|
35 |
|
36 |
#: ../admin/easy-facebook-likebox-admin.php:241
|
public/easy-facebook-likebox.php
CHANGED
@@ -34,7 +34,7 @@ class Easy_Facebook_Likebox {
|
|
34 |
*
|
35 |
* @var string
|
36 |
*/
|
37 |
-
const VERSION = '
|
38 |
|
39 |
/**
|
40 |
* @TODO - Rename "plugin-name" to the name your your plugin
|
34 |
*
|
35 |
* @var string
|
36 |
*/
|
37 |
+
const VERSION = '4.1';
|
38 |
|
39 |
/**
|
40 |
* @TODO - Rename "plugin-name" to the name your your plugin
|
public/views/feed.php
CHANGED
@@ -22,7 +22,7 @@ $access_token = ($access_token) ? $access_token : '395202813876688|73e8ede72008b
|
|
22 |
|
23 |
$post_limit = ($post_limit) ? $post_limit : '10';
|
24 |
$number_of_posts = ($post_number) ? $post_number : '10';
|
25 |
-
$layout = ($layout)
|
26 |
$image_size = ($image_size) ? $image_size : 'normal';
|
27 |
|
28 |
if( !empty($show_logo) ) $show_logo = $show_logo; else $show_logo = 1;
|
@@ -183,38 +183,34 @@ if( !empty($fbData->data) ) {
|
|
183 |
|
184 |
//get author image src
|
185 |
$author_image ='<a href="https://facebook.com/'.$page_id.'" ><img src="'.$auth_img_src.'" title="'. $story->from->name .'" width="40" height="40" /></a>';
|
186 |
-
|
187 |
if($story->object_id and $show_image){
|
188 |
//Get story image
|
189 |
$pic = 'https://graph.facebook.com/'.$story->object_id.'/picture?type='.$image_size.'&width=9999&height=9999&access_token=' . $access_token . '';
|
|
|
190 |
$pic_class = 'efbl_has_message';
|
191 |
}else{
|
192 |
$pic_class = 'efbl_no_image';
|
193 |
}
|
194 |
-
|
195 |
if($story->message){
|
196 |
$message_class = 'efbl_has_message';
|
197 |
}else{
|
198 |
$message_class = 'efbl_no_message';
|
199 |
}
|
200 |
-
|
201 |
//Divert to full width layout if no image or no video
|
202 |
if( $feed_type != 'video' and !isset($story->object_id))
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
//Start generating html
|
209 |
echo '<div id="efblcf" class="efbl_fb_story '.$layout.' '.$feed_type.' '.$pic_class.' '.$message_class.' ">';
|
210 |
if($story->object_id and $show_image and $feed_type != 'video' and !isset($story->source) ){
|
211 |
|
212 |
//if image attached
|
213 |
echo '<div class="efbl_story_photo">';
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
echo '<a href="#efblcf_holder" data-imagelink="' .$pic. '" data-storylink="'.$story_link.'" data-linktext="'.__('Read full story', 'easy-facebook-likebox').'" data-caption="'.$post_plain_text.'" class="efbl_feed_popup"><span class="efbl_hover"></span></a>';
|
218 |
echo '</div>';
|
219 |
|
220 |
}elseif( $feed_type == 'video' and $story->source){
|
22 |
|
23 |
$post_limit = ($post_limit) ? $post_limit : '10';
|
24 |
$number_of_posts = ($post_number) ? $post_number : '10';
|
25 |
+
if($layout == 'half'){ $layout = 'halfwidth'; }elseif($layout == 'full'){$layout = 'fullwidth';}else{$layout = 'thumbnail';}
|
26 |
$image_size = ($image_size) ? $image_size : 'normal';
|
27 |
|
28 |
if( !empty($show_logo) ) $show_logo = $show_logo; else $show_logo = 1;
|
183 |
|
184 |
//get author image src
|
185 |
$author_image ='<a href="https://facebook.com/'.$page_id.'" ><img src="'.$auth_img_src.'" title="'. $story->from->name .'" width="40" height="40" /></a>';
|
|
|
186 |
if($story->object_id and $show_image){
|
187 |
//Get story image
|
188 |
$pic = 'https://graph.facebook.com/'.$story->object_id.'/picture?type='.$image_size.'&width=9999&height=9999&access_token=' . $access_token . '';
|
189 |
+
$full_img_url = 'https://graph.facebook.com/'.$story->object_id.'/picture?type=normal&width=9999&height=9999&access_token=' . $access_token . '';
|
190 |
$pic_class = 'efbl_has_message';
|
191 |
}else{
|
192 |
$pic_class = 'efbl_no_image';
|
193 |
}
|
|
|
194 |
if($story->message){
|
195 |
$message_class = 'efbl_has_message';
|
196 |
}else{
|
197 |
$message_class = 'efbl_no_message';
|
198 |
}
|
199 |
+
|
200 |
//Divert to full width layout if no image or no video
|
201 |
if( $feed_type != 'video' and !isset($story->object_id))
|
202 |
+
$layout = 'fullwidth';
|
203 |
+
else{
|
204 |
+
if($instance['layout'] == 'half' || $instance['layout'] == 'halfwidth'){ $layout = 'halfwidth'; }elseif($instance['layout'] == 'full' || $instance['layout'] == 'fullwidth' ){$instance['layout'] = 'fullwidth';}else{$layout = 'thumbnail';}
|
205 |
+
}
|
|
|
206 |
//Start generating html
|
207 |
echo '<div id="efblcf" class="efbl_fb_story '.$layout.' '.$feed_type.' '.$pic_class.' '.$message_class.' ">';
|
208 |
if($story->object_id and $show_image and $feed_type != 'video' and !isset($story->source) ){
|
209 |
|
210 |
//if image attached
|
211 |
echo '<div class="efbl_story_photo">';
|
212 |
+
echo '<img src="' .$pic. '" width="'.$img_width.'" height="'.$img_height.'" />';
|
213 |
+
echo '<a href="#efblcf_holder" data-imagelink="' .$full_img_url. '" data-storylink="'.$story_link.'" data-linktext="'.__('Read full story', 'easy-facebook-likebox').'" data-caption="'.$post_plain_text.'" class="efbl_feed_popup"><span class="efbl_hover"></span></a>';
|
|
|
|
|
214 |
echo '</div>';
|
215 |
|
216 |
}elseif( $feed_type == 'video' and $story->source){
|