Easy Facebook Like Box (Facebook Page Plugin) – Custom Facebook Feed – Auto PopUp - Version 5.1.1

Version Description

  • Fixed: Minor layout bug
Download this release

Release Info

Developer DaNish Ali
Plugin Icon 128x128 Easy Facebook Like Box (Facebook Page Plugin) – Custom Facebook Feed – Auto PopUp
Version 5.1.1
Comparing to
See all releases

Code changes from version 5.0 to 5.1.1

README.txt CHANGED
@@ -1,401 +1,435 @@
1
- === Easy Social Post Feed - Page Plugin - Auto PopUp ===
2
- Contributors: maltathemes, sjaved
3
- Tags: easy custom facebook feed, facebook feed, facebook page plugin, page plugin, adoptive, facebook, facebook like box,, like box, facebook like box, facebook like box widget, facebook like box shortcodes, shortcodes, facebook like box plugin, facebook like box wordpress plugin, plugin, responsive facebook like box, responsive, facebook like box in 75 locales, facebook like box in 75 languages, custom facebook feed, facebook like box in PopUp, PopUp, Auto PopUp, like box in PopUp, fancybox, lightbox, seo, social media, facebook badge, facebook button, facebook connect, facebook facepile, Facebook fan page, wordpress facebook like box, facebook share, facebook integration, shortcode generator, advanced responsive facebook likebox, facebook wall, facebook sidebar, facebook recommend, like box facebook, open graph, facebook page, facebook group, rt facebook like box, sharebar
4
- Requires at least: 3.3
5
- Tested up to: 5.2.3
6
- Stable tag: 5.0
7
- License: GPLv2 or later
8
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
-
10
- Formerly "Easy Facebook Like Box and Custom Facebook Feed" allows to display custom facebook feed, custom Instagram photos and videos feed, page plugin (like box), using widget, shortcode and PopUp.
11
-
12
- == Description ==
13
-
14
- There are four main functionalities of this plugin, **Custom Instagram Feed (NEW), Custom Facebook Feed, Facebook Page Plugin** (previously Facebook Like Box) and **Auto PopUp**. Easy Social Photos Gallery
15
-
16
- *"Easy to use as the description – awesome plugin and excellent support, easy to setup and more function, won’t affect the page speed, GREAT JOB!"* – [alexwee88](https://wordpress.org/support/topic/easy-to-use-as-the-description/)
17
-
18
- *"Much better than the others –I’m really happy with this – and it’s better than the other plugins I’ve tried that offer the same thing. Thank you!"* – [sarahtaylor777](https://wordpress.org/support/topic/much-better-than-the-others-2/)
19
-
20
- ### Custom Instagram Feed for WordPress:
21
-
22
- Display your stunning photos and videos from your Instagram account on your site. It’s mobile-friendly (responsive), highly customizable (completely match the look and feel with your site), SEO friendly and has multiple layouts.
23
-
24
- ### Custom Facebook Feed for WordPress:
25
-
26
- Display a customizable (completely match the look and feel with your site), mobile-friendly (responsive) and SEO friendly feed of your Facebook posts on your site in minutes. Supports all types of posts, including images, videos, status and links.
27
-
28
- ### Facebook Page plugin for WordPress:
29
-
30
- Displays a Facebook Page Plugin (previously Facebook Like Box). The Facebook Page Plugin 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.
31
-
32
- ### Easy Social Post Feed
33
-
34
- WordPress plugin is designed to keep beginners in mind from scratch. It has beginner’s friendly workflow to set up Custom Instagram Feed, Custom Facebook Feed, Page Plugin and Auto PopUp in minutes (time is the single most precious commodity in the universe).
35
-
36
- ### Demos:
37
-
38
- [Custom Facebook Feed Demo](https://maltathemes.com/custom-facebook-feed)
39
- [Custom Instagram Feed Demo](https://maltathemes.com/my-instagram-feed-demo)
40
- [Faceook Page Plugin Demo](https://maltathemes.com/faceook-page-plugin)
41
- [Auto PopUp](https://maltathemes.com/auto-popup-likebox/)
42
-
43
- ### FEATURES OF CUSTOM FACEBOOK FEED:
44
-
45
- - Support fully **customizable** facebook feed. Match the look and feel of the feed with your website using WordPress **customizer** (yes, no more guessing)
46
- - **Responsive** - It's responsive and mobile friendly. Easy Social Post feed WordPress plugin is designed from scratch to make sure your content looks and works stunning on all devices and screens.
47
- - Caption words limit - Limit the number of words to display in the story on your site
48
- - **PopUp** - Display images, videos and albums in the advanced popup so your users never leave your site again. ​Also, navigate between post images using next and previous links in the popup
49
- - **Super fast​** - Cache - It caches the posts, images and other content from Facebook and Instagram to minimize external requests to load the page faster. ​It caches the posts, images and other content from Facebook and Instagram to minimize external requests to load the page faster. You can set the interval to check for new posts every second, minute, hour or days. Choice is yours!
50
- - **Multiple feeds​** - There is no limitation to display number of feeds on your site. Our shortcode and widgets works independently. Which means you can add the feed from multiple pages wherever you want, whenever you want.​
51
- - **Top-notch customer support​** - We firmly stand behind our plugin. In case you need help we will be always on the other side of your computer screen to help whenever you need.
52
- - **Layouts** - Display feed in full-width, half-width and in thumbnail views
53
- - Show/hide page plugin - show or hide the page plugin.
54
- - Show/hide page header - ability to show or hide the name of page, information about page, category of the page and number followers
55
- - Image size - Select the size of images you want to display in the feed
56
- - Show or hide the image - ability to hide or show images in the feed
57
- - Share - Share buttons with each post in your feed to make it even more viral on social media.
58
- - Read more - Read more button to read the full story on Facebook.
59
- - Shortcode generator - easily generate shortcode to display feed wherever you want
60
- - Widget - dedicated widget to display the feed in sidebar or footer.
61
- - And much more in the pack…
62
-
63
- ### FEATURES OF INSTAGRAM FEED PLUGIN:
64
-
65
- - **One minute** setup. Easy setup flow to configure and go live in minutes.
66
- - **Fully customizable**. Customize the layout and look & feel using the WP Customizer in **real-time**. Yes, no more guessing!
67
- - Change **number of columns**, colors and borders.
68
- - Create **multiple skins**. Really handy when you need to display the feed in the page as well as in the footer or sidebar, differently.
69
- Completely responsive and mobile friendly.
70
- - Powerful **shortcode generator**, you don’t need to mess up with shortcode attributes.
71
- - **Load more** button to display **unlimited photos**.
72
- - **Follow** on Instagram button.
73
- - Display **header** at the top of the feed.
74
- - Much More Awesome Stuff To Come…
75
-
76
- ### FEATURES OF FACEBOOK PAGE PLUGIN:
77
-
78
- - Show or hide faces/connections.
79
- - Show or hide header.
80
- - Show or hide latest facebook fan page posts.
81
- - Now support optional **responsive** layout.
82
- - Display like box or page plugin in page/post/custom posts using shortcodes easily generated while saving widget or using the shortcode generator on the settings page.
83
- - Set fixed width and height.
84
- - Choose your desired language or input your own language (if not in list).
85
- - Support 75 different locales
86
- - Like box or page plugin in responsive PopUp/Modal window to gain more likes.
87
- - **Top notch customer support​** - We firmly stand behind our plugin. In case you need help we will be always on the other side of your computer screen to help whenever you need.
88
-
89
- ### FEATURES OF AUTO POPUP:
90
-
91
- - Enable/Disable PopUp
92
- - Set PopUp delay from Back-end
93
- - Show PopUp on home page only
94
- - Show PopUp if visitors are logged in
95
- - Show PopUp if visitors are not logged in
96
- - Close button act as never show again (show only once)
97
- - Hide on mobile devices
98
- - Added some smooth transitions
99
- - All of the above options are available with PopUp
100
- - Support all WordPress shortcodes and even html in PopUp
101
- - **Top notch customer support​** - We firmly stand behind our plugin. In case you need help we will be always on the other side of your computer screen to help whenever you need. ​
102
- - **And a lot more inside the pack…**
103
-
104
- ### HOW TO USE EASY CUSTOM FACEBOOK FEED (NEW)
105
- For instructions on how to configure and use this plugin please see FAQ section, Screenshots or checkout or extensive documentation.
106
-
107
- **Need support** feel free to open support ticket:
108
- [Support](https://wordpress.org/support/plugin/easy-facebook-likebox "Support")
109
-
110
- **NOTE**
111
- Easy Facebook Likebox is absolutely the simplest, most beginner friendly yet powerful and the only plugin with one minute setup (or even less).
112
-
113
- Also, I’m the author of [Floating Links](https://wordpress.org/plugins/floating-links) (the easiest to use plugin with 5 star rating and over 800+ active installs) and [My Instagram Feed](https://wordpress.org/plugins/my-instagram-feed) (simplest plugin ever to show your Instagram Feeds in One minute only).
114
-
115
- Thank you
116
-
117
- Danish Ali Malik
118
-
119
-
120
- == Installation ==
121
- 1. Upload "easy-facebook-likebox" to the "/wp-content/plugins/" directory.
122
- 2. Activate the plugin through the "Plugins" menu in WordPress.
123
- 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.
124
-
125
- == Upgrade Notice ==
126
- = 5.0 =
127
- Major update in the Easy Social Post Feed plugin history. After updating the plugin please 1) authenticate the APP again 2) clear cache 3) clear borwser cache.
128
-
129
- = 4.4.3 =
130
- Fixed CSRF issue
131
-
132
- = 4.4.2 =
133
- Added new app to optimize api calls
134
- Changed plugin name from Easy Facebook Likebox to Easy Social Post Feed to remove their WORDMARK
135
- Fixed security issues
136
- Tested Upto 5.2.3
137
- Fixed Minor issues
138
-
139
- = 4.4.1 =
140
- Optimized API calls
141
- Tested Upto 5.2.2
142
- Fixed Minor issues
143
-
144
- = 4.4.0 =
145
- Fixed API rate limit issue
146
- Removed Legacy API version
147
- Tested Upto 5.1.1
148
- Fixed Minor issues
149
-
150
- == Upgrade Notice ==
151
- = 4.3.9 =
152
- Added My Plugins Page.
153
- Tested Upto 5.0.2
154
- Tested With Gutenberg
155
-
156
- = 4.3.8 =
157
- Added Minimum 1 day cache storing (Still working on it and improve more in future).
158
- Fixed Plugin CSS mess up the WordPress admin bar issue.
159
- Fixed Alt attribute missing in feeds.
160
-
161
- = 4.3.7 =
162
- Added Clear cache option.
163
-
164
- = 4.3.6 =
165
- Fixed Feeds not showing error.
166
- Added Minimum 6 days cache storing.
167
-
168
- = 4.3.5 =
169
- Fixed FB not defined issue.
170
- Added multiple facebook apps to reduce api rate limit error.
171
-
172
- = 4.3.4 =
173
- Fixed FB not defined issue.
174
- Tested upto WordPress 4.9.1 version.
175
-
176
- = 4.3.3 =
177
- Fixed preloader remove after loading.
178
-
179
- = 4.3.2 =
180
- Load story in PopUP via ajax.
181
- Added some smooth transitions.
182
- Fixed stretched PopUP images problem.
183
-
184
- = 4.3.1 =
185
- Next and previous story in popup.
186
- Added some fancy effects to popup.
187
- Load asynchronously to avoid render blocking.
188
-
189
- = 4.3.0 =
190
- MUST update to make it work with latest facebook API.
191
-
192
- = 4.2.5 =
193
- Recent update with open external links in new tab option and little improvements here and there.
194
-
195
- = 4.2.5 =
196
- Upadte to ensuer the maximum compatiblity with other themes and plugins.
197
-
198
- = 4.2.2 =
199
- Update if you see any issue with security plugin
200
-
201
- = 4.2.1 =
202
- Important, must update. Fixed lots of issues specially the feed not updating after the scheduled time.
203
-
204
- = 4.2 =
205
- Fixed responsive feature.
206
-
207
- = 4.1 =
208
- Its a maintenance release of this plugin. Fixed some issues with custom facebook feed layout and plugin icon.
209
-
210
- = 4.0.0 =
211
- Its biggest release of all time. Want to use new custom facebook feed ? Then upgrade.
212
-
213
- = 3.1.0 =
214
- Major realease! Must Update the plugin if you were missing the facebook like box in PopUp. Now display like box in auto display PopUp (Auto PopUp).
215
-
216
- = 3.0.0 =
217
- Major realease! Must Update the plugin if you were missing the facebook like box in PopUp. Now display like box in auto display PopUp (Auto PopUp).
218
-
219
- = 2.0.0 =
220
- Update the plugin if you can not find your locale in list
221
-
222
- = 1.0.2 =
223
- Updated the plugin with instructions and major bug fix. Must update.
224
-
225
- =1.0.1=
226
- Updated the plugin to avoid possible conflict with other plugins. Must update.
227
-
228
- =1.0.0=
229
- Initial release.
230
-
231
-
232
- == Frequently Asked Questions ==
233
- = Width not working =
234
- If width parameter is not working then it could be due to facebook responsive styling.
235
-
236
- = Loading slow =
237
- If like box loading slow and taking time to populate then make sure you have given right APP ID and url is correct in app settings.
238
-
239
- To submit your feedback, suggestions and features request follow the below link.
240
- http://wordpress.org/support/topic/need-feed-back-on-plugin-feature/
241
-
242
- == Screenshots ==
243
- 1. Custom Facebook Feed with thumbnail.
244
- 2. Custom Facebook Feed in advanced PopUp.
245
- 3. Responsive Custom Facebook Feed.
246
- 4. Facebook Like Box/ Page Plugin in Auto PopUp.
247
- 5. Facebook Like Box/ Page Plugin in sidebar with post feed.
248
- 6. Custom Instagram Feed.
249
- 7. Custom Instagram Feed settings.
250
- 8. Custom Instagram Feed in advanced PopUp.
251
- 9. Module Settings.
252
- 10. Facebook Authentication.
253
- 11. Custom Facebook Feed shortcode generator.
254
- 12. Facebook Like Box/ Page Plugin shortcode generator.
255
- 13. Auto PopUp settings.
256
- 14. Skins panel.
257
- 15. Clear cache page.
258
- 16. Instagram authentication Page.
259
- 17. Instagram shortcode generator.
260
- 18. Instagram skins panel.
261
-
262
- == Changelog ==
263
- = 5.0 =
264
- * Added: Modren and beginner-freindly UX/UI with new authentication flow.
265
- * Added: Instagram photos and videos feed module.
266
- * Added: New shortocde generator.
267
- * Added: Skins to totaly customize your layouts.
268
- * Added: Facebook page header.
269
- * Added: Feed UI customizer using WordPress like customizer
270
-
271
- = 4.4.3 =
272
- * Fixed: CSRF issue
273
-
274
- = 4.4.2 =
275
- * Added: New app to optimize api calls
276
- * Changed: Plugin name from Easy Facebook Likebox to Easy Social Post Feed to remove their WORDMARK
277
- * Fixed: Security issues
278
- * Tested: Upto 5.2.3
279
- * Fixed: Minor issues
280
-
281
- = 4.4.1 =
282
- * Optimized: API calls
283
- * Tested: Upto 5.2.2
284
- * Fixed: Minor issues
285
-
286
- = 4.4.0 =
287
- * Fixed: API rate limit issue
288
- * Removed: Legacy API version
289
- * Tested: Upto 5.1.1
290
- * Fixed: Minor issues
291
-
292
- = 4.3.9 =
293
- * Added: My Plugins Page
294
- * Tested: Upto 5.0.2
295
- * Tested: With Gutenberg
296
-
297
- = 4.3.8 =
298
- * Added: Minimum 1 day cache storing (Still working on it and improve more in future).
299
- * Fixed: Plugin CSS mess up the WordPress admin bar issue.
300
- * Fixed: Alt attribute missing in feeds.
301
-
302
- = 4.3.7 =
303
- * Added: Clear cache option.
304
-
305
- = 4.3.6 =
306
- * Fixed: Feeds not showing error.
307
- * Added: Minimum 6 days cache storing.
308
-
309
- = 4.3.5 =
310
- * Fixed: FB not defined issue.
311
- * Added: Multiple facebook apps to reduce api rate limit error.
312
-
313
- = 4.3.4 =
314
- * Fixed: FB not defined issue.
315
- * Tested upto WordPress 4.9.1 version.
316
-
317
- = 4.3.3 =
318
- * Fixed: Preloader remove after loading.
319
-
320
- = 4.3.2 =
321
- * Added: Load story in PopUP via ajax.
322
- * Added: Added some smooth transitions.
323
- * Fixed: Stretched PopUP images problem.
324
-
325
- = 4.3.1 =
326
- * Added: Next and previous story in popup
327
- * Added: Some fancy effects to popup
328
- * Added: Load asynchronously to avoid render blocking
329
-
330
- = 4.3.0 =
331
- * Fixed: Migrating from Facebook API 2.1 to 2.8
332
- * Some other minor improvements and fixes
333
-
334
- = 4.2.6 =
335
- * Added: Open links in new tab option.
336
- * Added: Polish translation files (thanks to a user)
337
- * Stability: Tested up to WordPress version 4.5.3
338
- * Other optimzation of code to reduce the size.
339
-
340
- = 4.2.5 =
341
- * Mobile_Detect redclare class error.
342
- * Other optimzation of code to reduce the size.
343
-
344
- = 4.2.2 =
345
- * Delete a unnecessary file
346
-
347
- = 4.2.1 =
348
- * Fixed: Invalid Facebook fan page URL
349
- * Fixed: Feed not updating while scheduling
350
- * Fixed: Fullwidth layout issue
351
- * Fixed: Show page logo not working.
352
- * Fixed: Show images option not working.
353
- * Fixed: Show only others posts are also not working.
354
- * Fixed: Some typos.
355
-
356
- = 4.2 =
357
- * Fixed: Responsive issue
358
-
359
- = 4.1 =
360
- * Fixed: Layout issue
361
- * Fixed: Missing icon
362
-
363
- = 4.0 =
364
- * Added new custom facebook feed feature upon numerous feature requests.
365
- * New enhanced backend user enterface.
366
- * Lots of bug fixes and imporvements.
367
-
368
- = 3.1 =
369
-
370
- * Added another great feature of Auto PopUp. Now you can display easy facebook like box in PopUp.
371
- * Tested upto WordPress 4.1
372
-
373
- = 3.0 =
374
-
375
- * Added another great feature of Auto PopUp. Now you can display easy facebook like box in PopUp.
376
- * Tested upto WordPress 4.1
377
-
378
- = 2.0.0 =
379
-
380
- * Added other feild for locale. Input your locale name if you can not find yours in the list.
381
-
382
- = 1.2.0 =
383
-
384
- * Added other feild for locale. Input your locale name if you can not find yours in the list.
385
-
386
- = 1.1.0 =
387
-
388
- * Optional responsive like box option is added in this version
389
- * Multilingual support. Now you can display the like box in over 75 languages by simply selecting from drop down.
390
-
391
- = 1.0.2 =
392
-
393
- * Updated the plugin with instructions and major bug fix. Must update.
394
-
395
- = 1.0.1 =
396
-
397
- * Updated the plugin to avoid possible conflict with other plugins. Must update.
398
-
399
- = 1.0.0 =
400
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
401
  * Initial release.
1
+ === Easy Social Post Feed - Social Photos Gallery - Page Plugin - Auto PopUp - MT ===
2
+ Contributors: maltathemes, sjaved
3
+ Tags: instagram feed, instagram, facebook feed, PopUp, page plugin
4
+ Requires at least: 3.3
5
+ Tested up to: 5.2.3
6
+ Stable tag: 5.1.1
7
+ License: GPLv2 or later
8
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
+
10
+ Formerly "Easy Facebook Like Box" easiest plugin to display custom Facebook feed (posts, photos, videos, events), custom Instagram Feed (photos, gallery and videos), page plugin (like box), and any content in a PopUp.
11
+
12
+ == Description ==
13
+
14
+ The easiest and beginner friendly plugin for **Custom Instagram Feed** (Display photos, gallery and videos), **Custom Facebook Feed** (posts, links, status, photos, videos, events), **Facebook Page Plugin** (previously Facebook Like Box) and **Auto PopUp**.
15
+
16
+ *"Easy to use as the description – awesome plugin and excellent support, easy to setup and more function, won’t affect the page speed, GREAT JOB!"* – [alexwee88](https://wordpress.org/support/topic/easy-to-use-as-the-description/)
17
+
18
+ *"Much better than the others –I’m really happy with this – and it’s better than the other plugins I’ve tried that offer the same thing. Thank you!"* – [sarahtaylor777](https://wordpress.org/support/topic/much-better-than-the-others-2/)
19
+
20
+ ### Custom Instagram Feed for WordPress:
21
+
22
+ Display your stunning photos and videos from your Instagram account on your site. It’s mobile-friendly (responsive), highly customizable (completely match the look and feel with your site), SEO friendly and has multiple layouts.
23
+
24
+ ### FREE FEATURES OF INSTAGRAM FEED PLUGIN:
25
+
26
+ - **One minute** setup. Easy setup flow to configure and go live in minutes.
27
+ - **Fully customizable**. Customize the layout and look & feel using the WP Customizer in **real-time**. Yes, no more guessing!
28
+ - Change **number of columns**, colors and borders.
29
+ - Create **multiple skins**. Really handy when you need to display the feed in the page as well as in the footer or sidebar, differently.
30
+ Completely responsive and mobile friendly.
31
+ - Powerful **shortcode generator**, you don’t need to mess up with shortcode attributes.
32
+ - **Load more** button to display **unlimited photos**.
33
+ - **Follow** on Instagram button.
34
+ - Display **header** at the top of the feed.
35
+ - Dynamically load more photos - Display more phtos and videos with the click of a button.
36
+ - Much More Awesome Stuff To Come…
37
+
38
+ [Easy Custom Instagram Feed Free Demo](http://demos.maltathemes.com/my-instagram-feed-demo/)
39
+
40
+ ### Pro FEATURES OF INSTAGRAM FEED PLUGIN:
41
+ - **Multiple feeds​** - There is no limitation to display number of feeds on your site. Our shortcode and widgets works independently. Which means you can add the feed from multiple pages wherever you want, whenever you want.​
42
+ - Advanced PopUp - Display photos in advanced and super fast PopUp. Give your feed a look like Instagram so your users do not leave your site ever.
43
+ - Images gallery - Display multiple images in a gallery carousel. Perfect way to display multiple photos in an attractive and user friendly way.
44
+ - Videos gallery - Display multiple videos in a gallery carousel. Yeppp! Your visitors can play videos right inside the popup. Cool!
45
+ - Comments - Display comments on posts on your site under in popup. Also, display replies on comments in thread.
46
+ - Hearts - Display how many times your photo was loved by your followers right on your site.
47
+ - Layouts - Select layouts for your photos feed in full-width, half-width and masonry.
48
+ - Image filters - Apply cool filters to make your photos even more stunning. Available filters are greyscale, saturate, sepia, hue, invert, brightness
49
+ - Animate filters - Confused what filter you want to use? Then no worries, just select animate filters to animate and apply all filters in a loop on your images.
50
+ - Fully customisable layouts - Change colors, padding or even enable and disable the elements.
51
+ - Priority support - Above all, I stand firmly behind my plugin and provide top notch priority support to the premium plan users via email.
52
+
53
+ [Easy Custom Instagram Feed Pro Demo](https://maltathemes.com/my-instagram-feed-demo)
54
+
55
+ ### Custom Facebook Feed for WordPress:
56
+
57
+ Display a customizable (completely match the look and feel with your site), mobile-friendly (responsive) and SEO friendly feed of your Facebook posts on your site in minutes. Supports all types of posts, including images, videos, status and links.
58
+
59
+ ### FREE FEATURES OF CUSTOM FACEBOOK FEED:
60
+
61
+ - Support fully **customizable** facebook feed. Match the look and feel of the feed with your website using WordPress **customizer** (yes, no more guessing)
62
+ - **Responsive** - It's responsive and mobile friendly. Easy Social Post feed WordPress plugin is designed from scratch to make sure your content looks and works stunning on all devices and screens.
63
+ - Caption words limit - Limit the number of words to display in the story on your site
64
+ - **PopUp** - Display images, videos and albums in the advanced popup so your users never leave your site again. ​Also, navigate between post images using next and previous links in the popup
65
+ - **Super fast​** - Cache - It caches the posts, images and other content from Facebook and Instagram to minimize external requests to load the page faster. ​It caches the posts, images and other content from Facebook and Instagram to minimize external requests to load the page faster. You can set the interval to check for new posts every second, minute, hour or days. Choice is yours!
66
+ - **Multiple feeds​** - There is no limitation to display number of feeds on your site. Our shortcode and widgets works independently. Which means you can add the feed from multiple pages wherever you want, whenever you want.​
67
+ - **Top-notch customer support​** - We firmly stand behind our plugin. In case you need help we will be always on the other side of your computer screen to help whenever you need.
68
+ - **Layouts** - Display feed in full-width, half-width and in thumbnail views
69
+ - Show/hide page plugin - show or hide the page plugin.
70
+ - Show/hide page header - ability to show or hide the name of page, information about page, category of the page and number followers
71
+ - Image size - Select the size of images you want to display in the feed
72
+ - Show or hide the image - ability to hide or show images in the feed
73
+ - Share - Share buttons with each post in your feed to make it even more viral on social media.
74
+ - Read more - Read more button to read the full story on Facebook.
75
+ - Shortcode generator - easily generate shortcode to display feed wherever you want
76
+ - Widget - dedicated widget to display the feed in sidebar or footer.
77
+ - And much more in the pack…
78
+
79
+ [Easy Custom Facebook Feed Free Demo](http://demos.maltathemes.com/custom-facebook-feed/)
80
+
81
+
82
+ ### PRO FEATURES OF CUSTOM FACEBOOK FEED:
83
+ - Post filter - Filter the posts in feed to based on type of the post for example images, videos, and only posts where you were mentions.
84
+ - Any page post feed - You can display posts from any public page even you don't manage it.
85
+ - Post images gallery - Display all images and videos in the gallery carousel in PopUp.
86
+ - Advanced PopUp - Replaces the current PopUp with advanced and super fast PopUp. Give your feed a look like FB so your users do not leave your site ever.
87
+ - Albums feed - Display albums of any page on your site. Really good to reduce effort of uploading images in the site again.
88
+ - Events - Display events of your page on your site. It syncs the events you share on Facebook to keep your site visitors stay up to date.
89
+ - Comment replies - Display threads of comments reply in the separate fancy popup.
90
+ - Comments media - Display images and videos added on your posts in the comments by your followers in fancy popup.
91
+ - Likes popup - Display likes and reactions in the popup. Also, it will help you filter the reactions on a post like Facebook.
92
+ - Fully customisable layouts - Change colors, padding or even enable and disable the elements.
93
+
94
+ [Easy Custom Facebook Feed Pro Demo](https://maltathemes.com/custom-facebook-feed/)
95
+
96
+ ### Facebook Page plugin for WordPress:
97
+
98
+ Displays a Facebook Page Plugin (previously Facebook Like Box). The Facebook Page Plugin 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.
99
+
100
+ ### FEATURES OF FACEBOOK PAGE PLUGIN:
101
+
102
+ - Show or hide faces/connections.
103
+ - Show or hide header.
104
+ - Show or hide latest facebook fan page posts.
105
+ - Now support optional **responsive** layout.
106
+ - Display like box or page plugin in page/post/custom posts using shortcodes easily generated while saving widget or using the shortcode generator on the settings page.
107
+ - Set fixed width and height.
108
+ - Choose your desired language or input your own language (if not in list).
109
+ - Support 75 different locales
110
+ - Like box or page plugin in responsive PopUp/Modal window to gain more likes.
111
+ - **Top notch customer support​** - We firmly stand behind our plugin. In case you need help we will be always on the other side of your computer screen to help whenever you need.
112
+
113
+ [Faceook Page Plugin Demo](https://maltathemes.com/faceook-page-plugin)
114
+
115
+ ** Easy Social Post Feed WordPress ** plugin is designed to keep beginners in mind from scratch. It has beginner’s friendly workflow to set up Custom Instagram Feed, Custom Facebook Feed, Page Plugin and Auto PopUp in minutes (time is the single most precious commodity in the universe).
116
+
117
+ ### FEATURES OF AUTO POPUP:
118
+
119
+ - Enable/Disable PopUp
120
+ - Set PopUp delay from Back-end
121
+ - Show PopUp on home page only
122
+ - Show PopUp if visitors are logged in
123
+ - Show PopUp if visitors are not logged in
124
+ - Close button act as never show again (show only once)
125
+ - Hide on mobile devices
126
+ - Added some smooth transitions
127
+ - All of the above options are available with PopUp
128
+ - Support all WordPress shortcodes and even html in PopUp
129
+ - **Top notch customer support​** - We firmly stand behind our plugin. In case you need help we will be always on the other side of your computer screen to help whenever you need.
130
+ - **And a lot more inside the pack…**
131
+
132
+ [Auto PopUp Demo](https://maltathemes.com/auto-popup-likebox/)
133
+
134
+
135
+ ### HOW TO USE EASY CUSTOM FACEBOOK FEED (NEW)
136
+ For instructions on how to configure and use this plugin please see FAQ section, Screenshots or checkout or extensive documentation.
137
+
138
+ **Need support** feel free to open support ticket:
139
+ [Support](https://wordpress.org/support/plugin/easy-facebook-likebox "Support")
140
+
141
+ **NOTE**
142
+ Easy Facebook Likebox is absolutely the simplest, most beginner friendly yet powerful and the only plugin with one minute setup (or even less).
143
+
144
+ Also, I’m the author of [Floating Links](https://wordpress.org/plugins/floating-links) (the easiest to use plugin with 5 star rating and over 800+ active installs) and [My Instagram Feed](https://wordpress.org/plugins/my-instagram-feed) (simplest plugin ever to show your Instagram Feeds in One minute only).
145
+
146
+ Thank you
147
+
148
+ Danish Ali Malik
149
+
150
+
151
+ == Installation ==
152
+ 1. Upload "easy-facebook-likebox" to the "/wp-content/plugins/" directory.
153
+ 2. Activate the plugin through the "Plugins" menu in WordPress.
154
+ 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.
155
+
156
+ == Upgrade Notice ==
157
+ = 5.0 =
158
+ Major update in the Easy Social Post Feed plugin history. After updating the plugin please 1) authenticate the APP again 2) clear cache 3) clear borwser cache.
159
+
160
+ = 4.4.3 =
161
+ Fixed CSRF issue
162
+
163
+ = 4.4.2 =
164
+ Added new app to optimize api calls
165
+ Changed plugin name from Easy Facebook Likebox to Easy Social Post Feed to remove their WORDMARK
166
+ Fixed security issues
167
+ Tested Upto 5.2.3
168
+ Fixed Minor issues
169
+
170
+ = 4.4.1 =
171
+ Optimized API calls
172
+ Tested Upto 5.2.2
173
+ Fixed Minor issues
174
+
175
+ = 4.4.0 =
176
+ Fixed API rate limit issue
177
+ Removed Legacy API version
178
+ Tested Upto 5.1.1
179
+ Fixed Minor issues
180
+
181
+ == Upgrade Notice ==
182
+ = 4.3.9 =
183
+ Added My Plugins Page.
184
+ Tested Upto 5.0.2
185
+ Tested With Gutenberg
186
+
187
+ = 4.3.8 =
188
+ Added Minimum 1 day cache storing (Still working on it and improve more in future).
189
+ Fixed Plugin CSS mess up the WordPress admin bar issue.
190
+ Fixed Alt attribute missing in feeds.
191
+
192
+ = 4.3.7 =
193
+ Added Clear cache option.
194
+
195
+ = 4.3.6 =
196
+ Fixed Feeds not showing error.
197
+ Added Minimum 6 days cache storing.
198
+
199
+ = 4.3.5 =
200
+ Fixed FB not defined issue.
201
+ Added multiple facebook apps to reduce api rate limit error.
202
+
203
+ = 4.3.4 =
204
+ Fixed FB not defined issue.
205
+ Tested upto WordPress 4.9.1 version.
206
+
207
+ = 4.3.3 =
208
+ Fixed preloader remove after loading.
209
+
210
+ = 4.3.2 =
211
+ Load story in PopUP via ajax.
212
+ Added some smooth transitions.
213
+ Fixed stretched PopUP images problem.
214
+
215
+ = 4.3.1 =
216
+ Next and previous story in popup.
217
+ Added some fancy effects to popup.
218
+ Load asynchronously to avoid render blocking.
219
+
220
+ = 4.3.0 =
221
+ MUST update to make it work with latest facebook API.
222
+
223
+ = 4.2.5 =
224
+ Recent update with open external links in new tab option and little improvements here and there.
225
+
226
+ = 4.2.5 =
227
+ Upadte to ensuer the maximum compatiblity with other themes and plugins.
228
+
229
+ = 4.2.2 =
230
+ Update if you see any issue with security plugin
231
+
232
+ = 4.2.1 =
233
+ Important, must update. Fixed lots of issues specially the feed not updating after the scheduled time.
234
+
235
+ = 4.2 =
236
+ Fixed responsive feature.
237
+
238
+ = 4.1 =
239
+ Its a maintenance release of this plugin. Fixed some issues with custom facebook feed layout and plugin icon.
240
+
241
+ = 4.0.0 =
242
+ Its biggest release of all time. Want to use new custom facebook feed ? Then upgrade.
243
+
244
+ = 3.1.0 =
245
+ Major realease! Must Update the plugin if you were missing the facebook like box in PopUp. Now display like box in auto display PopUp (Auto PopUp).
246
+
247
+ = 3.0.0 =
248
+ Major realease! Must Update the plugin if you were missing the facebook like box in PopUp. Now display like box in auto display PopUp (Auto PopUp).
249
+
250
+ = 2.0.0 =
251
+ Update the plugin if you can not find your locale in list
252
+
253
+ = 1.0.2 =
254
+ Updated the plugin with instructions and major bug fix. Must update.
255
+
256
+ =1.0.1=
257
+ Updated the plugin to avoid possible conflict with other plugins. Must update.
258
+
259
+ =1.0.0=
260
+ Initial release.
261
+
262
+
263
+ == Frequently Asked Questions ==
264
+ = Width not working =
265
+ If width parameter is not working then it could be due to facebook responsive styling.
266
+
267
+ = Loading slow =
268
+ If like box loading slow and taking time to populate then make sure you have given right APP ID and url is correct in app settings.
269
+
270
+ To submit your feedback, suggestions and features request follow the below link.
271
+ http://wordpress.org/support/topic/need-feed-back-on-plugin-feature/
272
+
273
+ == Screenshots ==
274
+ 1. Custom Facebook Feed with thumbnail.
275
+ 2. Custom Facebook Feed in advanced PopUp.
276
+ 3. Responsive Custom Facebook Feed.
277
+ 4. Facebook Like Box/ Page Plugin in Auto PopUp.
278
+ 5. Facebook Like Box/ Page Plugin in sidebar with post feed.
279
+ 6. Custom Instagram Feed.
280
+ 7. Custom Instagram Feed settings.
281
+ 8. Custom Instagram Feed in advanced PopUp.
282
+ 9. Module Settings.
283
+ 10. Facebook Authentication.
284
+ 11. Custom Facebook Feed shortcode generator.
285
+ 12. Facebook Like Box/ Page Plugin shortcode generator.
286
+ 13. Auto PopUp settings.
287
+ 14. Skins panel.
288
+ 15. Clear cache page.
289
+ 16. Instagram authentication Page.
290
+ 17. Instagram shortcode generator.
291
+ 18. Instagram skins panel.
292
+
293
+ == Changelog ==
294
+ = 5.1.1 =
295
+ * Fixed: Minor layout bug
296
+
297
+ = 5.0 =
298
+ * Added: Modren and beginner-freindly UX/UI with new authentication flow.
299
+ * Added: Instagram photos and videos feed module.
300
+ * Added: New shortocde generator.
301
+ * Added: Skins to totaly customize your layouts.
302
+ * Added: Facebook page header.
303
+ * Added: Feed UI customizer using WordPress like customizer
304
+
305
+ = 4.4.3 =
306
+ * Fixed: CSRF issue
307
+
308
+ = 4.4.2 =
309
+ * Added: New app to optimize api calls
310
+ * Changed: Plugin name from Easy Facebook Likebox to Easy Social Post Feed to remove their WORDMARK
311
+ * Fixed: Security issues
312
+ * Tested: Upto 5.2.3
313
+ * Fixed: Minor issues
314
+
315
+ = 4.4.1 =
316
+ * Optimized: API calls
317
+ * Tested: Upto 5.2.2
318
+ * Fixed: Minor issues
319
+
320
+ = 4.4.0 =
321
+ * Fixed: API rate limit issue
322
+ * Removed: Legacy API version
323
+ * Tested: Upto 5.1.1
324
+ * Fixed: Minor issues
325
+
326
+ = 4.3.9 =
327
+ * Added: My Plugins Page
328
+ * Tested: Upto 5.0.2
329
+ * Tested: With Gutenberg
330
+
331
+ = 4.3.8 =
332
+ * Added: Minimum 1 day cache storing (Still working on it and improve more in future).
333
+ * Fixed: Plugin CSS mess up the WordPress admin bar issue.
334
+ * Fixed: Alt attribute missing in feeds.
335
+
336
+ = 4.3.7 =
337
+ * Added: Clear cache option.
338
+
339
+ = 4.3.6 =
340
+ * Fixed: Feeds not showing error.
341
+ * Added: Minimum 6 days cache storing.
342
+
343
+ = 4.3.5 =
344
+ * Fixed: FB not defined issue.
345
+ * Added: Multiple facebook apps to reduce api rate limit error.
346
+
347
+ = 4.3.4 =
348
+ * Fixed: FB not defined issue.
349
+ * Tested upto WordPress 4.9.1 version.
350
+
351
+ = 4.3.3 =
352
+ * Fixed: Preloader remove after loading.
353
+
354
+ = 4.3.2 =
355
+ * Added: Load story in PopUP via ajax.
356
+ * Added: Added some smooth transitions.
357
+ * Fixed: Stretched PopUP images problem.
358
+
359
+ = 4.3.1 =
360
+ * Added: Next and previous story in popup
361
+ * Added: Some fancy effects to popup
362
+ * Added: Load asynchronously to avoid render blocking
363
+
364
+ = 4.3.0 =
365
+ * Fixed: Migrating from Facebook API 2.1 to 2.8
366
+ * Some other minor improvements and fixes
367
+
368
+ = 4.2.6 =
369
+ * Added: Open links in new tab option.
370
+ * Added: Polish translation files (thanks to a user)
371
+ * Stability: Tested up to WordPress version 4.5.3
372
+ * Other optimzation of code to reduce the size.
373
+
374
+ = 4.2.5 =
375
+ * Mobile_Detect redclare class error.
376
+ * Other optimzation of code to reduce the size.
377
+
378
+ = 4.2.2 =
379
+ * Delete a unnecessary file
380
+
381
+ = 4.2.1 =
382
+ * Fixed: Invalid Facebook fan page URL
383
+ * Fixed: Feed not updating while scheduling
384
+ * Fixed: Fullwidth layout issue
385
+ * Fixed: Show page logo not working.
386
+ * Fixed: Show images option not working.
387
+ * Fixed: Show only others posts are also not working.
388
+ * Fixed: Some typos.
389
+
390
+ = 4.2 =
391
+ * Fixed: Responsive issue
392
+
393
+ = 4.1 =
394
+ * Fixed: Layout issue
395
+ * Fixed: Missing icon
396
+
397
+ = 4.0 =
398
+ * Added new custom facebook feed feature upon numerous feature requests.
399
+ * New enhanced backend user enterface.
400
+ * Lots of bug fixes and imporvements.
401
+
402
+ = 3.1 =
403
+
404
+ * Added another great feature of Auto PopUp. Now you can display easy facebook like box in PopUp.
405
+ * Tested upto WordPress 4.1
406
+
407
+ = 3.0 =
408
+
409
+ * Added another great feature of Auto PopUp. Now you can display easy facebook like box in PopUp.
410
+ * Tested upto WordPress 4.1
411
+
412
+ = 2.0.0 =
413
+
414
+ * Added other feild for locale. Input your locale name if you can not find yours in the list.
415
+
416
+ = 1.2.0 =
417
+
418
+ * Added other feild for locale. Input your locale name if you can not find yours in the list.
419
+
420
+ = 1.1.0 =
421
+
422
+ * Optional responsive like box option is added in this version
423
+ * Multilingual support. Now you can display the like box in over 75 languages by simply selecting from drop down.
424
+
425
+ = 1.0.2 =
426
+
427
+ * Updated the plugin with instructions and major bug fix. Must update.
428
+
429
+ = 1.0.1 =
430
+
431
+ * Updated the plugin to avoid possible conflict with other plugins. Must update.
432
+
433
+ = 1.0.0 =
434
+
435
  * Initial release.
admin/admin.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
- /*
4
- * Stop execution if someone tried to get file directly.
5
  */
6
  if ( !defined( 'ABSPATH' ) ) {
7
  exit;
@@ -13,109 +13,109 @@ class FTA_Admin
13
  {
14
  /* Intitializing $adminurl .*/
15
  var $adminurl ;
16
- /*
17
- * __construct initialize all function of this class.
18
- * Returns nothing.
19
- * Used action_hooks to get things sequentially.
20
  */
21
  function __construct()
22
  {
23
- /*
24
- * admin_menu hooks fires on wp admin load.
25
- * Add the menu page in wp admin area.
26
  */
27
  add_action( 'admin_menu', array( $this, 'fta_menu' ) );
28
- /*
29
- * admin_enqueue_scripts hooks fires for enqueing custom script and styles.
30
- * Css file will be include in admin area.
31
  */
32
  add_action( 'admin_enqueue_scripts', array( $this, 'fta_admin_style' ) );
33
- /*
34
- * wp_enqueue_scripts hooks fires for enqueing custom script and styles.
35
- * Css file will be include in frontend area.
36
  */
37
  add_action( 'wp_enqueue_scripts', array( $this, 'fta_frontend_style' ) );
38
- /*
39
- * fta_plugin_status hooks fires on Ajax call.
40
- * fta_plugin_status method will be call when user change status of plugin.
41
  */
42
  add_action( 'wp_ajax_fta_plugin_status', array( $this, 'fta_plugin_status' ) );
43
- /*
44
- * fta_remove_at hooks fires on Ajax call.
45
- * fta_remove_at method will remove the access token and all data.
46
  */
47
  add_action( 'wp_ajax_fta_remove_at', array( $this, 'fta_remove_at' ) );
48
- /*
49
- * admin_notices hooks fires for displaying admin notice.
50
- * fta_admin_notice method will be call.
51
  */
52
  add_action( 'admin_notices', array( $this, 'fta_admin_notice' ) );
53
- /*
54
- * efbl_save_access_token hooks fires on Ajax call.
55
- * efbl_save_access_token method will be call when the access token needs to be updated.
56
  */
57
  add_action( 'wp_ajax_efbl_save_access_token', array( $this, 'efbl_save_access_token_cb' ) );
58
- /*
59
- * wp_ajax_mif_supported hooks fires on Ajax call.
60
- * wp_ajax_mif_supported method will be call on click of supported button in admin notice.
61
  */
62
  add_action( 'wp_ajax_fta_supported', array( $this, 'fta_supported_func' ) );
63
- /*
64
- * wp_ajax_mif_supported hooks fires on Ajax call.
65
- * wp_ajax_mif_supported method will be call on click of supported button in admin notice.
66
  */
67
  add_action( 'wp_ajax_fta_upgraded_msg_dismiss', array( $this, 'fta_upgraded_msg_dismiss' ) );
68
  }
69
 
70
  /* __construct Method ends here. */
71
- /*
72
- * fta_frontend_style will enqueue style and js files.
73
  */
74
  public function fta_frontend_style()
75
  {
76
  }
77
 
78
  /* fta_frontend_style Method ends here. */
79
- /*
80
- * fta_admin_style will enqueue style and js files.
81
- * Returns hook name of the current page in admin.
82
- * $hook will contain the hook name.
83
  */
84
  public function fta_admin_style( $hook )
85
  {
86
  // exit( $hook);
87
- /*
88
- * Following files should load only on fta page in backend.
89
  */
90
  if ( 'toplevel_page_feed-them-all' !== $hook && 'easy-facebook-likebox-espf_page_mif' !== $hook && 'easy-facebook-likebox-espf_page_easy-facebook-likebox' !== $hook ) {
91
  return;
92
  }
93
- /*
94
- * Base css file for admin area.
95
  */
96
  wp_enqueue_style( 'materialize.min', FTA_PLUGIN_URL . 'assets/css/materialize.min.css' );
97
- /*
98
- * Css file for admin area.
99
  */
100
  wp_enqueue_style( 'fta_animations', FTA_PLUGIN_URL . 'assets/css/fta_animations.css' );
101
- /*
102
- * Css file for admin area.
103
  */
104
  wp_enqueue_style( 'fta_admin_style', FTA_PLUGIN_URL . 'assets/css/fta_admin_style.css' );
105
- /*
106
- * Base script file for admin area.
107
  */
108
  wp_enqueue_script( 'materialize.min', FTA_PLUGIN_URL . 'assets/js/materialize.min.js', array( 'jquery' ) );
109
- /*
110
- * For sliding animations.
111
  */
112
  wp_enqueue_script( 'jquery-effects-slide' );
113
- /*
114
- * Copy To Clipboard script file for admin area.
115
  */
116
  wp_enqueue_script( 'clipboard' );
117
- /*
118
- * Custom scripts file for admin area.
119
  */
120
  wp_enqueue_script( 'fta_admin_jquery', FTA_PLUGIN_URL . 'assets/js/fta-admin.js', array( 'jquery' ) );
121
  // echo "<pre>";
@@ -129,23 +129,23 @@ class FTA_Admin
129
  }
130
 
131
  /* fta_admin_style Method ends here. */
132
- /*
133
- * fta_menu will add admin page.
134
- * Returns nothing.
135
  */
136
  public function fta_menu()
137
  {
138
- /*
139
- * URL of the plugin icon.
140
  */
141
  $icon_url = FTA_PLUGIN_URL . 'assets/images/plugin_icon.png';
142
- /*
143
- * add_menu_page will add menu into the page.
144
- * string $page_title
145
- * string $menu_title
146
- * string $capability
147
- * string $menu_slug
148
- * callable $function
149
  */
150
  add_menu_page(
151
  __( 'Easy Facebook Likebox - ESPF', 'easy-facebook-likebox' ),
@@ -158,9 +158,9 @@ class FTA_Admin
158
  }
159
 
160
  /* fta_menu Method ends here. */
161
- /*
162
- * feed-them-all-content contains the html/markup of the page.
163
- * Returns nothing.
164
  */
165
  function fta_page()
166
  {
@@ -168,40 +168,40 @@ class FTA_Admin
168
  $fta_settings = $fta_class->fta_get_settings();
169
  $current_user = wp_get_current_user();
170
  $returner = null;
171
- /*
172
- * Base html.
173
- * fta_base_html filter can be used to customize base html of setting page.
174
  */
175
  $returner .= sprintf(
176
- '<div class="fta_wrap z-depth-1">
177
- <div class="fta_wrap_inner">
178
- <div class="fta_tabs_holder">
179
- <div class="fta_tabs_header">
180
- <div class="fta_sliders_wrap">
181
- <div id="fta_sliders">
182
- <span>
183
- <div class="box"></div>
184
- </span>
185
- <span>
186
- <div class="box"></div>
187
- </span>
188
- <span>
189
- <div class="box"></div>
190
- </span>
191
- </div>
192
-
193
- </div>
194
- </div>
195
- <div class="fta_tab_c_holder">
196
- <div class="row">
197
- <h5>%1$s ' . $current_user->user_login . '! %2$s</h5>
198
- <p>%3$s</p>
199
- %4$s
200
- </div>
201
- </div>
202
- </div>
203
- </div>
204
- </div>',
205
  /* Variables starts here. */
206
  __( "Welcome ", $fta_class->fta_slug ),
207
  __( "Whats's your goal?", $fta_class->fta_slug ),
@@ -213,42 +213,42 @@ class FTA_Admin
213
  }
214
 
215
  /* fta_page method ends here. */
216
- /*
217
- * fta_plugins_listing contains the html/markup of the listings in dashboard.
218
- * Returns HTML.
219
  */
220
  private function fta_plugins_listing()
221
  {
222
- /*
223
- * Getting main class.
224
  */
225
  $FTA = new Feed_Them_All();
226
  // echo "<pre>"; print_r($FTA->fta_get_settings());exit();
227
- /*
228
- * Getting All FTA plugins.
229
  */
230
  $fta_all_plugs = $FTA->fta_plugins();
231
- /*
232
- * Holds all the HTML.
233
  */
234
  $returner = '<div class="fta_all_plugs col s12">';
235
- /*
236
- * IF plugins exists loop thorugh it and make html.
237
  */
238
  if ( isset( $fta_all_plugs ) ) {
239
  foreach ( $fta_all_plugs as $fta_plug ) {
240
  $fta_settings_url = admin_url( 'admin.php?page=' . $fta_plug['slug'] );
241
  // echo "<pre>"; print_r($fta_settings_url);exit();
242
- /*
243
- * Getting Image URL.
244
  */
245
  $img_url = FTA_PLUGIN_URL . 'assets/images/' . $fta_plug['img_name'] . '';
246
- /*
247
- * Making Slug.
248
  */
249
  $slug = strtolower( $fta_plug['name'] );
250
- /*
251
- * Making Button Label.
252
  */
253
 
254
  if ( $fta_plug['status'] == 'activated' ) {
@@ -258,24 +258,24 @@ class FTA_Admin
258
  }
259
 
260
  $returner .= sprintf(
261
- '<div class="card col fta_single_plug s5 fta_plug_%5$s fta_plug_%4$s">
262
- <div class="card-image waves-effect waves-block waves-light">
263
- <img class="activator" src="%2$s">
264
- </div>
265
- <div class="card-content">
266
- <span class="card-title activator grey-text text-darken-4">%1$s<i class="material-icons right">more_vert</i></span>
267
- </div>
268
- <hr>
269
- <div class="fta_cta_holder">
270
- <p>%3$s</p>
271
- <a class="btn waves-effect fta_plug_activate waves-light" data-status="%4$s" data-plug="%5$s" href="javascript:void(0);">%6$s</a>
272
- <a class="btn waves-effect right waves-light" href="%8$s">%7$s</a>
273
- </div>
274
-
275
- <div class="card-reveal">
276
- <span class="card-title grey-text text-darken-4">%1$s<i class="material-icons right">close</i></span>
277
- <p>%3$s</p>
278
- </div>
279
  </div>',
280
  /* Variables starts here. */
281
  $fta_plug['name'],
@@ -293,37 +293,37 @@ class FTA_Admin
293
  }
294
 
295
  /* fta_plugins_listing method ends here. */
296
- /*
297
- * fta_plugin_status on ajax.
298
- * Returns the Success or Error Message.
299
- * Change Plugin Status
300
  */
301
  function fta_plugin_status()
302
  {
303
- /*
304
- * Getting the Plugin Name.
305
  */
306
  $fta_plugin = sanitize_text_field( $_POST['plugin'] );
307
- /*
308
- * Getting the Plugin status.
309
  */
310
  $fta_plug_status = sanitize_text_field( $_POST['status'] );
311
- /*
312
- * Getting the Plugin main object.
313
  */
314
  $Feed_Them_All = new Feed_Them_All();
315
- /*
316
- * Getting the FTA Plugin settings.
317
  */
318
  $fta_settings = $Feed_Them_All::fta_get_settings();
319
- /*
320
- * Chaning status accroding to selected option of specific plugin.
321
  */
322
  $fta_settings['plugins'][$fta_plugin]['status'] = $fta_plug_status;
323
  if ( wp_verify_nonce( $_POST['fta_nonce'], 'fta-ajax-nonce' ) ) {
324
  if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
325
- /*
326
- * Updating the settings back into DB
327
  */
328
  $status_updated = update_option( 'fta_settings', $fta_settings );
329
  }
@@ -335,19 +335,19 @@ class FTA_Admin
335
  $status = __( ' Deactivated', $Feed_Them_All->fta_slug );
336
  }
337
 
338
- /*
339
- * If status is successfully changed
340
  */
341
 
342
  if ( isset( $status_updated ) ) {
343
- /*
344
- * Sending back the success message
345
  */
346
  echo wp_send_json_success( __( ucfirst( $fta_plugin ) . $status . ' Successfully', $Feed_Them_All->fta_slug ) ) ;
347
  die;
348
  } else {
349
- /*
350
- * Sending back the error message
351
  */
352
  echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', $Feed_Them_All->fta_slug ) ) ;
353
  die;
@@ -357,39 +357,39 @@ class FTA_Admin
357
  }
358
 
359
  /* fta_plugin_status method ends here. */
360
- /*
361
- * Get the access token and save back into DB
362
  */
363
  public function efbl_save_access_token_cb()
364
  {
365
- /*
366
- * Getting the access token.
367
  */
368
  $access_token = $_POST['access_token'];
369
- /*
370
- * Getting the access token.
371
  */
372
  $id = $_POST['id'];
373
- /*
374
- * All accounts API endpoint
375
  */
376
  $fta_api_url = 'https://graph.facebook.com/me/accounts?fields=access_token,username,id,name,fan_count,category,about&access_token=' . $access_token;
377
- /*
378
- * Getting all accounts
379
  */
380
  $fta_pages = wp_remote_get( $fta_api_url );
381
- /*
382
- * Descoding the array
383
  */
384
  $fb_pages = json_decode( $fta_pages['body'] );
385
  // echo wp_send_json_success($fb_pages);
386
  // die();
387
- /*
388
- * Init array
389
  */
390
  $approved_pages = array();
391
- /*
392
- * If pages exists loop over and save by ID key.
393
  */
394
 
395
  if ( $fb_pages->data ) {
@@ -400,25 +400,25 @@ class FTA_Admin
400
  $title = __( 'Connected Instagram Accounts', 'easy-facebook-likebox' );
401
  }
402
 
403
- $efbl_all_pages_html = '<ul class="collection with-header"> <li class="collection-header"><h5>' . $title . '</h5>
404
  <a href="#fta-remove-at" class="modal-trigger fta-remove-at-btn tooltipped" data-position="left" data-delay="50" data-tooltip="' . __( 'Delete Access Token', 'easy-facebook-likebox' ) . '"><i class="material-icons">delete_forever</i></a></li>';
405
  foreach ( $fb_pages->data as $efbl_page ) {
406
  $fta_insta_api_url = 'https://graph.facebook.com/v4.0/' . $efbl_page->id . '/?fields=connected_instagram_account,instagram_accounts{username,profile_pic}&access_token=' . $efbl_page->access_token;
407
- /*
408
- * Getting all accounts
409
  */
410
  $fta_insta_accounts = wp_remote_get( $fta_insta_api_url );
411
- /*
412
- * Descoding the array
413
  */
414
  $fta_insta_accounts = json_decode( $fta_insta_accounts['body'] );
415
  $fta_insta_connected_api_url = 'https://graph.facebook.com/v4.0/' . $fta_insta_accounts->connected_instagram_account->id . '/?fields=name,profile_picture_url,ig_id,username&access_token=' . $efbl_page->access_token;
416
- /*
417
- * Getting all accounts
418
  */
419
  $fta_insta_connected_account = wp_remote_get( $fta_insta_connected_api_url );
420
- /*
421
- * Descoding the array
422
  */
423
  $fta_insta_connected_account = json_decode( $fta_insta_connected_account['body'] );
424
 
@@ -433,12 +433,12 @@ class FTA_Admin
433
  }
434
 
435
  $efbl_all_pages_html .= sprintf(
436
- '<li class="collection-item avatar li-' . $efbl_page->id . '">
437
- <a href="https://web.facebook.com/' . $efbl_page->id . '" target="_blank">
438
- <img src="%2$s" alt="" class="circle">
439
- </a>
440
- <span class="title">%1$s</span>
441
- <p>%3$s <br> %5$s %4$s <i class="material-icons efbl_copy_id tooltipped" data-position="right" data-clipboard-text="%4$s" data-delay="100" data-tooltip="%6$s">content_copy</i></p>
442
  </li>',
443
  $efbl_page->name,
444
  'https://graph.facebook.com/' . $efbl_page->id . '/picture',
@@ -452,13 +452,13 @@ class FTA_Admin
452
  if ( 'insta' == $id ) {
453
  if ( $fta_insta_connected_account->ig_id ) {
454
  $efbl_all_pages_html .= sprintf(
455
- '<li class="collection-item avatar fta_insta_connected_account li-' . $fta_insta_connected_account->ig_id . '">
456
-
457
- <a href="https://www.instagram.com/' . $fta_insta_connected_account->username . '" target="_blank">
458
- <img src="%2$s" alt="" class="circle">
459
- </a>
460
- <span class="title">%1$s</span>
461
- <p>%5$s <br> %6$s %3$s <i class="material-icons efbl_copy_id tooltipped" data-position="right" data-clipboard-text="%3$s" data-delay="100" data-tooltip="%7$s">content_copy</i></p>
462
  </li>',
463
  $fta_insta_connected_account->name,
464
  $fta_insta_connected_account->profile_picture_url,
@@ -471,8 +471,8 @@ class FTA_Admin
471
  }
472
  }
473
  $efbl_page = (array) $efbl_page;
474
- /*
475
- * Making it by ID
476
  */
477
  $approved_pages[$efbl_page['id']] = $efbl_page;
478
  $approved_pages[$efbl_page['id']]['instagram_accounts'] = $fta_insta_accounts;
@@ -481,47 +481,47 @@ class FTA_Admin
481
  $efbl_all_pages_html .= '</ul>';
482
  }
483
 
484
- /*
485
- * All accounts API endpoint
486
  */
487
  $fta_self_url = 'https://graph.facebook.com/me?fields=id,name&access_token=' . $access_token;
488
- /*
489
- * Getting all accounts
490
  */
491
  $fta_self_data = wp_remote_get( $fta_self_url );
492
- /*
493
- * Descoding the array
494
  */
495
  $fta_self_data = json_decode( $fta_self_data['body'] );
496
  $fta_self_data = (array) $fta_self_data;
497
- /*
498
- * Getting Main Class
499
  */
500
  $FTA = new Feed_Them_All();
501
- /*
502
- * Getting All Settings
503
  */
504
  $fta_settings = $FTA->fta_get_settings();
505
  $fta_settings['plugins']['facebook']['approved_pages'] = $approved_pages;
506
  $fta_settings['plugins']['facebook']['access_token'] = $access_token;
507
  $fta_settings['plugins']['facebook']['author'] = $fta_self_data;
508
- /*
509
- * Saving values in wp options table.
510
  */
511
  $efbl_saved = update_option( 'fta_settings', $fta_settings );
512
- /*
513
- * Checking if option is saved successfully.
514
  */
515
 
516
  if ( isset( $efbl_saved ) ) {
517
- /*
518
- * Return success message and die.
519
  */
520
  echo wp_send_json_success( array( __( 'Successfully Authenticated! Taking you to next step', 'easy-facebook-likebox' ), $efbl_all_pages_html ) ) ;
521
  die;
522
  } else {
523
- /*
524
- * Return error message and die.
525
  */
526
  echo wp_send_json_error( __( 'Something went wrong! Refresh the page and try Again', 'easy-facebook-likebox' ) ) ;
527
  die;
@@ -530,19 +530,19 @@ class FTA_Admin
530
  }
531
 
532
  /* efbl_save_access_token_cb Method ends here. */
533
- /*
534
- * fta_remove_at on ajax.
535
- * Returns the Success or Error Message.
536
- * Remove access token and data
537
  */
538
  function fta_remove_at()
539
  {
540
- /*
541
- * Getting the Plugin main object.
542
  */
543
  $Feed_Them_All = new Feed_Them_All();
544
- /*
545
- * Getting the FTA Plugin settings.
546
  */
547
  $fta_settings = $Feed_Them_All::fta_get_settings();
548
  if ( wp_verify_nonce( $_POST['fta_nonce'], 'fta-ajax-nonce' ) ) {
@@ -550,26 +550,26 @@ class FTA_Admin
550
  if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
551
  unset( $fta_settings['plugins']['facebook']['approved_pages'] );
552
  unset( $fta_settings['plugins']['facebook']['access_token'] );
553
- /*
554
- * Updating the settings back into DB
555
  */
556
  $delted_data = update_option( 'fta_settings', $fta_settings );
557
  }
558
 
559
  }
560
- /*
561
- * If status is successfully changed
562
  */
563
 
564
  if ( isset( $delted_data ) ) {
565
- /*
566
- * Sending back the success message
567
  */
568
  echo wp_send_json_success( __( 'Deleted', $Feed_Them_All->fta_slug ) ) ;
569
  die;
570
  } else {
571
- /*
572
- * Sending back the error message
573
  */
574
  echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', $Feed_Them_All->fta_slug ) ) ;
575
  die;
@@ -579,8 +579,8 @@ class FTA_Admin
579
  }
580
 
581
  /* fta_remove_at method ends here. */
582
- /**
583
- * Display a nag to ask rating.
584
  */
585
  public function fta_admin_notice()
586
  {
@@ -598,24 +598,24 @@ class FTA_Admin
598
 
599
  if ( $diff_intrval >= 6 && get_site_option( 'fta_supported' ) != "yes" ) {
600
  $html = sprintf(
601
- '<div class="update-nag fta_msg fta_review">
602
- <p>%s<b>%s</b>%s</p>
603
- <p>%s<b>%s</b>%s</p>
604
- <p>%s</p>
605
- <p>%s</p>
606
- ~Danish Ali Malik (@danish-ali)
607
- <div class="fl_support_btns">
608
- <a href="https://wordpress.org/support/plugin/easy-facebook-likebox/reviews/?filter=5#new-post" class="fta_HideRating button button-primary" target="_blank">
609
- %s
610
- </a>
611
- <a href="javascript:void(0);" class="fta_HideRating button" >
612
- %s
613
- </a>
614
- <br>
615
- <a href="javascript:void(0);" class="fta_HideRating" >
616
- %s
617
- </a>
618
- </div>
619
  </div>',
620
  __( 'Awesome, you have been using ', 'easy-facebook-likebox' ),
621
  __( 'Easy Social Post Feed ', 'easy-facebook-likebox' ),
@@ -629,29 +629,29 @@ class FTA_Admin
629
  __( 'I already rated it', 'easy-facebook-likebox' ),
630
  __( 'No, not good enough, I do not like to rate it', 'easy-facebook-likebox' )
631
  );
632
- $script = ' <script>
633
- jQuery( document ).ready(function( $ ) {
634
-
635
- jQuery(\'.fta_HideRating\').click(function(){
636
- var data={\'action\':\'fta_supported\'}
637
- jQuery.ajax({
638
-
639
- url: "' . admin_url( 'admin-ajax.php' ) . '",
640
- type: "post",
641
- data: data,
642
- dataType: "json",
643
- async: !0,
644
- success: function(e ) {
645
-
646
- if (e=="success") {
647
- jQuery(\'.fta_msg\').slideUp(\'fast\');
648
-
649
- }
650
- }
651
- });
652
- })
653
-
654
- });
655
  </script>';
656
  echo $html . $script ;
657
  }
@@ -660,61 +660,61 @@ class FTA_Admin
660
 
661
  if ( get_site_option( 'fta_upgraded_notice' ) != "yes" ) {
662
  $html = sprintf(
663
- '<div class="update-nag fta_upgraded_msg" style="background-color: #ed6d62;color: #fff;">
664
- <h5 style="color: #fff;">%s</h5>
665
- <p>%s</p>
666
- <ol>
667
- <li>%s</li>
668
- <li>%s</li>
669
- <li>%s <a style=" color: #fff; text-decoration: underline;" href="' . admin_url( 'admin.php?page=easy-facebook-likebox#efbl-cached' ) . '">%s</a></li>
670
- <li>%s</li>
671
- </ol>
672
- <div class="fl_support_btns">
673
- <a href="javascript:void(0);" class="fta_HideUpgradedMsg button button-primary">
674
- %s
675
- </a>
676
- </div>
677
  </div>',
678
  __( "Easy Social Post Feed (previously Easy Facebook Likebox) plugin notice", 'easy-facebook-likebox' ),
679
  __( "If you just updated to 5.0 please don't forget to follow the steps below:", 'easy-facebook-likebox' ),
680
- __( "Deactivate the plugin and activate again", 'easy-facebook-likebox' ),
681
  __( 'Click on the authentication button to authenticate the app again', 'easy-facebook-likebox' ),
682
  __( 'Clear the cache from', 'easy-facebook-likebox' ),
683
- __( 'this page', 'easy-facebook-likebox' ),
684
  __( 'Opionally clear the browser cache.', 'easy-facebook-likebox' ),
685
  __( "Hide this notice", 'easy-facebook-likebox' )
686
  );
687
- $script = ' <script>
688
- jQuery( document ).ready(function( $ ) {
689
-
690
- jQuery(\'.fta_HideUpgradedMsg\').click(function(){
691
- var data={\'action\':\'fta_upgraded_msg_dismiss\'}
692
- jQuery.ajax({
693
-
694
- url: "' . admin_url( 'admin-ajax.php' ) . '",
695
- type: "post",
696
- data: data,
697
- dataType: "json",
698
- async: !0,
699
- success: function(e ) {
700
-
701
- if (e=="success") {
702
- jQuery(\'.fta_upgraded_msg\').slideUp(\'fast\');
703
-
704
- }
705
- }
706
- });
707
- })
708
-
709
- });
710
  </script>';
711
  echo $html . $script ;
712
  }
713
 
714
  }
715
 
716
- /**
717
- * Save the notice closed option.
718
  */
719
  public function fta_supported_func()
720
  {
1
  <?php
2
 
3
+ /*
4
+ * Stop execution if someone tried to get file directly.
5
  */
6
  if ( !defined( 'ABSPATH' ) ) {
7
  exit;
13
  {
14
  /* Intitializing $adminurl .*/
15
  var $adminurl ;
16
+ /*
17
+ * __construct initialize all function of this class.
18
+ * Returns nothing.
19
+ * Used action_hooks to get things sequentially.
20
  */
21
  function __construct()
22
  {
23
+ /*
24
+ * admin_menu hooks fires on wp admin load.
25
+ * Add the menu page in wp admin area.
26
  */
27
  add_action( 'admin_menu', array( $this, 'fta_menu' ) );
28
+ /*
29
+ * admin_enqueue_scripts hooks fires for enqueing custom script and styles.
30
+ * Css file will be include in admin area.
31
  */
32
  add_action( 'admin_enqueue_scripts', array( $this, 'fta_admin_style' ) );
33
+ /*
34
+ * wp_enqueue_scripts hooks fires for enqueing custom script and styles.
35
+ * Css file will be include in frontend area.
36
  */
37
  add_action( 'wp_enqueue_scripts', array( $this, 'fta_frontend_style' ) );
38
+ /*
39
+ * fta_plugin_status hooks fires on Ajax call.
40
+ * fta_plugin_status method will be call when user change status of plugin.
41
  */
42
  add_action( 'wp_ajax_fta_plugin_status', array( $this, 'fta_plugin_status' ) );
43
+ /*
44
+ * fta_remove_at hooks fires on Ajax call.
45
+ * fta_remove_at method will remove the access token and all data.
46
  */
47
  add_action( 'wp_ajax_fta_remove_at', array( $this, 'fta_remove_at' ) );
48
+ /*
49
+ * admin_notices hooks fires for displaying admin notice.
50
+ * fta_admin_notice method will be call.
51
  */
52
  add_action( 'admin_notices', array( $this, 'fta_admin_notice' ) );
53
+ /*
54
+ * efbl_save_access_token hooks fires on Ajax call.
55
+ * efbl_save_access_token method will be call when the access token needs to be updated.
56
  */
57
  add_action( 'wp_ajax_efbl_save_access_token', array( $this, 'efbl_save_access_token_cb' ) );
58
+ /*
59
+ * wp_ajax_mif_supported hooks fires on Ajax call.
60
+ * wp_ajax_mif_supported method will be call on click of supported button in admin notice.
61
  */
62
  add_action( 'wp_ajax_fta_supported', array( $this, 'fta_supported_func' ) );
63
+ /*
64
+ * wp_ajax_mif_supported hooks fires on Ajax call.
65
+ * wp_ajax_mif_supported method will be call on click of supported button in admin notice.
66
  */
67
  add_action( 'wp_ajax_fta_upgraded_msg_dismiss', array( $this, 'fta_upgraded_msg_dismiss' ) );
68
  }
69
 
70
  /* __construct Method ends here. */
71
+ /*
72
+ * fta_frontend_style will enqueue style and js files.
73
  */
74
  public function fta_frontend_style()
75
  {
76
  }
77
 
78
  /* fta_frontend_style Method ends here. */
79
+ /*
80
+ * fta_admin_style will enqueue style and js files.
81
+ * Returns hook name of the current page in admin.
82
+ * $hook will contain the hook name.
83
  */
84
  public function fta_admin_style( $hook )
85
  {
86
  // exit( $hook);
87
+ /*
88
+ * Following files should load only on fta page in backend.
89
  */
90
  if ( 'toplevel_page_feed-them-all' !== $hook && 'easy-facebook-likebox-espf_page_mif' !== $hook && 'easy-facebook-likebox-espf_page_easy-facebook-likebox' !== $hook ) {
91
  return;
92
  }
93
+ /*
94
+ * Base css file for admin area.
95
  */
96
  wp_enqueue_style( 'materialize.min', FTA_PLUGIN_URL . 'assets/css/materialize.min.css' );
97
+ /*
98
+ * Css file for admin area.
99
  */
100
  wp_enqueue_style( 'fta_animations', FTA_PLUGIN_URL . 'assets/css/fta_animations.css' );
101
+ /*
102
+ * Css file for admin area.
103
  */
104
  wp_enqueue_style( 'fta_admin_style', FTA_PLUGIN_URL . 'assets/css/fta_admin_style.css' );
105
+ /*
106
+ * Base script file for admin area.
107
  */
108
  wp_enqueue_script( 'materialize.min', FTA_PLUGIN_URL . 'assets/js/materialize.min.js', array( 'jquery' ) );
109
+ /*
110
+ * For sliding animations.
111
  */
112
  wp_enqueue_script( 'jquery-effects-slide' );
113
+ /*
114
+ * Copy To Clipboard script file for admin area.
115
  */
116
  wp_enqueue_script( 'clipboard' );
117
+ /*
118
+ * Custom scripts file for admin area.
119
  */
120
  wp_enqueue_script( 'fta_admin_jquery', FTA_PLUGIN_URL . 'assets/js/fta-admin.js', array( 'jquery' ) );
121
  // echo "<pre>";
129
  }
130
 
131
  /* fta_admin_style Method ends here. */
132
+ /*
133
+ * fta_menu will add admin page.
134
+ * Returns nothing.
135
  */
136
  public function fta_menu()
137
  {
138
+ /*
139
+ * URL of the plugin icon.
140
  */
141
  $icon_url = FTA_PLUGIN_URL . 'assets/images/plugin_icon.png';
142
+ /*
143
+ * add_menu_page will add menu into the page.
144
+ * string $page_title
145
+ * string $menu_title
146
+ * string $capability
147
+ * string $menu_slug
148
+ * callable $function
149
  */
150
  add_menu_page(
151
  __( 'Easy Facebook Likebox - ESPF', 'easy-facebook-likebox' ),
158
  }
159
 
160
  /* fta_menu Method ends here. */
161
+ /*
162
+ * feed-them-all-content contains the html/markup of the page.
163
+ * Returns nothing.
164
  */
165
  function fta_page()
166
  {
168
  $fta_settings = $fta_class->fta_get_settings();
169
  $current_user = wp_get_current_user();
170
  $returner = null;
171
+ /*
172
+ * Base html.
173
+ * fta_base_html filter can be used to customize base html of setting page.
174
  */
175
  $returner .= sprintf(
176
+ '<div class="fta_wrap z-depth-1">
177
+ <div class="fta_wrap_inner">
178
+ <div class="fta_tabs_holder">
179
+ <div class="fta_tabs_header">
180
+ <div class="fta_sliders_wrap">
181
+ <div id="fta_sliders">
182
+ <span>
183
+ <div class="box"></div>
184
+ </span>
185
+ <span>
186
+ <div class="box"></div>
187
+ </span>
188
+ <span>
189
+ <div class="box"></div>
190
+ </span>
191
+ </div>
192
+
193
+ </div>
194
+ </div>
195
+ <div class="fta_tab_c_holder">
196
+ <div class="row">
197
+ <h5>%1$s ' . $current_user->user_login . '! %2$s</h5>
198
+ <p>%3$s</p>
199
+ %4$s
200
+ </div>
201
+ </div>
202
+ </div>
203
+ </div>
204
+ </div>',
205
  /* Variables starts here. */
206
  __( "Welcome ", $fta_class->fta_slug ),
207
  __( "Whats's your goal?", $fta_class->fta_slug ),
213
  }
214
 
215
  /* fta_page method ends here. */
216
+ /*
217
+ * fta_plugins_listing contains the html/markup of the listings in dashboard.
218
+ * Returns HTML.
219
  */
220
  private function fta_plugins_listing()
221
  {
222
+ /*
223
+ * Getting main class.
224
  */
225
  $FTA = new Feed_Them_All();
226
  // echo "<pre>"; print_r($FTA->fta_get_settings());exit();
227
+ /*
228
+ * Getting All FTA plugins.
229
  */
230
  $fta_all_plugs = $FTA->fta_plugins();
231
+ /*
232
+ * Holds all the HTML.
233
  */
234
  $returner = '<div class="fta_all_plugs col s12">';
235
+ /*
236
+ * IF plugins exists loop thorugh it and make html.
237
  */
238
  if ( isset( $fta_all_plugs ) ) {
239
  foreach ( $fta_all_plugs as $fta_plug ) {
240
  $fta_settings_url = admin_url( 'admin.php?page=' . $fta_plug['slug'] );
241
  // echo "<pre>"; print_r($fta_settings_url);exit();
242
+ /*
243
+ * Getting Image URL.
244
  */
245
  $img_url = FTA_PLUGIN_URL . 'assets/images/' . $fta_plug['img_name'] . '';
246
+ /*
247
+ * Making Slug.
248
  */
249
  $slug = strtolower( $fta_plug['name'] );
250
+ /*
251
+ * Making Button Label.
252
  */
253
 
254
  if ( $fta_plug['status'] == 'activated' ) {
258
  }
259
 
260
  $returner .= sprintf(
261
+ '<div class="card col fta_single_plug s5 fta_plug_%5$s fta_plug_%4$s">
262
+ <div class="card-image waves-effect waves-block waves-light">
263
+ <img class="activator" src="%2$s">
264
+ </div>
265
+ <div class="card-content">
266
+ <span class="card-title activator grey-text text-darken-4">%1$s<i class="material-icons right">more_vert</i></span>
267
+ </div>
268
+ <hr>
269
+ <div class="fta_cta_holder">
270
+ <p>%3$s</p>
271
+ <a class="btn waves-effect fta_plug_activate waves-light" data-status="%4$s" data-plug="%5$s" href="javascript:void(0);">%6$s</a>
272
+ <a class="btn waves-effect right waves-light" href="%8$s">%7$s</a>
273
+ </div>
274
+
275
+ <div class="card-reveal">
276
+ <span class="card-title grey-text text-darken-4">%1$s<i class="material-icons right">close</i></span>
277
+ <p>%3$s</p>
278
+ </div>
279
  </div>',
280
  /* Variables starts here. */
281
  $fta_plug['name'],
293
  }
294
 
295
  /* fta_plugins_listing method ends here. */
296
+ /*
297
+ * fta_plugin_status on ajax.
298
+ * Returns the Success or Error Message.
299
+ * Change Plugin Status
300
  */
301
  function fta_plugin_status()
302
  {
303
+ /*
304
+ * Getting the Plugin Name.
305
  */
306
  $fta_plugin = sanitize_text_field( $_POST['plugin'] );
307
+ /*
308
+ * Getting the Plugin status.
309
  */
310
  $fta_plug_status = sanitize_text_field( $_POST['status'] );
311
+ /*
312
+ * Getting the Plugin main object.
313
  */
314
  $Feed_Them_All = new Feed_Them_All();
315
+ /*
316
+ * Getting the FTA Plugin settings.
317
  */
318
  $fta_settings = $Feed_Them_All::fta_get_settings();
319
+ /*
320
+ * Chaning status accroding to selected option of specific plugin.
321
  */
322
  $fta_settings['plugins'][$fta_plugin]['status'] = $fta_plug_status;
323
  if ( wp_verify_nonce( $_POST['fta_nonce'], 'fta-ajax-nonce' ) ) {
324
  if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
325
+ /*
326
+ * Updating the settings back into DB
327
  */
328
  $status_updated = update_option( 'fta_settings', $fta_settings );
329
  }
335
  $status = __( ' Deactivated', $Feed_Them_All->fta_slug );
336
  }
337
 
338
+ /*
339
+ * If status is successfully changed
340
  */
341
 
342
  if ( isset( $status_updated ) ) {
343
+ /*
344
+ * Sending back the success message
345
  */
346
  echo wp_send_json_success( __( ucfirst( $fta_plugin ) . $status . ' Successfully', $Feed_Them_All->fta_slug ) ) ;
347
  die;
348
  } else {
349
+ /*
350
+ * Sending back the error message
351
  */
352
  echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', $Feed_Them_All->fta_slug ) ) ;
353
  die;
357
  }
358
 
359
  /* fta_plugin_status method ends here. */
360
+ /*
361
+ * Get the access token and save back into DB
362
  */
363
  public function efbl_save_access_token_cb()
364
  {
365
+ /*
366
+ * Getting the access token.
367
  */
368
  $access_token = $_POST['access_token'];
369
+ /*
370
+ * Getting the access token.
371
  */
372
  $id = $_POST['id'];
373
+ /*
374
+ * All accounts API endpoint
375
  */
376
  $fta_api_url = 'https://graph.facebook.com/me/accounts?fields=access_token,username,id,name,fan_count,category,about&access_token=' . $access_token;
377
+ /*
378
+ * Getting all accounts
379
  */
380
  $fta_pages = wp_remote_get( $fta_api_url );
381
+ /*
382
+ * Descoding the array
383
  */
384
  $fb_pages = json_decode( $fta_pages['body'] );
385
  // echo wp_send_json_success($fb_pages);
386
  // die();
387
+ /*
388
+ * Init array
389
  */
390
  $approved_pages = array();
391
+ /*
392
+ * If pages exists loop over and save by ID key.
393
  */
394
 
395
  if ( $fb_pages->data ) {
400
  $title = __( 'Connected Instagram Accounts', 'easy-facebook-likebox' );
401
  }
402
 
403
+ $efbl_all_pages_html = '<ul class="collection with-header"> <li class="collection-header"><h5>' . $title . '</h5>
404
  <a href="#fta-remove-at" class="modal-trigger fta-remove-at-btn tooltipped" data-position="left" data-delay="50" data-tooltip="' . __( 'Delete Access Token', 'easy-facebook-likebox' ) . '"><i class="material-icons">delete_forever</i></a></li>';
405
  foreach ( $fb_pages->data as $efbl_page ) {
406
  $fta_insta_api_url = 'https://graph.facebook.com/v4.0/' . $efbl_page->id . '/?fields=connected_instagram_account,instagram_accounts{username,profile_pic}&access_token=' . $efbl_page->access_token;
407
+ /*
408
+ * Getting all accounts
409
  */
410
  $fta_insta_accounts = wp_remote_get( $fta_insta_api_url );
411
+ /*
412
+ * Descoding the array
413
  */
414
  $fta_insta_accounts = json_decode( $fta_insta_accounts['body'] );
415
  $fta_insta_connected_api_url = 'https://graph.facebook.com/v4.0/' . $fta_insta_accounts->connected_instagram_account->id . '/?fields=name,profile_picture_url,ig_id,username&access_token=' . $efbl_page->access_token;
416
+ /*
417
+ * Getting all accounts
418
  */
419
  $fta_insta_connected_account = wp_remote_get( $fta_insta_connected_api_url );
420
+ /*
421
+ * Descoding the array
422
  */
423
  $fta_insta_connected_account = json_decode( $fta_insta_connected_account['body'] );
424
 
433
  }
434
 
435
  $efbl_all_pages_html .= sprintf(
436
+ '<li class="collection-item avatar li-' . $efbl_page->id . '">
437
+ <a href="https://web.facebook.com/' . $efbl_page->id . '" target="_blank">
438
+ <img src="%2$s" alt="" class="circle">
439
+ </a>
440
+ <span class="title">%1$s</span>
441
+ <p>%3$s <br> %5$s %4$s <i class="material-icons efbl_copy_id tooltipped" data-position="right" data-clipboard-text="%4$s" data-delay="100" data-tooltip="%6$s">content_copy</i></p>
442
  </li>',
443
  $efbl_page->name,
444
  'https://graph.facebook.com/' . $efbl_page->id . '/picture',
452
  if ( 'insta' == $id ) {
453
  if ( $fta_insta_connected_account->ig_id ) {
454
  $efbl_all_pages_html .= sprintf(
455
+ '<li class="collection-item avatar fta_insta_connected_account li-' . $fta_insta_connected_account->ig_id . '">
456
+
457
+ <a href="https://www.instagram.com/' . $fta_insta_connected_account->username . '" target="_blank">
458
+ <img src="%2$s" alt="" class="circle">
459
+ </a>
460
+ <span class="title">%1$s</span>
461
+ <p>%5$s <br> %6$s %3$s <i class="material-icons efbl_copy_id tooltipped" data-position="right" data-clipboard-text="%3$s" data-delay="100" data-tooltip="%7$s">content_copy</i></p>
462
  </li>',
463
  $fta_insta_connected_account->name,
464
  $fta_insta_connected_account->profile_picture_url,
471
  }
472
  }
473
  $efbl_page = (array) $efbl_page;
474
+ /*
475
+ * Making it by ID
476
  */
477
  $approved_pages[$efbl_page['id']] = $efbl_page;
478
  $approved_pages[$efbl_page['id']]['instagram_accounts'] = $fta_insta_accounts;
481
  $efbl_all_pages_html .= '</ul>';
482
  }
483
 
484
+ /*
485
+ * All accounts API endpoint
486
  */
487
  $fta_self_url = 'https://graph.facebook.com/me?fields=id,name&access_token=' . $access_token;
488
+ /*
489
+ * Getting all accounts
490
  */
491
  $fta_self_data = wp_remote_get( $fta_self_url );
492
+ /*
493
+ * Descoding the array
494
  */
495
  $fta_self_data = json_decode( $fta_self_data['body'] );
496
  $fta_self_data = (array) $fta_self_data;
497
+ /*
498
+ * Getting Main Class
499
  */
500
  $FTA = new Feed_Them_All();
501
+ /*
502
+ * Getting All Settings
503
  */
504
  $fta_settings = $FTA->fta_get_settings();
505
  $fta_settings['plugins']['facebook']['approved_pages'] = $approved_pages;
506
  $fta_settings['plugins']['facebook']['access_token'] = $access_token;
507
  $fta_settings['plugins']['facebook']['author'] = $fta_self_data;
508
+ /*
509
+ * Saving values in wp options table.
510
  */
511
  $efbl_saved = update_option( 'fta_settings', $fta_settings );
512
+ /*
513
+ * Checking if option is saved successfully.
514
  */
515
 
516
  if ( isset( $efbl_saved ) ) {
517
+ /*
518
+ * Return success message and die.
519
  */
520
  echo wp_send_json_success( array( __( 'Successfully Authenticated! Taking you to next step', 'easy-facebook-likebox' ), $efbl_all_pages_html ) ) ;
521
  die;
522
  } else {
523
+ /*
524
+ * Return error message and die.
525
  */
526
  echo wp_send_json_error( __( 'Something went wrong! Refresh the page and try Again', 'easy-facebook-likebox' ) ) ;
527
  die;
530
  }
531
 
532
  /* efbl_save_access_token_cb Method ends here. */
533
+ /*
534
+ * fta_remove_at on ajax.
535
+ * Returns the Success or Error Message.
536
+ * Remove access token and data
537
  */
538
  function fta_remove_at()
539
  {
540
+ /*
541
+ * Getting the Plugin main object.
542
  */
543
  $Feed_Them_All = new Feed_Them_All();
544
+ /*
545
+ * Getting the FTA Plugin settings.
546
  */
547
  $fta_settings = $Feed_Them_All::fta_get_settings();
548
  if ( wp_verify_nonce( $_POST['fta_nonce'], 'fta-ajax-nonce' ) ) {
550
  if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
551
  unset( $fta_settings['plugins']['facebook']['approved_pages'] );
552
  unset( $fta_settings['plugins']['facebook']['access_token'] );
553
+ /*
554
+ * Updating the settings back into DB
555
  */
556
  $delted_data = update_option( 'fta_settings', $fta_settings );
557
  }
558
 
559
  }
560
+ /*
561
+ * If status is successfully changed
562
  */
563
 
564
  if ( isset( $delted_data ) ) {
565
+ /*
566
+ * Sending back the success message
567
  */
568
  echo wp_send_json_success( __( 'Deleted', $Feed_Them_All->fta_slug ) ) ;
569
  die;
570
  } else {
571
+ /*
572
+ * Sending back the error message
573
  */
574
  echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', $Feed_Them_All->fta_slug ) ) ;
575
  die;
579
  }
580
 
581
  /* fta_remove_at method ends here. */
582
+ /**
583
+ * Display a nag to ask rating.
584
  */
585
  public function fta_admin_notice()
586
  {
598
 
599
  if ( $diff_intrval >= 6 && get_site_option( 'fta_supported' ) != "yes" ) {
600
  $html = sprintf(
601
+ '<div class="update-nag fta_msg fta_review">
602
+ <p>%s<b>%s</b>%s</p>
603
+ <p>%s<b>%s</b>%s</p>
604
+ <p>%s</p>
605
+ <p>%s</p>
606
+ ~Danish Ali Malik (@danish-ali)
607
+ <div class="fl_support_btns">
608
+ <a href="https://wordpress.org/support/plugin/easy-facebook-likebox/reviews/?filter=5#new-post" class="fta_HideRating button button-primary" target="_blank">
609
+ %s
610
+ </a>
611
+ <a href="javascript:void(0);" class="fta_HideRating button" >
612
+ %s
613
+ </a>
614
+ <br>
615
+ <a href="javascript:void(0);" class="fta_HideRating" >
616
+ %s
617
+ </a>
618
+ </div>
619
  </div>',
620
  __( 'Awesome, you have been using ', 'easy-facebook-likebox' ),
621
  __( 'Easy Social Post Feed ', 'easy-facebook-likebox' ),
629
  __( 'I already rated it', 'easy-facebook-likebox' ),
630
  __( 'No, not good enough, I do not like to rate it', 'easy-facebook-likebox' )
631
  );
632
+ $script = ' <script>
633
+ jQuery( document ).ready(function( $ ) {
634
+
635
+ jQuery(\'.fta_HideRating\').click(function(){
636
+ var data={\'action\':\'fta_supported\'}
637
+ jQuery.ajax({
638
+
639
+ url: "' . admin_url( 'admin-ajax.php' ) . '",
640
+ type: "post",
641
+ data: data,
642
+ dataType: "json",
643
+ async: !0,
644
+ success: function(e ) {
645
+
646
+ if (e=="success") {
647
+ jQuery(\'.fta_msg\').slideUp(\'fast\');
648
+
649
+ }
650
+ }
651
+ });
652
+ })
653
+
654
+ });
655
  </script>';
656
  echo $html . $script ;
657
  }
660
 
661
  if ( get_site_option( 'fta_upgraded_notice' ) != "yes" ) {
662
  $html = sprintf(
663
+ '<div class="update-nag fta_upgraded_msg" style="background-color: #ed6d62;color: #fff;">
664
+ <h5 style="color: #fff;">%s</h5>
665
+ <p>%s</p>
666
+ <ol>
667
+ <li>%s</li>
668
+ <li>%s</li>
669
+ <li>%s <a style=" color: #fff; text-decoration: underline;" href="' . admin_url( 'admin.php?page=easy-facebook-likebox#efbl-cached' ) . '">%s</a></li>
670
+ <li>%s</li>
671
+ </ol>
672
+ <div class="fl_support_btns">
673
+ <a href="javascript:void(0);" class="fta_HideUpgradedMsg button button-primary">
674
+ %s
675
+ </a>
676
+ </div>
677
  </div>',
678
  __( "Easy Social Post Feed (previously Easy Facebook Likebox) plugin notice", 'easy-facebook-likebox' ),
679
  __( "If you just updated to 5.0 please don't forget to follow the steps below:", 'easy-facebook-likebox' ),
680
+ __( "Deactivate the plugin and activate again", 'easy-facebook-likebox' ),
681
  __( 'Click on the authentication button to authenticate the app again', 'easy-facebook-likebox' ),
682
  __( 'Clear the cache from', 'easy-facebook-likebox' ),
683
+ __( 'cache page', 'easy-facebook-likebox' ),
684
  __( 'Opionally clear the browser cache.', 'easy-facebook-likebox' ),
685
  __( "Hide this notice", 'easy-facebook-likebox' )
686
  );
687
+ $script = ' <script>
688
+ jQuery( document ).ready(function( $ ) {
689
+
690
+ jQuery(\'.fta_HideUpgradedMsg\').click(function(){
691
+ var data={\'action\':\'fta_upgraded_msg_dismiss\'}
692
+ jQuery.ajax({
693
+
694
+ url: "' . admin_url( 'admin-ajax.php' ) . '",
695
+ type: "post",
696
+ data: data,
697
+ dataType: "json",
698
+ async: !0,
699
+ success: function(e ) {
700
+
701
+ if (e=="success") {
702
+ jQuery(\'.fta_upgraded_msg\').slideUp(\'fast\');
703
+
704
+ }
705
+ }
706
+ });
707
+ })
708
+
709
+ });
710
  </script>';
711
  echo $html . $script ;
712
  }
713
 
714
  }
715
 
716
+ /**
717
+ * Save the notice closed option.
718
  */
719
  public function fta_supported_func()
720
  {
easy-facebook-likebox.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Easy Social Post Feed
5
  * Plugin URI: httt://wordpress.org/plugins/easy-facebook-likebox
6
  * Description: Formerly "Easy Facebook Like Box and Custom Facebook Feed" plugin allows you to easily display custom facebook feed, custom Instagram photos and videos feed, page plugin (like box) on your website using either widget or shortcode to increase facbook fan page likes. You can use the shortcode generator. Additionally it also now allows you to dipslay the customized facebook feed on your website using the same color scheme of your website. Its completely customizable with lots of optional settings. Its also responsive facebook like box at the same time.
7
- * Version: 5.0
8
  * Author: Danish Ali Malik
9
  * Author URI: https://maltathemes.com/danish-ali-malik
10
  * Text Domain: easy-facebook-likebox,
@@ -84,7 +84,7 @@ if ( function_exists( 'efl_fs' ) ) {
84
  /*
85
  * $version defines the version of the plugin.
86
  */
87
- public $version = '5.0' ;
88
  public $fta_slug = 'easy-facebook-likebox' ;
89
  public $plug_slug = 'easy-facebook-likebox' ;
90
  /*
4
  * Plugin Name: Easy Social Post Feed
5
  * Plugin URI: httt://wordpress.org/plugins/easy-facebook-likebox
6
  * Description: Formerly "Easy Facebook Like Box and Custom Facebook Feed" plugin allows you to easily display custom facebook feed, custom Instagram photos and videos feed, page plugin (like box) on your website using either widget or shortcode to increase facbook fan page likes. You can use the shortcode generator. Additionally it also now allows you to dipslay the customized facebook feed on your website using the same color scheme of your website. Its completely customizable with lots of optional settings. Its also responsive facebook like box at the same time.
7
+ * Version: 5.1.1
8
  * Author: Danish Ali Malik
9
  * Author URI: https://maltathemes.com/danish-ali-malik
10
  * Text Domain: easy-facebook-likebox,
84
  /*
85
  * $version defines the version of the plugin.
86
  */
87
+ public $version = '5.1.1' ;
88
  public $fta_slug = 'easy-facebook-likebox' ;
89
  public $plug_slug = 'easy-facebook-likebox' ;
90
  /*
easy-facebook-likebox/public/easy-facebook-likebox.php CHANGED
@@ -33,7 +33,7 @@ class Easy_Facebook_Likebox
33
  *
34
  * @var string
35
  */
36
- const VERSION = '5.0' ;
37
  /**
38
  * @TODO - Rename "plugin-name" to the name your your plugin
39
  *
33
  *
34
  * @var string
35
  */
36
+ const VERSION = '5.1.1' ;
37
  /**
38
  * @TODO - Rename "plugin-name" to the name your your plugin
39
  *
easy-facebook-likebox/public/views/templates/template-fullwidth.php CHANGED
@@ -10,24 +10,26 @@ $efbl_ver = 'free';
10
  if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
11
  $efbl_ver = 'pro';
12
  }
13
- $returner .= '<div id="efblcf" class="efbl_fb_story efbl_ver_' . $efbl_ver . ' ' . $layout . ' ' . $feed_type . ' ' . $pic_class . ' efbl_' . $filter . '">';
14
  $efbl_free_popup_type = 'data-imagelink="' . $feed_img . '"';
15
  $efbl_free_popup_class = null;
16
 
17
- if('added_video' == $feed_type && !empty($video_source)):
18
- $efbl_free_popup_type = 'data-video="' . $video_source . '"';
19
- $efbl_free_popup_class = 'efbl_popup_video';
20
- endif;
 
 
 
21
  if ( 'efbl_has_image' == $pic_class ) {
22
  $returner .= '<div class="efbl_story_photo">';
23
- $returner .= '<a href="' . admin_url( 'admin-ajax.php' ) . '?action=efbl_generate_popup_html&rand_id=' . $rand_id . '" '.$efbl_free_popup_type.' data-storylink="' . $story_link . '" data-linktext="' . __( 'Read full story', 'easy-facebook-likebox' ) . '" data-caption="' . htmlentities( $post_text ) . '" data-itemnumber="' . $pi . '" class="efbl_feed_popup '.$efbl_free_popup_class.' efbl-cff-item_number-' . $pi . '"><span class="efbl_hover"><i class="fa fa-plus" aria-hidden="true"></i></span></a>';
24
  if ( $efbl_ver !== 'pro' ) {
25
 
26
  if ( 'added_video' == $feed_type && !empty($video_source) ) {
27
  // echo "<pre>"; print_r($video_source);exit();
28
  $returner .= '<video src="' . $video_source . '" controls>
29
- Your browser does not support HTML5 video.
30
- </video>';
31
  } else {
32
  $returner .= '<img alt="' . $story_from_name . '" src="' . $feed_img . '" />';
33
  }
@@ -47,14 +49,14 @@ if ( $show_logo == 1 ) {
47
  $returner .= '<div class="efbl_auth_logo">' . $author_image . '</div>';
48
  }
49
  $returner .= '<div class="efbl_name_date">
50
-
51
- <p class="efbl_author_name"> <a href="https://facebook.com/' . $page_id . '" target="' . $link_target . '">' . $story_from_name . '</a></p>
52
-
53
- <p class="efbl_story_time">' . $time . '</p>
54
-
55
- </div>
56
-
57
- </div>';
58
  //plan end
59
  if ( $post_text && $efbl_skins[$skin_id]['design']['show_feed_caption'] ) {
60
  //Story content
@@ -94,21 +96,21 @@ if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) || !empty($efbl_sk
94
  $returner .= '<div class="efbl_info">';
95
  if ( $efbl_likes_count > 0 ) {
96
  $returner .= '<span class="efbl_likes">
97
- <span class="efbl_like_text"><i class="fa fa-thumbs-o-up"></i></span>
98
- <span class="efbl_likes_counter"> ' . $efbl_likes_count . ' </span>
99
- </span>';
100
  }
101
  if ( $efbl_comments_count > 0 ) {
102
  $returner .= '<span class="efbl_comments">
103
- <span class="efbl_comments_text"><i class="fa fa-comment-o"></i></span>
104
- <span class="efbl_comments_counter"> ' . $efbl_comments_count . ' </span>
105
- </span>';
106
  }
107
  if ( $story->shares->count > 0 ) {
108
  $returner .= '<span class="efbl_shares">
109
- <span class="efbl_shares_text"><i class="fa fa-share"></i></span>
110
- <span class="efbl_shares_counter"> ' . $story->shares->count . ' </span>
111
- </span>';
112
  }
113
  $returner .= '</div>';
114
  }
@@ -120,22 +122,22 @@ if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) || !empty($efbl_sk
120
  }
121
 
122
  $returner .= '<!--Readmore div started-->
123
- <div class="efbl_read_more_link">
124
- <a href="' . $story_link . '" target="' . $link_target . '" class="efbl_read_full_story">' . $read_more_text . '</a>
125
-
126
- <a href="javascript:void(0)" class="efbl_share_links">' . $share_this_text . '</a>
127
-
128
- <span class="efbl_links_container">
129
- <a class="efbl_facebook" href="https://www.facebook.com/sharer/sharer.php?u=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-facebook"></i></a>
130
-
131
- <a class="efbl_twitter" href="https://twitter.com/intent/tweet?text=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-twitter"></i></a>
132
-
133
- <a class="efbl_linked_in" href="https://www.linkedin.com/shareArticle?mini=true&url=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-linkedin"></i></a>
134
-
135
- </span>
136
-
137
- </div>
138
- <!--Readmore div end-->';
139
 
140
  if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) ) {
141
  if ( $efbl_comments_count > 0 ) {
@@ -165,13 +167,13 @@ if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) ) {
165
  $returner .= '<div class="efbl_comments">';
166
  $returner .= '<div class="efbl_commenter_image">';
167
  $returner .= '<a href="https://facebook.com/' . $comment->id . '" target="' . $link_target . '" rel="nofollow" title="' . $story->name . '">
168
- <img alt="' . $story->name . '" src="' . EFBL_PLUGIN_URL . '/assets/fb-avatar.png" width=32 height=32>
169
- </a>';
170
  $returner .= '</div>';
171
  $returner .= '<div class="efbl_comment_text">';
172
  $returner .= '<a title="' . $story->name . '" class="efbl_comenter_name" href="https://facebook.com/' . $comment->from->id . '" target="' . $link_target . '" rel="nofollow">
173
- ' . $comment->from->name . '
174
- </a>';
175
  $returner .= '<p class="efbl_comment_message">' . $comment_message . '</p>';
176
  $returner .= '<p class="efbl_comment_time_n_likes">';
177
  if ( $comment_likes ) {
@@ -185,11 +187,11 @@ if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) ) {
185
  }
186
  $comment_more_text = __( apply_filters( 'efbl_comment_on_text', 'comment on facebook' ), 'easy-facebook-likebox' );
187
  $returner .= '<div class="efbl_comments_footer">
188
- <a href="' . $story_link . '" target="' . $link_target . '" rel="nofollow"><i class="fa fa-comment-o"></i> ' . $comment_more_text . ' </a>
189
- </div>';
190
  }
191
 
192
- if ( count( $story->comments->data ) > 0 || count( $story->likes->data ) > 0 ) {
193
  //Comments area ends here
194
  $returner .= '</div>';
195
  }
10
  if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
11
  $efbl_ver = 'pro';
12
  }
 
13
  $efbl_free_popup_type = 'data-imagelink="' . $feed_img . '"';
14
  $efbl_free_popup_class = null;
15
 
16
+ if ( 'added_video' == $feed_type && !empty($video_source) ) {
17
+ $efbl_free_popup_type = 'data-video="' . $video_source . '"';
18
+ $efbl_free_popup_class = 'efbl_popup_video';
19
+ }
20
+
21
+ $returner .= '<div id="efblcf" class="efbl_fb_story efbl_ver_' . $efbl_ver . ' ' . $layout . ' ' . $feed_type . ' ' . $pic_class . ' efbl_' . $filter . '">';
22
+
23
  if ( 'efbl_has_image' == $pic_class ) {
24
  $returner .= '<div class="efbl_story_photo">';
25
+ $returner .= '<a href="' . admin_url( 'admin-ajax.php' ) . '?action=efbl_generate_popup_html&rand_id=' . $rand_id . '" ' . $efbl_free_popup_type . ' data-storylink="' . $story_link . '" data-linktext="' . __( 'Read full story', 'easy-facebook-likebox' ) . '" data-caption="' . htmlentities( $post_text ) . '" data-itemnumber="' . $pi . '" class="efbl_feed_popup ' . $efbl_free_popup_class . ' efbl-cff-item_number-' . $pi . '"><span class="efbl_hover"><i class="fa fa-plus" aria-hidden="true"></i></span></a>';
26
  if ( $efbl_ver !== 'pro' ) {
27
 
28
  if ( 'added_video' == $feed_type && !empty($video_source) ) {
29
  // echo "<pre>"; print_r($video_source);exit();
30
  $returner .= '<video src="' . $video_source . '" controls>
31
+ Your browser does not support HTML5 video.
32
+ </video>';
33
  } else {
34
  $returner .= '<img alt="' . $story_from_name . '" src="' . $feed_img . '" />';
35
  }
49
  $returner .= '<div class="efbl_auth_logo">' . $author_image . '</div>';
50
  }
51
  $returner .= '<div class="efbl_name_date">
52
+
53
+ <p class="efbl_author_name"> <a href="https://facebook.com/' . $page_id . '" target="' . $link_target . '">' . $story_from_name . '</a></p>
54
+
55
+ <p class="efbl_story_time">' . $time . '</p>
56
+
57
+ </div>
58
+
59
+ </div>';
60
  //plan end
61
  if ( $post_text && $efbl_skins[$skin_id]['design']['show_feed_caption'] ) {
62
  //Story content
96
  $returner .= '<div class="efbl_info">';
97
  if ( $efbl_likes_count > 0 ) {
98
  $returner .= '<span class="efbl_likes">
99
+ <span class="efbl_like_text"><i class="fa fa-thumbs-o-up"></i></span>
100
+ <span class="efbl_likes_counter"> ' . $efbl_likes_count . ' </span>
101
+ </span>';
102
  }
103
  if ( $efbl_comments_count > 0 ) {
104
  $returner .= '<span class="efbl_comments">
105
+ <span class="efbl_comments_text"><i class="fa fa-comment-o"></i></span>
106
+ <span class="efbl_comments_counter"> ' . $efbl_comments_count . ' </span>
107
+ </span>';
108
  }
109
  if ( $story->shares->count > 0 ) {
110
  $returner .= '<span class="efbl_shares">
111
+ <span class="efbl_shares_text"><i class="fa fa-share"></i></span>
112
+ <span class="efbl_shares_counter"> ' . $story->shares->count . ' </span>
113
+ </span>';
114
  }
115
  $returner .= '</div>';
116
  }
122
  }
123
 
124
  $returner .= '<!--Readmore div started-->
125
+ <div class="efbl_read_more_link">
126
+ <a href="' . $story_link . '" target="' . $link_target . '" class="efbl_read_full_story">' . $read_more_text . '</a>
127
+
128
+ <a href="javascript:void(0)" class="efbl_share_links">' . $share_this_text . '</a>
129
+
130
+ <span class="efbl_links_container">
131
+ <a class="efbl_facebook" href="https://www.facebook.com/sharer/sharer.php?u=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-facebook"></i></a>
132
+
133
+ <a class="efbl_twitter" href="https://twitter.com/intent/tweet?text=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-twitter"></i></a>
134
+
135
+ <a class="efbl_linked_in" href="https://www.linkedin.com/shareArticle?mini=true&url=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-linkedin"></i></a>
136
+
137
+ </span>
138
+
139
+ </div>
140
+ <!--Readmore div end-->';
141
 
142
  if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) ) {
143
  if ( $efbl_comments_count > 0 ) {
167
  $returner .= '<div class="efbl_comments">';
168
  $returner .= '<div class="efbl_commenter_image">';
169
  $returner .= '<a href="https://facebook.com/' . $comment->id . '" target="' . $link_target . '" rel="nofollow" title="' . $story->name . '">
170
+ <img alt="' . $story->name . '" src="' . EFBL_PLUGIN_URL . '/assets/fb-avatar.png" width=32 height=32>
171
+ </a>';
172
  $returner .= '</div>';
173
  $returner .= '<div class="efbl_comment_text">';
174
  $returner .= '<a title="' . $story->name . '" class="efbl_comenter_name" href="https://facebook.com/' . $comment->from->id . '" target="' . $link_target . '" rel="nofollow">
175
+ ' . $comment->from->name . '
176
+ </a>';
177
  $returner .= '<p class="efbl_comment_message">' . $comment_message . '</p>';
178
  $returner .= '<p class="efbl_comment_time_n_likes">';
179
  if ( $comment_likes ) {
187
  }
188
  $comment_more_text = __( apply_filters( 'efbl_comment_on_text', 'comment on facebook' ), 'easy-facebook-likebox' );
189
  $returner .= '<div class="efbl_comments_footer">
190
+ <a href="' . $story_link . '" target="' . $link_target . '" rel="nofollow"><i class="fa fa-comment-o"></i> ' . $comment_more_text . ' </a>
191
+ </div>';
192
  }
193
 
194
+ if ( $efbl_comments_count > 0 ) {
195
  //Comments area ends here
196
  $returner .= '</div>';
197
  }
easy-facebook-likebox/public/views/templates/template-halfwidth.php CHANGED
@@ -10,24 +10,26 @@ $efbl_ver = 'free';
10
  if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
11
  $efbl_ver = 'pro';
12
  }
13
- $returner .= '<div id="efblcf" class="efbl_fb_story efbl_ver_' . $efbl_ver . ' ' . $layout . ' ' . $feed_type . ' ' . $pic_class . ' efbl_' . $filter . '">';
14
  $efbl_free_popup_type = 'data-imagelink="' . $feed_img . '"';
15
  $efbl_free_popup_class = null;
16
 
17
- if('added_video' == $feed_type && !empty($video_source)):
18
- $efbl_free_popup_type = 'data-video="' . $video_source . '"';
19
- $efbl_free_popup_class = 'efbl_popup_video';
20
- endif;
 
 
 
21
  if ( 'efbl_has_image' == $pic_class ) {
22
  $returner .= '<div class="efbl_story_photo">';
23
- $returner .= '<a href="' . admin_url( 'admin-ajax.php' ) . '?action=efbl_generate_popup_html&rand_id=' . $rand_id . '" '.$efbl_free_popup_type.' data-storylink="' . $story_link . '" data-linktext="' . __( 'Read full story', 'easy-facebook-likebox' ) . '" data-caption="' . htmlentities( $post_text ) . '" data-itemnumber="' . $pi . '" class="efbl_feed_popup '.$efbl_free_popup_class.' efbl-cff-item_number-' . $pi . '"><span class="efbl_hover"><i class="fa fa-plus" aria-hidden="true"></i></span></a>';
24
  if ( $efbl_ver !== 'pro' ) {
25
 
26
  if ( 'added_video' == $feed_type && !empty($video_source) ) {
27
  // echo "<pre>"; print_r($video_source);exit();
28
  $returner .= '<video src="' . $video_source . '" controls>
29
- Your browser does not support HTML5 video.
30
- </video>';
31
  } else {
32
  $returner .= '<img alt="' . $story_from_name . '" src="' . $feed_img . '" />';
33
  }
@@ -47,14 +49,14 @@ if ( $show_logo == 1 ) {
47
  $returner .= '<div class="efbl_auth_logo">' . $author_image . '</div>';
48
  }
49
  $returner .= '<div class="efbl_name_date">
50
-
51
- <p class="efbl_author_name"> <a href="https://facebook.com/' . $page_id . '" target="' . $link_target . '">' . $story_from_name . '</a></p>
52
-
53
- <p class="efbl_story_time">' . $time . '</p>
54
-
55
- </div>
56
-
57
- </div>';
58
  //plan end
59
  if ( $post_text && $efbl_skins[$skin_id]['design']['show_feed_caption'] ) {
60
  //Story content
@@ -94,21 +96,21 @@ if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) || !empty($efbl_sk
94
  $returner .= '<div class="efbl_info">';
95
  if ( $efbl_likes_count > 0 ) {
96
  $returner .= '<span class="efbl_likes">
97
- <span class="efbl_like_text"><i class="fa fa-thumbs-o-up"></i></span>
98
- <span class="efbl_likes_counter"> ' . $efbl_likes_count . ' </span>
99
- </span>';
100
  }
101
  if ( $efbl_comments_count > 0 ) {
102
  $returner .= '<span class="efbl_comments">
103
- <span class="efbl_comments_text"><i class="fa fa-comment-o"></i></span>
104
- <span class="efbl_comments_counter"> ' . $efbl_comments_count . ' </span>
105
- </span>';
106
  }
107
  if ( $story->shares->count > 0 ) {
108
  $returner .= '<span class="efbl_shares">
109
- <span class="efbl_shares_text"><i class="fa fa-share"></i></span>
110
- <span class="efbl_shares_counter"> ' . $story->shares->count . ' </span>
111
- </span>';
112
  }
113
  $returner .= '</div>';
114
  }
@@ -120,22 +122,22 @@ if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) || !empty($efbl_sk
120
  }
121
 
122
  $returner .= '<!--Readmore div started-->
123
- <div class="efbl_read_more_link">
124
- <a href="' . $story_link . '" target="' . $link_target . '" class="efbl_read_full_story">' . $read_more_text . '</a>
125
-
126
- <a href="javascript:void(0)" class="efbl_share_links">' . $share_this_text . '</a>
127
-
128
- <span class="efbl_links_container">
129
- <a class="efbl_facebook" href="https://www.facebook.com/sharer/sharer.php?u=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-facebook"></i></a>
130
-
131
- <a class="efbl_twitter" href="https://twitter.com/intent/tweet?text=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-twitter"></i></a>
132
-
133
- <a class="efbl_linked_in" href="https://www.linkedin.com/shareArticle?mini=true&url=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-linkedin"></i></a>
134
-
135
- </span>
136
-
137
- </div>
138
- <!--Readmore div end-->';
139
 
140
  if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) ) {
141
  if ( $efbl_comments_count > 0 ) {
@@ -165,13 +167,13 @@ if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) ) {
165
  $returner .= '<div class="efbl_comments">';
166
  $returner .= '<div class="efbl_commenter_image">';
167
  $returner .= '<a href="https://facebook.com/' . $comment->id . '" target="' . $link_target . '" rel="nofollow" title="' . $story->name . '">
168
- <img alt="' . $story->name . '" src="' . EFBL_PLUGIN_URL . '/assets/fb-avatar.png" width=32 height=32>
169
- </a>';
170
  $returner .= '</div>';
171
  $returner .= '<div class="efbl_comment_text">';
172
  $returner .= '<a title="' . $story->name . '" class="efbl_comenter_name" href="https://facebook.com/' . $comment->from->id . '" target="' . $link_target . '" rel="nofollow">
173
- ' . $comment->from->name . '
174
- </a>';
175
  $returner .= '<p class="efbl_comment_message">' . $comment_message . '</p>';
176
  $returner .= '<p class="efbl_comment_time_n_likes">';
177
  if ( $comment_likes ) {
@@ -185,11 +187,11 @@ if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) ) {
185
  }
186
  $comment_more_text = __( apply_filters( 'efbl_comment_on_text', 'comment on facebook' ), 'easy-facebook-likebox' );
187
  $returner .= '<div class="efbl_comments_footer">
188
- <a href="' . $story_link . '" target="' . $link_target . '" rel="nofollow"><i class="fa fa-comment-o"></i> ' . $comment_more_text . ' </a>
189
- </div>';
190
  }
191
 
192
- if ( count( $story->comments->data ) > 0 || count( $story->likes->data ) > 0 ) {
193
  //Comments area ends here
194
  $returner .= '</div>';
195
  }
10
  if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
11
  $efbl_ver = 'pro';
12
  }
 
13
  $efbl_free_popup_type = 'data-imagelink="' . $feed_img . '"';
14
  $efbl_free_popup_class = null;
15
 
16
+ if ( 'added_video' == $feed_type && !empty($video_source) ) {
17
+ $efbl_free_popup_type = 'data-video="' . $video_source . '"';
18
+ $efbl_free_popup_class = 'efbl_popup_video';
19
+ }
20
+
21
+ $returner .= '<div id="efblcf" class="efbl_fb_story efbl_ver_' . $efbl_ver . ' ' . $layout . ' ' . $feed_type . ' ' . $pic_class . ' efbl_' . $filter . '">';
22
+
23
  if ( 'efbl_has_image' == $pic_class ) {
24
  $returner .= '<div class="efbl_story_photo">';
25
+ $returner .= '<a href="' . admin_url( 'admin-ajax.php' ) . '?action=efbl_generate_popup_html&rand_id=' . $rand_id . '" ' . $efbl_free_popup_type . ' data-storylink="' . $story_link . '" data-linktext="' . __( 'Read full story', 'easy-facebook-likebox' ) . '" data-caption="' . htmlentities( $post_text ) . '" data-itemnumber="' . $pi . '" class="efbl_feed_popup ' . $efbl_free_popup_class . ' efbl-cff-item_number-' . $pi . '"><span class="efbl_hover"><i class="fa fa-plus" aria-hidden="true"></i></span></a>';
26
  if ( $efbl_ver !== 'pro' ) {
27
 
28
  if ( 'added_video' == $feed_type && !empty($video_source) ) {
29
  // echo "<pre>"; print_r($video_source);exit();
30
  $returner .= '<video src="' . $video_source . '" controls>
31
+ Your browser does not support HTML5 video.
32
+ </video>';
33
  } else {
34
  $returner .= '<img alt="' . $story_from_name . '" src="' . $feed_img . '" />';
35
  }
49
  $returner .= '<div class="efbl_auth_logo">' . $author_image . '</div>';
50
  }
51
  $returner .= '<div class="efbl_name_date">
52
+
53
+ <p class="efbl_author_name"> <a href="https://facebook.com/' . $page_id . '" target="' . $link_target . '">' . $story_from_name . '</a></p>
54
+
55
+ <p class="efbl_story_time">' . $time . '</p>
56
+
57
+ </div>
58
+
59
+ </div>';
60
  //plan end
61
  if ( $post_text && $efbl_skins[$skin_id]['design']['show_feed_caption'] ) {
62
  //Story content
96
  $returner .= '<div class="efbl_info">';
97
  if ( $efbl_likes_count > 0 ) {
98
  $returner .= '<span class="efbl_likes">
99
+ <span class="efbl_like_text"><i class="fa fa-thumbs-o-up"></i></span>
100
+ <span class="efbl_likes_counter"> ' . $efbl_likes_count . ' </span>
101
+ </span>';
102
  }
103
  if ( $efbl_comments_count > 0 ) {
104
  $returner .= '<span class="efbl_comments">
105
+ <span class="efbl_comments_text"><i class="fa fa-comment-o"></i></span>
106
+ <span class="efbl_comments_counter"> ' . $efbl_comments_count . ' </span>
107
+ </span>';
108
  }
109
  if ( $story->shares->count > 0 ) {
110
  $returner .= '<span class="efbl_shares">
111
+ <span class="efbl_shares_text"><i class="fa fa-share"></i></span>
112
+ <span class="efbl_shares_counter"> ' . $story->shares->count . ' </span>
113
+ </span>';
114
  }
115
  $returner .= '</div>';
116
  }
122
  }
123
 
124
  $returner .= '<!--Readmore div started-->
125
+ <div class="efbl_read_more_link">
126
+ <a href="' . $story_link . '" target="' . $link_target . '" class="efbl_read_full_story">' . $read_more_text . '</a>
127
+
128
+ <a href="javascript:void(0)" class="efbl_share_links">' . $share_this_text . '</a>
129
+
130
+ <span class="efbl_links_container">
131
+ <a class="efbl_facebook" href="https://www.facebook.com/sharer/sharer.php?u=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-facebook"></i></a>
132
+
133
+ <a class="efbl_twitter" href="https://twitter.com/intent/tweet?text=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-twitter"></i></a>
134
+
135
+ <a class="efbl_linked_in" href="https://www.linkedin.com/shareArticle?mini=true&url=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-linkedin"></i></a>
136
+
137
+ </span>
138
+
139
+ </div>
140
+ <!--Readmore div end-->';
141
 
142
  if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) ) {
143
  if ( $efbl_comments_count > 0 ) {
167
  $returner .= '<div class="efbl_comments">';
168
  $returner .= '<div class="efbl_commenter_image">';
169
  $returner .= '<a href="https://facebook.com/' . $comment->id . '" target="' . $link_target . '" rel="nofollow" title="' . $story->name . '">
170
+ <img alt="' . $story->name . '" src="' . EFBL_PLUGIN_URL . '/assets/fb-avatar.png" width=32 height=32>
171
+ </a>';
172
  $returner .= '</div>';
173
  $returner .= '<div class="efbl_comment_text">';
174
  $returner .= '<a title="' . $story->name . '" class="efbl_comenter_name" href="https://facebook.com/' . $comment->from->id . '" target="' . $link_target . '" rel="nofollow">
175
+ ' . $comment->from->name . '
176
+ </a>';
177
  $returner .= '<p class="efbl_comment_message">' . $comment_message . '</p>';
178
  $returner .= '<p class="efbl_comment_time_n_likes">';
179
  if ( $comment_likes ) {
187
  }
188
  $comment_more_text = __( apply_filters( 'efbl_comment_on_text', 'comment on facebook' ), 'easy-facebook-likebox' );
189
  $returner .= '<div class="efbl_comments_footer">
190
+ <a href="' . $story_link . '" target="' . $link_target . '" rel="nofollow"><i class="fa fa-comment-o"></i> ' . $comment_more_text . ' </a>
191
+ </div>';
192
  }
193
 
194
+ if ( $efbl_comments_count > 0 ) {
195
  //Comments area ends here
196
  $returner .= '</div>';
197
  }
easy-facebook-likebox/public/views/templates/template-thumbnail.php CHANGED
@@ -10,24 +10,26 @@ $efbl_ver = 'free';
10
  if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
11
  $efbl_ver = 'pro';
12
  }
13
- $returner .= '<div id="efblcf" class="efbl_fb_story efbl_ver_' . $efbl_ver . ' ' . $layout . ' ' . $feed_type . ' ' . $pic_class . ' efbl_' . $filter . '">';
14
  $efbl_free_popup_type = 'data-imagelink="' . $feed_img . '"';
15
  $efbl_free_popup_class = null;
16
 
17
- if('added_video' == $feed_type && !empty($video_source)):
18
- $efbl_free_popup_type = 'data-video="' . $video_source . '"';
19
- $efbl_free_popup_class = 'efbl_popup_video';
20
- endif;
 
 
 
21
  if ( 'efbl_has_image' == $pic_class ) {
22
  $returner .= '<div class="efbl_story_photo">';
23
- $returner .= '<a href="' . admin_url( 'admin-ajax.php' ) . '?action=efbl_generate_popup_html&rand_id=' . $rand_id . '" '.$efbl_free_popup_type.' data-storylink="' . $story_link . '" data-linktext="' . __( 'Read full story', 'easy-facebook-likebox' ) . '" data-caption="' . htmlentities( $post_text ) . '" data-itemnumber="' . $pi . '" class="efbl_feed_popup '.$efbl_free_popup_class.' efbl-cff-item_number-' . $pi . '"><span class="efbl_hover"><i class="fa fa-plus" aria-hidden="true"></i></span></a>';
24
  if ( $efbl_ver !== 'pro' ) {
25
 
26
  if ( 'added_video' == $feed_type && !empty($video_source) ) {
27
  // echo "<pre>"; print_r($video_source);exit();
28
  $returner .= '<video src="' . $video_source . '" controls>
29
- Your browser does not support HTML5 video.
30
- </video>';
31
  } else {
32
  $returner .= '<img alt="' . $story_from_name . '" src="' . $feed_img . '" />';
33
  }
@@ -47,14 +49,14 @@ if ( $show_logo == 1 ) {
47
  $returner .= '<div class="efbl_auth_logo">' . $author_image . '</div>';
48
  }
49
  $returner .= '<div class="efbl_name_date">
50
-
51
- <p class="efbl_author_name"> <a href="https://facebook.com/' . $page_id . '" target="' . $link_target . '">' . $story_from_name . '</a></p>
52
-
53
- <p class="efbl_story_time">' . $time . '</p>
54
-
55
- </div>
56
-
57
- </div>';
58
  //plan end
59
  if ( $post_text && $efbl_skins[$skin_id]['design']['show_feed_caption'] ) {
60
  //Story content
@@ -94,21 +96,21 @@ if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) || !empty($efbl_sk
94
  $returner .= '<div class="efbl_info">';
95
  if ( $efbl_likes_count > 0 ) {
96
  $returner .= '<span class="efbl_likes">
97
- <span class="efbl_like_text"><i class="fa fa-thumbs-o-up"></i></span>
98
- <span class="efbl_likes_counter"> ' . $efbl_likes_count . ' </span>
99
- </span>';
100
  }
101
  if ( $efbl_comments_count > 0 ) {
102
  $returner .= '<span class="efbl_comments">
103
- <span class="efbl_comments_text"><i class="fa fa-comment-o"></i></span>
104
- <span class="efbl_comments_counter"> ' . $efbl_comments_count . ' </span>
105
- </span>';
106
  }
107
  if ( $story->shares->count > 0 ) {
108
  $returner .= '<span class="efbl_shares">
109
- <span class="efbl_shares_text"><i class="fa fa-share"></i></span>
110
- <span class="efbl_shares_counter"> ' . $story->shares->count . ' </span>
111
- </span>';
112
  }
113
  $returner .= '</div>';
114
  }
@@ -120,22 +122,22 @@ if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) || !empty($efbl_sk
120
  }
121
 
122
  $returner .= '<!--Readmore div started-->
123
- <div class="efbl_read_more_link">
124
- <a href="' . $story_link . '" target="' . $link_target . '" class="efbl_read_full_story">' . $read_more_text . '</a>
125
-
126
- <a href="javascript:void(0)" class="efbl_share_links">' . $share_this_text . '</a>
127
-
128
- <span class="efbl_links_container">
129
- <a class="efbl_facebook" href="https://www.facebook.com/sharer/sharer.php?u=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-facebook"></i></a>
130
-
131
- <a class="efbl_twitter" href="https://twitter.com/intent/tweet?text=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-twitter"></i></a>
132
-
133
- <a class="efbl_linked_in" href="https://www.linkedin.com/shareArticle?mini=true&url=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-linkedin"></i></a>
134
-
135
- </span>
136
-
137
- </div>
138
- <!--Readmore div end-->';
139
 
140
  if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) ) {
141
  if ( $efbl_comments_count > 0 ) {
@@ -165,13 +167,13 @@ if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) ) {
165
  $returner .= '<div class="efbl_comments">';
166
  $returner .= '<div class="efbl_commenter_image">';
167
  $returner .= '<a href="https://facebook.com/' . $comment->id . '" target="' . $link_target . '" rel="nofollow" title="' . $story->name . '">
168
- <img alt="' . $story->name . '" src="' . EFBL_PLUGIN_URL . '/assets/fb-avatar.png" width=32 height=32>
169
- </a>';
170
  $returner .= '</div>';
171
  $returner .= '<div class="efbl_comment_text">';
172
  $returner .= '<a title="' . $story->name . '" class="efbl_comenter_name" href="https://facebook.com/' . $comment->from->id . '" target="' . $link_target . '" rel="nofollow">
173
- ' . $comment->from->name . '
174
- </a>';
175
  $returner .= '<p class="efbl_comment_message">' . $comment_message . '</p>';
176
  $returner .= '<p class="efbl_comment_time_n_likes">';
177
  if ( $comment_likes ) {
@@ -185,11 +187,11 @@ if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) ) {
185
  }
186
  $comment_more_text = __( apply_filters( 'efbl_comment_on_text', 'comment on facebook' ), 'easy-facebook-likebox' );
187
  $returner .= '<div class="efbl_comments_footer">
188
- <a href="' . $story_link . '" target="' . $link_target . '" rel="nofollow"><i class="fa fa-comment-o"></i> ' . $comment_more_text . ' </a>
189
- </div>';
190
  }
191
 
192
- if ( count( $story->comments->data ) > 0 || count( $story->likes->data ) > 0 ) {
193
  //Comments area ends here
194
  $returner .= '</div>';
195
  }
10
  if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
11
  $efbl_ver = 'pro';
12
  }
 
13
  $efbl_free_popup_type = 'data-imagelink="' . $feed_img . '"';
14
  $efbl_free_popup_class = null;
15
 
16
+ if ( 'added_video' == $feed_type && !empty($video_source) ) {
17
+ $efbl_free_popup_type = 'data-video="' . $video_source . '"';
18
+ $efbl_free_popup_class = 'efbl_popup_video';
19
+ }
20
+
21
+ $returner .= '<div id="efblcf" class="efbl_fb_story efbl_ver_' . $efbl_ver . ' ' . $layout . ' ' . $feed_type . ' ' . $pic_class . ' efbl_' . $filter . '">';
22
+
23
  if ( 'efbl_has_image' == $pic_class ) {
24
  $returner .= '<div class="efbl_story_photo">';
25
+ $returner .= '<a href="' . admin_url( 'admin-ajax.php' ) . '?action=efbl_generate_popup_html&rand_id=' . $rand_id . '" ' . $efbl_free_popup_type . ' data-storylink="' . $story_link . '" data-linktext="' . __( 'Read full story', 'easy-facebook-likebox' ) . '" data-caption="' . htmlentities( $post_text ) . '" data-itemnumber="' . $pi . '" class="efbl_feed_popup ' . $efbl_free_popup_class . ' efbl-cff-item_number-' . $pi . '"><span class="efbl_hover"><i class="fa fa-plus" aria-hidden="true"></i></span></a>';
26
  if ( $efbl_ver !== 'pro' ) {
27
 
28
  if ( 'added_video' == $feed_type && !empty($video_source) ) {
29
  // echo "<pre>"; print_r($video_source);exit();
30
  $returner .= '<video src="' . $video_source . '" controls>
31
+ Your browser does not support HTML5 video.
32
+ </video>';
33
  } else {
34
  $returner .= '<img alt="' . $story_from_name . '" src="' . $feed_img . '" />';
35
  }
49
  $returner .= '<div class="efbl_auth_logo">' . $author_image . '</div>';
50
  }
51
  $returner .= '<div class="efbl_name_date">
52
+
53
+ <p class="efbl_author_name"> <a href="https://facebook.com/' . $page_id . '" target="' . $link_target . '">' . $story_from_name . '</a></p>
54
+
55
+ <p class="efbl_story_time">' . $time . '</p>
56
+
57
+ </div>
58
+
59
+ </div>';
60
  //plan end
61
  if ( $post_text && $efbl_skins[$skin_id]['design']['show_feed_caption'] ) {
62
  //Story content
96
  $returner .= '<div class="efbl_info">';
97
  if ( $efbl_likes_count > 0 ) {
98
  $returner .= '<span class="efbl_likes">
99
+ <span class="efbl_like_text"><i class="fa fa-thumbs-o-up"></i></span>
100
+ <span class="efbl_likes_counter"> ' . $efbl_likes_count . ' </span>
101
+ </span>';
102
  }
103
  if ( $efbl_comments_count > 0 ) {
104
  $returner .= '<span class="efbl_comments">
105
+ <span class="efbl_comments_text"><i class="fa fa-comment-o"></i></span>
106
+ <span class="efbl_comments_counter"> ' . $efbl_comments_count . ' </span>
107
+ </span>';
108
  }
109
  if ( $story->shares->count > 0 ) {
110
  $returner .= '<span class="efbl_shares">
111
+ <span class="efbl_shares_text"><i class="fa fa-share"></i></span>
112
+ <span class="efbl_shares_counter"> ' . $story->shares->count . ' </span>
113
+ </span>';
114
  }
115
  $returner .= '</div>';
116
  }
122
  }
123
 
124
  $returner .= '<!--Readmore div started-->
125
+ <div class="efbl_read_more_link">
126
+ <a href="' . $story_link . '" target="' . $link_target . '" class="efbl_read_full_story">' . $read_more_text . '</a>
127
+
128
+ <a href="javascript:void(0)" class="efbl_share_links">' . $share_this_text . '</a>
129
+
130
+ <span class="efbl_links_container">
131
+ <a class="efbl_facebook" href="https://www.facebook.com/sharer/sharer.php?u=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-facebook"></i></a>
132
+
133
+ <a class="efbl_twitter" href="https://twitter.com/intent/tweet?text=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-twitter"></i></a>
134
+
135
+ <a class="efbl_linked_in" href="https://www.linkedin.com/shareArticle?mini=true&url=' . $story_link . '" target="' . $link_target . '"><i class="fa fa-linkedin"></i></a>
136
+
137
+ </span>
138
+
139
+ </div>
140
+ <!--Readmore div end-->';
141
 
142
  if ( !empty($efbl_skins[$skin_id]['design']['show_comments']) ) {
143
  if ( $efbl_comments_count > 0 ) {
167
  $returner .= '<div class="efbl_comments">';
168
  $returner .= '<div class="efbl_commenter_image">';
169
  $returner .= '<a href="https://facebook.com/' . $comment->id . '" target="' . $link_target . '" rel="nofollow" title="' . $story->name . '">
170
+ <img alt="' . $story->name . '" src="' . EFBL_PLUGIN_URL . '/assets/fb-avatar.png" width=32 height=32>
171
+ </a>';
172
  $returner .= '</div>';
173
  $returner .= '<div class="efbl_comment_text">';
174
  $returner .= '<a title="' . $story->name . '" class="efbl_comenter_name" href="https://facebook.com/' . $comment->from->id . '" target="' . $link_target . '" rel="nofollow">
175
+ ' . $comment->from->name . '
176
+ </a>';
177
  $returner .= '<p class="efbl_comment_message">' . $comment_message . '</p>';
178
  $returner .= '<p class="efbl_comment_time_n_likes">';
179
  if ( $comment_likes ) {
187
  }
188
  $comment_more_text = __( apply_filters( 'efbl_comment_on_text', 'comment on facebook' ), 'easy-facebook-likebox' );
189
  $returner .= '<div class="efbl_comments_footer">
190
+ <a href="' . $story_link . '" target="' . $link_target . '" rel="nofollow"><i class="fa fa-comment-o"></i> ' . $comment_more_text . ' </a>
191
+ </div>';
192
  }
193
 
194
+ if ( $efbl_comments_count > 0 ) {
195
  //Comments area ends here
196
  $returner .= '</div>';
197
  }