Version Description
- Added: Ability to display posts from personal Instagram account
- Fixed: Miscellaneous UI issues
Download this release
Release Info
Developer | DaNish Ali |
Plugin | Easy Facebook Like Box (Facebook Page Plugin) – Custom Facebook Feed – Auto PopUp |
Version | 5.2.5 |
Comparing to | |
See all releases |
Code changes from version 5.2.4 to 5.2.5
- README.txt +24 -19
- admin/admin.php +557 -587
- assets/css/fta_admin_style.css +1 -1
- assets/css/fta_admin_style.css.map +1 -1
- assets/images/cloudways-logo.png +0 -0
- assets/scss/fta_admin_style.scss +134 -6
- easy-facebook-likebox.php +1 -1
- easy-facebook-likebox/admin/assets/css/admin.css +1 -1
- easy-facebook-likebox/admin/assets/css/admin.css.map +1 -1
- easy-facebook-likebox/admin/assets/css/efbl-customizer.css.map +1 -0
- easy-facebook-likebox/admin/assets/js/admin.js +14 -3
- easy-facebook-likebox/admin/assets/scss/admin.scss +76 -1
- easy-facebook-likebox/admin/easy-facebook-likebox-admin.php +208 -16
- easy-facebook-likebox/admin/includes/efbl-customizer.php +920 -920
- easy-facebook-likebox/admin/includes/efbl-skins.php +491 -491
- easy-facebook-likebox/public/assets/css/public.css +0 -1
- easy-facebook-likebox/public/assets/js/public.js +2 -3
- easy-facebook-likebox/public/easy-facebook-likebox.php +2 -2
- easy-facebook-likebox/public/includes/core-functions.php +7 -1
- easy-facebook-likebox/public/views/feed.php +14 -3
- my-instagram-feed/admin/admin.php +1243 -778
- my-instagram-feed/assets/css/mif_admin_style.css +1 -1
- my-instagram-feed/assets/css/mif_admin_style.css.map +1 -1
- my-instagram-feed/assets/css/mif_fancy_popup.css +1 -1
- my-instagram-feed/assets/css/mif_fancy_popup.css.map +1 -1
- my-instagram-feed/assets/css/mif_style.css +1 -1
- my-instagram-feed/assets/css/mif_style.css.map +1 -1
- my-instagram-feed/assets/images/insta-logo.png +0 -0
- my-instagram-feed/assets/js/mif-admin.js +81 -0
- my-instagram-feed/assets/scss/mif_admin_style.scss +84 -6
- my-instagram-feed/assets/scss/mif_fancy_popup.scss +33 -0
- my-instagram-feed/assets/scss/mif_style.scss +40 -4
- my-instagram-feed/frontend/frontend.php +107 -71
- my-instagram-feed/includes/mif-global-functions.php +79 -0
- my-instagram-feed/includes/mif-skins.php +640 -640
- my-instagram-feed/my-instagram-feed.php +2 -0
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: maltathemes, sjaved, freemius
|
|
3 |
Tags: instagram feed, instagram, facebook feed, PopUp, page plugin
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 5.3
|
6 |
-
Stable tag: 5.2.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -20,11 +20,11 @@ DEMOS:
|
|
20 |
- [Custom Facebook Feed Pro](https://easysocialfeed.com/custom-facebook-feed/)
|
21 |
- [Custom Instagram Feed Pro](https://easysocialfeed.com/my-instagram-feed-demo/)
|
22 |
|
23 |
-
*"Easy to use as the description
|
24 |
|
25 |
### Custom Instagram Feed plugin for WordPress:
|
26 |
|
27 |
-
Display your stunning photos and videos from your Instagram account on your site. It
|
28 |
|
29 |
### FEATURES OF INSTAGRAM FEED PLUGIN:
|
30 |
|
@@ -33,12 +33,12 @@ Display your stunning photos and videos from your Instagram account on your site
|
|
33 |
- Change **number of columns**, colors and borders.
|
34 |
- Create **multiple skins**. Handy when you need to display the feed on the page as well as in the footer or sidebar, differently.
|
35 |
- Completely responsive and mobile-friendly.
|
36 |
-
- Powerful **shortcode generator**, you don
|
37 |
- **Load more** button to display **unlimited photos**.
|
38 |
- **Follow** using the Instagram button.
|
39 |
- Display **header** at the top of the feed.
|
40 |
- Dynamically load more photos - Display more photos and videos with the click of a button.
|
41 |
-
- **Multiple-feeds
|
42 |
- Advanced PopUp (pro)- 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 (pro)- Display multiple images in a gallery carousel. Perfect way to display multiple photos in an attractive and user-friendly way.
|
44 |
- Videos gallery (pro)- Display multiple videos in a gallery carousel. Yepp! Your visitors can play videos right inside the popup. Cool!
|
@@ -49,12 +49,12 @@ Display your stunning photos and videos from your Instagram account on your site
|
|
49 |
- Animate filters (pro)- 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 customizable layouts (pro)- Change colors, padding or even enable and disable the elements.
|
51 |
- Priority support (pro)- Above all, I stand firmly behind my plugin and provide top-notch priority support to the premium plan users via email.
|
52 |
-
- Much More Awesome and Cool Stuff To Come
|
53 |
|
54 |
|
55 |
[Easy Custom Instagram Demo](https://easysocialfeed.com/my-instagram-feed-demo)
|
56 |
|
57 |
-
*"Much better than the others
|
58 |
|
59 |
### Custom Facebook Feed for WordPress:
|
60 |
|
@@ -65,10 +65,10 @@ Display a customizable (completely match the look and feel with your site), mobi
|
|
65 |
- Support fully **customizable** facebook feed. Match the look and feel of the feed with your website using WordPress **customizer** (yes, no more guessing)
|
66 |
- **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.
|
67 |
- Caption words limit - Limit the number of words to display in the story on your site
|
68 |
-
- **PopUp** - Display images, videos, and albums in the advanced popup so your users never leave your site again.
|
69 |
-
- **Super fast
|
70 |
-
- **Multiple-feeds
|
71 |
-
- **Top-notch customer support
|
72 |
- **Layouts** - Display the feed-in full-width, half-width and in thumbnail views
|
73 |
- Show/hide page plugin - show or hide the page plugin.
|
74 |
- Show/hide page header - ability to show or hide the name of the page, information about the page, category of the page and number followers
|
@@ -78,7 +78,7 @@ Display a customizable (completely match the look and feel with your site), mobi
|
|
78 |
- Read more - Read more button to read the full story on Facebook.
|
79 |
- Shortcode generator - easily generate shortcode to display feed wherever you want
|
80 |
- Widget - dedicated widget to display the feed in sidebar or footer.
|
81 |
-
- And much more in the pack
|
82 |
- Post filter (pro)- Filter the posts in feed to based on the type of the post for example images, videos, and events.
|
83 |
- **More layouts** (pro)- Display the feed-in grid, masonry or carousel layouts.
|
84 |
- Any page post feed (pro)- You can display posts from any public page even you don't manage it.
|
@@ -109,7 +109,7 @@ Displays a Facebook Page Plugin (previously Facebook Like Box). The Facebook Pag
|
|
109 |
- Choose your desired language or input your own language (if not in list).
|
110 |
- Support 75 different locales
|
111 |
- Like box or page plugin in responsive PopUp/Modal window to gain more likes.
|
112 |
-
- **Top-notch customer support
|
113 |
|
114 |
[Faceook Page Plugin Demo](https://easysocialfeed.com/faceook-page-plugin)
|
115 |
|
@@ -125,14 +125,14 @@ Displays a Facebook Page Plugin (previously Facebook Like Box). The Facebook Pag
|
|
125 |
- Added some smooth transitions
|
126 |
- All of the above options are available with PopUp
|
127 |
- Support all WordPress shortcodes and even HTML in PopUp
|
128 |
-
- **Top-notch customer support
|
129 |
- **Auto popup exit-intent** (pro) - Display popup right before the user intent to leave your site. Perfect to convert and grab the attention.
|
130 |
- **Auto Popup page conditions** (pro) - Display PopUp on specific pages only
|
131 |
-
- **And a lot more inside the pack
|
132 |
|
133 |
[Auto PopUp Demo](https://easysocialfeed.com/auto-popup-likebox/)
|
134 |
|
135 |
-
**Easy Social Post Feed WordPress** plugin is designed to keep beginners in mind from scratch. It has beginner
|
136 |
|
137 |
### HOW TO USE EASY SOCIAL FEED
|
138 |
|
@@ -147,7 +147,7 @@ For more instructions on how to configure and use this plugin please see FAQ sec
|
|
147 |
**NOTE**
|
148 |
Easy Social Feed is the simplest, most beginner-friendly yet powerful and the only plugin with a one-minute setup (or even less).
|
149 |
|
150 |
-
Also, I
|
151 |
Thank you
|
152 |
|
153 |
Danish Ali Malik
|
@@ -189,6 +189,10 @@ http://wordpress.org/support/topic/need-feed-back-on-plugin-feature/
|
|
189 |
18. Instagram skins panel.
|
190 |
|
191 |
== Changelog ==
|
|
|
|
|
|
|
|
|
192 |
= 5.2.3 =
|
193 |
* Fixed: Broken Feed logo
|
194 |
|
@@ -385,5 +389,6 @@ http://wordpress.org/support/topic/need-feed-back-on-plugin-feature/
|
|
385 |
* Initial release.
|
386 |
|
387 |
== Upgrade Notice ==
|
388 |
-
= 5.2.
|
389 |
-
|
|
3 |
Tags: instagram feed, instagram, facebook feed, PopUp, page plugin
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 5.3
|
6 |
+
Stable tag: 5.2.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
20 |
- [Custom Facebook Feed Pro](https://easysocialfeed.com/custom-facebook-feed/)
|
21 |
- [Custom Instagram Feed Pro](https://easysocialfeed.com/my-instagram-feed-demo/)
|
22 |
|
23 |
+
*"Easy to use as the description – awesome plugin and excellent support, easy to set up and more function, won’t affect the page speed, GREAT JOB!"* – [alexwee88](https://wordpress.org/support/topic/easy-to-use-as-the-description/)
|
24 |
|
25 |
### Custom Instagram Feed plugin for WordPress:
|
26 |
|
27 |
+
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.
|
28 |
|
29 |
### FEATURES OF INSTAGRAM FEED PLUGIN:
|
30 |
|
33 |
- Change **number of columns**, colors and borders.
|
34 |
- Create **multiple skins**. Handy when you need to display the feed on the page as well as in the footer or sidebar, differently.
|
35 |
- Completely responsive and mobile-friendly.
|
36 |
+
- Powerful **shortcode generator**, you don’t need to mess up with shortcode attributes.
|
37 |
- **Load more** button to display **unlimited photos**.
|
38 |
- **Follow** using the Instagram button.
|
39 |
- Display **header** at the top of the feed.
|
40 |
- Dynamically load more photos - Display more photos and videos with the click of a button.
|
41 |
+
- **Multiple-feeds** (pro)- There is no limitation to display the number of feeds on your site. Our shortcode and widgets work independently. Which means you can add the feed from multiple pages wherever you want, whenever you want.
|
42 |
- Advanced PopUp (pro)- 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 (pro)- Display multiple images in a gallery carousel. Perfect way to display multiple photos in an attractive and user-friendly way.
|
44 |
- Videos gallery (pro)- Display multiple videos in a gallery carousel. Yepp! Your visitors can play videos right inside the popup. Cool!
|
49 |
- Animate filters (pro)- 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 customizable layouts (pro)- Change colors, padding or even enable and disable the elements.
|
51 |
- Priority support (pro)- Above all, I stand firmly behind my plugin and provide top-notch priority support to the premium plan users via email.
|
52 |
+
- Much More Awesome and Cool Stuff To Come…
|
53 |
|
54 |
|
55 |
[Easy Custom Instagram Demo](https://easysocialfeed.com/my-instagram-feed-demo)
|
56 |
|
57 |
+
*"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/)
|
58 |
|
59 |
### Custom Facebook Feed for WordPress:
|
60 |
|
65 |
- Support fully **customizable** facebook feed. Match the look and feel of the feed with your website using WordPress **customizer** (yes, no more guessing)
|
66 |
- **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.
|
67 |
- Caption words limit - Limit the number of words to display in the story on your site
|
68 |
+
- **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
|
69 |
+
- **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. The choice is yours!
|
70 |
+
- **Multiple-feeds** - There is no limitation to display the number of feeds on your site. Our shortcode and widgets work independently. Which means you can add the feed from multiple pages wherever you want, whenever you want.
|
71 |
+
- **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 it.
|
72 |
- **Layouts** - Display the feed-in full-width, half-width and in thumbnail views
|
73 |
- Show/hide page plugin - show or hide the page plugin.
|
74 |
- Show/hide page header - ability to show or hide the name of the page, information about the page, category of the page and number followers
|
78 |
- Read more - Read more button to read the full story on Facebook.
|
79 |
- Shortcode generator - easily generate shortcode to display feed wherever you want
|
80 |
- Widget - dedicated widget to display the feed in sidebar or footer.
|
81 |
+
- And much more in the pack…
|
82 |
- Post filter (pro)- Filter the posts in feed to based on the type of the post for example images, videos, and events.
|
83 |
- **More layouts** (pro)- Display the feed-in grid, masonry or carousel layouts.
|
84 |
- Any page post feed (pro)- You can display posts from any public page even you don't manage it.
|
109 |
- Choose your desired language or input your own language (if not in list).
|
110 |
- Support 75 different locales
|
111 |
- Like box or page plugin in responsive PopUp/Modal window to gain more likes.
|
112 |
+
- **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 it.
|
113 |
|
114 |
[Faceook Page Plugin Demo](https://easysocialfeed.com/faceook-page-plugin)
|
115 |
|
125 |
- Added some smooth transitions
|
126 |
- All of the above options are available with PopUp
|
127 |
- Support all WordPress shortcodes and even HTML in PopUp
|
128 |
+
- **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 it.
|
129 |
- **Auto popup exit-intent** (pro) - Display popup right before the user intent to leave your site. Perfect to convert and grab the attention.
|
130 |
- **Auto Popup page conditions** (pro) - Display PopUp on specific pages only
|
131 |
+
- **And a lot more inside the pack…**
|
132 |
|
133 |
[Auto PopUp Demo](https://easysocialfeed.com/auto-popup-likebox/)
|
134 |
|
135 |
+
**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).
|
136 |
|
137 |
### HOW TO USE EASY SOCIAL FEED
|
138 |
|
147 |
**NOTE**
|
148 |
Easy Social Feed is the simplest, most beginner-friendly yet powerful and the only plugin with a one-minute setup (or even less).
|
149 |
|
150 |
+
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)
|
151 |
Thank you
|
152 |
|
153 |
Danish Ali Malik
|
189 |
18. Instagram skins panel.
|
190 |
|
191 |
== Changelog ==
|
192 |
+
= 5.2.5 =
|
193 |
+
* Added: Ability to display posts from personal Instagram account
|
194 |
+
* Fixed: Miscellaneous UI issues
|
195 |
+
|
196 |
= 5.2.3 =
|
197 |
* Fixed: Broken Feed logo
|
198 |
|
389 |
* Initial release.
|
390 |
|
391 |
== Upgrade Notice ==
|
392 |
+
= 5.2.5 =
|
393 |
+
* Added: Ability to display posts from personal Instagram account
|
394 |
+
* Fixed: Miscellaneous UI issues
|
admin/admin.php
CHANGED
@@ -1,164 +1,160 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
/*
|
4 |
* Stop execution if someone tried to get file directly.
|
5 |
-
*/
|
6 |
-
if ( !defined( 'ABSPATH' ) ) {
|
7 |
-
exit;
|
8 |
-
}
|
9 |
-
//======================================================================
|
10 |
-
// Code for the admin funcionality of Feed Them All
|
11 |
-
//======================================================================
|
12 |
-
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 |
* admin_footer_text hooks fires for displaying admin footer text.
|
55 |
* fta_admin_footer_text method will be call.
|
56 |
-
*/
|
57 |
-
add_filter( 'admin_footer_text', array( $this, 'fta_admin_footer_text' ) );
|
58 |
-
/*
|
59 |
-
* efbl_save_access_token hooks fires on Ajax call.
|
60 |
-
* efbl_save_access_token method will be call when the access token needs to be updated.
|
61 |
-
*/
|
62 |
-
add_action( 'wp_ajax_efbl_save_access_token', array( $this, 'efbl_save_access_token_cb' ) );
|
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_supported', array( $this, 'fta_supported_func' ) );
|
68 |
/*
|
69 |
* wp_ajax_mif_supported hooks fires on Ajax call.
|
70 |
* wp_ajax_mif_supported method will be call on click of supported button in admin notice.
|
71 |
-
*/
|
72 |
-
add_action( 'wp_ajax_fta_upgraded_msg_dismiss', array( $this, 'fta_upgraded_msg_dismiss' ) );
|
73 |
-
add_action( 'admin_head', array( $this, 'esf_hide_notices' ) );
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
|
|
87 |
/*
|
88 |
* fta_frontend_style will enqueue style and js files.
|
89 |
-
*/
|
90 |
-
public function fta_frontend_style()
|
91 |
-
{
|
92 |
/*
|
93 |
* Esf Custom Fonts Css.
|
94 |
-
*/
|
95 |
-
wp_enqueue_style( 'esf-fonts', FTA_PLUGIN_URL . 'assets/css/esf-custom-fonts.css' );
|
96 |
-
}
|
97 |
-
|
98 |
-
/* fta_frontend_style Method ends here. */
|
99 |
/*
|
100 |
* fta_admin_style will enqueue style and js files.
|
101 |
* Returns hook name of the current page in admin.
|
102 |
* $hook will contain the hook name.
|
103 |
-
*/
|
104 |
-
public function fta_admin_style( $hook )
|
105 |
-
{
|
106 |
-
// exit( $hook);
|
107 |
/*
|
108 |
* Following files should load only on fta page in backend.
|
109 |
-
*/
|
110 |
-
if ( 'toplevel_page_feed-them-all' !== $hook && 'easy-social-feed_page_mif' !== $hook && 'easy-social-feed_page_easy-facebook-likebox' !== $hook && 'admin_page_esf_welcome' !== $hook ) {
|
111 |
-
return;
|
112 |
-
}
|
113 |
/*
|
114 |
* Base css file for admin area.
|
115 |
-
*/
|
116 |
-
wp_enqueue_style( 'materialize.min', FTA_PLUGIN_URL . 'assets/css/materialize.min.css' );
|
117 |
/*
|
118 |
* Css file for admin area.
|
119 |
-
*/
|
120 |
-
wp_enqueue_style( 'fta_animations', FTA_PLUGIN_URL . 'assets/css/fta_animations.css' );
|
121 |
/*
|
122 |
* Css file for admin area.
|
123 |
-
*/
|
124 |
-
wp_enqueue_style( 'fta_admin_style', FTA_PLUGIN_URL . 'assets/css/fta_admin_style.css' );
|
125 |
/*
|
126 |
* Base script file for admin area.
|
127 |
-
*/
|
128 |
-
wp_enqueue_script( 'materialize.min', FTA_PLUGIN_URL . 'assets/js/materialize.min.js', array( 'jquery' ) );
|
129 |
/*
|
130 |
* For sliding animations.
|
131 |
-
*/
|
132 |
-
wp_enqueue_script( 'jquery-effects-slide' );
|
133 |
/*
|
134 |
* Copy To Clipboard script file for admin area.
|
135 |
-
*/
|
136 |
-
wp_enqueue_script( 'clipboard' );
|
137 |
/*
|
138 |
* Custom scripts file for admin area.
|
139 |
-
*/
|
140 |
-
wp_enqueue_script( 'fta_admin_jquery', FTA_PLUGIN_URL . 'assets/js/fta-admin.js', array( 'jquery' ) );
|
141 |
-
// echo "<pre>";
|
142 |
-
// print_r(admin_url('admin-ajax.php'));exit();
|
143 |
-
wp_localize_script( 'fta_admin_jquery', 'fta', array(
|
144 |
-
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
145 |
-
'nonce' => wp_create_nonce( 'fta-ajax-nonce' ),
|
146 |
-
) );
|
147 |
-
wp_enqueue_script( 'media-upload' );
|
148 |
-
wp_enqueue_media();
|
149 |
-
}
|
150 |
-
|
151 |
-
/* fta_admin_style Method ends here. */
|
152 |
/*
|
153 |
* fta_menu will add admin page.
|
154 |
* Returns nothing.
|
155 |
-
*/
|
156 |
-
public function fta_menu()
|
157 |
-
{
|
158 |
/*
|
159 |
* URL of the plugin icon.
|
160 |
-
*/
|
161 |
-
$icon_url = FTA_PLUGIN_URL . 'assets/images/plugin_icon.png';
|
162 |
/*
|
163 |
* add_menu_page will add menu into the page.
|
164 |
* string $page_title
|
@@ -166,43 +162,57 @@ class FTA_Admin
|
|
166 |
* string $capability
|
167 |
* string $menu_slug
|
168 |
* callable $function
|
169 |
-
*/
|
170 |
-
add_menu_page(
|
171 |
-
__( 'Easy Social Feed', 'easy-facebook-likebox' ),
|
172 |
-
__( 'Easy Social Feed', 'easy-facebook-likebox' ),
|
173 |
-
'administrator',
|
174 |
-
'feed-them-all',
|
175 |
-
array( $this, 'fta_page' ),
|
176 |
-
$icon_url
|
177 |
-
);
|
178 |
/*
|
179 |
* Add wellcome page but not visible in menu
|
180 |
-
*/
|
181 |
-
add_submenu_page(
|
182 |
-
null,
|
183 |
-
__( 'Welcome', 'easy-facebook-likebox' ),
|
184 |
-
__( 'Welcome', 'easy-facebook-likebox' ),
|
185 |
-
'administrator',
|
186 |
-
'esf_welcome',
|
187 |
-
array( $this, 'esf_welcome_page' )
|
188 |
-
);
|
189 |
-
|
190 |
-
|
191 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
/*
|
193 |
* esf_welcome_page contains the html/markup of the welcome page.
|
194 |
* Returns Html.
|
195 |
-
*/
|
196 |
-
function esf_welcome_page()
|
197 |
-
{
|
198 |
-
$fta_class = new Feed_Them_All();
|
199 |
-
$fta_settings = $fta_class->fta_get_settings();
|
200 |
-
$returner = null;
|
201 |
/*
|
202 |
* Welcome page html.
|
203 |
* esf_welcome_page_html filter can be used to customize base html of setting page.
|
204 |
-
*/
|
205 |
-
$returner .= sprintf(
|
206 |
'<div class="esf_loader_wrap">
|
207 |
<div class="esf_loader_inner">
|
208 |
<div class="loader esf_welcome_loader"></div>
|
@@ -276,42 +286,151 @@ class FTA_Admin
|
|
276 |
</div>
|
277 |
</div>
|
278 |
</div>
|
279 |
-
</div>',
|
280 |
-
/* Variables starts here. */
|
281 |
-
__( "Easy Social Feed plugin have following four key fetaures. ", $fta_class->fta_slug ),
|
282 |
-
__( "Facebook Page Plugin (Like box)", $fta_class->fta_slug ),
|
283 |
-
__( "Displays a Facebook Page Plugin. The Facebook Page Plugin is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website.", $fta_class->fta_slug ),
|
284 |
-
__( "
|
285 |
-
__( "Custom Facebook Feed", $fta_class->fta_slug ),
|
286 |
-
__( "Display a customizable, responsive and SEO friendly feed of your Facebook posts on your site. Supports all types of posts, including images, videos, status and events.", $fta_class->fta_slug ),
|
287 |
-
__( "Auto PopUp", $fta_class->fta_slug ),
|
288 |
-
__( "Display Page Pugin (like box) or anything in the popup/lightbox. It supports, HTML and shortcode.", $fta_class->fta_slug ),
|
289 |
-
__( "Custom Instagram Feed", $fta_class->fta_slug ),
|
290 |
-
__( "Display your stunning photos and videos from your Instagram account on your site. It’s responsive), highly customizable and SEO friendly.", $fta_class->fta_slug ),
|
291 |
-
__( "Welcome", $fta_class->fta_slug ),
|
292 |
-
__( "Quick start video", $fta_class->fta_slug )
|
293 |
-
);
|
294 |
-
// echo "<pre>"; print_r($returner);exit();
|
295 |
-
echo $returner = apply_filters( 'esf_welcome_page_html', $returner ) ;
|
296 |
-
}
|
297 |
-
|
298 |
-
/* esf_welcome_page method ends here. */
|
299 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
/*
|
301 |
* feed-them-all-content contains the html/markup of the page.
|
302 |
* Returns nothing.
|
303 |
-
*/
|
304 |
-
function fta_page()
|
305 |
-
{
|
306 |
-
$fta_class = new Feed_Them_All();
|
307 |
-
$fta_settings = $fta_class->fta_get_settings();
|
308 |
-
$current_user = wp_get_current_user();
|
309 |
-
$returner = null;
|
310 |
/*
|
311 |
* Base html.
|
312 |
* fta_base_html filter can be used to customize base html of setting page.
|
313 |
-
*/
|
314 |
-
$returner .= sprintf(
|
315 |
'<div class="esf_loader_wrap">
|
316 |
<div class="esf_loader_inner">
|
317 |
<div class="loader"></div>
|
@@ -346,71 +465,71 @@ class FTA_Admin
|
|
346 |
</div>
|
347 |
</div>
|
348 |
</div>
|
349 |
-
</div>',
|
350 |
-
/* Variables starts here. */
|
351 |
-
__( "Welcome", $fta_class->fta_slug ),
|
352 |
-
__( "to the modules management page.", $fta_class->fta_slug ),
|
353 |
-
__( "You can disable or enable the modules you are not using to only include resources you need. If you are using all features, then keep these active.", $fta_class->fta_slug ),
|
354 |
-
$this->fta_plugins_listing()
|
355 |
-
);
|
356 |
-
if ( efl_fs()->is_free_plan() ) {
|
357 |
$returner .= '<div class="espf-upgrade">
|
358 |
<h2>' . __( 'Easy Social Feed <b>Pro</b>', 'easy-facebook-likebox' ) . '</h2>
|
359 |
<p>' . __( 'Unlock all premium features such as Advanced PopUp, More Fancy Layouts, Post filters like events, images, videos, and albums, gallery in the PopUp and above all top notch priority support.', 'easy-facebook-likebox' ) . '</p>
|
360 |
<p>' . __( 'Upgrade today and get a 10% discount! On the checkout click on "Have a promotional code?" and enter <code>espf10</code>', 'easy-facebook-likebox' ) . '</p>
|
361 |
<a href="' . efl_fs()->get_upgrade_url() . '" class="waves-effect waves-light btn"><i class="material-icons right">lock_open</i>' . __( 'Upgrade To Pro', 'easy-facebook-likebox' ) . '</a>
|
362 |
-
</div>';
|
363 |
-
}
|
364 |
-
// echo "<pre>"; print_r($returner);exit();
|
365 |
-
echo $returner = apply_filters( 'fta_base_html', $returner ) ;
|
366 |
-
}
|
367 |
-
|
368 |
-
/* fta_page method ends here. */
|
369 |
/*
|
370 |
* fta_plugins_listing contains the html/markup of the listings in dashboard.
|
371 |
* Returns HTML.
|
372 |
-
*/
|
373 |
-
private function fta_plugins_listing()
|
374 |
-
{
|
375 |
/*
|
376 |
* Getting main class.
|
377 |
-
*/
|
378 |
-
$FTA = new Feed_Them_All();
|
379 |
-
// echo "<pre>"; print_r($FTA->fta_get_settings());exit();
|
380 |
/*
|
381 |
* Getting All FTA plugins.
|
382 |
-
*/
|
383 |
-
$fta_all_plugs = $FTA->fta_plugins();
|
384 |
/*
|
385 |
* Holds all the HTML.
|
386 |
-
*/
|
387 |
-
$returner = '<div class="fta_all_plugs col s12">';
|
388 |
/*
|
389 |
* IF plugins exists loop thorugh it and make html.
|
390 |
-
*/
|
391 |
-
if ( isset( $fta_all_plugs ) ) {
|
392 |
-
foreach ( $fta_all_plugs as $fta_plug ) {
|
393 |
-
$fta_settings_url = admin_url( 'admin.php?page=' . $fta_plug['slug'] );
|
394 |
-
// echo "<pre>"; print_r($fta_settings_url);exit();
|
395 |
/*
|
396 |
* Getting Image URL.
|
397 |
-
*/
|
398 |
-
$img_url = FTA_PLUGIN_URL . 'assets/images/' . $fta_plug['img_name'] . '';
|
399 |
/*
|
400 |
* Making Slug.
|
401 |
-
*/
|
402 |
-
$slug = $fta_plug['activate_slug'];
|
403 |
/*
|
404 |
* Making Button Label.
|
405 |
-
*/
|
406 |
-
|
407 |
-
if ( $fta_plug['status'] == 'activated' ) {
|
408 |
-
$btn = __( 'Deactivate', $FTA->fta_slug );
|
409 |
-
} else {
|
410 |
-
$btn = __( 'Activate', $FTA->fta_slug );
|
411 |
-
}
|
412 |
-
|
413 |
-
$returner .= sprintf(
|
414 |
'<div class="card col fta_single_plug s5 fta_plug_%5$s fta_plug_%4$s">
|
415 |
<div class="card-image waves-effect waves-block waves-light">
|
416 |
<img src="%2$s">
|
@@ -429,353 +548,161 @@ class FTA_Admin
|
|
429 |
<span class="card-title grey-text text-darken-4">%1$s<i class="material-icons right">close</i></span>
|
430 |
<p>%3$s</p>
|
431 |
</div>
|
432 |
-
</div>',
|
433 |
-
/* Variables starts here. */
|
434 |
-
$fta_plug['name'],
|
435 |
-
$img_url,
|
436 |
-
$fta_plug['description'],
|
437 |
-
$fta_plug['status'],
|
438 |
-
$slug,
|
439 |
-
$btn,
|
440 |
-
__( "Settings", $FTA->fta_slug ),
|
441 |
-
$fta_settings_url
|
442 |
-
);
|
443 |
-
}
|
444 |
-
}
|
445 |
-
return $returner .= '</div>';
|
446 |
-
}
|
447 |
-
|
448 |
-
/* fta_plugins_listing method ends here. */
|
449 |
/*
|
450 |
* fta_plugin_status on ajax.
|
451 |
* Returns the Success or Error Message.
|
452 |
* Change Plugin Status
|
453 |
-
*/
|
454 |
-
function fta_plugin_status()
|
455 |
-
{
|
456 |
/*
|
457 |
* Getting the Plugin Name.
|
458 |
-
*/
|
459 |
-
$fta_plugin = sanitize_text_field( $_POST['plugin'] );
|
460 |
/*
|
461 |
* Getting the Plugin status.
|
462 |
-
*/
|
463 |
-
$fta_plug_status = sanitize_text_field( $_POST['status'] );
|
464 |
/*
|
465 |
* Getting the Plugin main object.
|
466 |
-
*/
|
467 |
-
$Feed_Them_All = new Feed_Them_All();
|
468 |
/*
|
469 |
* Getting the FTA Plugin settings.
|
470 |
-
*/
|
471 |
-
$fta_settings = $Feed_Them_All::fta_get_settings();
|
472 |
/*
|
473 |
* Chaning status accroding to selected option of specific plugin.
|
474 |
-
*/
|
475 |
-
$fta_settings['plugins'][$fta_plugin]['status'] = $fta_plug_status;
|
476 |
-
if ( wp_verify_nonce( $_POST['fta_nonce'], 'fta-ajax-nonce' ) ) {
|
477 |
-
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
478 |
/*
|
479 |
* Updating the settings back into DB
|
480 |
-
*/
|
481 |
-
$status_updated = update_option( 'fta_settings', $fta_settings );
|
482 |
-
}
|
483 |
-
}
|
484 |
-
|
485 |
-
if ( $fta_plug_status == 'activated' ) {
|
486 |
-
$status = __( ' Activated', $Feed_Them_All->fta_slug );
|
487 |
-
} else {
|
488 |
-
$status = __( ' Deactivated', $Feed_Them_All->fta_slug );
|
489 |
-
}
|
490 |
-
|
491 |
/*
|
492 |
* If status is successfully changed
|
493 |
-
*/
|
494 |
-
|
495 |
-
if ( isset( $status_updated ) ) {
|
496 |
/*
|
497 |
* Sending back the success message
|
498 |
-
*/
|
499 |
-
echo wp_send_json_success( __( ucfirst( $fta_plugin ) . $status . ' Successfully', $Feed_Them_All->fta_slug ) ) ;
|
500 |
-
die;
|
501 |
-
} else {
|
502 |
/*
|
503 |
* Sending back the error message
|
504 |
-
*/
|
505 |
-
echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', $Feed_Them_All->fta_slug ) ) ;
|
506 |
-
die;
|
507 |
-
}
|
508 |
-
|
509 |
-
exit;
|
510 |
-
}
|
511 |
-
|
512 |
-
/* fta_plugin_status method ends here. */
|
513 |
-
/*
|
514 |
-
* Get the access token and save back into DB
|
515 |
-
*/
|
516 |
-
public function efbl_save_access_token_cb()
|
517 |
-
{
|
518 |
-
/*
|
519 |
-
* Getting the access token.
|
520 |
-
*/
|
521 |
-
$access_token = $_POST['access_token'];
|
522 |
-
/*
|
523 |
-
* Getting the access token.
|
524 |
-
*/
|
525 |
-
$id = $_POST['id'];
|
526 |
-
/*
|
527 |
-
* All accounts API endpoint
|
528 |
-
*/
|
529 |
-
$fta_api_url = 'https://graph.facebook.com/me/accounts?fields=access_token,username,id,name,fan_count,category,about&access_token=' . $access_token;
|
530 |
-
$args = array(
|
531 |
-
'timeout' => 150,
|
532 |
-
'sslverify' => false,
|
533 |
-
);
|
534 |
-
/*
|
535 |
-
* Getting all accounts
|
536 |
-
*/
|
537 |
-
$fta_pages = wp_remote_get( $fta_api_url, $args );
|
538 |
-
/*
|
539 |
-
* Descoding the array
|
540 |
-
*/
|
541 |
-
$fb_pages = json_decode( $fta_pages['body'] );
|
542 |
-
// echo wp_send_json_success($fb_pages);
|
543 |
-
// die();
|
544 |
-
/*
|
545 |
-
* Init array
|
546 |
-
*/
|
547 |
-
$approved_pages = array();
|
548 |
-
/*
|
549 |
-
* If pages exists loop over and save by ID key.
|
550 |
-
*/
|
551 |
-
|
552 |
-
if ( $fb_pages->data ) {
|
553 |
-
|
554 |
-
if ( 'fb' == $id ) {
|
555 |
-
$title = __( 'Approved Pages', 'easy-facebook-likebox' );
|
556 |
-
} else {
|
557 |
-
$title = __( 'Connected Instagram Accounts', 'easy-facebook-likebox' );
|
558 |
-
}
|
559 |
-
|
560 |
-
$efbl_all_pages_html = '<ul class="collection with-header"> <li class="collection-header"><h5>' . $title . '</h5>
|
561 |
-
<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>';
|
562 |
-
foreach ( $fb_pages->data as $efbl_page ) {
|
563 |
-
$page_logo_trasneint_name = "esf_logo_" . $efbl_page->id;
|
564 |
-
$auth_img_src = get_transient( $page_logo_trasneint_name );
|
565 |
-
|
566 |
-
if ( !$auth_img_src || '' == $auth_img_src ) {
|
567 |
-
//Get the image suource of author
|
568 |
-
$auth_img_src = 'https://graph.facebook.com/' . $efbl_page->id . '/picture?type=large&redirect=0&access_token=' . $access_token;
|
569 |
-
if ( $auth_img_src ) {
|
570 |
-
$auth_img_src = json_decode( jws_fetchUrl( $auth_img_src ) );
|
571 |
-
}
|
572 |
-
if ( $auth_img_src->data->url ) {
|
573 |
-
$auth_img_src = $auth_img_src->data->url;
|
574 |
-
}
|
575 |
-
//Store in a transient for 6 months
|
576 |
-
$auth_img_src = set_transient( $page_logo_trasneint_name, $auth_img_src, 180 * 60 * 60 * 24 );
|
577 |
-
}
|
578 |
-
|
579 |
-
$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;
|
580 |
-
/*
|
581 |
-
* Getting all accounts
|
582 |
-
*/
|
583 |
-
$fta_insta_accounts = wp_remote_get( $fta_insta_api_url, $args );
|
584 |
-
/*
|
585 |
-
* Descoding the array
|
586 |
-
*/
|
587 |
-
$fta_insta_accounts = json_decode( $fta_insta_accounts['body'] );
|
588 |
-
$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;
|
589 |
-
/*
|
590 |
-
* Getting all accounts
|
591 |
-
*/
|
592 |
-
$fta_insta_connected_account = wp_remote_get( $fta_insta_connected_api_url, $args );
|
593 |
-
/*
|
594 |
-
* Descoding the array
|
595 |
-
*/
|
596 |
-
$fta_insta_connected_account = json_decode( $fta_insta_connected_account['body'] );
|
597 |
-
|
598 |
-
if ( 'fb' == $id ) {
|
599 |
-
|
600 |
-
if ( isset( $efbl_page->username ) ) {
|
601 |
-
$efbl_username = $efbl_page->username;
|
602 |
-
$efbl_username_label = __( 'Username:', 'easy-facebook-likebox' );
|
603 |
-
} else {
|
604 |
-
$efbl_username = $efbl_page->id;
|
605 |
-
$efbl_username_label = __( 'ID:', 'easy-facebook-likebox' );
|
606 |
-
}
|
607 |
-
|
608 |
-
$efbl_all_pages_html .= sprintf(
|
609 |
-
'<li class="collection-item avatar li-' . $efbl_page->id . '">
|
610 |
-
<a href="https://web.facebook.com/' . $efbl_page->id . '" target="_blank">
|
611 |
-
<img src="%2$s" alt="" class="circle">
|
612 |
-
</a>
|
613 |
-
<span class="title">%1$s</span>
|
614 |
-
<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>
|
615 |
-
</li>',
|
616 |
-
$efbl_page->name,
|
617 |
-
$auth_img_src,
|
618 |
-
$efbl_page->category,
|
619 |
-
$efbl_username,
|
620 |
-
$efbl_username_label,
|
621 |
-
__( 'Copy', 'easy-facebook-likebox' )
|
622 |
-
);
|
623 |
-
}
|
624 |
-
|
625 |
-
if ( 'insta' == $id ) {
|
626 |
-
if ( $fta_insta_connected_account->ig_id ) {
|
627 |
-
$efbl_all_pages_html .= sprintf(
|
628 |
-
'<li class="collection-item avatar fta_insta_connected_account li-' . $fta_insta_connected_account->ig_id . '">
|
629 |
-
|
630 |
-
<a href="https://www.instagram.com/' . $fta_insta_connected_account->username . '" target="_blank">
|
631 |
-
<img src="%2$s" alt="" class="circle">
|
632 |
-
</a>
|
633 |
-
<span class="title">%1$s</span>
|
634 |
-
<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>
|
635 |
-
</li>',
|
636 |
-
$fta_insta_connected_account->name,
|
637 |
-
$fta_insta_connected_account->profile_picture_url,
|
638 |
-
$fta_insta_connected_account->id,
|
639 |
-
__( 'Instagram account connected with ' . $efbl_page->name . '', 'easy-facebook-likebox' ),
|
640 |
-
$fta_insta_connected_account->username,
|
641 |
-
__( 'ID:', 'easy-facebook-likebox' ),
|
642 |
-
__( 'Copy', 'easy-facebook-likebox' )
|
643 |
-
);
|
644 |
-
}
|
645 |
-
}
|
646 |
-
$efbl_page = (array) $efbl_page;
|
647 |
-
/*
|
648 |
-
* Making it by ID
|
649 |
-
*/
|
650 |
-
$approved_pages[$efbl_page['id']] = $efbl_page;
|
651 |
-
$approved_pages[$efbl_page['id']]['instagram_accounts'] = $fta_insta_accounts;
|
652 |
-
$approved_pages[$efbl_page['id']]['instagram_connected_account'] = $fta_insta_connected_account;
|
653 |
-
}
|
654 |
-
$efbl_all_pages_html .= '</ul>';
|
655 |
-
}
|
656 |
-
|
657 |
-
/*
|
658 |
-
* All accounts API endpoint
|
659 |
-
*/
|
660 |
-
$fta_self_url = 'https://graph.facebook.com/me?fields=id,name&access_token=' . $access_token;
|
661 |
-
/*
|
662 |
-
* Getting all accounts
|
663 |
-
*/
|
664 |
-
$fta_self_data = wp_remote_get( $fta_self_url, $args );
|
665 |
-
/*
|
666 |
-
* Descoding the array
|
667 |
-
*/
|
668 |
-
$fta_self_data = json_decode( $fta_self_data['body'] );
|
669 |
-
$fta_self_data = (array) $fta_self_data;
|
670 |
-
/*
|
671 |
-
* Getting Main Class
|
672 |
-
*/
|
673 |
-
$FTA = new Feed_Them_All();
|
674 |
-
/*
|
675 |
-
* Getting All Settings
|
676 |
-
*/
|
677 |
-
$fta_settings = $FTA->fta_get_settings();
|
678 |
-
$fta_settings['plugins']['facebook']['approved_pages'] = $approved_pages;
|
679 |
-
$fta_settings['plugins']['facebook']['access_token'] = $access_token;
|
680 |
-
$fta_settings['plugins']['facebook']['author'] = $fta_self_data;
|
681 |
-
/*
|
682 |
-
* Saving values in wp options table.
|
683 |
-
*/
|
684 |
-
$efbl_saved = update_option( 'fta_settings', $fta_settings );
|
685 |
-
/*
|
686 |
-
* Checking if option is saved successfully.
|
687 |
-
*/
|
688 |
-
|
689 |
-
if ( isset( $efbl_saved ) ) {
|
690 |
-
/*
|
691 |
-
* Return success message and die.
|
692 |
-
*/
|
693 |
-
echo wp_send_json_success( array( __( 'Successfully Authenticated! Taking you to next step', 'easy-facebook-likebox' ), $efbl_all_pages_html ) ) ;
|
694 |
-
die;
|
695 |
-
} else {
|
696 |
-
/*
|
697 |
-
* Return error message and die.
|
698 |
-
*/
|
699 |
-
echo wp_send_json_error( __( 'Something went wrong! Refresh the page and try Again', 'easy-facebook-likebox' ) ) ;
|
700 |
-
die;
|
701 |
-
}
|
702 |
-
|
703 |
-
}
|
704 |
-
|
705 |
-
/* efbl_save_access_token_cb Method ends here. */
|
706 |
/*
|
707 |
* fta_remove_at on ajax.
|
708 |
* Returns the Success or Error Message.
|
709 |
* Remove access token and data
|
710 |
-
*/
|
711 |
-
function fta_remove_at()
|
712 |
-
{
|
713 |
/*
|
714 |
* Getting the Plugin main object.
|
715 |
-
*/
|
716 |
-
$Feed_Them_All = new Feed_Them_All();
|
717 |
/*
|
718 |
* Getting the FTA Plugin settings.
|
719 |
-
*/
|
720 |
-
$fta_settings = $Feed_Them_All->fta_get_settings();
|
721 |
-
if ( wp_verify_nonce( $_POST['fta_nonce'], 'fta-ajax-nonce' ) ) {
|
722 |
-
|
723 |
-
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
724 |
-
$access_token = $fta_settings['plugins']['facebook']['access_token'];
|
725 |
-
unset( $fta_settings['plugins']['facebook']['approved_pages'] );
|
726 |
-
unset( $fta_settings['plugins']['facebook']['access_token'] );
|
|
|
727 |
/*
|
728 |
* Updating the settings back into DB
|
729 |
-
*/
|
730 |
-
$delted_data = update_option( 'fta_settings', $fta_settings );
|
731 |
-
$response = wp_remote_request( 'https://graph.facebook.com/v4.0/me/permissions?access_token=' . $access_token . '', array(
|
732 |
-
'method' => 'DELETE',
|
733 |
-
) );
|
734 |
-
$body = wp_remote_retrieve_body( $response );
|
735 |
-
}
|
736 |
-
|
737 |
-
}
|
738 |
/*
|
739 |
* If status is successfully changed
|
740 |
-
*/
|
741 |
-
|
742 |
-
if ( isset( $delted_data ) ) {
|
743 |
/*
|
744 |
* Sending back the success message
|
745 |
-
*/
|
746 |
-
echo wp_send_json_success( __( 'Deleted', $Feed_Them_All->fta_slug ) ) ;
|
747 |
-
die;
|
748 |
-
} else {
|
749 |
/*
|
750 |
* Sending back the error message
|
751 |
-
*/
|
752 |
-
echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', $Feed_Them_All->fta_slug ) ) ;
|
753 |
-
die;
|
754 |
-
}
|
755 |
-
|
756 |
-
exit;
|
757 |
-
}
|
758 |
-
|
759 |
-
/* fta_remove_at method ends here. */
|
760 |
/**
|
761 |
* Display a nag to ask rating.
|
762 |
-
*/
|
763 |
-
public function fta_admin_notice()
|
764 |
-
{
|
765 |
-
if ( !current_user_can( 'install_plugins' ) ) {
|
766 |
-
return;
|
767 |
-
}
|
768 |
-
global $pagenow ;
|
769 |
-
$Feed_Them_All = new Feed_Them_All();
|
770 |
-
$install_date = $Feed_Them_All->fta_get_settings( 'installDate' );
|
771 |
-
$display_date = date( 'Y-m-d h:i:s' );
|
772 |
-
$datetime1 = new DateTime( $install_date );
|
773 |
-
$datetime2 = new DateTime( $display_date );
|
774 |
-
$diff_intrval = round( ($datetime2->format( 'U' ) - $datetime1->format( 'U' )) / (60 * 60 * 24) );
|
775 |
-
// echo '<pre>'; print_r();exit();
|
776 |
-
|
777 |
-
if ( $diff_intrval >= 6 && get_site_option( 'fta_supported' ) != "yes" ) {
|
778 |
-
$html = sprintf(
|
779 |
'<div style="position:relative;padding-right:80px;" class="update-nag fta_msg fta_review">
|
780 |
|
781 |
<p>%s<b>%s</b>%s</p>
|
@@ -796,20 +723,20 @@ class FTA_Admin
|
|
796 |
</a>
|
797 |
<div class="fta_HideRating" style="position:absolute;right:10px;cursor:pointer;top:4px;color: #029be4;"> <div style="font-weight:bold;" class="dashicons dashicons-no-alt"></div><span style="margin-left: 2px;">%s</span></div>
|
798 |
</div>
|
799 |
-
</div>',
|
800 |
-
__( 'Awesome, you have been using ', 'easy-facebook-likebox' ),
|
801 |
-
__( 'Easy Social Feed ', 'easy-facebook-likebox' ),
|
802 |
-
__( 'for more than 1 week.', 'easy-facebook-likebox' ),
|
803 |
-
__( 'May I ask you to give it a ', 'easy-facebook-likebox' ),
|
804 |
-
__( '5-star ', 'easy-facebook-likebox' ),
|
805 |
-
__( 'rating on Wordpress? ', 'easy-facebook-likebox' ),
|
806 |
-
__( 'This will help to spread its popularity and to make this plugin a better one.', 'easy-facebook-likebox' ),
|
807 |
-
__( 'Your help is much appreciated. Thank you very much. ', 'easy-facebook-likebox' ),
|
808 |
-
__( 'I Like Easy Social Feed - It increased engagement on my site', 'easy-facebook-likebox' ),
|
809 |
-
__( 'I already rated it', 'easy-facebook-likebox' ),
|
810 |
-
__( 'No, not good enough, I do not like to rate it', 'easy-facebook-likebox' ),
|
811 |
-
__( 'Dismiss', 'easy-facebook-likebox' )
|
812 |
-
);
|
813 |
$script = ' <script>
|
814 |
jQuery( document ).ready(function( $ ) {
|
815 |
|
@@ -833,14 +760,18 @@ class FTA_Admin
|
|
833 |
})
|
834 |
|
835 |
});
|
836 |
-
</script>';
|
837 |
-
echo $html . $script ;
|
838 |
-
}
|
839 |
-
|
840 |
-
|
841 |
-
if ( get_site_option( 'fta_upgraded_notice' ) != "yes" ) {
|
842 |
-
$
|
843 |
-
|
|
|
|
|
|
|
|
|
844 |
<h5 style="color: #fff;">%s</h5>
|
845 |
<p>%s</p>
|
846 |
<ol>
|
@@ -855,18 +786,18 @@ class FTA_Admin
|
|
855 |
</a>
|
856 |
<div class="fta_HideUpgradedMsg" style="position:absolute;right:10px;cursor:pointer;top:10px;"> <div style="font-weight:bold;" class="dashicons dashicons-no-alt"></div><span style="margin-left: 2px;">%s</span></div>
|
857 |
</div>
|
858 |
-
</div>',
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
jQuery( document ).ready(function( $ ) {
|
871 |
|
872 |
jQuery(\'.fta_HideUpgradedMsg\').click(function(){
|
@@ -889,57 +820,96 @@ class FTA_Admin
|
|
889 |
})
|
890 |
|
891 |
});
|
892 |
-
</script>';
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
|
|
|
|
898 |
/**
|
899 |
* Save the notice closed option.
|
900 |
-
*/
|
901 |
-
public function fta_supported_func()
|
902 |
-
{
|
903 |
-
update_site_option( 'fta_supported', 'yes' );
|
904 |
-
echo json_encode( array( "success" ) ) ;
|
905 |
-
exit;
|
906 |
-
}
|
907 |
-
|
908 |
-
public function fta_upgraded_msg_dismiss()
|
909 |
-
{
|
910 |
-
update_site_option( 'fta_upgraded_notice', 'yes' );
|
911 |
-
echo json_encode( array( "success" ) ) ;
|
912 |
-
exit;
|
913 |
-
}
|
914 |
-
|
915 |
/**
|
916 |
* Add powered by text in admin footer
|
917 |
*
|
918 |
* @param string $text Default footer text.
|
919 |
*
|
920 |
* @return string
|
921 |
-
*/
|
922 |
-
function fta_admin_footer_text( $text )
|
923 |
-
{
|
924 |
-
$screen = get_current_screen();
|
925 |
-
$arr = array(
|
926 |
-
'easy-social-feed_page_mif',
|
927 |
-
'toplevel_page_feed-them-all',
|
928 |
-
'easy-social-feed_page_feed-them-all-account',
|
929 |
-
'easy-social-feed_page_feed-them-all-contact',
|
930 |
-
'easy-social-feed_page_feed-them-all-pricing',
|
931 |
-
'easy-social-feed_page_easy-facebook-likebox'
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
$
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
945 |
$FTA_Admin = new FTA_Admin();
|
1 |
+
<?php
|
2 |
+
|
3 |
/*
|
4 |
* Stop execution if someone tried to get file directly.
|
5 |
+
*/
|
6 |
+
if ( !defined( 'ABSPATH' ) ) {
|
7 |
+
exit;
|
8 |
+
}
|
9 |
+
//======================================================================
|
10 |
+
// Code for the admin funcionality of Feed Them All
|
11 |
+
//======================================================================
|
12 |
+
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 |
* admin_footer_text hooks fires for displaying admin footer text.
|
55 |
* fta_admin_footer_text method will be call.
|
56 |
+
*/
|
57 |
+
add_filter( 'admin_footer_text', array( $this, 'fta_admin_footer_text' ) );
|
|
|
|
|
|
|
|
|
|
|
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 |
+
add_action( 'admin_head', array( $this, 'esf_hide_notices' ) );
|
69 |
+
add_action( 'pre_get_posts', array( $this, 'esf_exclude_demo_pages' ), 1 );
|
70 |
+
}
|
71 |
+
|
72 |
+
/* __construct Method ends here. */
|
73 |
+
public function esf_hide_notices()
|
74 |
+
{
|
75 |
+
$screen = get_current_screen();
|
76 |
+
if ( $screen->base == 'admin_page_esf_welcome' ) {
|
77 |
+
remove_all_actions( 'admin_notices' );
|
78 |
+
}
|
79 |
+
echo "<style>.toplevel_page_feed-them-all .wp-menu-image img{padding-top: 4px!important;}</style>" ;
|
80 |
+
// echo "<pre>"; print_r($screen->base);exit();
|
81 |
+
}
|
82 |
+
|
83 |
/*
|
84 |
* fta_frontend_style will enqueue style and js files.
|
85 |
+
*/
|
86 |
+
public function fta_frontend_style()
|
87 |
+
{
|
88 |
/*
|
89 |
* Esf Custom Fonts Css.
|
90 |
+
*/
|
91 |
+
wp_enqueue_style( 'esf-fonts', FTA_PLUGIN_URL . 'assets/css/esf-custom-fonts.css' );
|
92 |
+
}
|
93 |
+
|
94 |
+
/* fta_frontend_style Method ends here. */
|
95 |
/*
|
96 |
* fta_admin_style will enqueue style and js files.
|
97 |
* Returns hook name of the current page in admin.
|
98 |
* $hook will contain the hook name.
|
99 |
+
*/
|
100 |
+
public function fta_admin_style( $hook )
|
101 |
+
{
|
102 |
+
// exit( $hook);
|
103 |
/*
|
104 |
* Following files should load only on fta page in backend.
|
105 |
+
*/
|
106 |
+
if ( 'toplevel_page_feed-them-all' !== $hook && 'easy-social-feed_page_mif' !== $hook && 'easy-social-feed_page_easy-facebook-likebox' !== $hook && 'admin_page_esf_welcome' !== $hook && 'easy-social-feed_page_esf_recommendations' !== $hook ) {
|
107 |
+
return;
|
108 |
+
}
|
109 |
/*
|
110 |
* Base css file for admin area.
|
111 |
+
*/
|
112 |
+
wp_enqueue_style( 'materialize.min', FTA_PLUGIN_URL . 'assets/css/materialize.min.css' );
|
113 |
/*
|
114 |
* Css file for admin area.
|
115 |
+
*/
|
116 |
+
wp_enqueue_style( 'fta_animations', FTA_PLUGIN_URL . 'assets/css/fta_animations.css' );
|
117 |
/*
|
118 |
* Css file for admin area.
|
119 |
+
*/
|
120 |
+
wp_enqueue_style( 'fta_admin_style', FTA_PLUGIN_URL . 'assets/css/fta_admin_style.css' );
|
121 |
/*
|
122 |
* Base script file for admin area.
|
123 |
+
*/
|
124 |
+
wp_enqueue_script( 'materialize.min', FTA_PLUGIN_URL . 'assets/js/materialize.min.js', array( 'jquery' ) );
|
125 |
/*
|
126 |
* For sliding animations.
|
127 |
+
*/
|
128 |
+
wp_enqueue_script( 'jquery-effects-slide' );
|
129 |
/*
|
130 |
* Copy To Clipboard script file for admin area.
|
131 |
+
*/
|
132 |
+
wp_enqueue_script( 'clipboard' );
|
133 |
/*
|
134 |
* Custom scripts file for admin area.
|
135 |
+
*/
|
136 |
+
wp_enqueue_script( 'fta_admin_jquery', FTA_PLUGIN_URL . 'assets/js/fta-admin.js', array( 'jquery' ) );
|
137 |
+
// echo "<pre>";
|
138 |
+
// print_r(admin_url('admin-ajax.php'));exit();
|
139 |
+
wp_localize_script( 'fta_admin_jquery', 'fta', array(
|
140 |
+
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
141 |
+
'nonce' => wp_create_nonce( 'fta-ajax-nonce' ),
|
142 |
+
) );
|
143 |
+
wp_enqueue_script( 'media-upload' );
|
144 |
+
wp_enqueue_media();
|
145 |
+
}
|
146 |
+
|
147 |
+
/* fta_admin_style Method ends here. */
|
148 |
/*
|
149 |
* fta_menu will add admin page.
|
150 |
* Returns nothing.
|
151 |
+
*/
|
152 |
+
public function fta_menu()
|
153 |
+
{
|
154 |
/*
|
155 |
* URL of the plugin icon.
|
156 |
+
*/
|
157 |
+
$icon_url = FTA_PLUGIN_URL . 'assets/images/plugin_icon.png';
|
158 |
/*
|
159 |
* add_menu_page will add menu into the page.
|
160 |
* string $page_title
|
162 |
* string $capability
|
163 |
* string $menu_slug
|
164 |
* callable $function
|
165 |
+
*/
|
166 |
+
add_menu_page(
|
167 |
+
__( 'Easy Social Feed', 'easy-facebook-likebox' ),
|
168 |
+
__( 'Easy Social Feed', 'easy-facebook-likebox' ),
|
169 |
+
'administrator',
|
170 |
+
'feed-them-all',
|
171 |
+
array( $this, 'fta_page' ),
|
172 |
+
$icon_url
|
173 |
+
);
|
174 |
/*
|
175 |
* Add wellcome page but not visible in menu
|
176 |
+
*/
|
177 |
+
add_submenu_page(
|
178 |
+
null,
|
179 |
+
__( 'Welcome', 'easy-facebook-likebox' ),
|
180 |
+
__( 'Welcome', 'easy-facebook-likebox' ),
|
181 |
+
'administrator',
|
182 |
+
'esf_welcome',
|
183 |
+
array( $this, 'esf_welcome_page' )
|
184 |
+
);
|
185 |
+
if ( efl_fs()->is_free_plan() ) {
|
186 |
+
/*
|
187 |
+
* Add Recommendations page.
|
188 |
+
*/
|
189 |
+
add_submenu_page(
|
190 |
+
'feed-them-all',
|
191 |
+
__( 'Recommendations', 'easy-facebook-likebox' ),
|
192 |
+
__( 'Recommendations', 'easy-facebook-likebox' ),
|
193 |
+
'administrator',
|
194 |
+
'esf_recommendations',
|
195 |
+
array( $this, 'esf_recommendations_page' ),
|
196 |
+
4
|
197 |
+
);
|
198 |
+
}
|
199 |
+
}
|
200 |
+
|
201 |
+
/* fta_menu Method ends here. */
|
202 |
/*
|
203 |
* esf_welcome_page contains the html/markup of the welcome page.
|
204 |
* Returns Html.
|
205 |
+
*/
|
206 |
+
function esf_welcome_page()
|
207 |
+
{
|
208 |
+
$fta_class = new Feed_Them_All();
|
209 |
+
$fta_settings = $fta_class->fta_get_settings();
|
210 |
+
$returner = null;
|
211 |
/*
|
212 |
* Welcome page html.
|
213 |
* esf_welcome_page_html filter can be used to customize base html of setting page.
|
214 |
+
*/
|
215 |
+
$returner .= sprintf(
|
216 |
'<div class="esf_loader_wrap">
|
217 |
<div class="esf_loader_inner">
|
218 |
<div class="loader esf_welcome_loader"></div>
|
286 |
</div>
|
287 |
</div>
|
288 |
</div>
|
289 |
+
</div>',
|
290 |
+
/* Variables starts here. */
|
291 |
+
__( "Easy Social Feed plugin have following four key fetaures. ", $fta_class->fta_slug ),
|
292 |
+
__( "Facebook Page Plugin (Like box)", $fta_class->fta_slug ),
|
293 |
+
__( "Displays a Facebook Page Plugin. The Facebook Page Plugin is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website.", $fta_class->fta_slug ),
|
294 |
+
__( "Use this feature", $fta_class->fta_slug ),
|
295 |
+
__( "Custom Facebook Feed", $fta_class->fta_slug ),
|
296 |
+
__( "Display a customizable, responsive and SEO friendly feed of your Facebook posts on your site. Supports all types of posts, including images, videos, status and events.", $fta_class->fta_slug ),
|
297 |
+
__( "Auto PopUp", $fta_class->fta_slug ),
|
298 |
+
__( "Display Page Pugin (like box) or anything in the popup/lightbox. It supports, HTML and shortcode.", $fta_class->fta_slug ),
|
299 |
+
__( "Custom Instagram Feed", $fta_class->fta_slug ),
|
300 |
+
__( "Display your stunning photos and videos from your Instagram account on your site. It’s responsive), highly customizable and SEO friendly.", $fta_class->fta_slug ),
|
301 |
+
__( "Welcome", $fta_class->fta_slug ),
|
302 |
+
__( "Quick start video", $fta_class->fta_slug )
|
303 |
+
);
|
304 |
+
// echo "<pre>"; print_r($returner);exit();
|
305 |
+
echo $returner = apply_filters( 'esf_welcome_page_html', $returner ) ;
|
306 |
+
}
|
307 |
+
|
308 |
+
/* esf_welcome_page method ends here. */
|
309 |
+
/*
|
310 |
+
* esf_recommendations_page contains the html/markup of the welcome page.
|
311 |
+
* Returns Html.
|
312 |
+
*/
|
313 |
+
function esf_recommendations_page()
|
314 |
+
{
|
315 |
+
$fta_class = new Feed_Them_All();
|
316 |
+
$fta_settings = $fta_class->fta_get_settings();
|
317 |
+
$returner = null;
|
318 |
+
/*
|
319 |
+
* Welcome page html.
|
320 |
+
* esf_welcome_page_html filter can be used to customize base html of setting page.
|
321 |
+
*/
|
322 |
+
$returner .= sprintf(
|
323 |
+
'<div class="fta_wrap z-depth-1 fl-recomend-tab-holder">
|
324 |
+
<div class="fta_wrap_inner">
|
325 |
+
<div class="fl-recomend-plugins-holder">
|
326 |
+
<div class="fl-recomend-head">
|
327 |
+
<h4>%1$s</h4>
|
328 |
+
<p>%2$s</p>
|
329 |
+
</div>
|
330 |
+
<div class="row">
|
331 |
+
|
332 |
+
<div class="col s3 fl-recomend-wraper">
|
333 |
+
<h4>%12$s</h4>
|
334 |
+
<p>%13$s</p>
|
335 |
+
<div class="fl-recomend-meta-wraper">
|
336 |
+
<p>%14$s</p>
|
337 |
+
<p><span title="%6$s" style="color: #ffb900;" class="stars">★ ★ ★ ★ ★ </span></p>
|
338 |
+
</div>
|
339 |
+
<div class="fl-recomends-action">
|
340 |
+
<a href="' . $this->esf_get_plugin_install_link( 'wpoptin' ) . '">%7$s</a>
|
341 |
+
<a class="right" href="https://wordpress.org/plugins/wpoptin/" target="_blank">%8$s</a>
|
342 |
+
</div>
|
343 |
+
</div>
|
344 |
+
|
345 |
+
<div class="col s3 fl-recomend-wraper">
|
346 |
+
<h4>%9$s</h4>
|
347 |
+
<p>%10$s</p>
|
348 |
+
<div class="fl-recomend-meta-wraper">
|
349 |
+
<p>%11$s</p>
|
350 |
+
<p><span title="%6$s" style="color: #ffb900;" class="stars">★ ★ ★ ★ ★ </span></p>
|
351 |
+
</div>
|
352 |
+
<div class="fl-recomends-action">
|
353 |
+
<a href="' . $this->esf_get_plugin_install_link( 'floating-links' ) . '" >%7$s</a>
|
354 |
+
<a class="right" href="https://wordpress.org/plugins/floating-links/" target="_blank">%8$s</a>
|
355 |
+
</div>
|
356 |
+
</div>
|
357 |
+
</div>
|
358 |
+
<div class="row">
|
359 |
+
<div class="col s3 fl-recomend-wraper">
|
360 |
+
<h4>%15$s</h4>
|
361 |
+
<p>%16$s</p>
|
362 |
+
<div class="fl-recomend-meta-wraper">
|
363 |
+
<p>%17$s</p>
|
364 |
+
<p><span title="%6$s" style="color: #ffb900;" class="stars">★ ★ ★ ★ ★ </span></p>
|
365 |
+
</div>
|
366 |
+
<div class="fl-recomends-action">
|
367 |
+
<a href="' . $this->esf_get_plugin_install_link( 'my-instagram-feed' ) . '">%7$s</a>
|
368 |
+
<a class="right" href="https://wordpress.org/plugins/my-instagram-feed/" target="_blank">%8$s</a>
|
369 |
+
</div>
|
370 |
+
</div>
|
371 |
+
</div>
|
372 |
+
</div>
|
373 |
+
<div class="fl-recomend-partner">
|
374 |
+
<div class="fl-recomend-head">
|
375 |
+
<h4>%18$s</h4>
|
376 |
+
</div>
|
377 |
+
<div class="row">
|
378 |
+
<div class="col s3 fl-recomend-wraper">
|
379 |
+
<img src="' . FTA_PLUGIN_URL . '/assets/images/cloudways-logo.png" />
|
380 |
+
<p>%19$s</p>
|
381 |
+
<p>%20$s</p>
|
382 |
+
<div class="fl-recomends-action">
|
383 |
+
<a href="https://www.cloudways.com" rel="noopener noreferrer" target="_blank">%8$s</a>
|
384 |
+
</div>
|
385 |
+
</div>
|
386 |
+
</div>
|
387 |
+
</div>
|
388 |
+
</div>
|
389 |
+
</div>',
|
390 |
+
/* Variables starts here. */
|
391 |
+
/* Variables starts here. */
|
392 |
+
__( "Love this plugin?", $fta_class->fta_slug ),
|
393 |
+
__( "Then why not try our other awesome and FREE plugins.", $fta_class->fta_slug ),
|
394 |
+
__( "Easy Social Post Feed", $fta_class->fta_slug ),
|
395 |
+
__( "The easiest and beginner-friendly plugin for <b>Custom Instagram Feed</b>(Display photos, gallery and videos), <b>Custom Facebook Feed</b> (posts, links, status, photos, videos, events), <b>Facebook Page Plugin</b> (previously Facebook Like Box) and <b>Auto PopUp.</b>", $fta_class->fta_slug ),
|
396 |
+
__( "Active Installs: 100,000+", $fta_class->fta_slug ),
|
397 |
+
__( "5-Star Rating", $fta_class->fta_slug ),
|
398 |
+
__( "Install now", $fta_class->fta_slug ),
|
399 |
+
__( "More Info", $fta_class->fta_slug ),
|
400 |
+
__( "Floating Links", $fta_class->fta_slug ),
|
401 |
+
__( "Displays Fancy Floating Back To Top And Go To Bottom Links Along With Go To Next Post, Previous Post, Home Icon And Random Post Links On Post Detail Pages.", $fta_class->fta_slug ),
|
402 |
+
__( "Active Installs: 800+", $fta_class->fta_slug ),
|
403 |
+
__( "WPOptin", $fta_class->fta_slug ),
|
404 |
+
__( "The easiest and beginner friendly <b>opt-in</b> plugin to grow email <b>subscribers</b> list, <b>sell more</b>, get more <b>phone calls</b>, increase <b>Facebook fan page likes</b> and get more <b>leads</b> faster than ever.", $fta_class->fta_slug ),
|
405 |
+
__( "Just Released", $fta_class->fta_slug ),
|
406 |
+
__( "Easy Social Photos Gallery", $fta_class->fta_slug ),
|
407 |
+
__( "Display photos and videos from a non-private Instagram account in responsive and customizable layout.", $fta_class->fta_slug ),
|
408 |
+
__( "Active Installs: 100+", $fta_class->fta_slug ),
|
409 |
+
__( "Our Partners", $fta_class->fta_slug ),
|
410 |
+
__( "We simplify hosting experiences because we believe in empowering individuals, teams and businesses. We set high standards of <b>performance</b>, commit to complete freedom of <b>choice</b> coupled with <b>simplicity</b> and agility in every process.", $fta_class->fta_slug ),
|
411 |
+
__( "Backed by an <b>innovative</b> approach, our platform is built on <b>best-of-breed technologies</b> and industry-leading infrastructure providers that creates smooth managed cloud hosting experiences. And, we do this by investing in the right talent and by organizing the perfect <b>teams</b>.", $fta_class->fta_slug )
|
412 |
+
);
|
413 |
+
// echo "<pre>"; print_r($returner);exit();
|
414 |
+
echo $returner = apply_filters( 'esf_welcome_page_html', $returner ) ;
|
415 |
+
}
|
416 |
+
|
417 |
+
/* esf_recommendations_page method ends here. */
|
418 |
+
/* fta_menu Method ends here. */
|
419 |
/*
|
420 |
* feed-them-all-content contains the html/markup of the page.
|
421 |
* Returns nothing.
|
422 |
+
*/
|
423 |
+
function fta_page()
|
424 |
+
{
|
425 |
+
$fta_class = new Feed_Them_All();
|
426 |
+
$fta_settings = $fta_class->fta_get_settings();
|
427 |
+
$current_user = wp_get_current_user();
|
428 |
+
$returner = null;
|
429 |
/*
|
430 |
* Base html.
|
431 |
* fta_base_html filter can be used to customize base html of setting page.
|
432 |
+
*/
|
433 |
+
$returner .= sprintf(
|
434 |
'<div class="esf_loader_wrap">
|
435 |
<div class="esf_loader_inner">
|
436 |
<div class="loader"></div>
|
465 |
</div>
|
466 |
</div>
|
467 |
</div>
|
468 |
+
</div>',
|
469 |
+
/* Variables starts here. */
|
470 |
+
__( "Welcome", $fta_class->fta_slug ),
|
471 |
+
__( "to the modules management page.", $fta_class->fta_slug ),
|
472 |
+
__( "You can disable or enable the modules you are not using to only include resources you need. If you are using all features, then keep these active.", $fta_class->fta_slug ),
|
473 |
+
$this->fta_plugins_listing()
|
474 |
+
);
|
475 |
+
if ( efl_fs()->is_free_plan() ) {
|
476 |
$returner .= '<div class="espf-upgrade">
|
477 |
<h2>' . __( 'Easy Social Feed <b>Pro</b>', 'easy-facebook-likebox' ) . '</h2>
|
478 |
<p>' . __( 'Unlock all premium features such as Advanced PopUp, More Fancy Layouts, Post filters like events, images, videos, and albums, gallery in the PopUp and above all top notch priority support.', 'easy-facebook-likebox' ) . '</p>
|
479 |
<p>' . __( 'Upgrade today and get a 10% discount! On the checkout click on "Have a promotional code?" and enter <code>espf10</code>', 'easy-facebook-likebox' ) . '</p>
|
480 |
<a href="' . efl_fs()->get_upgrade_url() . '" class="waves-effect waves-light btn"><i class="material-icons right">lock_open</i>' . __( 'Upgrade To Pro', 'easy-facebook-likebox' ) . '</a>
|
481 |
+
</div>';
|
482 |
+
}
|
483 |
+
// echo "<pre>"; print_r($returner);exit();
|
484 |
+
echo $returner = apply_filters( 'fta_base_html', $returner ) ;
|
485 |
+
}
|
486 |
+
|
487 |
+
/* fta_page method ends here. */
|
488 |
/*
|
489 |
* fta_plugins_listing contains the html/markup of the listings in dashboard.
|
490 |
* Returns HTML.
|
491 |
+
*/
|
492 |
+
private function fta_plugins_listing()
|
493 |
+
{
|
494 |
/*
|
495 |
* Getting main class.
|
496 |
+
*/
|
497 |
+
$FTA = new Feed_Them_All();
|
498 |
+
// echo "<pre>"; print_r($FTA->fta_get_settings());exit();
|
499 |
/*
|
500 |
* Getting All FTA plugins.
|
501 |
+
*/
|
502 |
+
$fta_all_plugs = $FTA->fta_plugins();
|
503 |
/*
|
504 |
* Holds all the HTML.
|
505 |
+
*/
|
506 |
+
$returner = '<div class="fta_all_plugs col s12">';
|
507 |
/*
|
508 |
* IF plugins exists loop thorugh it and make html.
|
509 |
+
*/
|
510 |
+
if ( isset( $fta_all_plugs ) ) {
|
511 |
+
foreach ( $fta_all_plugs as $fta_plug ) {
|
512 |
+
$fta_settings_url = admin_url( 'admin.php?page=' . $fta_plug['slug'] );
|
513 |
+
// echo "<pre>"; print_r($fta_settings_url);exit();
|
514 |
/*
|
515 |
* Getting Image URL.
|
516 |
+
*/
|
517 |
+
$img_url = FTA_PLUGIN_URL . 'assets/images/' . $fta_plug['img_name'] . '';
|
518 |
/*
|
519 |
* Making Slug.
|
520 |
+
*/
|
521 |
+
$slug = $fta_plug['activate_slug'];
|
522 |
/*
|
523 |
* Making Button Label.
|
524 |
+
*/
|
525 |
+
|
526 |
+
if ( $fta_plug['status'] == 'activated' ) {
|
527 |
+
$btn = __( 'Deactivate', $FTA->fta_slug );
|
528 |
+
} else {
|
529 |
+
$btn = __( 'Activate', $FTA->fta_slug );
|
530 |
+
}
|
531 |
+
|
532 |
+
$returner .= sprintf(
|
533 |
'<div class="card col fta_single_plug s5 fta_plug_%5$s fta_plug_%4$s">
|
534 |
<div class="card-image waves-effect waves-block waves-light">
|
535 |
<img src="%2$s">
|
548 |
<span class="card-title grey-text text-darken-4">%1$s<i class="material-icons right">close</i></span>
|
549 |
<p>%3$s</p>
|
550 |
</div>
|
551 |
+
</div>',
|
552 |
+
/* Variables starts here. */
|
553 |
+
$fta_plug['name'],
|
554 |
+
$img_url,
|
555 |
+
$fta_plug['description'],
|
556 |
+
$fta_plug['status'],
|
557 |
+
$slug,
|
558 |
+
$btn,
|
559 |
+
__( "Settings", $FTA->fta_slug ),
|
560 |
+
$fta_settings_url
|
561 |
+
);
|
562 |
+
}
|
563 |
+
}
|
564 |
+
return $returner .= '</div>';
|
565 |
+
}
|
566 |
+
|
567 |
+
/* fta_plugins_listing method ends here. */
|
568 |
/*
|
569 |
* fta_plugin_status on ajax.
|
570 |
* Returns the Success or Error Message.
|
571 |
* Change Plugin Status
|
572 |
+
*/
|
573 |
+
function fta_plugin_status()
|
574 |
+
{
|
575 |
/*
|
576 |
* Getting the Plugin Name.
|
577 |
+
*/
|
578 |
+
$fta_plugin = sanitize_text_field( $_POST['plugin'] );
|
579 |
/*
|
580 |
* Getting the Plugin status.
|
581 |
+
*/
|
582 |
+
$fta_plug_status = sanitize_text_field( $_POST['status'] );
|
583 |
/*
|
584 |
* Getting the Plugin main object.
|
585 |
+
*/
|
586 |
+
$Feed_Them_All = new Feed_Them_All();
|
587 |
/*
|
588 |
* Getting the FTA Plugin settings.
|
589 |
+
*/
|
590 |
+
$fta_settings = $Feed_Them_All::fta_get_settings();
|
591 |
/*
|
592 |
* Chaning status accroding to selected option of specific plugin.
|
593 |
+
*/
|
594 |
+
$fta_settings['plugins'][$fta_plugin]['status'] = $fta_plug_status;
|
595 |
+
if ( wp_verify_nonce( $_POST['fta_nonce'], 'fta-ajax-nonce' ) ) {
|
596 |
+
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
597 |
/*
|
598 |
* Updating the settings back into DB
|
599 |
+
*/
|
600 |
+
$status_updated = update_option( 'fta_settings', $fta_settings );
|
601 |
+
}
|
602 |
+
}
|
603 |
+
|
604 |
+
if ( $fta_plug_status == 'activated' ) {
|
605 |
+
$status = __( ' Activated', $Feed_Them_All->fta_slug );
|
606 |
+
} else {
|
607 |
+
$status = __( ' Deactivated', $Feed_Them_All->fta_slug );
|
608 |
+
}
|
609 |
+
|
610 |
/*
|
611 |
* If status is successfully changed
|
612 |
+
*/
|
613 |
+
|
614 |
+
if ( isset( $status_updated ) ) {
|
615 |
/*
|
616 |
* Sending back the success message
|
617 |
+
*/
|
618 |
+
echo wp_send_json_success( __( ucfirst( $fta_plugin ) . $status . ' Successfully', $Feed_Them_All->fta_slug ) ) ;
|
619 |
+
die;
|
620 |
+
} else {
|
621 |
/*
|
622 |
* Sending back the error message
|
623 |
+
*/
|
624 |
+
echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', $Feed_Them_All->fta_slug ) ) ;
|
625 |
+
die;
|
626 |
+
}
|
627 |
+
|
628 |
+
exit;
|
629 |
+
}
|
630 |
+
|
631 |
+
/* fta_plugin_status method ends here. */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
632 |
/*
|
633 |
* fta_remove_at on ajax.
|
634 |
* Returns the Success or Error Message.
|
635 |
* Remove access token and data
|
636 |
+
*/
|
637 |
+
function fta_remove_at()
|
638 |
+
{
|
639 |
/*
|
640 |
* Getting the Plugin main object.
|
641 |
+
*/
|
642 |
+
$Feed_Them_All = new Feed_Them_All();
|
643 |
/*
|
644 |
* Getting the FTA Plugin settings.
|
645 |
+
*/
|
646 |
+
$fta_settings = $Feed_Them_All->fta_get_settings();
|
647 |
+
if ( wp_verify_nonce( $_POST['fta_nonce'], 'fta-ajax-nonce' ) ) {
|
648 |
+
|
649 |
+
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
650 |
+
$access_token = $fta_settings['plugins']['facebook']['access_token'];
|
651 |
+
unset( $fta_settings['plugins']['facebook']['approved_pages'] );
|
652 |
+
unset( $fta_settings['plugins']['facebook']['access_token'] );
|
653 |
+
$fta_settings['plugins']['instagram']['selected_type'] = 'personal';
|
654 |
/*
|
655 |
* Updating the settings back into DB
|
656 |
+
*/
|
657 |
+
$delted_data = update_option( 'fta_settings', $fta_settings );
|
658 |
+
$response = wp_remote_request( 'https://graph.facebook.com/v4.0/me/permissions?access_token=' . $access_token . '', array(
|
659 |
+
'method' => 'DELETE',
|
660 |
+
) );
|
661 |
+
$body = wp_remote_retrieve_body( $response );
|
662 |
+
}
|
663 |
+
|
664 |
+
}
|
665 |
/*
|
666 |
* If status is successfully changed
|
667 |
+
*/
|
668 |
+
|
669 |
+
if ( isset( $delted_data ) ) {
|
670 |
/*
|
671 |
* Sending back the success message
|
672 |
+
*/
|
673 |
+
echo wp_send_json_success( __( 'Deleted', $Feed_Them_All->fta_slug ) ) ;
|
674 |
+
die;
|
675 |
+
} else {
|
676 |
/*
|
677 |
* Sending back the error message
|
678 |
+
*/
|
679 |
+
echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', $Feed_Them_All->fta_slug ) ) ;
|
680 |
+
die;
|
681 |
+
}
|
682 |
+
|
683 |
+
exit;
|
684 |
+
}
|
685 |
+
|
686 |
+
/* fta_remove_at method ends here. */
|
687 |
/**
|
688 |
* Display a nag to ask rating.
|
689 |
+
*/
|
690 |
+
public function fta_admin_notice()
|
691 |
+
{
|
692 |
+
if ( !current_user_can( 'install_plugins' ) ) {
|
693 |
+
return;
|
694 |
+
}
|
695 |
+
global $pagenow ;
|
696 |
+
$Feed_Them_All = new Feed_Them_All();
|
697 |
+
$install_date = $Feed_Them_All->fta_get_settings( 'installDate' );
|
698 |
+
$display_date = date( 'Y-m-d h:i:s' );
|
699 |
+
$datetime1 = new DateTime( $install_date );
|
700 |
+
$datetime2 = new DateTime( $display_date );
|
701 |
+
$diff_intrval = round( ($datetime2->format( 'U' ) - $datetime1->format( 'U' )) / (60 * 60 * 24) );
|
702 |
+
// echo '<pre>'; print_r();exit();
|
703 |
+
|
704 |
+
if ( $diff_intrval >= 6 && get_site_option( 'fta_supported' ) != "yes" ) {
|
705 |
+
$html = sprintf(
|
706 |
'<div style="position:relative;padding-right:80px;" class="update-nag fta_msg fta_review">
|
707 |
|
708 |
<p>%s<b>%s</b>%s</p>
|
723 |
</a>
|
724 |
<div class="fta_HideRating" style="position:absolute;right:10px;cursor:pointer;top:4px;color: #029be4;"> <div style="font-weight:bold;" class="dashicons dashicons-no-alt"></div><span style="margin-left: 2px;">%s</span></div>
|
725 |
</div>
|
726 |
+
</div>',
|
727 |
+
__( 'Awesome, you have been using ', 'easy-facebook-likebox' ),
|
728 |
+
__( 'Easy Social Feed ', 'easy-facebook-likebox' ),
|
729 |
+
__( 'for more than 1 week.', 'easy-facebook-likebox' ),
|
730 |
+
__( 'May I ask you to give it a ', 'easy-facebook-likebox' ),
|
731 |
+
__( '5-star ', 'easy-facebook-likebox' ),
|
732 |
+
__( 'rating on Wordpress? ', 'easy-facebook-likebox' ),
|
733 |
+
__( 'This will help to spread its popularity and to make this plugin a better one.', 'easy-facebook-likebox' ),
|
734 |
+
__( 'Your help is much appreciated. Thank you very much. ', 'easy-facebook-likebox' ),
|
735 |
+
__( 'I Like Easy Social Feed - It increased engagement on my site', 'easy-facebook-likebox' ),
|
736 |
+
__( 'I already rated it', 'easy-facebook-likebox' ),
|
737 |
+
__( 'No, not good enough, I do not like to rate it', 'easy-facebook-likebox' ),
|
738 |
+
__( 'Dismiss', 'easy-facebook-likebox' )
|
739 |
+
);
|
740 |
$script = ' <script>
|
741 |
jQuery( document ).ready(function( $ ) {
|
742 |
|
760 |
})
|
761 |
|
762 |
});
|
763 |
+
</script>';
|
764 |
+
echo $html . $script ;
|
765 |
+
}
|
766 |
+
|
767 |
+
|
768 |
+
if ( get_site_option( 'fta_upgraded_notice' ) != "yes" ) {
|
769 |
+
$screen = get_current_screen();
|
770 |
+
$arr = array( 'easy-social-feed_page_mif', 'toplevel_page_feed-them-all', 'easy-social-feed_page_easy-facebook-likebox' );
|
771 |
+
|
772 |
+
if ( in_array( $screen->id, $arr ) ) {
|
773 |
+
$html = sprintf(
|
774 |
+
'<div class="update-nag fta_upgraded_msg" style=" background-color: #ed6d62;color: #fff;position:relative;padding-right:100px;">
|
775 |
<h5 style="color: #fff;">%s</h5>
|
776 |
<p>%s</p>
|
777 |
<ol>
|
786 |
</a>
|
787 |
<div class="fta_HideUpgradedMsg" style="position:absolute;right:10px;cursor:pointer;top:10px;"> <div style="font-weight:bold;" class="dashicons dashicons-no-alt"></div><span style="margin-left: 2px;">%s</span></div>
|
788 |
</div>
|
789 |
+
</div>',
|
790 |
+
__( "Easy Social Feed (previously Easy Facebook Likebox) plugin notice", 'easy-facebook-likebox' ),
|
791 |
+
__( "If you just updated to 5.0 please don't forget to follow the steps below:", 'easy-facebook-likebox' ),
|
792 |
+
__( "Deactivate the plugin and activate again", 'easy-facebook-likebox' ),
|
793 |
+
__( 'Click on the authentication button to authenticate the app again', 'easy-facebook-likebox' ),
|
794 |
+
__( 'Clear the cache from', 'easy-facebook-likebox' ),
|
795 |
+
__( 'cache page', 'easy-facebook-likebox' ),
|
796 |
+
__( 'Opionally clear the browser cache.', 'easy-facebook-likebox' ),
|
797 |
+
__( "Hide this notice", 'easy-facebook-likebox' ),
|
798 |
+
__( 'Dismiss', 'easy-facebook-likebox' )
|
799 |
+
);
|
800 |
+
$script = ' <script>
|
801 |
jQuery( document ).ready(function( $ ) {
|
802 |
|
803 |
jQuery(\'.fta_HideUpgradedMsg\').click(function(){
|
820 |
})
|
821 |
|
822 |
});
|
823 |
+
</script>';
|
824 |
+
echo $html . $script ;
|
825 |
+
}
|
826 |
+
|
827 |
+
}
|
828 |
+
|
829 |
+
}
|
830 |
+
|
831 |
/**
|
832 |
* Save the notice closed option.
|
833 |
+
*/
|
834 |
+
public function fta_supported_func()
|
835 |
+
{
|
836 |
+
update_site_option( 'fta_supported', 'yes' );
|
837 |
+
echo json_encode( array( "success" ) ) ;
|
838 |
+
exit;
|
839 |
+
}
|
840 |
+
|
841 |
+
public function fta_upgraded_msg_dismiss()
|
842 |
+
{
|
843 |
+
update_site_option( 'fta_upgraded_notice', 'yes' );
|
844 |
+
echo json_encode( array( "success" ) ) ;
|
845 |
+
exit;
|
846 |
+
}
|
847 |
+
|
848 |
/**
|
849 |
* Add powered by text in admin footer
|
850 |
*
|
851 |
* @param string $text Default footer text.
|
852 |
*
|
853 |
* @return string
|
854 |
+
*/
|
855 |
+
function fta_admin_footer_text( $text )
|
856 |
+
{
|
857 |
+
$screen = get_current_screen();
|
858 |
+
$arr = array(
|
859 |
+
'easy-social-feed_page_mif',
|
860 |
+
'toplevel_page_feed-them-all',
|
861 |
+
'easy-social-feed_page_feed-them-all-account',
|
862 |
+
'easy-social-feed_page_feed-them-all-contact',
|
863 |
+
'easy-social-feed_page_feed-them-all-pricing',
|
864 |
+
'easy-social-feed_page_easy-facebook-likebox',
|
865 |
+
'easy-social-feed_page_esf_recommendations'
|
866 |
+
);
|
867 |
+
// echo $screen->id;
|
868 |
+
|
869 |
+
if ( in_array( $screen->id, $arr ) ) {
|
870 |
+
$fta_class = new Feed_Them_All();
|
871 |
+
$text = '<i><a href="' . admin_url( '?page=feed-them-all' ) . '" title="' . __( 'Visit Easy Social Feed page for more info', 'easy-facebook-likebox' ) . '">ESPF</a> v' . $fta_class->version . '. Please <a target="_blank" href="https://wordpress.org/support/plugin/easy-facebook-likebox/reviews/?filter=5#new-post" title="Rate the plugin">rate the plugin <span style="color: #ffb900;" class="stars">★ ★ ★ ★ ★ </span></a> to help us spread the word. Thank you from the Easy Social Feed team!</i><div style="margin-left:5px;top: 1px;" class="fb-like" data-href="https://www.facebook.com/easysocialfeed" data-width="" data-layout="button" data-action="like" data-size="small" data-share="false"></div><div id="fb-root"></div><script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v6.0&appId=1983264355330375&autoLogAppEvents=1"></script><style>#wpfooter{background-color: #fff;padding: 15px 20px;-webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.12), 0 1px 5px 0 rgba(0,0,0,.2);box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.12), 0 1px 5px 0 rgba(0,0,0,.2);}.fb_iframe_widget{float:left;}#wpfooter a{text-decoration:none;}</style>';
|
872 |
+
}
|
873 |
+
|
874 |
+
return $text;
|
875 |
+
}
|
876 |
+
|
877 |
+
// admin_footer_text
|
878 |
+
private function esf_get_plugin_install_link( $slug )
|
879 |
+
{
|
880 |
+
$action = 'install-plugin';
|
881 |
+
$esf_wpoptin_install = wp_nonce_url( add_query_arg( array(
|
882 |
+
'action' => $action,
|
883 |
+
'plugin' => $slug,
|
884 |
+
), admin_url( 'update.php' ) ), $action . '_' . $slug );
|
885 |
+
return $esf_wpoptin_install;
|
886 |
+
}
|
887 |
+
|
888 |
+
function esf_exclude_demo_pages( $query )
|
889 |
+
{
|
890 |
+
if ( !is_admin() ) {
|
891 |
+
return $query;
|
892 |
+
}
|
893 |
+
global $pagenow ;
|
894 |
+
|
895 |
+
if ( 'edit.php' == $pagenow && (get_query_var( 'post_type' ) && 'page' == get_query_var( 'post_type' )) ) {
|
896 |
+
$fta_class = new Feed_Them_All();
|
897 |
+
$fta_settings = $fta_class->fta_get_settings();
|
898 |
+
if ( isset( $fta_settings['plugins']['facebook']['default_page_id'] ) ) {
|
899 |
+
$fb_id = $fta_settings['plugins']['facebook']['default_page_id'];
|
900 |
+
}
|
901 |
+
if ( isset( $fta_settings['plugins']['instagram']['default_page_id'] ) ) {
|
902 |
+
$insta_id = $fta_settings['plugins']['instagram']['default_page_id'];
|
903 |
+
}
|
904 |
+
if ( $fb_id || $insta_id ) {
|
905 |
+
$query->set( 'post__not_in', array( $fb_id, $insta_id ) );
|
906 |
+
}
|
907 |
+
// array page ids
|
908 |
+
}
|
909 |
+
|
910 |
+
return $query;
|
911 |
+
}
|
912 |
+
|
913 |
+
}
|
914 |
+
/* FTA_Admin Class ends here. */
|
915 |
$FTA_Admin = new FTA_Admin();
|
assets/css/fta_admin_style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.espf-upgrade{float:left;width:50%;margin-top:20px;padding:20px;color:#fff;background:#ff8c00;text-align:center}.espf-upgrade b{text-shadow:4px 3px #9c3d35;font-size:33px}.espf-upgrade h2{color:#fff;font-size:36px;margin-top:0}.espf-upgrade a,.espf-upgrade a:hover{background:#ed6d62}.material-icons.efbl_copy_id{font-size:18px;margin-left:6px;display:inline-block;cursor:pointer;position:absolute;bottom:4px;border-left:1px solid;padding-left:5px}.modal{top:30% !important;background:#fff}.modal .modal-content h5.header{color:#ee6e73;border-bottom:1px solid #ccc;margin-bottom:0;padding-bottom:15px;margin-top:0}.modal .modal-footer{border-top:1px solid #ccc}.modal .modal-footer .modal-close{float:left}.modal .modal-footer .btn-flat{color:#ee6e73}.modal .modal-footer .btn-flat:hover{color:#02acf7}.fta-upgrade-modal{width:34%;top:25% !important}.fta-upgrade-modal .mif-close-modal{position:absolute;right:10px;top:10px}.fta-upgrade-modal .mif-modal-content{float:none;margin:0 auto;display:table;padding-top:0 !important;text-align:center}.fta-upgrade-modal .mif-modal-content h5{font-size:40px}.fta-upgrade-modal .mif-modal-content p{font-size:15px;line-height:1.8}.fta-upgrade-modal .mif-modal-content hr{padding-bottom:10px}.fta-upgrade-modal .mif-modal-content .mif-lock-icon .material-icons{color:#ff8c00 !important;font-size:50px}.fta-upgrade-modal .mif-modal-content input[type=email]::placeholder{color:#444}.fta-upgrade-modal .mif-modal-content .btn{background:#ff8c00;padding:12px 25px;height:auto;font-size:18px;text-transform:capitalize;border-radius:30px !important;width:auto;-moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s}.fta-upgrade-modal .mif-modal-content .btn:hover{background:#e48109;-moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s}.efbl_all_pages{display:none}.efbl_all_pages a{color:inherit}.efbl_all_pages .title{font-size:18px;font-weight:bold}.efbl_all_pages.show{display:block}.mif_wrap p{font-size:15px;line-height:1.8;font-weight:400;color:#867979;position:relative}#mif-general .auth-row{margin-top:20px}@font-face{font-family:"Material Icons";font-style:normal;font-weight:400;src:url(../fonts/material-icons.woff2) format("woff2")}.efbl_all_pages img.insta{float:right;width:50px;margin-top:8px;cursor:pointer}.efbl_all_pages p{font-size:15px;line-height:1.8;font-weight:400;color:#867979;position:relative}.material-icons{font-family:"Material Icons";font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs a:hover,.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs a{-webkit-transition:all ease-in-out 1s;-moz-transition:all ease-in-out 1s;-o-transition:all ease-in-out 1s;transition:all ease-in-out 1s}.fta-auth-app-noti{ftaoat:left;width:98%;border-left:6px solid #80c7a7;padding:10px 60px 10px 10px;position:relative}.fta-auth-app-noti .material-icons{position:absolute;right:10px;top:10px;cursor:pointer}.fta_wrap{float:left;clear:both;position:relative;width:98%;overftaow:hidden;background-color:#fff;margin-top:40px}.fta_wrap .btn:focus{color:#fff}.fta_wrap .fta_sliders_wrap{float:left;background-color:#d05d53;padding:11px 80px 10px 80px;cursor:pointer;margin-top:-5px}.fta_wrap .fta_sliders_wrap #fta_sliders{width:36.5px;height:35px;position:relative;cursor:pointer;float:left}.fta_wrap .fta_sliders_wrap #fta_sliders span{width:100%;height:2px;display:block;background-color:#fff;position:absolute;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.fta_wrap .fta_sliders_wrap #fta_sliders span:nth-child(1){top:25%}.fta_wrap .fta_sliders_wrap #fta_sliders span:nth-child(2){top:54%}.fta_wrap .fta_sliders_wrap #fta_sliders span:nth-child(3){top:83%}.fta_wrap .fta_sliders_wrap #fta_sliders .box{width:7px;height:7px;border-radius:2px;border:1px solid #eee;background-color:#fff;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);-webkit-transition:left .3s;-moz-transition:left .3s;transition:left .3s}.fta_wrap .fta_sliders_wrap #fta_sliders span:nth-child(1) .box{left:25%}.fta_wrap .fta_sliders_wrap #fta_sliders span:nth-child(2) .box{left:75%}.fta_wrap .fta_sliders_wrap #fta_sliders span:nth-child(3) .box{left:25%}.fta_wrap .fta_sliders_wrap #fta_sliders:hover span:nth-child(1) .box{left:75%}.fta_wrap .fta_sliders_wrap #fta_sliders:hover span:nth-child(2) .box{left:25%}.fta_wrap .fta_sliders_wrap #fta_sliders:hover span:nth-child(3) .box{left:75%}.fta_wrap .modal{width:30%;top:30% !important}.fta_wrap .modal .fta-close-modal{position:absolute;right:10px;top:10px}.fta_wrap .modal .fta-modal-content{ftaoat:none;margin:0 auto;display:table;padding-top:30px;text-align:center}.fta_wrap .modal .fta-modal-content h5{font-size:40px}.fta_wrap .modal .fta-modal-content p{font-size:15px;line-height:1.8}.fta_wrap .modal .fta-modal-content .fta-lock-icon .material-icons{color:#26a69a;font-size:50px}.fta_wrap .modal .fta-modal-content input[type=email]::placeholder{color:#444}.fta_wrap .modal .fta-modal-content .btn{border-radius:0}.fta_wrap .fta_wrap_inner{float:left;width:100%;clear:both;position:relative}.fta_wrap .fta_wrap_inner .esf_wc_header{float:none;margin:0 auto;display:table;text-align:center}.fta_wrap .fta_wrap_inner .esf_wc_header .esf_wc_header_top{float:none;margin:0 auto;display:table}.fta_wrap .fta_wrap_inner .esf_wc_header .esf_wc_header_top img{float:left;width:50px}.fta_wrap .fta_wrap_inner .esf_wc_header .esf_wc_header_top h1{float:left;margin:0;line-height:normal;font-size:2rem;margin-left:10px;margin-top:5px}.fta_wrap .fta_wrap_inner .esf_wc_header p{font-size:14px !important;margin-top:15px !important}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap{float:left;width:100%}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box{float:left;width:48%;margin:7px;padding:15px 10px 20px}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box .esf_wc_box_content{float:left;width:77%}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box .esf_wc_box_img{float:left;margin-right:10px;width:20%}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box .esf_wc_box_img img{width:100%;max-height:110px}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box h5{margin-top:0;font-size:16px;font-weight:bold}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box p{margin-top:0;font-size:12px}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box .esf_wc_box_btns_holder .btn{width:auto;padding:10px;height:auto;box-shadow:none;text-transform:capitalize;font-size:13px;line-height:normal;background:#7ed957}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box .esf_wc_box_btns_holder .btn:hover{background:#73d24b}.fta_wrap .fta_wrap_inner .esf-quick-setup-wrap{width:100%;display:block;position:relative;clear:both;text-align:center}.fta_wrap .fta_wrap_inner .esf-quick-setup-wrap h5{line-height:normal;font-size:2rem;margin-bottom:20px;padding-top:20px;text-transform:capitalize}.fta_wrap .fta_wrap_inner .esf-quick-setup-wrap iframe{background:#f1f1f1;padding:10px;width:100%}.fta_wrap .fta_wrap_inner .fta_loader_wrap{position:absolute;z-index:9;background-color:#f9f9f9;width:100%;height:100%}.fta_wrap .fta_wrap_inner .fta_loader_wrap .fa{position:absolute;top:42%;left:46%;font-size:50px;color:#26a69a;text-align:center}.fta_wrap .fta_wrap_inner .fta_tabs_header{background-color:#ed6d62;color:#fff;padding:5px 0;height:56px;ftaoat:left;width:100%}.fta_wrap .fta_wrap_inner .fta_tabs_header .fta_design_tab{display:table;text-align:center;line-height:48px;height:48px;padding:0;margin:0;text-transform:uppercase;color:#fff;padding:0 24px;font-size:14px}.fta_wrap .fta_wrap_inner .fta_tabs_header .fta_design_tab .material-icons{display:table-cell;vertical-align:middle;ftaoat:none;width:100%}.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs{background-color:transparent;ftaoat:left;width:auto;margin-left:17px;padding-right:17px;width:100%}.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs .indicator{background-color:#1bf1e9;margin-bottom:0;width:70px}.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs a{color:#fff;display:table}.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs a:hover{opacity:.8}.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs a .material-icons{display:table-cell;vertical-align:middle;ftaoat:none;width:100%}.fta_wrap .fta_wrap_inner #fta-help .fta_faqs_wrap h5,.fta_wrap .fta_wrap_inner #fta-help .fta_more_help_wrap h5{font-size:31px;border-bottom:1px solid #e0e0e0;padding-bottom:20px}.fta_wrap .fta_wrap_inner #fta-help .fta_faqs_wrap h4,.fta_wrap .fta_wrap_inner #fta-help .fta_more_help_wrap h4{font-size:22px}.fta_wrap .fta_wrap_inner #fta-help .fta_more_help_wrap h5{padding-top:20px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder{padding:15px;width:100%;min-height:330px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_tab_c{width:100%;display:inline-block}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs{padding:0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .fta_single_plug{margin:0 20px 0 0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .fta_single_plug.fta_plug_instagram a.btn{margin-top:50px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .btn.fta_setting_btn{background-color:#25a69a}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .btn.fta_setting_btn:hover{background-color:#558e74}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .card-content{padding:15px 0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .card-content .card-title{min-height:63px;margin-bottom:0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .fta_cta_holder{float:left;margin-bottom:20px;width:100%}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .fta_cta_holder li{font-size:15px;line-height:1.5;list-style-type:disc;margin-left:20px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .fta_cta_holder p{font-size:15px;margin-top:0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .fta_cta_holder .btn.right{display:none}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .card-image{margin-top:15px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .btn{background:#ed6d62;text-transform:capitalize}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .btn:hover{background-color:#d05d53}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_plug_activated .fta_cta_holder .btn.right{display:block !important}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder{width:18%;display:inline-block;vertical-align:top}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder .card{padding:0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder .card-image{background-color:#26a69a}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder .card-image .fta_confused_img{height:auto;width:auto;margin:0 auto}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder .card-content{padding:16px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder .card-content .card-title{border-bottom:1px solid #9e9e9e;margin:0 0 10px;padding:0 0 10px 0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder .card-content .btn{margin:0 auto;display:table;margin-top:15px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .input-field{margin-bottom:10px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_auth_form{display:none;width:100%}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder.fta_no_user .collection{border:none}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder{ftaoat:left;width:100%}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder h5{margin-bottom:20px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .collection-item .badge{color:#fff;padding:5px 10px;height:auto;margin-bottom:10px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .collection-item.fta_is_primary .fta_make_primary{display:none}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .fta_user_meta{ftaoat:left}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .fta_user_meta img.circle{width:50px;height:50px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .fta_users_auth_actions{ftaoat:right;margin-top:10px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .fta_users_auth_actions .secondary-content{position:relative;margin-top:2px;ftaoat:left;font-size:18px;top:0;right:0;margin-left:5px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .fta_users_auth_actions .secondary-content .material-icons{font-size:30px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_auth_btn_st{margin-top:20px;margin-bottom:0;height:45px;line-height:45px;text-transform:capitalize}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_auth_btn_st:hover,.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_auth_btn_st:active{color:#fff}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_show_token_form{display:none;margin-bottom:20px;ftaoat:right;background-color:#1b97f3}.fta_wrap .fta_noti_holder{position:relative;display:none}.fta_wrap .fta_noti_holder .fta_arrow{position:absolute;left:32%;top:-2px;width:15%}.fta_wrap .fta_noti_holder .tap-target-wrapper.open{left:auto;position:absolute;right:-238px;top:-100px;color:#fff}.fta_wrap .fta_noti_holder .tap-target-content{width:440px;height:400px;top:10px;right:auto;bottom:0;left:60px;padding:40px;vertical-align:bottom}.fta_wrap .fta_noti_holder .tap-target{background-color:rgba(237,109,98,.9)}.fta_wrap .fta_noti_holder.fta_green_noti .fta_arrow{display:none}.fta_wrap .fta_noti_holder.fta_green_noti .tap-target{background-color:rgba(38,166,154,.9)}.fta_wrap .fta_noti_holder.fta_green_noti .tap-target .tap-target-content p{font-size:15px}.fta_wrap.esf_wc_wrap{width:68%;float:none;margin:0 auto;display:table;margin-top:40px}.fta_wrap.esf_wc_wrap .fta_tab_c_holder{min-height:auto}.fta_wrap.esf_wc_wrap .fta_tab_c_holder p{margin-top:0;font-size:16px}.fta_wrap.esf_wc_wrap .fta_tab_c_holder .row{margin-bottom:0}#toast-container{top:auto !important;right:auto !important;bottom:0;left:50%;transform:translate(-50%, 0);color:#7fc6a6 !important}#toast-container .toast{background-color:#26a69a;padding:15px 60px;font-size:18px}.material-tooltip{padding:10px 20px}.btn:hover,.btn-large:hover{color:#fff}.disabled{pointer-events:none;cursor:default}#toast-container.esf-failed-notification .toast{background-color:#ed6d62 !important}#fta-auth-error.modal,#fta-remove-at.modal{top:25% !important;width:40%}#fta-auth-error.modal .mif-close-modal.modal-close,#fta-remove-at.modal .mif-close-modal.modal-close{position:absolute;right:5px;top:5px}#fta-remove-at.modal{width:30%}#fta-auth-error .mif-modal-content,#fta-remove-at .mif-modal-content{float:none;margin:0 auto;display:table;text-align:center;padding-top:0}#fta-auth-error .mif-modal-content p,#fta-remove-at .mif-modal-content p{font-size:13px;line-height:1.8;border-bottom:1px solid #ccc;padding-bottom:12px}#fta-auth-error .mif-modal-content .mif-lock-icon .material-icons,#fta-remove-at .mif-modal-content .mif-lock-icon .material-icons{color:#ed6d62;font-size:60px}#fta-auth-error .mif-modal-content .btn,#fta-remove-at .mif-modal-content .btn{font-size:13px;padding:10px 25px 10px 10px;height:auto;text-transform:capitalize}#fta-auth-error .mif-modal-content .btn img,#fta-remove-at .mif-modal-content .btn img{height:31px;margin-right:5px}#fta-remove-at .mif-modal-content .btn{padding:10px 20px;height:auto;width:auto;line-height:normal;font-size:15px;border-radius:0;margin-right:30px}#fta-remove-at .mif-modal-content .efbl_delete_at_confirmed{background:#ed6d62}.fta_noti_holder{position:relative;display:none}.fta_noti_holder .fta_arrow{position:absolute;left:26%;top:150px;width:6%}.fta_noti_holder .tap-target-wrapper.open{left:auto;position:absolute;right:-238px;top:-100px;color:#fff;width:800px;height:520px}.fta_noti_holder .tap-target-content{width:500px;height:400px;top:-18px;right:auto;bottom:0;left:60px;padding:40px;vertical-align:bottom}.fta_noti_holder .tap-target-content p{color:#fff}.fta_noti_holder .tap-target{background-color:rgba(237,109,98,.9)}.fta_noti_holder.fta_green_noti .fta_arrow{display:none}.fta_noti_holder.fta_green_noti .tap-target{background-color:rgba(38,166,154,.9)}.fta_noti_holder.fta_green_noti .tap-target .tap-target-content p{font-size:15px}.fta_empty_at .fta_noti_holder{display:block}.mif_wrap .fta_noti_holder .fta_arrow{left:27%;width:6%;top:200px}.collection-header{position:relative}.fta-remove-at-btn{position:absolute;right:2%;top:36%}.fta-remove-at-btn .material-icons{font-size:28px;color:#ed6d62}.espf_black_friday_msg{padding:0 15px 0 0;border:none;box-shadow:0 0 10px 0 rgba(0,0,0,.15);-moz-box-shadow:0 0 10px 0 rgba(0,0,0,.15);-webkit-box-shadow:0 0 10px 0 rgba(0,0,0,.15)}.espf_black_friday_msg .espf_notice_logo{display:inline-block;float:left;margin-bottom:-4px}.espf_black_friday_msg .espf_notice_logo img{width:170px}.espf_black_friday_msg .espf_notice_content_wrap{display:inline-block;margin-left:10px}.espf_black_friday_msg .espf_blackfirday_upgrade{float:left;background:#ff8c00;padding:8px 15px;height:auto;font-size:14px;text-transform:capitalize;width:auto;-moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s;border:none;box-shadow:none;text-shadow:none}.espf_black_friday_msg .espf_blackfirday_upgrade:hover{background:#e28009}.espf_black_friday_msg p{font-size:15px;margin-bottom:2px}.espf_black_friday_msg .espf_support_btns{float:left;width:100%;margin-top:15px}.espf_black_friday_msg .espf_hide_btn{color:#000;text-decoration:underline;margin-left:8px;margin-top:14px;float:left}.mif_wrap .efbl_all_pages .collection-item.avatar .circle,.efbl_wrap .efbl_all_pages .collection-item.avatar .circle{position:absolute;width:42px;height:42px;overflow:hidden;left:15px;display:inline-block;vertical-align:middle}.esf-main-heading{font-size:2.2em;margin-bottom:0;float:left;margin-top:15px}.toplevel_page_feed-them-all .fta_wrap{margin-top:20px !important}.esf_loader_wrap{position:fixed;left:0;top:0;width:100%;height:100%;z-index:99999;background-color:#fff}.esf_loader_wrap .esf_loader_inner{overflow:auto;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.esf_loader_wrap .loader{border:16px solid #f3f3f3;border-top:16px solid #ee6e73;border-radius:80%;width:120px;height:120px;animation:spin 2s linear infinite}.esf_loader_wrap .efbl_loader.loader{border-top:16px solid #27aae4}.esf_loader_wrap .mif_loader.loader{border-top:16px solid #25a69a}.esf_loader_wrap .esf_welcome_loader.loader{border-top:16px solid #7ed957}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.efbl-red-notice{background:#ed6d62 !important;border-color:#ca554b !important;float:left}/*# sourceMappingURL=fta_admin_style.css.map */
|
1 |
+
.espf-upgrade{float:left;width:50%;margin-top:20px;padding:20px;color:#fff;background:#ff8c00;text-align:center}.espf-upgrade b{text-shadow:4px 3px #9c3d35;font-size:33px}.espf-upgrade h2{color:#fff;font-size:36px;margin-top:0}.espf-upgrade a,.espf-upgrade a:hover{background:#ed6d62}.material-icons.efbl_copy_id{font-size:18px;margin-left:6px;display:inline-block;cursor:pointer;position:absolute;bottom:4px;border-left:1px solid;padding-left:5px}.modal{top:30% !important;background:#fff}.modal .modal-content h5.header{color:#ee6e73;border-bottom:1px solid #ccc;margin-bottom:0;padding-bottom:15px;margin-top:0}.modal .modal-footer{border-top:1px solid #ccc}.modal .modal-footer .modal-close{float:left}.modal .modal-footer .btn-flat{color:#ee6e73}.modal .modal-footer .btn-flat:hover{color:#02acf7}.fta-upgrade-modal{width:34%;top:25% !important}.fta-upgrade-modal .mif-close-modal{position:absolute;right:10px;top:10px}.fta-upgrade-modal .mif-modal-content{float:none;margin:0 auto;display:table;padding-top:0 !important;text-align:center}.fta-upgrade-modal .mif-modal-content h5{font-size:40px}.fta-upgrade-modal .mif-modal-content p{font-size:15px;line-height:1.8}.fta-upgrade-modal .mif-modal-content hr{padding-bottom:10px}.fta-upgrade-modal .mif-modal-content .mif-lock-icon .material-icons{color:#ff8c00 !important;font-size:50px}.fta-upgrade-modal .mif-modal-content input[type=email]::placeholder{color:#444}.fta-upgrade-modal .mif-modal-content .btn{background:#ff8c00;padding:12px 25px;height:auto;font-size:18px;text-transform:capitalize;border-radius:30px !important;width:auto;-moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s}.fta-upgrade-modal .mif-modal-content .btn:hover{background:#e48109;-moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s}.efbl_all_pages{display:none}.efbl_all_pages a{color:inherit}.efbl_all_pages .title{font-size:18px;font-weight:bold}.efbl_all_pages.show{display:block}.mif_wrap p{font-size:15px;line-height:1.8;font-weight:400;color:#867979;position:relative}#mif-general .auth-row{margin-top:20px}@font-face{font-family:"Material Icons";font-style:normal;font-weight:400;src:url(../fonts/material-icons.woff2) format("woff2")}.efbl_all_pages img.insta{float:right;width:50px;margin-top:8px;cursor:pointer}.efbl_all_pages p{font-size:15px;line-height:1.8;font-weight:400;color:#867979;position:relative}.material-icons{font-family:"Material Icons";font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs a:hover,.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs a{-webkit-transition:all ease-in-out 1s;-moz-transition:all ease-in-out 1s;-o-transition:all ease-in-out 1s;transition:all ease-in-out 1s}.fta-auth-app-noti{ftaoat:left;width:98%;border-left:6px solid #80c7a7;padding:10px 60px 10px 10px;position:relative}.fta-auth-app-noti .material-icons{position:absolute;right:10px;top:10px;cursor:pointer}.fta_wrap{float:left;clear:both;position:relative;width:98%;overftaow:hidden;background-color:#fff;margin-top:40px}.fta_wrap .btn:focus{color:#fff}.fta_wrap .fta_sliders_wrap{float:left;background-color:#d05d53;padding:11px 80px 10px 80px;cursor:pointer;margin-top:-5px}.fta_wrap .fta_sliders_wrap #fta_sliders{width:36.5px;height:35px;position:relative;cursor:pointer;float:left}.fta_wrap .fta_sliders_wrap #fta_sliders span{width:100%;height:2px;display:block;background-color:#fff;position:absolute;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.fta_wrap .fta_sliders_wrap #fta_sliders span:nth-child(1){top:25%}.fta_wrap .fta_sliders_wrap #fta_sliders span:nth-child(2){top:54%}.fta_wrap .fta_sliders_wrap #fta_sliders span:nth-child(3){top:83%}.fta_wrap .fta_sliders_wrap #fta_sliders .box{width:7px;height:7px;border-radius:2px;border:1px solid #eee;background-color:#fff;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);-webkit-transition:left .3s;-moz-transition:left .3s;transition:left .3s}.fta_wrap .fta_sliders_wrap #fta_sliders span:nth-child(1) .box{left:25%}.fta_wrap .fta_sliders_wrap #fta_sliders span:nth-child(2) .box{left:75%}.fta_wrap .fta_sliders_wrap #fta_sliders span:nth-child(3) .box{left:25%}.fta_wrap .fta_sliders_wrap #fta_sliders:hover span:nth-child(1) .box{left:75%}.fta_wrap .fta_sliders_wrap #fta_sliders:hover span:nth-child(2) .box{left:25%}.fta_wrap .fta_sliders_wrap #fta_sliders:hover span:nth-child(3) .box{left:75%}.fta_wrap .modal{width:30%;top:30% !important}.fta_wrap .modal .fta-close-modal{position:absolute;right:10px;top:10px}.fta_wrap .modal .fta-modal-content{ftaoat:none;margin:0 auto;display:table;padding-top:30px;text-align:center}.fta_wrap .modal .fta-modal-content h5{font-size:40px}.fta_wrap .modal .fta-modal-content p{font-size:15px;line-height:1.8}.fta_wrap .modal .fta-modal-content .fta-lock-icon .material-icons{color:#26a69a;font-size:50px}.fta_wrap .modal .fta-modal-content input[type=email]::placeholder{color:#444}.fta_wrap .modal .fta-modal-content .btn{border-radius:0}.fta_wrap .fta_wrap_inner{float:left;width:100%;clear:both;position:relative}.fta_wrap .fta_wrap_inner .esf_wc_header{float:none;margin:0 auto;display:table;text-align:center}.fta_wrap .fta_wrap_inner .esf_wc_header .esf_wc_header_top{float:none;margin:0 auto;display:table}.fta_wrap .fta_wrap_inner .esf_wc_header .esf_wc_header_top img{float:left;width:50px}.fta_wrap .fta_wrap_inner .esf_wc_header .esf_wc_header_top h1{float:left;margin:0;line-height:normal;font-size:2rem;margin-left:10px;margin-top:5px}.fta_wrap .fta_wrap_inner .esf_wc_header p{font-size:14px !important;margin-top:15px !important}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap{float:left;width:100%}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box{float:left;width:48%;margin:7px;padding:15px 10px 20px}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box .esf_wc_box_content{float:left;width:77%}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box .esf_wc_box_img{float:left;margin-right:10px;width:20%}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box .esf_wc_box_img img{width:100%;max-height:110px}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box h5{margin-top:0;font-size:16px;font-weight:bold}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box p{margin-top:0;font-size:12px}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box .esf_wc_box_btns_holder .btn{width:auto;padding:10px;height:auto;box-shadow:none;text-transform:none;font-size:13px;line-height:normal;background:#7ed957}.fta_wrap .fta_wrap_inner .esf_wc_boxes_wrap .esf_wc_box .esf_wc_box_btns_holder .btn:hover{background:#73d24b}.fta_wrap .fta_wrap_inner .esf-quick-setup-wrap{width:100%;display:block;position:relative;clear:both;text-align:center}.fta_wrap .fta_wrap_inner .esf-quick-setup-wrap h5{line-height:normal;font-size:2rem;margin-bottom:20px;padding-top:20px;text-transform:capitalize}.fta_wrap .fta_wrap_inner .esf-quick-setup-wrap iframe{background:#f1f1f1;padding:10px;width:100%}.fta_wrap .fta_wrap_inner .fta_loader_wrap{position:absolute;z-index:9;background-color:#f9f9f9;width:100%;height:100%}.fta_wrap .fta_wrap_inner .fta_loader_wrap .fa{position:absolute;top:42%;left:46%;font-size:50px;color:#26a69a;text-align:center}.fta_wrap .fta_wrap_inner .fta_tabs_header{background-color:#ed6d62;color:#fff;padding:5px 0;height:56px;ftaoat:left;width:100%}.fta_wrap .fta_wrap_inner .fta_tabs_header .fta_design_tab{display:table;text-align:center;line-height:48px;height:48px;padding:0;margin:0;text-transform:uppercase;color:#fff;padding:0 24px;font-size:14px}.fta_wrap .fta_wrap_inner .fta_tabs_header .fta_design_tab .material-icons{display:table-cell;vertical-align:middle;ftaoat:none;width:100%}.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs{background-color:transparent;ftaoat:left;width:auto;margin-left:17px;padding-right:17px;width:100%}.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs .indicator{background-color:#1bf1e9;margin-bottom:0;width:70px}.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs a{color:#fff;display:table}.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs a:hover{opacity:.8}.fta_wrap .fta_wrap_inner .fta_tabs_header #fta_tabs a .material-icons{display:table-cell;vertical-align:middle;ftaoat:none;width:100%}.fta_wrap .fta_wrap_inner #fta-help .fta_faqs_wrap h5,.fta_wrap .fta_wrap_inner #fta-help .fta_more_help_wrap h5{font-size:31px;border-bottom:1px solid #e0e0e0;padding-bottom:20px}.fta_wrap .fta_wrap_inner #fta-help .fta_faqs_wrap h4,.fta_wrap .fta_wrap_inner #fta-help .fta_more_help_wrap h4{font-size:22px}.fta_wrap .fta_wrap_inner #fta-help .fta_more_help_wrap h5{padding-top:20px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder{padding:15px;width:100%;min-height:330px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_tab_c{width:100%;display:inline-block}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs{padding:0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .fta_single_plug{margin:0 20px 0 0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .fta_single_plug.fta_plug_instagram a.btn{margin-top:50px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .btn.fta_setting_btn{background-color:#25a69a}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .btn.fta_setting_btn:hover{background-color:#558e74}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .card-content{padding:15px 0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .card-content .card-title{min-height:63px;margin-bottom:0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .fta_cta_holder{float:left;margin-bottom:20px;width:100%}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .fta_cta_holder li{font-size:15px;line-height:1.5;list-style-type:disc;margin-left:20px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .fta_cta_holder p{font-size:15px;margin-top:0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .fta_cta_holder .btn.right{display:none}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .card-image{margin-top:15px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .btn{background:#ed6d62;text-transform:capitalize}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_plugs .card .btn:hover{background-color:#d05d53}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_plug_activated .fta_cta_holder .btn.right{display:block !important}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder{width:18%;display:inline-block;vertical-align:top}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder .card{padding:0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder .card-image{background-color:#26a69a}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder .card-image .fta_confused_img{height:auto;width:auto;margin:0 auto}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder .card-content{padding:16px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder .card-content .card-title{border-bottom:1px solid #9e9e9e;margin:0 0 10px;padding:0 0 10px 0}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_support_holder .card-content .btn{margin:0 auto;display:table;margin-top:15px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .input-field{margin-bottom:10px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_auth_form{display:none;width:100%}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder.fta_no_user .collection{border:none}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder{ftaoat:left;width:100%}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder h5{margin-bottom:20px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .collection-item .badge{color:#fff;padding:5px 10px;height:auto;margin-bottom:10px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .collection-item.fta_is_primary .fta_make_primary{display:none}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .fta_user_meta{ftaoat:left}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .fta_user_meta img.circle{width:50px;height:50px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .fta_users_auth_actions{ftaoat:right;margin-top:10px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .fta_users_auth_actions .secondary-content{position:relative;margin-top:2px;ftaoat:left;font-size:18px;top:0;right:0;margin-left:5px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_all_users_holder .fta_users_auth_actions .secondary-content .material-icons{font-size:30px}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_auth_btn_st{margin-top:20px;margin-bottom:0;height:45px;line-height:45px;text-transform:capitalize}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_auth_btn_st:hover,.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_auth_btn_st:active{color:#fff}.fta_wrap .fta_wrap_inner .fta_tab_c_holder .fta_show_token_form{display:none;margin-bottom:20px;ftaoat:right;background-color:#1b97f3}.fta_wrap .fta_noti_holder{position:relative;display:none}.fta_wrap .fta_noti_holder .fta_arrow{position:absolute;left:32%;top:-2px;width:15%}.fta_wrap .fta_noti_holder .tap-target-wrapper.open{left:auto;position:absolute;right:-238px;top:-100px;color:#fff}.fta_wrap .fta_noti_holder .tap-target-content{width:440px;height:400px;top:10px;right:auto;bottom:0;left:60px;padding:40px;vertical-align:bottom}.fta_wrap .fta_noti_holder .tap-target{background-color:rgba(237,109,98,.9)}.fta_wrap .fta_noti_holder.fta_green_noti .fta_arrow{display:none}.fta_wrap .fta_noti_holder.fta_green_noti .tap-target{background-color:rgba(38,166,154,.9)}.fta_wrap .fta_noti_holder.fta_green_noti .tap-target .tap-target-content p{font-size:15px}.fta_wrap.esf_wc_wrap{width:68%;float:none;margin:0 auto;display:table;margin-top:40px}.fta_wrap.esf_wc_wrap .fta_tab_c_holder{min-height:auto}.fta_wrap.esf_wc_wrap .fta_tab_c_holder p{margin-top:0;font-size:16px}.fta_wrap.esf_wc_wrap .fta_tab_c_holder .row{margin-bottom:0}.fta_wrap.fl-recomend-tab-holder{padding:15px;float:left;width:100%}.fta_wrap.fl-recomend-tab-holder .fl-recomend-plugins-holder{width:73%;display:inline-block;padding-right:10px;float:left}.fta_wrap.fl-recomend-tab-holder .fl-recomend-plugins-holder .fl-recomend-wraper{width:40% !important;float:left}.fta_wrap.fl-recomend-tab-holder .fl-recomend-partner{width:25%;display:inline-block}.fta_wrap.fl-recomend-tab-holder .fl-recomend-head{float:left;width:100%}.fta_wrap.fl-recomend-tab-holder .fl-recomend-head h4{font-size:1.8rem;font-weight:bold;margin-bottom:0}.fta_wrap.fl-recomend-tab-holder .fl-recomend-head p{margin-top:10px}.fta_wrap.fl-recomend-tab-holder .row{margin-top:20px;float:left;margin-bottom:20px}.fta_wrap.fl-recomend-tab-holder .row .fl-recomend-wraper{text-align:center;padding:20px 12px;margin:0 5px;width:24%;-webkit-transition:-webkit-box-shadow .25s;transition:-webkit-box-shadow .25s;transition:box-shadow .25s;transition:box-shadow .25s,-webkit-box-shadow .25s;border-radius:2px;-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2)}.fta_wrap.fl-recomend-tab-holder .row .fl-recomend-wraper h4{font-size:1.8rem;margin:5px 0 15px;text-align:center}.fta_wrap.fl-recomend-tab-holder .row .fl-recomend-wraper p{letter-spacing:.5px;line-height:1.5;float:left;width:100%;margin-top:5px}.fta_wrap.fl-recomend-tab-holder .row .fl-recomend-wraper .fl-recomend-meta-wraper{float:left;width:100%;margin:15px 0}.fta_wrap.fl-recomend-tab-holder .row .fl-recomend-wraper .fl-recomend-meta-wraper p{font-size:15px}.fta_wrap.fl-recomend-tab-holder .row .fl-recomend-wraper .fl-recomends-action{margin-top:10px;float:left;width:100%}.fta_wrap.fl-recomend-tab-holder .row .fl-recomend-wraper .fl-recomends-action a{background-color:#ff8c00;padding:10px 18px;font-size:16px;float:left;color:#fff}.fta_wrap.fl-recomend-tab-holder .row .fl-recomend-wraper .fl-recomends-action a:hover{opacity:.9}.fta_wrap.fl-recomend-tab-holder .row .fl-recomend-wraper .fl-recomends-action a.right{background-color:#0693e3}.fta_wrap.fl-recomend-tab-holder .fl-recomend-partner{display:inline-block;text-align:center}.fta_wrap.fl-recomend-tab-holder .fl-recomend-partner .fl-recomend-wraper{float:none;margin:0 auto;display:table;width:100%}.fta_wrap.fl-recomend-tab-holder .fl-recomend-partner .fl-recomend-wraper p{line-height:1.8}.fta_wrap.fl-recomend-tab-holder .fl-recomend-partner .fl-recomend-wraper img{margin-bottom:10px}.fta_wrap.fl-recomend-tab-holder .fl-recomend-partner .fl-recomend-wraper .fl-recomends-action a{text-align:center;float:none;margin:0 auto;display:table;margin-top:15px}#toast-container{top:auto !important;right:auto !important;bottom:0;left:50%;transform:translate(-50%, 0);color:#7fc6a6 !important}#toast-container .toast{background-color:#26a69a;padding:15px 60px;font-size:18px}.material-tooltip{padding:10px 20px}.btn:hover,.btn-large:hover{color:#fff}.disabled{pointer-events:none;cursor:default}#toast-container.esf-failed-notification .toast{background-color:#ed6d62 !important}#fta-auth-error.modal,#fta-remove-at.modal,#mif-remove-at.modal{top:25% !important;width:40%}#fta-auth-error.modal .mif-close-modal.modal-close,#fta-remove-at.modal .mif-close-modal.modal-close,#mif-remove-at.modal .mif-close-modal.modal-close{position:absolute;right:5px;top:5px}#fta-remove-at.modal,#mif-remove-at.modal{width:30%}#fta-auth-error .mif-modal-content,#fta-remove-at .mif-modal-content,#mif-remove-at .mif-modal-content{float:none;margin:0 auto;display:table;text-align:center;padding-top:0}#fta-auth-error .mif-modal-content p,#fta-remove-at .mif-modal-content p,#mif-remove-at .mif-modal-content p{font-size:13px;line-height:1.8;border-bottom:1px solid #ccc;padding-bottom:12px}#fta-auth-error .mif-modal-content .mif-lock-icon .material-icons,#fta-remove-at .mif-modal-content .mif-lock-icon .material-icons,#mif-remove-at .mif-modal-content .mif-lock-icon .material-icons{color:#ed6d62;font-size:60px}#fta-auth-error .mif-modal-content .btn,#fta-remove-at .mif-modal-content .btn,#mif-remove-at .mif-modal-content .btn{font-size:13px;padding:10px 25px 10px 10px;height:auto;text-transform:capitalize}#fta-auth-error .mif-modal-content .btn img,#fta-remove-at .mif-modal-content .btn img,#mif-remove-at .mif-modal-content .btn img{height:31px;margin-right:5px}#fta-remove-at .mif-modal-content .btn,#mif-remove-at .mif-modal-content .btn{padding:10px 20px;height:auto;width:auto;line-height:normal;font-size:15px;border-radius:0;margin-right:30px}#fta-remove-at .mif-modal-content .efbl_delete_at_confirmed,#fta-remove-at .mif-modal-content .mif_delete_at_confirmed,#mif-remove-at .mif-modal-content .efbl_delete_at_confirmed,#mif-remove-at .mif-modal-content .mif_delete_at_confirmed{background:#ed6d62}.fta_noti_holder{position:relative;display:none}.fta_noti_holder .fta_arrow{position:absolute;left:26%;top:150px;width:6%}.fta_noti_holder .tap-target-wrapper.open{left:auto;position:absolute;right:-238px;top:-100px;color:#fff;width:800px;height:520px}.fta_noti_holder .tap-target-content{width:500px;height:400px;top:-18px;right:auto;bottom:0;left:60px;padding:40px;vertical-align:bottom}.fta_noti_holder .tap-target-content p{color:#fff}.fta_noti_holder .tap-target{background-color:rgba(237,109,98,.9)}.fta_noti_holder.fta_green_noti .fta_arrow{display:none}.fta_noti_holder.fta_green_noti .tap-target{background-color:rgba(38,166,154,.9)}.fta_noti_holder.fta_green_noti .tap-target .tap-target-content p{font-size:15px}.fta_empty_at .fta_noti_holder{display:block}.mif_wrap .fta_noti_holder .fta_arrow{left:27%;width:6%;top:200px}.collection-header{position:relative}.fta-remove-at-btn{position:absolute;right:2%;top:36%}.fta-remove-at-btn .material-icons{font-size:28px;color:#ed6d62}.espf_black_friday_msg{padding:0 15px 0 0;border:none;box-shadow:0 0 10px 0 rgba(0,0,0,.15);-moz-box-shadow:0 0 10px 0 rgba(0,0,0,.15);-webkit-box-shadow:0 0 10px 0 rgba(0,0,0,.15)}.espf_black_friday_msg .espf_notice_logo{display:inline-block;float:left;margin-bottom:-4px}.espf_black_friday_msg .espf_notice_logo img{width:170px}.espf_black_friday_msg .espf_notice_content_wrap{display:inline-block;margin-left:10px}.espf_black_friday_msg .espf_blackfirday_upgrade{float:left;background:#ff8c00;padding:8px 15px;height:auto;font-size:14px;text-transform:capitalize;width:auto;-moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s;border:none;box-shadow:none;text-shadow:none}.espf_black_friday_msg .espf_blackfirday_upgrade:hover{background:#e28009}.espf_black_friday_msg p{font-size:15px;margin-bottom:2px}.espf_black_friday_msg .espf_support_btns{float:left;width:100%;margin-top:15px}.espf_black_friday_msg .espf_hide_btn{color:#000;text-decoration:underline;margin-left:8px;margin-top:14px;float:left}.mif_wrap .efbl_all_pages .collection-item.avatar .circle,.efbl_wrap .efbl_all_pages .collection-item.avatar .circle{position:absolute;width:42px;height:42px;overflow:hidden;left:15px;display:inline-block;vertical-align:middle}.esf-main-heading{font-size:2.2em;margin-bottom:0;float:left;margin-top:15px}.toplevel_page_feed-them-all .fta_wrap{margin-top:20px !important}.esf_loader_wrap{position:fixed;left:0;top:0;width:100%;height:100%;z-index:99999;background-color:#fff}.esf_loader_wrap .esf_loader_inner{overflow:auto;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.esf_loader_wrap .loader{border:16px solid #f3f3f3;border-top:16px solid #ee6e73;border-radius:80%;width:120px;height:120px;animation:spin 2s linear infinite}.esf_loader_wrap .efbl_loader.loader{border-top:16px solid #27aae4}.esf_loader_wrap .mif_loader.loader{border-top:16px solid #25a69a}.esf_loader_wrap .esf_welcome_loader.loader{border-top:16px solid #7ed957}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.efbl-red-notice{background:#ed6d62 !important;border-color:#ca554b !important;float:left}#fs_connect .fs-visual .dashicons-wordpress{width:100%;height:100%}/*# sourceMappingURL=fta_admin_style.css.map */
|
assets/css/fta_admin_style.css.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sourceRoot":"","sources":["../scss/fta_admin_style.scss"],"names":[],"mappings":"AACA,cACC,WACG,UACA,gBACA,aACA,WACA,mBACI,kBACJ,gBACG,4BACH,eAEA,iBACI,WACJ,eACA,aAEA,sCACA,mBAGJ,6BACI,eACA,gBACA,qBACA,eACA,kBACA,WACA,sBACA,iBAEJ,OACK,mBACA,gBAGC,gCACI,cACH,6BACA,gBACA,oBACA,aAGF,qBACC,0BACA,kCACC,WAED,+BAEA,cACC,qCACA,cAMN,gDACG,oCACI,kBACA,WACA,SAGJ,sCACI,WACA,cACA,cACA,yBACA,kBAEA,wDACA,uEACA,yCACA,oBAGA,qEACI,yBACC,eAEL,gFACA,2CAED,mBACC,kBACA,YACA,eACA,0BACA,8BACA,WACC,gCACD,+BACA,8BACA,mCACA,2BACC,iDACK,mBACH,gCACD,+BACA,8BACA,mCACA,2BAKT,6BACY,gCACA,uDAED,mCACZ,YACK,eACD,gBACA,gBACA,cACA,kBAII,uBACI,gBAOZ,WACE,6BACA,kBACA,gBACA,uDAGD,0BACI,YACD,WACA,eACA,eAEH,kBACI,eACD,gBACA,gBACA,cACA,kBAGJ,gBACE,6BACA,mBACA,kBACA,eACA,cACA,sBACA,oBACA,qBACA,mBACA,iBACA,cACA,qCACA,mCAIF,0JACE,mCACA,iCACA,8BAEA,mBACI,kGACA,mCACC,qDAIP,UA8GM,WACA,WACA,kBACA,UACA,iBACA,sBACF,gBAlHF,gCAEA,4BAEa,WACE,yBACG,4BACL,eACG,gBAER,yCACG,aACA,YACD,kBACA,eACA,WACI,8CACA,WACA,WACA,cACI,sBACJ,kBACA,mCACA,gCACA,+BACA,2BAEA,2DACF,QAEA,2DACF,QAEE,2DACE,QAEF,8CACE,UACA,WACA,kBACA,sBACG,sBACH,kBACA,QACA,wCACA,qCACA,oCACA,gCACA,4BACA,yBACA,oBAEF,gEACI,SAGJ,gEACI,SAEH,gEACD,SAIA,sEACE,SAEF,sEACE,SAGF,sEACF,SAMV,8CACE,kCACI,kBACA,WACA,SAGJ,oCACI,YACA,cACA,cACA,iBACA,kBAEA,sDACA,qEAEA,mEACI,cACC,eAEL,8EACA,yCAEF,gBAaL,0BACM,WACA,WACA,WACA,kBAEL,yCACC,WACG,cACA,cACA,kBAEA,4DACC,WACA,cACA,cACA,gEACA,WACG,WAEH,+DACA,WACA,SACA,mBACA,eACA,iBACA,eAID,2CACA,0BACA,2BAKJ,6CACC,WACG,WACA,yDAEC,WACD,UACA,WACA,uBAEA,6EACA,WACC,UAEA,yEACA,WACA,kBACA,UACC,6EACA,WACA,iBAGD,4DACG,aACH,eACA,iBAEA,2DACE,aACA,eAKD,sFACC,WACA,aACA,YACE,gBACF,
|
1 |
+
{"version":3,"sourceRoot":"","sources":["../scss/fta_admin_style.scss"],"names":[],"mappings":"AACA,cACC,WACG,UACA,gBACA,aACA,WACA,mBACI,kBACJ,gBACG,4BACH,eAEA,iBACI,WACJ,eACA,aAEA,sCACA,mBAGJ,6BACI,eACA,gBACA,qBACA,eACA,kBACA,WACA,sBACA,iBAEJ,OACK,mBACA,gBAGC,gCACI,cACH,6BACA,gBACA,oBACA,aAGF,qBACC,0BACA,kCACC,WAED,+BAEA,cACC,qCACA,cAMN,gDACG,oCACI,kBACA,WACA,SAGJ,sCACI,WACA,cACA,cACA,yBACA,kBAEA,wDACA,uEACA,yCACA,oBAGA,qEACI,yBACC,eAEL,gFACA,2CAED,mBACC,kBACA,YACA,eACA,0BACA,8BACA,WACC,gCACD,+BACA,8BACA,mCACA,2BACC,iDACK,mBACH,gCACD,+BACA,8BACA,mCACA,2BAKT,6BACY,gCACA,uDAED,mCACZ,YACK,eACD,gBACA,gBACA,cACA,kBAII,uBACI,gBAOZ,WACE,6BACA,kBACA,gBACA,uDAGD,0BACI,YACD,WACA,eACA,eAEH,kBACI,eACD,gBACA,gBACA,cACA,kBAGJ,gBACE,6BACA,mBACA,kBACA,eACA,cACA,sBACA,oBACA,qBACA,mBACA,iBACA,cACA,qCACA,mCAIF,0JACE,mCACA,iCACA,8BAEA,mBACI,kGACA,mCACC,qDAIP,UA8GM,WACA,WACA,kBACA,UACA,iBACA,sBACF,gBAlHF,gCAEA,4BAEa,WACE,yBACG,4BACL,eACG,gBAER,yCACG,aACA,YACD,kBACA,eACA,WACI,8CACA,WACA,WACA,cACI,sBACJ,kBACA,mCACA,gCACA,+BACA,2BAEA,2DACF,QAEA,2DACF,QAEE,2DACE,QAEF,8CACE,UACA,WACA,kBACA,sBACG,sBACH,kBACA,QACA,wCACA,qCACA,oCACA,gCACA,4BACA,yBACA,oBAEF,gEACI,SAGJ,gEACI,SAEH,gEACD,SAIA,sEACE,SAEF,sEACE,SAGF,sEACF,SAMV,8CACE,kCACI,kBACA,WACA,SAGJ,oCACI,YACA,cACA,cACA,iBACA,kBAEA,sDACA,qEAEA,mEACI,cACC,eAEL,8EACA,yCAEF,gBAaL,0BACM,WACA,WACA,WACA,kBAEL,yCACC,WACG,cACA,cACA,kBAEA,4DACC,WACA,cACA,cACA,gEACA,WACG,WAEH,+DACA,WACA,SACA,mBACA,eACA,iBACA,eAID,2CACA,0BACA,2BAKJ,6CACC,WACG,WACA,yDAEC,WACD,UACA,WACA,uBAEA,6EACA,WACC,UAEA,yEACA,WACA,kBACA,UACC,6EACA,WACA,iBAGD,4DACG,aACH,eACA,iBAEA,2DACE,aACA,eAKD,sFACC,WACA,aACA,YACE,gBACF,oBACA,eACA,mBACA,mBAEA,4FACA,mBAOP,gDACG,WACC,cACA,kBACA,WACA,kBAEA,mDACG,mBACH,eACA,mBACA,iBACI,0BAEJ,uDACE,mBACA,aACA,WAGL,2CACI,kBACA,UACA,yBACA,WACA,YACA,+CACK,kBACH,QACA,SACA,eACA,cACA,kBAGP,2CACK,yBACA,WACA,cACA,YACA,YACA,WAEJ,2DACC,cACG,kBACA,iBACA,YACA,UACA,SACA,yBACA,WACI,eACJ,eAEA,2EACO,mBACH,sBACA,YACA,WAGL,qDACM,6BACH,YACA,WACA,iBACA,mBACA,WAED,gEACA,yCACA,WAEC,uDACC,WACA,cACA,6DACoB,WAEpB,uEACI,mBACH,sBACA,YACA,WASP,iHACI,eACA,gCACA,oBAEJ,iHACC,eAKD,2DACC,iBAKH,4CACC,wBAEI,iBACJ,uDACO,WACP,qBAED,mKAEE,qGACI,gBAOJ,sFACO,yBACA,qHAGP,+EACA,eAEC,2HAGD,iFACI,WACA,mBACA,WACA,oFACG,eACF,gBACA,qBACA,iBAED,+GACA,yGAIJ,6EACI,gBAGJ,sEACI,6CACA,qGAIL,oHAED,gEACK,UACD,qBACA,mBAEC,sEACI,UAEJ,4EACI,yBAEH,8FACC,YACA,WACA,cAGF,8EACI,aAEA,0FACI,gCACN,gBACD,mBAEG,mFACI,cACN,cACA,gBASN,yDACA,mBAEA,mFAIA,sGACA,kEACC,uBACA,wFACA,qJAGA,iIACA,gNACC,uHACC,6GACI,kBACI,eACJ,YACA,eACA,MACA,QACI,gBAEJ,4IAIP,6DACC,uFACC,uIACD,WAED,uIAKD,2BACI,kBACA,aAEA,sCACG,kBACH,SACA,SACA,UAGD,oDACI,UACH,kBACA,aACA,WACI,WAGL,+CACO,YACL,aACA,SACA,WACA,SACA,UACA,aACA,sBAGF,uCACI,qCAKP,kEACA,2FAGE,2FAMJ,sBACC,UACG,WACA,cACA,cACA,gBACH,wCACC,gBACA,0CACA,aACI,eAGJ,6CACI,gBAKN,iCACK,aACD,WACA,WAEF,6DACe,UACA,qBACD,mBACI,WAEF,iFACI,qBACA,WAGN,sDACG,UACF,qBAGD,mDACE,WACA,WAEE,sDACE,iBACA,iBACA,gBAEF,qDACA,gBAGJ,sCACG,gBACC,WACA,mBACA,0DACI,kBACA,kBACA,aACA,UACA,2CACA,mCACA,2BACA,mDACA,kBACA,yGACA,iGAEA,6DACD,iBACC,kBACA,kBAEA,4DACE,oBACA,gBACA,WACA,WACA,eAGF,mFACE,WACA,WACA,cACA,qFACI,eAGR,+EAEE,gBACA,WACA,WACE,iFACE,yBACA,kBACA,eACA,WACA,WAEE,uFACA,WAGJ,uFACI,yBAOd,sDACI,qBACA,kBAEA,0EACE,WACA,cACA,cACA,WACA,4EACI,gBAEH,8EACI,mBAGD,iGACA,kBACA,WACA,cACA,cACI,gBAO9B,iBACE,oBACA,sBACI,SACA,SACI,6BACR,yBACC,wBACK,yBACF,kBACA,eAGN,kBACE,kBAMF,4BACK,WAEL,UACG,oBACA,eAGH,gDACC,oCAED,gEACC,mBACG,UAEA,uJACO,kBACP,UACA,QAGJ,oDAEA,uGACY,WACA,cACA,cACA,kBACA,cAEA,6LAEA,oMACH,cACS,eAGN,sHAEA,eACF,4BACN,YACA,0BACI,8IACJ,iBAKH,8EACG,kBACA,YACA,WACA,mBACA,eACI,gBACJ,kBAEH,8OACG,mBAIF,iBACI,kBACA,aAEA,4BACE,kBACJ,SACA,UACA,SAGC,0CACI,UACH,kBACA,aACA,WACI,WACD,YACH,aAGD,qCACM,YACL,aACA,UACA,WACA,SACA,UACA,aACA,sBAEC,uCACA,WAIF,6BACI,qCAKP,wDACA,iFAGE,iFAIJ,6CAEC,sCACA,SACG,SACA,UAGJ,mBACC,kBAED,mBACC,kBACG,SACA,QACA,mCACI,eACA,cAGR,uBACoB,mBACA,YACI,sCACpB,2CACA,8CAEY,yCACI,qBACA,WACA,mBAEJ,6CACA,YAEC,iDACG,qBACA,iBAEJ,iDACI,WACA,mBACA,iBACA,YACA,eACA,0BACA,WACA,gCACA,+BACA,8BACA,mCACA,2BACA,YACA,gBAChB,iBAEY,uDACI,mBAEJ,yBACI,eACJ,kBAEA,0CACA,WACA,WACA,gBAEA,sCACI,WACA,0BACA,gBACA,gBACA,WAEpB,qHACC,kBACG,WACA,YACA,gBACA,UACA,qBACA,sBAEJ,kBACI,gBACA,gBACA,WACA,gBAEJ,uCACK,2BAEL,iBACK,eACD,OACA,MACA,WACA,YACA,cACA,sBACJ,mCAEM,cACF,YACA,kBACA,QACA,SACA,gCAEA,yBACD,0BACA,8BACA,kBACA,YACA,aACA,kCAEF,qCACA,8BAEA,oCACA,8BAEA,4CACA,8BAGA,gBACE,0BACA,+BAGH,iBACK,8BACD,gCACI,WAER,4CACK,WACD","file":"fta_admin_style.css"}
|
assets/images/cloudways-logo.png
ADDED
Binary file
|
assets/scss/fta_admin_style.scss
CHANGED
@@ -374,7 +374,7 @@
|
|
374 |
padding: 10px;
|
375 |
height: auto;
|
376 |
box-shadow: none;
|
377 |
-
text-transform:
|
378 |
font-size: 13px;
|
379 |
line-height: normal;
|
380 |
background: #7ed957;
|
@@ -695,6 +695,130 @@
|
|
695 |
}
|
696 |
}
|
697 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
698 |
#toast-container {
|
699 |
top: auto !important;
|
700 |
right: auto !important;
|
@@ -726,7 +850,7 @@
|
|
726 |
#toast-container.esf-failed-notification .toast{
|
727 |
background-color: #ed6d62!important;
|
728 |
}
|
729 |
-
#fta-auth-error.modal, #fta-remove-at.modal{
|
730 |
top: 25% !important;
|
731 |
width: 40%;
|
732 |
|
@@ -736,8 +860,8 @@
|
|
736 |
top: 5px;
|
737 |
}
|
738 |
}
|
739 |
-
#fta-remove-at.modal {width: 30%;}
|
740 |
-
#fta-auth-error, #fta-remove-at{
|
741 |
.mif-modal-content{
|
742 |
float: none;
|
743 |
margin: 0 auto;
|
@@ -763,7 +887,7 @@
|
|
763 |
}
|
764 |
}
|
765 |
}
|
766 |
-
#fta-remove-at{
|
767 |
.mif-modal-content .btn{
|
768 |
padding: 10px 20px;
|
769 |
height: auto;
|
@@ -773,7 +897,7 @@
|
|
773 |
border-radius: 0;
|
774 |
margin-right: 30px;
|
775 |
}
|
776 |
-
.mif-modal-content .efbl_delete_at_confirmed{
|
777 |
background: #ed6d62;
|
778 |
}
|
779 |
}
|
@@ -965,4 +1089,8 @@
|
|
965 |
background: #ed6d62 !important;
|
966 |
border-color: #ca554b !important;
|
967 |
float: left;
|
|
|
|
|
|
|
|
|
968 |
}
|
374 |
padding: 10px;
|
375 |
height: auto;
|
376 |
box-shadow: none;
|
377 |
+
text-transform: none;
|
378 |
font-size: 13px;
|
379 |
line-height: normal;
|
380 |
background: #7ed957;
|
695 |
}
|
696 |
}
|
697 |
|
698 |
+
.fta_wrap.fl-recomend-tab-holder {
|
699 |
+
padding: 15px;
|
700 |
+
float: left;
|
701 |
+
width: 100%;
|
702 |
+
|
703 |
+
.fl-recomend-plugins-holder{
|
704 |
+
width: 73%;
|
705 |
+
display: inline-block;
|
706 |
+
padding-right: 10px;
|
707 |
+
float: left;
|
708 |
+
|
709 |
+
.fl-recomend-wraper{
|
710 |
+
width: 40% !important;
|
711 |
+
float: left;
|
712 |
+
}
|
713 |
+
}
|
714 |
+
.fl-recomend-partner{
|
715 |
+
width: 25%;
|
716 |
+
display: inline-block;
|
717 |
+
}
|
718 |
+
|
719 |
+
.fl-recomend-head{
|
720 |
+
float: left;
|
721 |
+
width: 100%;
|
722 |
+
|
723 |
+
h4{
|
724 |
+
font-size: 1.8rem;
|
725 |
+
font-weight: bold;
|
726 |
+
margin-bottom: 0;
|
727 |
+
}
|
728 |
+
p{
|
729 |
+
margin-top: 10px;
|
730 |
+
}
|
731 |
+
}
|
732 |
+
.row{
|
733 |
+
margin-top: 20px;
|
734 |
+
float: left;
|
735 |
+
margin-bottom: 20px;
|
736 |
+
.fl-recomend-wraper{
|
737 |
+
text-align: center;
|
738 |
+
padding: 20px 12px;
|
739 |
+
margin: 0 5px;
|
740 |
+
width: 24%;
|
741 |
+
-webkit-transition: -webkit-box-shadow .25s;
|
742 |
+
transition: -webkit-box-shadow .25s;
|
743 |
+
transition: box-shadow .25s;
|
744 |
+
transition: box-shadow .25s, -webkit-box-shadow .25s;
|
745 |
+
border-radius: 2px;
|
746 |
+
-webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
|
747 |
+
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
|
748 |
+
|
749 |
+
h4{
|
750 |
+
font-size: 1.8rem;
|
751 |
+
margin: 5px 0px 15px;
|
752 |
+
text-align: center;
|
753 |
+
}
|
754 |
+
p{
|
755 |
+
letter-spacing: .5px;
|
756 |
+
line-height: 1.5;
|
757 |
+
float: left;
|
758 |
+
width: 100%;
|
759 |
+
margin-top: 5px;
|
760 |
+
}
|
761 |
+
|
762 |
+
.fl-recomend-meta-wraper{
|
763 |
+
float: left;
|
764 |
+
width: 100%;
|
765 |
+
margin: 15px 0;
|
766 |
+
p{
|
767 |
+
font-size: 15px;
|
768 |
+
}
|
769 |
+
}
|
770 |
+
.fl-recomends-action
|
771 |
+
{
|
772 |
+
margin-top:10px;
|
773 |
+
float: left;
|
774 |
+
width: 100%;
|
775 |
+
a{
|
776 |
+
background-color: #ff8c00;
|
777 |
+
padding: 10px 18px;
|
778 |
+
font-size: 16px;
|
779 |
+
float: left;
|
780 |
+
color: #fff;
|
781 |
+
|
782 |
+
&:hover{
|
783 |
+
opacity:.9;
|
784 |
+
}
|
785 |
+
}
|
786 |
+
a.right{
|
787 |
+
background-color: #0693e3;
|
788 |
+
}
|
789 |
+
|
790 |
+
}
|
791 |
+
}
|
792 |
+
}
|
793 |
+
|
794 |
+
.fl-recomend-partner{
|
795 |
+
display: inline-block;
|
796 |
+
text-align: center;
|
797 |
+
|
798 |
+
.fl-recomend-wraper{
|
799 |
+
float: none;
|
800 |
+
margin: 0 auto;
|
801 |
+
display: table;
|
802 |
+
width: 100%;
|
803 |
+
p{
|
804 |
+
line-height: 1.8;
|
805 |
+
}
|
806 |
+
img{
|
807 |
+
margin-bottom: 10px;
|
808 |
+
}
|
809 |
+
.fl-recomends-action{
|
810 |
+
a{
|
811 |
+
text-align: center;
|
812 |
+
float: none;
|
813 |
+
margin: 0 auto;
|
814 |
+
display: table;
|
815 |
+
margin-top: 15px;
|
816 |
+
}
|
817 |
+
}
|
818 |
+
}
|
819 |
+
}
|
820 |
+
}
|
821 |
+
|
822 |
#toast-container {
|
823 |
top: auto !important;
|
824 |
right: auto !important;
|
850 |
#toast-container.esf-failed-notification .toast{
|
851 |
background-color: #ed6d62!important;
|
852 |
}
|
853 |
+
#fta-auth-error.modal, #fta-remove-at.modal, #mif-remove-at.modal{
|
854 |
top: 25% !important;
|
855 |
width: 40%;
|
856 |
|
860 |
top: 5px;
|
861 |
}
|
862 |
}
|
863 |
+
#fta-remove-at.modal, #mif-remove-at.modal {width: 30%;}
|
864 |
+
#fta-auth-error, #fta-remove-at, #mif-remove-at{
|
865 |
.mif-modal-content{
|
866 |
float: none;
|
867 |
margin: 0 auto;
|
887 |
}
|
888 |
}
|
889 |
}
|
890 |
+
#fta-remove-at, #mif-remove-at{
|
891 |
.mif-modal-content .btn{
|
892 |
padding: 10px 20px;
|
893 |
height: auto;
|
897 |
border-radius: 0;
|
898 |
margin-right: 30px;
|
899 |
}
|
900 |
+
.mif-modal-content .efbl_delete_at_confirmed, .mif-modal-content .mif_delete_at_confirmed{
|
901 |
background: #ed6d62;
|
902 |
}
|
903 |
}
|
1089 |
background: #ed6d62 !important;
|
1090 |
border-color: #ca554b !important;
|
1091 |
float: left;
|
1092 |
+
}
|
1093 |
+
#fs_connect .fs-visual .dashicons-wordpress{
|
1094 |
+
width: 100%;
|
1095 |
+
height: 100%;
|
1096 |
}
|
easy-facebook-likebox.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Easy Social 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.2.
|
8 |
* Author: Danish Ali Malik
|
9 |
* Author URI: https://maltathemes.com/danish-ali-malik
|
10 |
* Text Domain: easy-facebook-likebox,
|
4 |
* Plugin Name: Easy Social 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.2.5
|
8 |
* Author: Danish Ali Malik
|
9 |
* Author URI: https://maltathemes.com/danish-ali-malik
|
10 |
* Text Domain: easy-facebook-likebox,
|
easy-facebook-likebox/admin/assets/css/admin.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.efbl_wrap{float:left;clear:both;position:relative;width:98.4%;overflow:hidden;background-color:#fff;margin-top:40px}.efbl_wrap a,.efbl_wrap .btn{text-transform:capitalize}.efbl_wrap a::focus,.efbl_wrap a:visited,.efbl_wrap .btn::focus,.efbl_wrap .btn:visited{color:#fff}.efbl_wrap i.left{margin-right:10px}.efbl_wrap .efbl_wrap_inner{float:left;width:100%;clear:both;position:relative}.efbl_wrap .efbl_wrap_inner .efbl_auth_form{padding-top:30px}.efbl_wrap .efbl_wrap_inner .efbl_auth_btn:hover{background-color:#02acf7;color:#fff}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder{float:left;width:100%}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_right{float:right;margin-right:20px;margin-top:12px}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_right a{color:#fff;font-size:17px}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header{background-color:#27aae4;color:#fff;padding:5px 0;height:56px;float:left;width:100%}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header .tab:focus{outline:none}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header #efbl_tabs{background-color:transparent;float:left;width:auto;margin-left:17px}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header #efbl_tabs a{color:#fff;display:table}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header #efbl_tabs a .material-icons{line-height:unset;margin-right:5px;float:left}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header #efbl_tabs a span{text-transform:capitalize}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header #efbl_tabs .indicator{background-color:#1bf1e9;margin-bottom:0;width:140px;float:none;margin:0 auto}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder{float:left;width:100%}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c{padding:15px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder #efbl-authentication .efbl_authentication_btn{padding:10px 25px 10px 10px;height:auto;line-height:2.5;text-transform:capitalize}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder #efbl-authentication .efbl_authentication_btn .efb_icon{height:40px;margin-right:5px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder #efbl-authentication .auth-row{margin-top:20px;margin-bottom:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder #efbl-authentication .auth-row .collection{margin-bottom:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder #efbl-authentication .auth-row .efbl_all_pages{padding:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .fta_empty_at#efbl-authentication .auth-row{margin:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .collapsible-header{text-transform:capitalize;font-size:22px;position:relative}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .collapsible-header .material-icons{margin-top:4px;color:#02acf7}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .collapsible-header .efbl_collapsible_icon{position:absolute;right:0;font-size:30px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .collapsible-header.active .efbl_collapsible_icon{-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortcode_accord .collapsible-header{font-size:16px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortcode_accord .collapsible-header .material-icons{font-size:19px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortcode_accord .collapsible-body p{font-size:14px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_collapsible_info{padding:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_collapsible_info:last-child{margin-top:10px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortocode_genrator_main{float:left;padding:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_like_box_shortocode_genrator{float:left}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortocode_genrator{float:left}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortocode_genrator h5{margin-bottom:20px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .select-wrapper{margin-top:12px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortocode_genrator .efbl_fields.s6:nth-child(even) .efbl_open_collapisble,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_like_box_shortocode_genrator .efbl_fields.s6:nth-child(odd) .efbl_open_likebox_collapisble{right:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_open_collapisble,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_open_likebox_collapisble{position:absolute;right:0;font-size:21px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_fields{padding:0;margin-top:10px;margin-bottom:10px;position:relative}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_fields.efbl_filter_events_wrap{display:none}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .input-field.col label{left:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .select-wrapper input.select-dropdown{color:#867979}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortcode_submit,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_shortcode_submit{margin-top:20px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode{display:none;float:left}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode p,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode p{margin-top:20px;margin-bottom:0;font-size:14px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode .efbl-shortcode-block,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode .efbl-likebox-shortcode-block,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode .efbl-shortcode-block,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode .efbl-likebox-shortcode-block{margin-bottom:0;margin-top:5px;box-shadow:none;border:none}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode .efbl_shortcode_generated_final,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode .efbl_likebox_shortcode_generated_final,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode .efbl_shortcode_generated_final,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode .efbl_likebox_shortcode_generated_final{margin-top:0;width:100%;text-align:center;border-radius:0;padding:5px;line-height:normal;background-color:#25a69aad;box-shadow:none}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode .efbl_shortcode_generated_final i,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode .efbl_likebox_shortcode_generated_final i,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode .efbl_shortcode_generated_final i,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode .efbl_likebox_shortcode_generated_final i{border-radius:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c å p{margin-top:0;font-size:16px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c ol li{font-size:14px;padding:5px 0;line-height:1.5;color:#867979}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c a.btn{margin-top:10px;font-size:15px;padding:6px 20px;height:auto}.efbl_wrap p{font-size:15px;line-height:1.8;font-weight:400;color:#867979;position:relative}.efbl_wrap .efbl_popup_settings{float:left;width:100%}.efbl_wrap .efbl_popup_settings .efbl_popup_info{margin-top:10px;float:left}.efbl_wrap .efbl_popup_settings .select-dropdown [type=checkbox] + label:before,.efbl_wrap .efbl_popup_settings .select-dropdown [type=checkbox]:not(.filled-in) + label:after{top:-17px}.efbl_wrap .efbl_popup_settings .efbl_fields{float:left;width:100%}.efbl_wrap .efbl_popup_settings .checkbox-row{margin-top:20px;padding:0 .75rem}.efbl_wrap .input-field.col label{color:#867979}.efbl_wrap blockquote{background-color:#26a69a;color:#fff;padding:15px;font-size:13px;border-left:5px solid #6fc2ba}.efbl_wrap #efbl-skins .efbl_create_skin{height:auto;padding:5px 25px 5px 20px}.efbl_wrap #efbl-skins .efbl_new_skin{display:none}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details{min-height:550px}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details #efbl_skin_feat_img{width:77.8%}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details .btn.waves-input-wrapper{height:auto;padding:5px 20px 5px 20px}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details #efbl_skin_feat_img_btn{text-transform:capitalize}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details .btn.create_new_skin_fb_wrap.waves-input-wrapper{padding:3px 23px}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details .btn.create_new_skin_fb_wrap.waves-input-wrapper .right{margin-left:5px;font-size:17px;margin-top:2px}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details .efbl_show_all_skins{margin-bottom:10px;text-transform:capitalize;height:auto;padding:5px 15px 5px 15px}.efbl_wrap #efbl-skins .efbl_all_skins{margin-top:20px;margin-bottom:0}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin{display:inline-block;margin-right:15px;margin-bottom:15px;padding:10px;margin-top:0;width:24%}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .skin_free_full{position:absolute;width:100%;height:100%}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .skin_free_full:focus{box-shadow:none}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .selected_layout{padding:6px;float:left;width:100%;background:#27aae4;color:#fff;text-align:center;font-weight:bold;text-transform:capitalize;margin-bottom:10px}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .card-image{max-height:150px;overflow:hidden}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .card-content{border-bottom:1px solid #baa5a5;padding:20px 0 5px 0;margin-bottom:15px;float:left;width:100%}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .btn .material-icons{font-size:15px}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin a.btn{padding:0 20px}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_skin_redirect,.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_skin_delete{padding-right:0;padding-left:0;width:42%}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_skin_redirect .material-icons,.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_skin_delete .material-icons{position:absolute;right:10px;top:2px}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_skin_redirect span,.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_skin_delete span{float:none;margin:0 auto;display:table}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_copy_skin_id{float:left;width:100%;margin-top:20px}.efbl_wrap .efbl_single_skin:nth-child(4n+4){margin-right:0 !important}.efbl_wrap .efbl_single_skin_free{background:#f7f5f2;opacity:.955}.efbl_wrap #efbl-general{position:relative;min-height:300px;padding:0}.efbl_wrap #efbl-general .row{margin-bottom:0}.efbl_wrap .efbl-tabs-vertical{float:left;width:100%;position:relative}.efbl_wrap .efbl-tabs-vertical .efbl_si_tabs_name_holder{padding:0;position:absolute;height:100%;background-color:#0090d0;width:210px}.efbl_wrap .efbl-tabs-vertical .tabs{height:auto;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column;display:-webkit-flex;display:flex;color:#939aaa;background-color:transparent}.efbl_wrap .efbl-tabs-vertical .tab{width:100%;text-align:left;padding-left:11px}.efbl_wrap .efbl-tabs-vertical .tab a{padding:0;color:#fff}.efbl_wrap .efbl-tabs-vertical .tab a span{margin-left:8px}.efbl_wrap .efbl-tabs-vertical .tab a:focus{box-shadow:none !important}.efbl_wrap .efbl-tabs-vertical .tab .active{-moz-transition:border-color .5s ease;-o-transition:border-color .5s ease;-webkit-transition:border-color .5s ease;transition:border-color .5s ease;border-right:4px solid #1bf1e9}.efbl_wrap .efbl-tabs-vertical .tab:hover a{border-color:#7fc6a6}.efbl_wrap .efbl-tabs-vertical .indicator{display:none}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder{float:left;margin-left:210px;padding:13px 15px 20px;min-height:400px;width:auto}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content{float:left;width:100%;padding:0}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder{float:left;padding:0}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder .efbl-red-notice{margin:0}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder .efbl-shortcode-block{float:left;margin-top:0;margin-bottom:5px}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder .efbl_copy_shortcode{margin-top:0;border-radius:0;box-shadow:none;float:left;background-color:#25a69aad;font-size:15px;margin-right:5px}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder .efbl_copy_shortcode i{margin:0}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder p{float:left;margin-top:0}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder h5{float:left;width:100%}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder .efbl_more_head{margin-top:20px}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder #fl_social_sharing_networks_tab a.fl_show_networks{height:auto;padding:5px 25px 5px 18px;text-transform:capitalize}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder #fl_social_sharing_networks_tab a.fl_show_networks:hover,.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder #fl_social_sharing_networks_tab a.fl_show_networks:focus{color:#fff}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder #fl_social_sharing_networks_tab a.fl_show_networks .material-icons{font-size:26px;margin-right:8px;font-weight:bold}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_networks_wrap{float:left;width:100%}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_networks_wrap .fl_available_networks_wrap{float:left;width:100%;margin:15px 0}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_networks_wrap .fl_available_networks_wrap .fl_available_network_wrap{display:inline-block;margin-right:5px;padding:5px 20px}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap{float:left;width:25%;padding:15px;text-align:center}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap h2{font-size:24px;margin:0;margin-bottom:10px}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap img{width:100%;background:rgba(224,228,233,.3019607843);padding:10px}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap ul{list-style-type:none;float:left;width:100%}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap li{display:inline-block;float:left;width:100%}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap input[type=checkbox]{display:none}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap label{border:1px solid #fff;padding:8px;display:block;position:relative;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;float:left;width:100%;height:100%}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap label::before{background-color:#fff;color:#fff;content:" ";display:block;border-radius:50%;border:1px solid #09b95a;position:absolute;top:-5px;left:-5px;width:25px;height:25px;text-align:center;line-height:28px;transition-duration:.4s;transform:scale(0)}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap label img{transition-duration:.2s;transform-origin:50% 50%}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap :checked + label{border-color:#ddd}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap :checked + label::before{content:"✓";background-color:#09b95a;transform:scale(1)}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap :checked + label img{transform:scale(0.9);z-index:-1}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_sidebar img{padding-left:0;padding-bottom:0}.toplevel_page_easy-facebook-likebox #wpfooter{position:relative}.toplevel_page_easy-facebook-likebox #toast-container{top:auto;bottom:0;left:153px;right:0;margin-left:auto;margin-right:auto;text-align:center;width:89.1%;background-color:#02acf7;color:#fff;max-width:100%;min-height:60px}.toplevel_page_easy-facebook-likebox #toast-container .toast{top:auto !important;text-align:center;float:none;margin:0 auto;display:table;background-color:transparent;border:none;box-shadow:none;transition:none !important;font-size:20px;font-weight:400;position:relative;display:inline-block;line-height:2;align-items:normal}.toplevel_page_easy-facebook-likebox #toast-container.efbl_green{background-color:#7fc6a6}.toplevel_page_easy-facebook-likebox #toast-container.efbl_red{background-color:#ed6d62}.slideDown{animation-name:slideDown;-webkit-animation-name:slideDown;animation-duration:2s;-webkit-animation-duration:2s;animation-timing-function:ease;-webkit-animation-timing-function:ease;visibility:visible !important}@keyframes slideDown{0%{transform:translateY(-100%)}50%{transform:translateY(8%)}65%{transform:translateY(-4%)}80%{transform:translateY(4%)}95%{transform:translateY(-2%)}100%{transform:translateY(0%)}}@-webkit-keyframes slideDown{0%{-webkit-transform:translateY(-100%)}50%{-webkit-transform:translateY(8%)}65%{-webkit-transform:translateY(-4%)}80%{-webkit-transform:translateY(4%)}95%{-webkit-transform:translateY(-2%)}100%{-webkit-transform:translateY(0%)}}.slideUp{animation-name:slideUp;-webkit-animation-name:slideUp;animation-duration:2s;-webkit-animation-duration:2s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;visibility:visible !important}@keyframes slideUp{0%{transform:translateY(0%)}50%{transform:translateY(-2%)}95%{transform:translateY(-8%)}100%{transform:translateY(-100%)}}@-webkit-keyframes slideUp{0%{-webkit-transform:translateY(100%)}50%{-webkit-transform:translateY(-8%)}65%{-webkit-transform:translateY(4%)}80%{-webkit-transform:translateY(-4%)}95%{-webkit-transform:translateY(2%)}100%{-webkit-transform:translateY(0%)}}.slideLeft{animation-name:slideLeft;-webkit-animation-name:slideLeft;animation-duration:.7s;-webkit-animation-duration:.7s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important}@-webkit-keyframes slideLeft{0%{-ms-transform:translate(-20px, 0);-webkit-transform:translate(-20px, 0);transform:translate(-20px, 0);opacity:0}100%{-ms-transform:translate(0, 0);-webkit-transform:translate(0, 0);transform:translate(0, 0);opacity:1}}@keyframes slideLeft{0%{-ms-transform:translate(-20px, 0);-webkit-transform:translate(-20px, 0);transform:translate(-20px, 0);opacity:0}100%{-ms-transform:translate(0, 0);-webkit-transform:translate(0, 0);transform:translate(0, 0);opacity:1}}.SlideRight{animation-name:SlideRight;-webkit-animation-name:SlideRight;animation-duration:.7s;-webkit-animation-duration:.7s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important}@-webkit-keyframes SlideRight{0%{-ms-transform:translate(20px, 0);-webkit-transform:translate(20px, 0);transform:translate(20px, 0);opacity:0}100%{-ms-transform:translate(0, 0);-webkit-transform:translate(0, 0);transform:translate(0, 0);opacity:1}}@keyframes SlideRight{0%{-ms-transform:translate(20px, 0);-webkit-transform:translate(20px, 0);transform:translate(20px, 0);opacity:0}100%{-ms-transform:translate(0, 0);-webkit-transform:translate(0, 0);transform:translate(0, 0);opacity:1}}.slideExpandUp{animation-name:slideExpandUp;-webkit-animation-name:slideExpandUp;animation-duration:1.6s;-webkit-animation-duration:1.6s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease -out;visibility:visible !important}@keyframes slideExpandUp{0%{transform:translateY(100%) scaleX(0.5)}30%{transform:translateY(-8%) scaleX(0.5)}40%{transform:translateY(2%) scaleX(0.5)}50%{transform:translateY(0%) scaleX(1.1)}60%{transform:translateY(0%) scaleX(0.9)}70%{transform:translateY(0%) scaleX(1.05)}80%{transform:translateY(0%) scaleX(0.95)}90%{transform:translateY(0%) scaleX(1.02)}100%{transform:translateY(0%) scaleX(1)}}@-webkit-keyframes slideExpandUp{0%{-webkit-transform:translateY(100%) scaleX(0.5)}30%{-webkit-transform:translateY(-8%) scaleX(0.5)}40%{-webkit-transform:translateY(2%) scaleX(0.5)}50%{-webkit-transform:translateY(0%) scaleX(1.1)}60%{-webkit-transform:translateY(0%) scaleX(0.9)}70%{-webkit-transform:translateY(0%) scaleX(1.05)}80%{-webkit-transform:translateY(0%) scaleX(0.95)}90%{-webkit-transform:translateY(0%) scaleX(1.02)}100%{-webkit-transform:translateY(0%) scaleX(1)}}.expandUp{animation-name:expandUp;-webkit-animation-name:expandUp;animation-duration:.7s;-webkit-animation-duration:.7s;animation-timing-function:ease;-webkit-animation-timing-function:ease;visibility:visible !important}@keyframes expandUp{0%{transform:translateY(100%) scale(0.6) scaleY(0.5)}60%{transform:translateY(-7%) scaleY(1.12)}75%{transform:translateY(3%)}100%{transform:translateY(0%) scale(1) scaleY(1)}}@-webkit-keyframes expandUp{0%{-webkit-transform:translateY(100%) scale(0.6) scaleY(0.5)}60%{-webkit-transform:translateY(-7%) scaleY(1.12)}75%{-webkit-transform:translateY(3%)}100%{-webkit-transform:translateY(0%) scale(1) scaleY(1)}}@keyframes fadeIn{0%{opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}100%{opacity:1;-webkit-transition-duration:1.1s;transition-duration:1.1s;-webkit-transition-delay:.05s;transition-delay:.05s}}@-webkit-keyframes fadeIn{0%{opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}100%{opacity:1;-webkit-transition-duration:1.1s;transition-duration:1.1s;-webkit-transition-delay:.05s;transition-delay:.05s}}.fadeIn{animation-name:fadeIn;-webkit-animation-name:fadeIn;animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important}.fadeOut{animation-name:fadeOut;-webkit-animation-name:fadeOut;animation-duration:2s;-webkit-animation-duration:2s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.expandOpen{animation-name:expandOpen;-webkit-animation-name:expandOpen;animation-duration:1.2s;-webkit-animation-duration:1.2s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;visibility:visible !important}@keyframes expandOpen{0%{transform:scale(1.8)}50%{transform:scale(0.95)}80%{transform:scale(1.05)}90%{transform:scale(0.98)}100%{transform:scale(1)}}@-webkit-keyframes expandOpen{0%{-webkit-transform:scale(1.8)}50%{-webkit-transform:scale(0.95)}80%{-webkit-transform:scale(1.05)}90%{-webkit-transform:scale(0.98)}100%{-webkit-transform:scale(1)}}.bigEntrance{animation-name:bigEntrance;-webkit-animation-name:bigEntrance;animation-duration:1.6s;-webkit-animation-duration:1.6s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;visibility:visible !important}@keyframes bigEntrance{0%{transform:scale(0.3) rotate(6deg) translateX(-30%) translateY(30%);opacity:.2}30%{transform:scale(1.03) rotate(-2deg) translateX(2%) translateY(-2%);opacity:1}45%{transform:scale(0.98) rotate(1deg) translateX(0%) translateY(0%);opacity:1}60%{transform:scale(1.01) rotate(-1deg) translateX(0%) translateY(0%);opacity:1}75%{transform:scale(0.99) rotate(1deg) translateX(0%) translateY(0%);opacity:1}90%{transform:scale(1.01) rotate(0deg) translateX(0%) translateY(0%);opacity:1}100%{transform:scale(1) rotate(0deg) translateX(0%) translateY(0%);opacity:1}}@-webkit-keyframes bigEntrance{0%{-webkit-transform:scale(0.3) rotate(6deg) translateX(-30%) translateY(30%);opacity:.2}30%{-webkit-transform:scale(1.03) rotate(-2deg) translateX(2%) translateY(-2%);opacity:1}45%{-webkit-transform:scale(0.98) rotate(1deg) translateX(0%) translateY(0%);opacity:1}60%{-webkit-transform:scale(1.01) rotate(-1deg) translateX(0%) translateY(0%);opacity:1}75%{-webkit-transform:scale(0.99) rotate(1deg) translateX(0%) translateY(0%);opacity:1}90%{-webkit-transform:scale(1.01) rotate(0deg) translateX(0%) translateY(0%);opacity:1}100%{-webkit-transform:scale(1) rotate(0deg) translateX(0%) translateY(0%);opacity:1}}.hatch{animation-name:hatch;-webkit-animation-name:hatch;animation-duration:2s;-webkit-animation-duration:2s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;transform-origin:50% 100%;-ms-transform-origin:50% 100%;-webkit-transform-origin:50% 100%;visibility:visible !important}@keyframes hatch{0%{transform:rotate(0deg) scaleY(0.6)}20%{transform:rotate(-2deg) scaleY(1.05)}35%{transform:rotate(2deg) scaleY(1)}50%{transform:rotate(-2deg)}65%{transform:rotate(1deg)}80%{transform:rotate(-1deg)}100%{transform:rotate(0deg)}}@-webkit-keyframes hatch{0%{-webkit-transform:rotate(0deg) scaleY(0.6)}20%{-webkit-transform:rotate(-2deg) scaleY(1.05)}35%{-webkit-transform:rotate(2deg) scaleY(1)}50%{-webkit-transform:rotate(-2deg)}65%{-webkit-transform:rotate(1deg)}80%{-webkit-transform:rotate(-1deg)}100%{-webkit-transform:rotate(0deg)}}.bounce{animation-name:bounce;-webkit-animation-name:bounce;animation-duration:1.6s;-webkit-animation-duration:1.6s;animation-timing-function:ease;-webkit-animation-timing-function:ease;transform-origin:50% 100%;-ms-transform-origin:50% 100%;-webkit-transform-origin:50% 100%}@keyframes bounce{0%{transform:translateY(0%) scaleY(0.6)}60%{transform:translateY(-100%) scaleY(1.1)}70%{transform:translateY(0%) scaleY(0.95) scaleX(1.05)}80%{transform:translateY(0%) scaleY(1.05) scaleX(1)}90%{transform:translateY(0%) scaleY(0.95) scaleX(1)}100%{transform:translateY(0%) scaleY(1) scaleX(1)}}@-webkit-keyframes bounce{0%{-webkit-transform:translateY(0%) scaleY(0.6)}60%{-webkit-transform:translateY(-100%) scaleY(1.1)}70%{-webkit-transform:translateY(0%) scaleY(0.95) scaleX(1.05)}80%{-webkit-transform:translateY(0%) scaleY(1.05) scaleX(1)}90%{-webkit-transform:translateY(0%) scaleY(0.95) scaleX(1)}100%{-webkit-transform:translateY(0%) scaleY(1) scaleX(1)}}.pulse{animation-name:pulse;-webkit-animation-name:pulse;animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite}@keyframes pulse{0%{transform:scale(0.9);opacity:.7}50%{transform:scale(1);opacity:1}100%{transform:scale(0.9);opacity:.7}}@-webkit-keyframes pulse{0%{-webkit-transform:scale(0.95);opacity:.7}50%{-webkit-transform:scale(1);opacity:1}100%{-webkit-transform:scale(0.95);opacity:.7}}.floating{animation-name:floating;-webkit-animation-name:floating;animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite}@keyframes floating{0%{transform:translateY(0%)}50%{transform:translateY(8%)}100%{transform:translateY(0%)}}@-webkit-keyframes floating{0%{-webkit-transform:translateY(0%)}50%{-webkit-transform:translateY(8%)}100%{-webkit-transform:translateY(0%)}}.tossing{animation-name:tossing;-webkit-animation-name:tossing;animation-duration:2.5s;-webkit-animation-duration:2.5s;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite}@keyframes tossing{0%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}100%{transform:rotate(-4deg)}}@-webkit-keyframes tossing{0%{-webkit-transform:rotate(-4deg)}50%{-webkit-transform:rotate(4deg)}100%{-webkit-transform:rotate(-4deg)}}.pullUp{animation-name:pullUp;-webkit-animation-name:pullUp;animation-duration:1.1s;-webkit-animation-duration:1.1s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;transform-origin:50% 100%;-ms-transform-origin:50% 100%;-webkit-transform-origin:50% 100%}@keyframes pullUp{0%{transform:scaleY(0.1)}40%{transform:scaleY(1.02)}60%{transform:scaleY(0.98)}80%{transform:scaleY(1.01)}100%{transform:scaleY(0.98)}80%{transform:scaleY(1.01)}100%{transform:scaleY(1)}}@-webkit-keyframes pullUp{0%{-webkit-transform:scaleY(0.1)}40%{-webkit-transform:scaleY(1.02)}60%{-webkit-transform:scaleY(0.98)}80%{-webkit-transform:scaleY(1.01)}100%{-webkit-transform:scaleY(0.98)}80%{-webkit-transform:scaleY(1.01)}100%{-webkit-transform:scaleY(1)}}.pullDown{animation-name:pullDown;-webkit-animation-name:pullDown;animation-duration:1.1s;-webkit-animation-duration:1.1s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;transform-origin:50% 0%;-ms-transform-origin:50% 0%;-webkit-transform-origin:50% 0%}@keyframes pullDown{0%{transform:scaleY(0.1)}40%{transform:scaleY(1.02)}60%{transform:scaleY(0.98)}80%{transform:scaleY(1.01)}100%{transform:scaleY(0.98)}80%{transform:scaleY(1.01)}100%{transform:scaleY(1)}}@-webkit-keyframes pullDown{0%{-webkit-transform:scaleY(0.1)}40%{-webkit-transform:scaleY(1.02)}60%{-webkit-transform:scaleY(0.98)}80%{-webkit-transform:scaleY(1.01)}100%{-webkit-transform:scaleY(0.98)}80%{-webkit-transform:scaleY(1.01)}100%{-webkit-transform:scaleY(1)}}.stretchLeft{animation-name:stretchLeft;-webkit-animation-name:stretchLeft;animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;transform-origin:100% 0%;-ms-transform-origin:100% 0%;-webkit-transform-origin:100% 0%}@keyframes stretchLeft{0%{transform:scaleX(0.3)}40%{transform:scaleX(1.02)}60%{transform:scaleX(0.98)}80%{transform:scaleX(1.01)}100%{transform:scaleX(0.98)}80%{transform:scaleX(1.01)}100%{transform:scaleX(1)}}@-webkit-keyframes stretchLeft{0%{-webkit-transform:scaleX(0.3)}40%{-webkit-transform:scaleX(1.02)}60%{-webkit-transform:scaleX(0.98)}80%{-webkit-transform:scaleX(1.01)}100%{-webkit-transform:scaleX(0.98)}80%{-webkit-transform:scaleX(1.01)}100%{-webkit-transform:scaleX(1)}}.stretchRight{animation-name:stretchRight;-webkit-animation-name:stretchRight;animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;transform-origin:0% 0%;-ms-transform-origin:0% 0%;-webkit-transform-origin:0% 0%}@keyframes stretchRight{0%{transform:scaleX(0.3)}40%{transform:scaleX(1.02)}60%{transform:scaleX(0.98)}80%{transform:scaleX(1.01)}100%{transform:scaleX(0.98)}80%{transform:scaleX(1.01)}100%{transform:scaleX(1)}}@-webkit-keyframes stretchRight{0%{-webkit-transform:scaleX(0.3)}40%{-webkit-transform:scaleX(1.02)}60%{-webkit-transform:scaleX(0.98)}80%{-webkit-transform:scaleX(1.01)}100%{-webkit-transform:scaleX(0.98)}80%{-webkit-transform:scaleX(1.01)}100%{-webkit-transform:scaleX(1)}}.Rotate{animation-name:Rotate;-webkit-animation-name:Rotate;animation-duration:3s;-webkit-animation-duration:3s;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;animation-timing-function:linear;-webkit-animation-timing-function:linear}@keyframes Rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@-webkit-keyframes Rotate{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}.Linear_1{animation-name:Linear_1;-webkit-animation-name:Linear_1;animation-duration:2s;-webkit-animation-duration:2s;animation-timing-function:linear;-webkit-animation-timing-function:linear}@keyframes Linear_1{0%{transform:translate(0px, 0px)}50%{transform:translate(-20px, 0px)}100%{transform:translate(0px, 0px)}}@-webkit-keyframes Linear_1{0%{-webkit-transform:translate(0px, 0px)}50%{transform:translate(-20px, 0px)}100%{-webkit-transform:translate(0px, 0px)}}.Linear_2{animation-name:Linear_2;-webkit-animation-name:Linear_2;animation-duration:2s;-webkit-animation-duration:2s;animation-timing-function:linear;-webkit-animation-timing-function:linear}@keyframes Linear_2{0%{transform:translate(0px, 0px)}50%{transform:translate(20px, 0px)}100%{transform:translate(0px, 0px)}}@-webkit-keyframes Linear_2{0%{-webkit-transform:translate(0px, 0px)}50%{transform:translate(20px, 0px)}100%{-webkit-transform:translate(20px, 0px)}}.pulse-down{-webkit-animation:pulse-down 3s ease-in infinite;animation:pulse-down 3s ease-in infinite}@-webkit-keyframes pulse-down{80%{-webkit-transform:translate3d(0, 1px, 0);transform:translate3d(0, 1px, 0)}85%{-webkit-transform:translate3d(0, 5px, 0);transform:translate3d(0, 5px, 0)}90%{-webkit-transform:translate3d(0, 1px, 0);transform:translate3d(0, 1px, 0)}95%{-webkit-transform:translate3d(0, 5px, 0);transform:translate3d(0, 5px, 0)}100%{-webkit-transform:translate3d(0, 1px, 0);transform:translate3d(0, 1px, 0)}}@keyframes pulse-down{80%{-webkit-transform:translate3d(0, 1px, 0);transform:translate3d(0, 1px, 0)}85%{-webkit-transform:translate3d(0, 5px, 0);transform:translate3d(0, 5px, 0)}90%{-webkit-transform:translate3d(0, 1px, 0);transform:translate3d(0, 1px, 0)}95%{-webkit-transform:translate3d(0, 5px, 0);transform:translate3d(0, 5px, 0)}100%{-webkit-transform:translate3d(0, 1px, 0);transform:translate3d(0, 1px, 0)}}@keyframes fadeinout{0%{opacity:0}6.25%{opacity:1}26.75%{opacity:1}33%{opacity:0}}@keyframes flipdown{0%{opacity:0;transform-origin:top center;transform:rotateX(-90deg)}5%{opacity:1}80%{transform:rotateX(8deg)}83%{transform:rotateX(6deg)}92%{transform:rotateX(-3deg)}100%{transform-origin:top center;transform:rotateX(0deg)}}.efbl-confirm-modal.modal{top:25% !important;width:40%}.efbl-confirm-modal.modal .mif-close-modal.modal-close{position:absolute;right:5px;top:5px}.efbl-confirm-modal.modal{width:30%}.efbl-confirm-modal .mif-modal-content{float:none;margin:0 auto;display:table;text-align:center;padding-top:0}.efbl-confirm-modal .mif-modal-content p{font-size:13px;line-height:1.8;border-bottom:1px solid #ccc;padding-bottom:12px}.efbl-confirm-modal .mif-modal-content .mif-lock-icon .material-icons{color:#ed6d62;font-size:60px}.efbl-confirm-modal .mif-modal-content .btn{font-size:13px;padding:10px 25px 10px 10px;height:auto;text-transform:capitalize}.efbl-confirm-modal .mif-modal-content .btn img{height:31px;margin-right:5px}.efbl-confirm-modal .mif-modal-content .btn{padding:10px 20px;height:auto;width:auto;line-height:normal;font-size:15px;border-radius:0;margin-right:30px}.efbl-confirm-modal .mif-modal-content .efbl_skin_delete{background:#ed6d62}/*# sourceMappingURL=admin.css.map */
|
1 |
+
.efbl_wrap{float:left;clear:both;position:relative;width:98.4%;overflow:hidden;background-color:#fff;margin-top:40px}.efbl_wrap a,.efbl_wrap .btn{text-transform:capitalize}.efbl_wrap a::focus,.efbl_wrap a:visited,.efbl_wrap .btn::focus,.efbl_wrap .btn:visited{color:#fff}.efbl_wrap i.left{margin-right:10px}.efbl_wrap .efbl_wrap_inner{float:left;width:100%;clear:both;position:relative}.efbl_wrap .efbl_wrap_inner .efbl_auth_form{padding-top:30px}.efbl_wrap .efbl_wrap_inner .efbl_auth_btn:hover{background-color:#02acf7;color:#fff}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder{float:left;width:100%}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_right{float:right;margin-right:20px;margin-top:12px}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_right a{color:#fff;font-size:17px}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header{background-color:#27aae4;color:#fff;padding:5px 0;height:56px;float:left;width:100%}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header .tab:focus{outline:none}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header #efbl_tabs{background-color:transparent;float:left;width:auto;margin-left:17px}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header #efbl_tabs a{color:#fff;display:table}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header #efbl_tabs a .material-icons{line-height:unset;margin-right:5px;float:left}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header #efbl_tabs a span{text-transform:capitalize}.efbl_wrap .efbl_wrap_inner .efbl_tabs_holder .efbl_tabs_header #efbl_tabs .indicator{background-color:#1bf1e9;margin-bottom:0;width:140px;float:none;margin:0 auto}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder{float:left;width:100%}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c{padding:15px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder #efbl-authentication .efbl_authentication_btn{padding:10px 25px 10px 10px;height:auto;line-height:2.5;text-transform:capitalize}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder #efbl-authentication .efbl_authentication_btn .efb_icon{height:40px;margin-right:5px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder #efbl-authentication .auth-row{margin-top:20px;margin-bottom:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder #efbl-authentication .auth-row .collection{margin-bottom:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder #efbl-authentication .auth-row .efbl_all_pages{padding:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .fta_empty_at#efbl-authentication .auth-row{margin:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .collapsible-header{text-transform:capitalize;font-size:22px;position:relative}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .collapsible-header .material-icons{margin-top:4px;color:#02acf7}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .collapsible-header .efbl_collapsible_icon{position:absolute;right:0;font-size:30px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .collapsible-header.active .efbl_collapsible_icon{-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortcode_accord .collapsible-header{font-size:16px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortcode_accord .collapsible-header .material-icons{font-size:19px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortcode_accord .collapsible-body p{font-size:14px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_collapsible_info{padding:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_collapsible_info:last-child{margin-top:10px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortocode_genrator_main{float:left;padding:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_like_box_shortocode_genrator{float:left}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortocode_genrator{float:left}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortocode_genrator h5{margin-bottom:20px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .select-wrapper{margin-top:12px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortocode_genrator .efbl_fields.s6:nth-child(even) .efbl_open_collapisble,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_like_box_shortocode_genrator .efbl_fields.s6:nth-child(odd) .efbl_open_likebox_collapisble{right:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_open_collapisble,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_open_likebox_collapisble{position:absolute;right:0;font-size:21px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_fields{padding:0;margin-top:10px;margin-bottom:10px;position:relative}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_filter_events_wrap_outer{display:none;float:left;width:100%}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_filter_events_wrap_outer .efbl-events-changes{padding:12px;border:2px dashed #ff8c00;margin-bottom:15px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_filter_events_wrap_outer .efbl-events-changes p{margin:2px 0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_filter_events_wrap_outer .efbl-events-changes a{text-transform:lowercase}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .input-field.col label{left:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .select-wrapper input.select-dropdown{color:#867979}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_shortcode_submit,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_shortcode_submit{margin-top:20px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode{display:none;float:left}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode p,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode p{margin-top:20px;margin-bottom:0;font-size:14px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode .efbl-shortcode-block,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode .efbl-likebox-shortcode-block,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode .efbl-shortcode-block,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode .efbl-likebox-shortcode-block{margin-bottom:0;margin-top:5px;box-shadow:none;border:none}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode .efbl_shortcode_generated_final,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode .efbl_likebox_shortcode_generated_final,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode .efbl_shortcode_generated_final,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode .efbl_likebox_shortcode_generated_final{margin-top:0;width:100%;text-align:center;border-radius:0;padding:5px;line-height:normal;background-color:#25a69aad;box-shadow:none}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode .efbl_shortcode_generated_final i,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_generated_shortcode .efbl_likebox_shortcode_generated_final i,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode .efbl_shortcode_generated_final i,.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c .efbl_likebox_generated_shortcode .efbl_likebox_shortcode_generated_final i{border-radius:0}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c å p{margin-top:0;font-size:16px}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c ol li{font-size:14px;padding:5px 0;line-height:1.5;color:#867979}.efbl_wrap .efbl_wrap_inner .efbl_tab_c_holder .efbl_tab_c a.btn{margin-top:10px;font-size:15px;padding:6px 20px;height:auto}.efbl_wrap p{font-size:15px;line-height:1.8;font-weight:400;color:#867979;position:relative}.efbl_wrap .efbl-popup-dep{display:inline-block;padding:14px;border:2px dashed #ff8c00}.efbl_wrap .efbl-popup-dep p{float:left;margin-top:0;margin-bottom:5px}.efbl_wrap .efbl-popup-dep ol{float:left;margin-bottom:0}.efbl_wrap .efbl-popup-dep a{color:#fff;background:#ff8c00;padding:20px 31px;font-size:15px;float:right;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.efbl_wrap .efbl-popup-dep a:hover{background:#e8850b;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.efbl_wrap .efbl-popup-dep a:focus{box-shadow:none}.efbl_wrap .efbl-popup-dep .esf-small-btn{padding:8px 8px;margin-top:-7px;margin-left:10px;font-size:12px;background:none;border:1px solid #ff8c00;color:#ff8c00}.efbl_wrap .efbl-popup-dep .esf-small-btn:hover{padding:8px 12px;background:none;color:#ff8c00}.efbl_wrap .efbl_popup_settings{float:left;width:100%}.efbl_wrap .efbl_popup_settings .efbl_popup_info{margin-top:10px;float:left}.efbl_wrap .efbl_popup_settings .select-dropdown [type=checkbox] + label:before,.efbl_wrap .efbl_popup_settings .select-dropdown [type=checkbox]:not(.filled-in) + label:after{top:-17px}.efbl_wrap .efbl_popup_settings .efbl_fields{float:left;width:100%}.efbl_wrap .efbl_popup_settings .checkbox-row{margin-top:20px;padding:0 .75rem}.efbl_wrap .input-field.col label{color:#867979}.efbl_wrap blockquote{background-color:#26a69a;color:#fff;padding:15px;font-size:13px;border-left:5px solid #6fc2ba}.efbl_wrap #efbl-skins .efbl_create_skin{height:auto;padding:5px 25px 5px 20px}.efbl_wrap #efbl-skins .efbl_new_skin{display:none}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details{min-height:550px}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details #efbl_skin_feat_img{width:77.8%}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details .btn.waves-input-wrapper{height:auto;padding:5px 20px 5px 20px}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details #efbl_skin_feat_img_btn{text-transform:capitalize}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details .btn.create_new_skin_fb_wrap.waves-input-wrapper{padding:3px 23px}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details .btn.create_new_skin_fb_wrap.waves-input-wrapper .right{margin-left:5px;font-size:17px;margin-top:2px}.efbl_wrap #efbl-skins .efbl_new_skin #efbl_new_skin_details .efbl_show_all_skins{margin-bottom:10px;text-transform:capitalize;height:auto;padding:5px 15px 5px 15px}.efbl_wrap #efbl-skins .efbl_all_skins{margin-top:20px;margin-bottom:0}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin{display:inline-block;margin-right:15px;margin-bottom:15px;padding:10px;margin-top:0;width:24%}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .skin_free_full{position:absolute;width:100%;height:100%}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .skin_free_full:focus{box-shadow:none}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .selected_layout{padding:6px;float:left;width:100%;background:#27aae4;color:#fff;text-align:center;font-weight:bold;text-transform:capitalize;margin-bottom:10px}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .card-image{max-height:150px;overflow:hidden}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .card-content{border-bottom:1px solid #baa5a5;padding:20px 0 5px 0;margin-bottom:15px;float:left;width:100%}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .btn .material-icons{font-size:15px}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin a.btn{padding:0 20px}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_skin_redirect,.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_skin_delete{padding-right:0;padding-left:0;width:42%}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_skin_redirect .material-icons,.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_skin_delete .material-icons{position:absolute;right:10px;top:2px}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_skin_redirect span,.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_skin_delete span{float:none;margin:0 auto;display:table}.efbl_wrap #efbl-skins .efbl_all_skins .efbl_single_skin .efbl_copy_skin_id{float:left;width:100%;margin-top:20px}.efbl_wrap .efbl_single_skin:nth-child(4n+4){margin-right:0 !important}.efbl_wrap .efbl_single_skin_free{background:#f7f5f2;opacity:.955}.efbl_wrap #efbl-general{position:relative;min-height:300px;padding:0}.efbl_wrap #efbl-general .row{margin-bottom:0}.efbl_wrap .efbl-tabs-vertical{float:left;width:100%;position:relative}.efbl_wrap .efbl-tabs-vertical .efbl_si_tabs_name_holder{padding:0;position:absolute;height:100%;background-color:#0090d0;width:210px}.efbl_wrap .efbl-tabs-vertical .tabs{height:auto;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column;display:-webkit-flex;display:flex;color:#939aaa;background-color:transparent}.efbl_wrap .efbl-tabs-vertical .tab{width:100%;text-align:left;padding-left:11px}.efbl_wrap .efbl-tabs-vertical .tab a{padding:0;color:#fff}.efbl_wrap .efbl-tabs-vertical .tab a span{margin-left:8px}.efbl_wrap .efbl-tabs-vertical .tab a:focus{box-shadow:none !important}.efbl_wrap .efbl-tabs-vertical .tab .active{-moz-transition:border-color .5s ease;-o-transition:border-color .5s ease;-webkit-transition:border-color .5s ease;transition:border-color .5s ease;border-right:4px solid #1bf1e9}.efbl_wrap .efbl-tabs-vertical .tab:hover a{border-color:#7fc6a6}.efbl_wrap .efbl-tabs-vertical .indicator{display:none}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder{float:left;margin-left:210px;padding:13px 15px 20px;min-height:400px;width:auto}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content{float:left;width:100%;padding:0}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder{float:left;padding:0}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder .efbl-red-notice{margin:0}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder .efbl-red-notice a{color:#fff;text-decoration:underline;text-transform:lowercase}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder .efbl-shortcode-block{float:left;margin-top:0;margin-bottom:5px}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder .efbl_copy_shortcode{margin-top:0;border-radius:0;box-shadow:none;float:left;background-color:#25a69aad;font-size:15px;margin-right:5px}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder .efbl_copy_shortcode i{margin:0}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder p{float:left;margin-top:0}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder h5{float:left;width:100%}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .tab-content .efbl_default_shortcode_holder .efbl_more_head{margin-top:20px}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder #fl_social_sharing_networks_tab a.fl_show_networks{height:auto;padding:5px 25px 5px 18px;text-transform:capitalize}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder #fl_social_sharing_networks_tab a.fl_show_networks:hover,.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder #fl_social_sharing_networks_tab a.fl_show_networks:focus{color:#fff}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder #fl_social_sharing_networks_tab a.fl_show_networks .material-icons{font-size:26px;margin-right:8px;font-weight:bold}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_networks_wrap{float:left;width:100%}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_networks_wrap .fl_available_networks_wrap{float:left;width:100%;margin:15px 0}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_networks_wrap .fl_available_networks_wrap .fl_available_network_wrap{display:inline-block;margin-right:5px;padding:5px 20px}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap{float:left;width:25%;padding:15px;text-align:center}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap h2{font-size:24px;margin:0;margin-bottom:10px}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap img{width:100%;background:rgba(224,228,233,.3019607843);padding:10px}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap ul{list-style-type:none;float:left;width:100%}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap li{display:inline-block;float:left;width:100%}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap input[type=checkbox]{display:none}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap label{border:1px solid #fff;padding:8px;display:block;position:relative;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;float:left;width:100%;height:100%}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap label::before{background-color:#fff;color:#fff;content:" ";display:block;border-radius:50%;border:1px solid #09b95a;position:absolute;top:-5px;left:-5px;width:25px;height:25px;text-align:center;line-height:28px;transition-duration:.4s;transform:scale(0)}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap label img{transition-duration:.2s;transform-origin:50% 50%}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap :checked + label{border-color:#ddd}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap :checked + label::before{content:"✓";background-color:#09b95a;transform:scale(1)}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_wrap :checked + label img{transform:scale(0.9);z-index:-1}.efbl_wrap .efbl-tabs-vertical .efbl_tabs_holder .fl_ss_locations_wrap .fl_ss_location_sidebar img{padding-left:0;padding-bottom:0}.toplevel_page_easy-facebook-likebox #wpfooter{position:relative}.toplevel_page_easy-facebook-likebox #toast-container{top:auto;bottom:0;left:153px;right:0;margin-left:auto;margin-right:auto;text-align:center;width:89.1%;background-color:#02acf7;color:#fff;max-width:100%;min-height:60px}.toplevel_page_easy-facebook-likebox #toast-container .toast{top:auto !important;text-align:center;float:none;margin:0 auto;display:table;background-color:transparent;border:none;box-shadow:none;transition:none !important;font-size:20px;font-weight:400;position:relative;display:inline-block;line-height:2;align-items:normal}.toplevel_page_easy-facebook-likebox #toast-container.efbl_green{background-color:#7fc6a6}.toplevel_page_easy-facebook-likebox #toast-container.efbl_red{background-color:#ed6d62}.slideDown{animation-name:slideDown;-webkit-animation-name:slideDown;animation-duration:2s;-webkit-animation-duration:2s;animation-timing-function:ease;-webkit-animation-timing-function:ease;visibility:visible !important}@keyframes slideDown{0%{transform:translateY(-100%)}50%{transform:translateY(8%)}65%{transform:translateY(-4%)}80%{transform:translateY(4%)}95%{transform:translateY(-2%)}100%{transform:translateY(0%)}}@-webkit-keyframes slideDown{0%{-webkit-transform:translateY(-100%)}50%{-webkit-transform:translateY(8%)}65%{-webkit-transform:translateY(-4%)}80%{-webkit-transform:translateY(4%)}95%{-webkit-transform:translateY(-2%)}100%{-webkit-transform:translateY(0%)}}.slideUp{animation-name:slideUp;-webkit-animation-name:slideUp;animation-duration:2s;-webkit-animation-duration:2s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;visibility:visible !important}@keyframes slideUp{0%{transform:translateY(0%)}50%{transform:translateY(-2%)}95%{transform:translateY(-8%)}100%{transform:translateY(-100%)}}@-webkit-keyframes slideUp{0%{-webkit-transform:translateY(100%)}50%{-webkit-transform:translateY(-8%)}65%{-webkit-transform:translateY(4%)}80%{-webkit-transform:translateY(-4%)}95%{-webkit-transform:translateY(2%)}100%{-webkit-transform:translateY(0%)}}.slideLeft{animation-name:slideLeft;-webkit-animation-name:slideLeft;animation-duration:.7s;-webkit-animation-duration:.7s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important}@-webkit-keyframes slideLeft{0%{-ms-transform:translate(-20px, 0);-webkit-transform:translate(-20px, 0);transform:translate(-20px, 0);opacity:0}100%{-ms-transform:translate(0, 0);-webkit-transform:translate(0, 0);transform:translate(0, 0);opacity:1}}@keyframes slideLeft{0%{-ms-transform:translate(-20px, 0);-webkit-transform:translate(-20px, 0);transform:translate(-20px, 0);opacity:0}100%{-ms-transform:translate(0, 0);-webkit-transform:translate(0, 0);transform:translate(0, 0);opacity:1}}.SlideRight{animation-name:SlideRight;-webkit-animation-name:SlideRight;animation-duration:.7s;-webkit-animation-duration:.7s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important}@-webkit-keyframes SlideRight{0%{-ms-transform:translate(20px, 0);-webkit-transform:translate(20px, 0);transform:translate(20px, 0);opacity:0}100%{-ms-transform:translate(0, 0);-webkit-transform:translate(0, 0);transform:translate(0, 0);opacity:1}}@keyframes SlideRight{0%{-ms-transform:translate(20px, 0);-webkit-transform:translate(20px, 0);transform:translate(20px, 0);opacity:0}100%{-ms-transform:translate(0, 0);-webkit-transform:translate(0, 0);transform:translate(0, 0);opacity:1}}.slideExpandUp{animation-name:slideExpandUp;-webkit-animation-name:slideExpandUp;animation-duration:1.6s;-webkit-animation-duration:1.6s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease -out;visibility:visible !important}@keyframes slideExpandUp{0%{transform:translateY(100%) scaleX(0.5)}30%{transform:translateY(-8%) scaleX(0.5)}40%{transform:translateY(2%) scaleX(0.5)}50%{transform:translateY(0%) scaleX(1.1)}60%{transform:translateY(0%) scaleX(0.9)}70%{transform:translateY(0%) scaleX(1.05)}80%{transform:translateY(0%) scaleX(0.95)}90%{transform:translateY(0%) scaleX(1.02)}100%{transform:translateY(0%) scaleX(1)}}@-webkit-keyframes slideExpandUp{0%{-webkit-transform:translateY(100%) scaleX(0.5)}30%{-webkit-transform:translateY(-8%) scaleX(0.5)}40%{-webkit-transform:translateY(2%) scaleX(0.5)}50%{-webkit-transform:translateY(0%) scaleX(1.1)}60%{-webkit-transform:translateY(0%) scaleX(0.9)}70%{-webkit-transform:translateY(0%) scaleX(1.05)}80%{-webkit-transform:translateY(0%) scaleX(0.95)}90%{-webkit-transform:translateY(0%) scaleX(1.02)}100%{-webkit-transform:translateY(0%) scaleX(1)}}.expandUp{animation-name:expandUp;-webkit-animation-name:expandUp;animation-duration:.7s;-webkit-animation-duration:.7s;animation-timing-function:ease;-webkit-animation-timing-function:ease;visibility:visible !important}@keyframes expandUp{0%{transform:translateY(100%) scale(0.6) scaleY(0.5)}60%{transform:translateY(-7%) scaleY(1.12)}75%{transform:translateY(3%)}100%{transform:translateY(0%) scale(1) scaleY(1)}}@-webkit-keyframes expandUp{0%{-webkit-transform:translateY(100%) scale(0.6) scaleY(0.5)}60%{-webkit-transform:translateY(-7%) scaleY(1.12)}75%{-webkit-transform:translateY(3%)}100%{-webkit-transform:translateY(0%) scale(1) scaleY(1)}}@keyframes fadeIn{0%{opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}100%{opacity:1;-webkit-transition-duration:1.1s;transition-duration:1.1s;-webkit-transition-delay:.05s;transition-delay:.05s}}@-webkit-keyframes fadeIn{0%{opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}100%{opacity:1;-webkit-transition-duration:1.1s;transition-duration:1.1s;-webkit-transition-delay:.05s;transition-delay:.05s}}.fadeIn{animation-name:fadeIn;-webkit-animation-name:fadeIn;animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important}.fadeOut{animation-name:fadeOut;-webkit-animation-name:fadeOut;animation-duration:2s;-webkit-animation-duration:2s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.expandOpen{animation-name:expandOpen;-webkit-animation-name:expandOpen;animation-duration:1.2s;-webkit-animation-duration:1.2s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;visibility:visible !important}@keyframes expandOpen{0%{transform:scale(1.8)}50%{transform:scale(0.95)}80%{transform:scale(1.05)}90%{transform:scale(0.98)}100%{transform:scale(1)}}@-webkit-keyframes expandOpen{0%{-webkit-transform:scale(1.8)}50%{-webkit-transform:scale(0.95)}80%{-webkit-transform:scale(1.05)}90%{-webkit-transform:scale(0.98)}100%{-webkit-transform:scale(1)}}.bigEntrance{animation-name:bigEntrance;-webkit-animation-name:bigEntrance;animation-duration:1.6s;-webkit-animation-duration:1.6s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;visibility:visible !important}@keyframes bigEntrance{0%{transform:scale(0.3) rotate(6deg) translateX(-30%) translateY(30%);opacity:.2}30%{transform:scale(1.03) rotate(-2deg) translateX(2%) translateY(-2%);opacity:1}45%{transform:scale(0.98) rotate(1deg) translateX(0%) translateY(0%);opacity:1}60%{transform:scale(1.01) rotate(-1deg) translateX(0%) translateY(0%);opacity:1}75%{transform:scale(0.99) rotate(1deg) translateX(0%) translateY(0%);opacity:1}90%{transform:scale(1.01) rotate(0deg) translateX(0%) translateY(0%);opacity:1}100%{transform:scale(1) rotate(0deg) translateX(0%) translateY(0%);opacity:1}}@-webkit-keyframes bigEntrance{0%{-webkit-transform:scale(0.3) rotate(6deg) translateX(-30%) translateY(30%);opacity:.2}30%{-webkit-transform:scale(1.03) rotate(-2deg) translateX(2%) translateY(-2%);opacity:1}45%{-webkit-transform:scale(0.98) rotate(1deg) translateX(0%) translateY(0%);opacity:1}60%{-webkit-transform:scale(1.01) rotate(-1deg) translateX(0%) translateY(0%);opacity:1}75%{-webkit-transform:scale(0.99) rotate(1deg) translateX(0%) translateY(0%);opacity:1}90%{-webkit-transform:scale(1.01) rotate(0deg) translateX(0%) translateY(0%);opacity:1}100%{-webkit-transform:scale(1) rotate(0deg) translateX(0%) translateY(0%);opacity:1}}.hatch{animation-name:hatch;-webkit-animation-name:hatch;animation-duration:2s;-webkit-animation-duration:2s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;transform-origin:50% 100%;-ms-transform-origin:50% 100%;-webkit-transform-origin:50% 100%;visibility:visible !important}@keyframes hatch{0%{transform:rotate(0deg) scaleY(0.6)}20%{transform:rotate(-2deg) scaleY(1.05)}35%{transform:rotate(2deg) scaleY(1)}50%{transform:rotate(-2deg)}65%{transform:rotate(1deg)}80%{transform:rotate(-1deg)}100%{transform:rotate(0deg)}}@-webkit-keyframes hatch{0%{-webkit-transform:rotate(0deg) scaleY(0.6)}20%{-webkit-transform:rotate(-2deg) scaleY(1.05)}35%{-webkit-transform:rotate(2deg) scaleY(1)}50%{-webkit-transform:rotate(-2deg)}65%{-webkit-transform:rotate(1deg)}80%{-webkit-transform:rotate(-1deg)}100%{-webkit-transform:rotate(0deg)}}.bounce{animation-name:bounce;-webkit-animation-name:bounce;animation-duration:1.6s;-webkit-animation-duration:1.6s;animation-timing-function:ease;-webkit-animation-timing-function:ease;transform-origin:50% 100%;-ms-transform-origin:50% 100%;-webkit-transform-origin:50% 100%}@keyframes bounce{0%{transform:translateY(0%) scaleY(0.6)}60%{transform:translateY(-100%) scaleY(1.1)}70%{transform:translateY(0%) scaleY(0.95) scaleX(1.05)}80%{transform:translateY(0%) scaleY(1.05) scaleX(1)}90%{transform:translateY(0%) scaleY(0.95) scaleX(1)}100%{transform:translateY(0%) scaleY(1) scaleX(1)}}@-webkit-keyframes bounce{0%{-webkit-transform:translateY(0%) scaleY(0.6)}60%{-webkit-transform:translateY(-100%) scaleY(1.1)}70%{-webkit-transform:translateY(0%) scaleY(0.95) scaleX(1.05)}80%{-webkit-transform:translateY(0%) scaleY(1.05) scaleX(1)}90%{-webkit-transform:translateY(0%) scaleY(0.95) scaleX(1)}100%{-webkit-transform:translateY(0%) scaleY(1) scaleX(1)}}.pulse{animation-name:pulse;-webkit-animation-name:pulse;animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite}@keyframes pulse{0%{transform:scale(0.9);opacity:.7}50%{transform:scale(1);opacity:1}100%{transform:scale(0.9);opacity:.7}}@-webkit-keyframes pulse{0%{-webkit-transform:scale(0.95);opacity:.7}50%{-webkit-transform:scale(1);opacity:1}100%{-webkit-transform:scale(0.95);opacity:.7}}.floating{animation-name:floating;-webkit-animation-name:floating;animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite}@keyframes floating{0%{transform:translateY(0%)}50%{transform:translateY(8%)}100%{transform:translateY(0%)}}@-webkit-keyframes floating{0%{-webkit-transform:translateY(0%)}50%{-webkit-transform:translateY(8%)}100%{-webkit-transform:translateY(0%)}}.tossing{animation-name:tossing;-webkit-animation-name:tossing;animation-duration:2.5s;-webkit-animation-duration:2.5s;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite}@keyframes tossing{0%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}100%{transform:rotate(-4deg)}}@-webkit-keyframes tossing{0%{-webkit-transform:rotate(-4deg)}50%{-webkit-transform:rotate(4deg)}100%{-webkit-transform:rotate(-4deg)}}.pullUp{animation-name:pullUp;-webkit-animation-name:pullUp;animation-duration:1.1s;-webkit-animation-duration:1.1s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;transform-origin:50% 100%;-ms-transform-origin:50% 100%;-webkit-transform-origin:50% 100%}@keyframes pullUp{0%{transform:scaleY(0.1)}40%{transform:scaleY(1.02)}60%{transform:scaleY(0.98)}80%{transform:scaleY(1.01)}100%{transform:scaleY(0.98)}80%{transform:scaleY(1.01)}100%{transform:scaleY(1)}}@-webkit-keyframes pullUp{0%{-webkit-transform:scaleY(0.1)}40%{-webkit-transform:scaleY(1.02)}60%{-webkit-transform:scaleY(0.98)}80%{-webkit-transform:scaleY(1.01)}100%{-webkit-transform:scaleY(0.98)}80%{-webkit-transform:scaleY(1.01)}100%{-webkit-transform:scaleY(1)}}.pullDown{animation-name:pullDown;-webkit-animation-name:pullDown;animation-duration:1.1s;-webkit-animation-duration:1.1s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;transform-origin:50% 0%;-ms-transform-origin:50% 0%;-webkit-transform-origin:50% 0%}@keyframes pullDown{0%{transform:scaleY(0.1)}40%{transform:scaleY(1.02)}60%{transform:scaleY(0.98)}80%{transform:scaleY(1.01)}100%{transform:scaleY(0.98)}80%{transform:scaleY(1.01)}100%{transform:scaleY(1)}}@-webkit-keyframes pullDown{0%{-webkit-transform:scaleY(0.1)}40%{-webkit-transform:scaleY(1.02)}60%{-webkit-transform:scaleY(0.98)}80%{-webkit-transform:scaleY(1.01)}100%{-webkit-transform:scaleY(0.98)}80%{-webkit-transform:scaleY(1.01)}100%{-webkit-transform:scaleY(1)}}.stretchLeft{animation-name:stretchLeft;-webkit-animation-name:stretchLeft;animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;transform-origin:100% 0%;-ms-transform-origin:100% 0%;-webkit-transform-origin:100% 0%}@keyframes stretchLeft{0%{transform:scaleX(0.3)}40%{transform:scaleX(1.02)}60%{transform:scaleX(0.98)}80%{transform:scaleX(1.01)}100%{transform:scaleX(0.98)}80%{transform:scaleX(1.01)}100%{transform:scaleX(1)}}@-webkit-keyframes stretchLeft{0%{-webkit-transform:scaleX(0.3)}40%{-webkit-transform:scaleX(1.02)}60%{-webkit-transform:scaleX(0.98)}80%{-webkit-transform:scaleX(1.01)}100%{-webkit-transform:scaleX(0.98)}80%{-webkit-transform:scaleX(1.01)}100%{-webkit-transform:scaleX(1)}}.stretchRight{animation-name:stretchRight;-webkit-animation-name:stretchRight;animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-timing-function:ease-out;-webkit-animation-timing-function:ease-out;transform-origin:0% 0%;-ms-transform-origin:0% 0%;-webkit-transform-origin:0% 0%}@keyframes stretchRight{0%{transform:scaleX(0.3)}40%{transform:scaleX(1.02)}60%{transform:scaleX(0.98)}80%{transform:scaleX(1.01)}100%{transform:scaleX(0.98)}80%{transform:scaleX(1.01)}100%{transform:scaleX(1)}}@-webkit-keyframes stretchRight{0%{-webkit-transform:scaleX(0.3)}40%{-webkit-transform:scaleX(1.02)}60%{-webkit-transform:scaleX(0.98)}80%{-webkit-transform:scaleX(1.01)}100%{-webkit-transform:scaleX(0.98)}80%{-webkit-transform:scaleX(1.01)}100%{-webkit-transform:scaleX(1)}}.Rotate{animation-name:Rotate;-webkit-animation-name:Rotate;animation-duration:3s;-webkit-animation-duration:3s;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;animation-timing-function:linear;-webkit-animation-timing-function:linear}@keyframes Rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@-webkit-keyframes Rotate{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}.Linear_1{animation-name:Linear_1;-webkit-animation-name:Linear_1;animation-duration:2s;-webkit-animation-duration:2s;animation-timing-function:linear;-webkit-animation-timing-function:linear}@keyframes Linear_1{0%{transform:translate(0px, 0px)}50%{transform:translate(-20px, 0px)}100%{transform:translate(0px, 0px)}}@-webkit-keyframes Linear_1{0%{-webkit-transform:translate(0px, 0px)}50%{transform:translate(-20px, 0px)}100%{-webkit-transform:translate(0px, 0px)}}.Linear_2{animation-name:Linear_2;-webkit-animation-name:Linear_2;animation-duration:2s;-webkit-animation-duration:2s;animation-timing-function:linear;-webkit-animation-timing-function:linear}@keyframes Linear_2{0%{transform:translate(0px, 0px)}50%{transform:translate(20px, 0px)}100%{transform:translate(0px, 0px)}}@-webkit-keyframes Linear_2{0%{-webkit-transform:translate(0px, 0px)}50%{transform:translate(20px, 0px)}100%{-webkit-transform:translate(20px, 0px)}}.pulse-down{-webkit-animation:pulse-down 3s ease-in infinite;animation:pulse-down 3s ease-in infinite}@-webkit-keyframes pulse-down{80%{-webkit-transform:translate3d(0, 1px, 0);transform:translate3d(0, 1px, 0)}85%{-webkit-transform:translate3d(0, 5px, 0);transform:translate3d(0, 5px, 0)}90%{-webkit-transform:translate3d(0, 1px, 0);transform:translate3d(0, 1px, 0)}95%{-webkit-transform:translate3d(0, 5px, 0);transform:translate3d(0, 5px, 0)}100%{-webkit-transform:translate3d(0, 1px, 0);transform:translate3d(0, 1px, 0)}}@keyframes pulse-down{80%{-webkit-transform:translate3d(0, 1px, 0);transform:translate3d(0, 1px, 0)}85%{-webkit-transform:translate3d(0, 5px, 0);transform:translate3d(0, 5px, 0)}90%{-webkit-transform:translate3d(0, 1px, 0);transform:translate3d(0, 1px, 0)}95%{-webkit-transform:translate3d(0, 5px, 0);transform:translate3d(0, 5px, 0)}100%{-webkit-transform:translate3d(0, 1px, 0);transform:translate3d(0, 1px, 0)}}@keyframes fadeinout{0%{opacity:0}6.25%{opacity:1}26.75%{opacity:1}33%{opacity:0}}@keyframes flipdown{0%{opacity:0;transform-origin:top center;transform:rotateX(-90deg)}5%{opacity:1}80%{transform:rotateX(8deg)}83%{transform:rotateX(6deg)}92%{transform:rotateX(-3deg)}100%{transform-origin:top center;transform:rotateX(0deg)}}.efbl-confirm-modal.modal{top:25% !important;width:40%}.efbl-confirm-modal.modal .mif-close-modal.modal-close{position:absolute;right:5px;top:5px}.efbl-confirm-modal.modal{width:30%}.efbl-confirm-modal .mif-modal-content{float:none;margin:0 auto;display:table;text-align:center;padding-top:0}.efbl-confirm-modal .mif-modal-content p{font-size:13px;line-height:1.8;border-bottom:1px solid #ccc;padding-bottom:12px}.efbl-confirm-modal .mif-modal-content .mif-lock-icon .material-icons{color:#ed6d62;font-size:60px}.efbl-confirm-modal .mif-modal-content .btn{font-size:13px;padding:10px 25px 10px 10px;height:auto;text-transform:capitalize}.efbl-confirm-modal .mif-modal-content .btn img{height:31px;margin-right:5px}.efbl-confirm-modal .mif-modal-content .btn{padding:10px 20px;height:auto;width:auto;line-height:normal;font-size:15px;border-radius:0;margin-right:30px}.efbl-confirm-modal .mif-modal-content .efbl_skin_delete{background:#ed6d62}/*# sourceMappingURL=admin.css.map */
|
easy-facebook-likebox/admin/assets/css/admin.css.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sourceRoot":"","sources":["../scss/admin.scss"],"names":[],"mappings":"AAAA,WACE,WACA,WACA,kBACA,YACA,gBACA,sBACA,gBAEA,6BACA,0BACC,wFACG,WAGJ,kBACI,kBAGJ,4BAGK,WACA,WACA,WACA,kBAEA,4CACI,iBAEJ,iDACA,yBACA,WAEJ,8CAUI,WACA,WAVH,+DACA,YACG,kBACA,gBACC,iEACA,WACA,eAKD,gEACD,yBACG,WACA,cACA,YACA,WACA,WAEA,2EACC,aAID,2EACC,6BACA,WACA,WACA,iBAGA,6EACE,WACA,cAEA,6FACC,kBACA,iBACI,WAEL,kFACI,0BAGR,sFACG,yBACA,gBACA,YACA,WACA,cAMR,+CACI,WACA,WAEA,2DACA,aAKC,6FACI,4BACH,YACA,gBACA,0BAEA,uGACI,YACJ,iBAID,8EACI,gBACI,gBACJ,0FACA,gBAEA,8FACA,UASN,2FACA,SAKO,+EACI,0BACN,eACA,kBACA,+FACA,eACC,cAED,sGACA,kBACA,QACA,eAIG,6GACJ,6BACA,iCACA,yBAII,sGACC,eACA,sHACI,eAGL,sGACI,eAGL,kFACI,UAEJ,6FACI,gBAGJ,0FACI,WACI,UAER,8FACI,WAEJ,qFACD,WAEA,wFACI,mBAGH,2EACI,gBAKJ,wSACA,QAEA,4KACA,kBACH,QACA,eAEI,wEACF,UACA,gBACC,mBACI,kBAEH,
|
1 |
+
{"version":3,"sourceRoot":"","sources":["../scss/admin.scss"],"names":[],"mappings":"AAAA,WACE,WACA,WACA,kBACA,YACA,gBACA,sBACA,gBAEA,6BACA,0BACC,wFACG,WAGJ,kBACI,kBAGJ,4BAGK,WACA,WACA,WACA,kBAEA,4CACI,iBAEJ,iDACA,yBACA,WAEJ,8CAUI,WACA,WAVH,+DACA,YACG,kBACA,gBACC,iEACA,WACA,eAKD,gEACD,yBACG,WACA,cACA,YACA,WACA,WAEA,2EACC,aAID,2EACC,6BACA,WACA,WACA,iBAGA,6EACE,WACA,cAEA,6FACC,kBACA,iBACI,WAEL,kFACI,0BAGR,sFACG,yBACA,gBACA,YACA,WACA,cAMR,+CACI,WACA,WAEA,2DACA,aAKC,6FACI,4BACH,YACA,gBACA,0BAEA,uGACI,YACJ,iBAID,8EACI,gBACI,gBACJ,0FACA,gBAEA,8FACA,UASN,2FACA,SAKO,+EACI,0BACN,eACA,kBACA,+FACA,eACC,cAED,sGACA,kBACA,QACA,eAIG,6GACJ,6BACA,iCACA,yBAII,sGACC,eACA,sHACI,eAGL,sGACI,eAGL,kFACI,UAEJ,6FACI,gBAGJ,0FACI,WACI,UAER,8FACI,WAEJ,qFACD,WAEA,wFACI,mBAGH,2EACI,gBAKJ,wSACA,QAEA,4KACA,kBACH,QACA,eAEI,wEACF,UACA,gBACC,mBACI,kBAEH,0FACA,aACA,WACH,WACC,+GACI,aACH,0BACA,mBAEA,iHACI,aAGJ,iHACA,yBAIC,kFACC,OAED,iGACI,cAGJ,4KACI,gBAEJ,kLACA,aACI,WACJ,sLACI,gBACT,gBACA,eAGM,4cACI,gBACN,eACA,gBACA,YAGE,ofACQ,aACT,WACA,kBACA,gBACA,YACA,mBACA,2BACA,gBACD,4fACI,gBAIJ,+DAEO,aACV,eAEG,iEACM,eACR,cACA,gBACI,cAEF,iEACI,gBACN,eACA,iBACA,YAOR,aACG,eACA,gBACA,gBACA,cACI,kBAIP,2BACA,qBACC,aACC,0BACF,6BACA,WAEE,aACA,kBAEF,8BACI,WACH,gBAEA,6BACI,WACD,mBACI,kBACJ,eACA,YACA,oCACA,kCACA,uCACA,+BACA,mCACC,mBACD,oCACO,kCACA,uCACA,+BAET,mCACA,gBAGD,0CACI,gBACD,gBACA,iBACA,eACA,gBACA,yBACA,cAEA,gDACA,iBACA,gBACA,cAMJ,gCACI,WACD,WAEA,iDACI,gBACH,WAGA,+KACI,UAGJ,6CACI,WACF,WAGF,8CAEI,gBACH,iBAGL,gDAIE,sBACY,yBACN,WACA,aACA,eACF,8BAIN,yCACG,YACE,0BAGL,sCACA,aACC,6DACI,iBACH,iFACI,YAEJ,sFACA,YACG,0BAEH,qFACA,0BAGA,8GACA,iBACC,qHACI,gBACD,eACA,eAGL,kFACI,mBACA,0BACC,YACA,0BAKN,uCACI,gBACA,gBACA,yDACU,qBACR,kBACA,mBACA,aACA,aACA,UAEA,yEACA,kBACA,WACA,YACC,+EACI,gBAGL,0EACI,YACH,WACA,WACA,mBACA,WACA,kBACA,iBACA,0BACI,mBAGL,qEACA,iBACA,gBAEA,uEACO,gCACL,qBACA,mBACA,WACA,WAEN,8EACA,eAEA,+DACI,eAEJ,wJACI,gBACA,eACA,UACC,wLACQ,kBACP,WACA,QAED,kKACI,WACJ,cACA,cAKF,4EACI,WACH,WACA,gBAMP,6CACI,0BAEJ,kCACA,mBACG,aAGH,yBACA,kBACE,iBACA,UACE,8BACF,gBAKE,+BACM,WACD,WACD,kBACJ,yDACG,UACD,kBACA,YACH,yBACA,YAEC,qCACI,YACA,0BACA,8BACA,sBACA,qBACA,aACJ,cACF,6BAGE,oCACI,WACA,gBACJ,kBAEI,sCACA,qBACE,2CACI,gBAGJ,4CACA,2BAKF,4CACI,sCACA,oCACA,yCACA,iCACA,+BAIP,4CACO,qBAGR,0CACI,aAGJ,iDACA,WACD,kBACD,uBACE,iBACI,WAEJ,8DACA,WACA,WACA,UACC,6FAWE,WACA,UAVD,8GACA,SAEC,gHACA,WACA,0BACA,yBAKF,mHACC,WACA,aACA,kBAED,kHACG,aACH,gBACA,gBACA,WACA,2BACA,eACI,iBACJ,oHACI,SAGL,+FACA,WACA,aAEA,gGACI,WACE,WAEN,6GACI,gBAMF,oGACE,YACD,0BACD,0BAEE,oNACA,WAGA,oHACI,eACF,iBACA,iBAKN,mEACA,WACC,WACG,+FACA,WACA,WACA,cACI,0HACE,qBACA,iBACA,iBAML,4FACI,WACC,UACA,aACA,kBAEA,+FACE,eACA,SACD,mBAGD,gGACI,WACA,yCACD,aAEA,+FACG,qBACA,WACA,WAGF,+FACE,qBACA,WACA,WAGF,iHACE,aAGF,kGACE,sBACA,YACA,cACA,kBACA,eACA,2BACA,yBACA,wBACA,sBACA,qBACA,iBACI,WACJ,WACA,YAGF,0GACE,sBACA,WACA,YACA,cACA,kBACA,yBACA,kBACA,SACA,UACA,WACA,YACA,kBACA,iBACA,wBACA,mBAGF,sGACE,wBACA,yBAGF,6GACE,kBAGF,qHACE,YACG,yBACH,mBAGF,iHACE,qBACA,WAGZ,mGAEI,eACA,iBAUb,iEAEA,sDACM,SACH,SACA,WACA,QACA,iBACA,kBACA,kBACA,YACA,yBACA,WACA,eACA,gBAEC,6DACQ,oBACN,kBACA,WACA,cACA,cACA,6BACA,YACA,gBACA,2BACA,eACA,gBACA,kBACA,qBACA,cACI,mBAGV,0FACA,wFAyBD,WAEC,yBAEA,iCAIA,sBAEA,8BAIA,+BAEA,uCAIA,8BAMD,qBAEC,GAEC,4BAID,IAEC,yBAID,IAEC,0BAID,IAEC,yBAID,IAEC,0BAID,KAEC,0BAQF,6BAEC,GAEC,oCAID,IAEC,iCAID,IAEC,kCAID,IAEC,iCAID,IAEC,kCAID,KAEC,kCAuBF,SAEC,uBAEA,+BAIA,sBAEA,8BAIA,mCAEA,2CAIA,8BAMD,mBAEC,GAEC,yBAMD,IAEC,0BAQD,IAEC,0BAMD,KAEC,6BAUF,2BAEC,GAEC,mCAID,IAEC,kCAID,IAEC,iCAID,IAEC,kCAID,IAEC,iCAID,KAEC,kCAwBF,WAEC,yBAEA,iCAIA,uBAEA,+BAIA,sCAEA,8CAIA,8BAMD,6BAEC,GAIA,kCAEC,sCAEA,8BAEA,UAID,KAEA,8BAEC,kCAEA,0BAEA,WAIF,qBAEC,GAEA,kCAEC,sCAEA,wCAIA,KAEA,8BAEA,kCAEA,qCAoBF,YAEC,0BAEA,kCAIA,uBAEA,+BAIA,sCAEA,8CAIA,8BAMD,8BAEC,GAIA,iCAEC,qCAEA,6BAEA,UAID,KAEA,8BAEC,kCAEA,0BAEA,WAIF,sBAEC,GAEA,iCAEC,qCAEA,uCAIA,KAEA,8BAEA,kCAEA,qCAoBF,eAEC,6BAEA,qCAIA,wBAEA,gCAIA,mCAEA,4CAIA,8BAMD,yBAEC,GAEC,uCAID,IAEC,sCAID,IAEC,qCAID,IAEC,qCAID,IAEC,qCAID,IAEC,sCAID,IAEC,sCAID,IAEC,sCAID,KAEC,oCAQF,iCAEC,GAEC,+CAID,IAEC,8CAID,IAEC,6CAID,IAEC,6CAID,IAEC,6CAID,IAEC,8CAID,IAEC,8CAID,IAEC,8CAID,KAEC,4CAsBF,UAEC,wBAEA,gCAIA,uBAEA,+BAIA,+BAEA,uCAIA,8BAMD,oBAEC,GAEC,kDAID,IAEC,uCAID,IAEC,yBAID,KAEC,6CAQF,4BAEC,GAEC,0DAID,IAEC,+CAID,IAEC,iCAID,KAEC,qDAoBF,kBAEC,GAEC,UAEE,oCAEA,4BAEA,kEAEA,0DAMH,KAIA,UAEG,iCAEA,yBAEA,8BAEA,uBAQJ,0BAEE,GAEA,UAEE,oCAEA,4BAEA,kEAEA,0DAMH,KAIA,UAEG,iCAEA,yBAEA,8BAEA,uBAUJ,QAEG,sBAEF,8BAIA,wBAEA,gCAIA,sCAEA,8CAIA,8BAkBD,SAEC,uBAEA,+BAIA,sBAEA,8BAIA,sCAEA,8CAIA,8BAMD,mBAEE,aAEU,gBAMZ,2BAEE,aAEU,gBAsBZ,YAEC,0BAEA,kCAIA,wBAEA,gCAIA,mCAEA,2CAIA,8BAMD,sBAEC,GAEC,qBAID,IAEC,sBAID,IAEC,sBAID,IAEC,sBAID,KAEC,oBAQF,8BAEC,GAEC,6BAID,IAEC,8BAID,IAEC,8BAID,IAEC,8BAID,KAEC,4BAsBF,aAEC,2BAEA,mCAIA,wBAEA,gCAIA,mCAEA,2CAIA,8BAMD,uBAEC,GAEC,mEAEA,WAID,IAEC,mEAEA,UAID,IAEC,iEAEA,UAID,IAEC,kEAEA,UAID,IAEC,iEAEA,UAID,IAEC,iEAEA,UAID,KAEC,8DAEA,WAQF,+BAEC,GAEC,2EAEA,WAID,IAEC,2EAEA,UAID,IAEC,yEAEA,UAID,IAEC,0EAEA,UAID,IAEC,yEAEA,UAID,IAEC,yEAEA,UAID,KAEC,sEAEA,WAoBF,OAEC,qBAEA,6BAIA,sBAEA,8BAIA,sCAEA,8CAIA,0BAEA,8BAEA,kCAIA,8BAMD,iBAEC,GAEC,mCAID,IAEC,qCAID,IAEC,iCAID,IAEC,wBAID,IAEC,uBAID,IAEC,wBAID,KAEC,wBAQF,yBAEC,GAEC,2CAID,IAEC,6CAID,IAEC,yCAID,IAEC,gCAID,IAEC,+BAID,IAEC,gCAID,KAEC,gCAwBF,QAEC,sBAEA,8BAIA,wBAEA,gCAIA,+BAEA,uCAIA,0BAEA,8BAEA,kCAMD,kBAEC,GAEC,qCAID,IAEC,wCAID,IAEC,mDAID,IAEC,gDAID,IAEC,gDAID,KAEC,8CAQF,0BAEC,GAEC,6CAID,IAEC,gDAID,IAEC,2DAID,IAEC,wDAID,IAEC,wDAID,KAEC,sDAsBF,OAEC,qBAEA,6BAIA,wBAEA,gCAIA,mCAEA,2CAMD,iBAEC,GAEC,qBAEA,WAID,IAEC,mBAEA,UAID,KAEC,qBAEA,YAQF,yBAEC,GAEC,8BAEA,WAID,IAEC,2BAEA,UAID,KAEC,8BAEA,YAoBF,UAEC,wBAEA,gCAIA,wBAEA,gCAIA,mCAEA,2CAMD,oBAEC,GAEC,yBAID,IAEC,yBAID,KAEC,0BAQF,4BAEC,GAEC,iCAID,IAEC,iCAID,KAEC,kCAoBF,SAEC,uBAEA,+BAIA,wBAEA,gCAIA,mCAEA,2CAMD,mBAEC,GAEC,wBAID,IAEC,uBAID,KAEC,yBAQF,2BAEC,GAEC,gCAID,IAEC,+BAID,KAEC,iCAoBF,QAEC,sBAEA,8BAIA,wBAEA,gCAIA,mCAEA,2CAIA,0BAEA,8BAEA,kCAMD,kBAEC,GAEC,sBAID,IAEC,uBAID,IAEC,uBAID,IAEC,uBAID,KAEC,uBAID,IAEC,uBAID,KAEC,qBAQF,0BAEC,GAEC,8BAID,IAEC,+BAID,IAEC,+BAID,IAEC,+BAID,KAEC,+BAID,IAEC,+BAID,KAEC,6BAoBF,UAEC,wBAEA,gCAIA,wBAEA,gCAIA,mCAEA,2CAIA,wBAEA,4BAEA,gCAMD,oBAEC,GAEC,sBAID,IAEC,uBAID,IAEC,uBAID,IAEC,uBAID,KAEC,uBAID,IAEC,uBAID,KAEC,qBAQF,4BAEC,GAEC,8BAID,IAEC,+BAID,IAEC,+BAID,IAEC,+BAID,KAEC,+BAID,IAEC,+BAID,KAEC,6BAoBF,aAEC,2BAEA,mCAIA,wBAEA,gCAIA,mCAEA,2CAIA,yBAEA,6BAEA,iCAMD,uBAEC,GAEC,sBAID,IAEC,uBAID,IAEC,uBAID,IAEC,uBAID,KAEC,uBAID,IAEC,uBAID,KAEC,qBAQF,+BAEC,GAEC,8BAID,IAEC,+BAID,IAEC,+BAID,IAEC,+BAID,KAEC,+BAID,IAEC,+BAID,KAEC,6BAoBF,cAEC,4BAEA,oCAIA,wBAEA,gCAIA,mCAEA,2CAIA,uBAEA,2BAEA,+BAMD,wBAEC,GAEC,sBAID,IAEC,uBAID,IAEC,uBAID,IAEC,uBAID,KAEC,uBAID,IAEC,uBAID,KAEC,qBAQF,gCAEC,GAEC,8BAID,IAEC,+BAID,IAEC,+BAID,IAEC,+BAID,KAEC,+BAID,IAEC,+BAID,KAEC,6BAMF,QAEC,sBAEA,8BAIA,sBAEA,8BAIA,mCAEA,2CAIA,iCAEA,yCAMD,kBAEC,GAEA,uBAIA,KAEA,0BAQD,0BAEC,GAEA,+BAQA,KAEA,kCAUD,UAIC,wBAEA,gCAIA,sBAEA,8BAIA,iCAEA,yCAUD,oBAEC,GAEA,8BAMA,IAEA,gCAMC,KAED,+BAMD,4BAEC,GAEA,sCAMD,IAEC,gCAMC,KAED,uCAQD,UAIC,wBAEA,gCAIA,sBAEA,8BAIA,iCAEA,yCAUD,oBAEC,GAEA,8BAIA,IAEA,+BAMC,KAED,+BAMD,4BAEC,GAEA,sCAMD,IAEC,+BAMC,KAED,wCAOA,YACG,iDACA,yCAGJ,8BACI,IACI,yCACQ,iCAEZ,IACI,yCACQ,iCAEZ,IACI,yCACQ,iCAEZ,IACK,yCACQ,iCACZ,KACK,yCACO,kCAIjB,sBACI,IACI,yCACQ,iCAEZ,IACI,yCACQ,iCAEZ,IACI,yCACQ,iCAEZ,IACK,yCACQ,iCACZ,KACK,yCACO,kCAGjB,qBACE,GACE,UAEF,MACE,UAEF,OACE,UAEF,IACE,WAIJ,oBACE,GACE,UACA,4BACA,0BAEF,GACE,UAEF,IACE,wBAEF,IACE,wBAEF,IACE,yBAEF,KACE,4BACA,yBAIJ,0BACC,mBACG,UAEA,uDACO,kBACP,UACA,QAGJ,oCAEA,uCACY,WACA,cACA,cACA,kBACA,cAEA,yHAEA,sEACH,cACS,eAGN,4CAEA,eACF,4BACN,YACA,0BACI,4DACJ,iBAKH,4CACG,kBACA,YACA,WACA,mBACA,eACI,gBACJ,kBAEH,yDACG","file":"admin.css"}
|
easy-facebook-likebox/admin/assets/css/efbl-customizer.css.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sourceRoot":"","sources":["../scss/efbl-customizer.scss"],"names":[],"mappings":"AAAA,sCACM,yBAEN,4UA0CI,2BAxCF,omBACF,mBACI,cACA,WACA,iBACA,iBAEF,gqBACI,kBACF,yBACA,iBACA,kBACA,mBACA,eAEF,sfACI,aACF,YACA,eACA,gBACA,0BACA,qBACA,WACA,yBACA,kBACA,oBACA,gCACA,wBACA,eACA,UACA,WAEE,kjBACA,WACA,wBAGJ,4hEACA,yBAGC,kZACA,cAEF,koBACG,eACA,6BACA,oBAEF,oZACD,0gBACK,oBACA,gBACD,owBACC,eACA,mBACI,cACA,6BACJ,oBAIJ,spBACA,0BAGA,szBAEQ,gBACN,6BACA,oBAGC,4eACK,kBAEA,gqBACA,sBACF,oBACE,iBACA,YACA,yBACA,YACA,gBACD,8rBACI,WACJ,kBACA,qBACA,gvBACA,WAKH,ggBACA,WAEA,8hBACA,WAEF,8wBACI,WACA,0+BACI,UACE,YAIV,opDACE,YACA,iBAGF,wiBACI,WACE,omBACI,UAEA,86BACA,WAGN,wnBACM,YACA,UACA,YAGV,gqBACI,kBACD,yBACG,MACJ,eAEA,suBACI,yBACA,kBACA,kBACA,WACA,WACA,SACA,eACA","file":"efbl-customizer.css"}
|
easy-facebook-likebox/admin/assets/js/admin.js
CHANGED
@@ -8,12 +8,23 @@ jQuery(document).ready(function($){
|
|
8 |
*/
|
9 |
jQuery('select#efbl_filter').on('change', function() {
|
10 |
if(this.value === 'events'){
|
11 |
-
jQuery('.
|
12 |
}else{
|
13 |
-
jQuery('.
|
14 |
}
|
15 |
});
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
/*
|
18 |
* Getting the form submitted value from shortcode generator.
|
19 |
*/
|
@@ -724,7 +735,7 @@ jQuery(document).on("click", ".efbl_options", function($) {
|
|
724 |
},300);
|
725 |
});
|
726 |
|
727 |
-
jQuery('select').on('change', function() {
|
728 |
|
729 |
jQuery('.modal.open').modal('close');
|
730 |
|
8 |
*/
|
9 |
jQuery('select#efbl_filter').on('change', function() {
|
10 |
if(this.value === 'events'){
|
11 |
+
jQuery('.efbl_filter_events_wrap_outer').slideDown('slow');
|
12 |
}else{
|
13 |
+
jQuery('.efbl_filter_events_wrap_outer').slideUp('slow');
|
14 |
}
|
15 |
});
|
16 |
|
17 |
+
jQuery('select#efbl_free_filter_popup').on('change', function() {
|
18 |
+
jQuery('.modal.open').modal('close');
|
19 |
+
jQuery('#efbl-filter-upgrade').modal('open');
|
20 |
+
|
21 |
+
});
|
22 |
+
|
23 |
+
jQuery( "#ef_other_spage_free" ).click(function($) {
|
24 |
+
jQuery('.modal.open').modal('close');
|
25 |
+
jQuery('#efbl-other-pages-upgrade').modal('open');
|
26 |
+
});
|
27 |
+
|
28 |
/*
|
29 |
* Getting the form submitted value from shortcode generator.
|
30 |
*/
|
735 |
},300);
|
736 |
});
|
737 |
|
738 |
+
jQuery('select#efbl_selected_layout').on('change', function() {
|
739 |
|
740 |
jQuery('.modal.open').modal('close');
|
741 |
|
easy-facebook-likebox/admin/assets/scss/admin.scss
CHANGED
@@ -205,8 +205,23 @@
|
|
205 |
margin-bottom: 10px;
|
206 |
position: relative;
|
207 |
}
|
208 |
-
.
|
209 |
display:none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
}
|
211 |
.input-field.col label{
|
212 |
left:0;
|
@@ -278,6 +293,60 @@
|
|
278 |
position: relative;
|
279 |
}
|
280 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
.efbl_popup_settings{
|
282 |
float: left;
|
283 |
width: 100%;
|
@@ -515,6 +584,12 @@
|
|
515 |
|
516 |
.efbl-red-notice{
|
517 |
margin:0;
|
|
|
|
|
|
|
|
|
|
|
|
|
518 |
}
|
519 |
float: left;
|
520 |
padding: 0;
|
205 |
margin-bottom: 10px;
|
206 |
position: relative;
|
207 |
}
|
208 |
+
.efbl_filter_events_wrap_outer{
|
209 |
display:none;
|
210 |
+
float: left;
|
211 |
+
width: 100%;
|
212 |
+
.efbl-events-changes{
|
213 |
+
padding: 12px;
|
214 |
+
border: 2px dashed #ff8c00;
|
215 |
+
margin-bottom: 15px;
|
216 |
+
|
217 |
+
p{
|
218 |
+
margin: 2px 0;
|
219 |
+
}
|
220 |
+
|
221 |
+
a{
|
222 |
+
text-transform: lowercase;
|
223 |
+
}
|
224 |
+
}
|
225 |
}
|
226 |
.input-field.col label{
|
227 |
left:0;
|
293 |
position: relative;
|
294 |
}
|
295 |
|
296 |
+
|
297 |
+
.efbl-popup-dep{
|
298 |
+
display: inline-block;
|
299 |
+
padding: 14px;
|
300 |
+
border: 2px dashed #ff8c00;
|
301 |
+
p{
|
302 |
+
float:left;
|
303 |
+
|
304 |
+
margin-top:0;
|
305 |
+
margin-bottom: 5px;
|
306 |
+
}
|
307 |
+
ol{
|
308 |
+
float: left;
|
309 |
+
margin-bottom: 0;
|
310 |
+
}
|
311 |
+
a{
|
312 |
+
color: #fff;
|
313 |
+
background: #ff8c00;
|
314 |
+
padding: 20px 31px;
|
315 |
+
font-size: 15px;
|
316 |
+
float: right;
|
317 |
+
-moz-transition: all .5s ease-in-out;
|
318 |
+
-o-transition: all .5s ease-in-out;
|
319 |
+
-webkit-transition: all .5s ease-in-out;
|
320 |
+
transition: all .5s ease-in-out;
|
321 |
+
&:hover{
|
322 |
+
background: #e8850b;
|
323 |
+
-moz-transition: all .5s ease-in-out;
|
324 |
+
-o-transition: all .5s ease-in-out;
|
325 |
+
-webkit-transition: all .5s ease-in-out;
|
326 |
+
transition: all .5s ease-in-out;
|
327 |
+
}
|
328 |
+
&:focus{
|
329 |
+
box-shadow:none;
|
330 |
+
}
|
331 |
+
}
|
332 |
+
.esf-small-btn{
|
333 |
+
padding: 8px 8px;
|
334 |
+
margin-top: -7px;
|
335 |
+
margin-left: 10px;
|
336 |
+
font-size: 12px;
|
337 |
+
background: none;
|
338 |
+
border: 1px solid #ff8c00;
|
339 |
+
color: #ff8c00;
|
340 |
+
|
341 |
+
&:hover{
|
342 |
+
padding: 8px 12px;
|
343 |
+
background: none;
|
344 |
+
color: #ff8c00;
|
345 |
+
}
|
346 |
+
}
|
347 |
+
|
348 |
+
}
|
349 |
+
|
350 |
.efbl_popup_settings{
|
351 |
float: left;
|
352 |
width: 100%;
|
584 |
|
585 |
.efbl-red-notice{
|
586 |
margin:0;
|
587 |
+
|
588 |
+
a{
|
589 |
+
color:#fff;
|
590 |
+
text-decoration:underline;
|
591 |
+
text-transform:lowercase;
|
592 |
+
}
|
593 |
}
|
594 |
float: left;
|
595 |
padding: 0;
|
easy-facebook-likebox/admin/easy-facebook-likebox-admin.php
CHANGED
@@ -60,6 +60,11 @@ if ( !class_exists( 'Easy_Facebook_Likebox_Admin' ) ) {
|
|
60 |
* efbl_del_trans method will be call when the cache is being delted.
|
61 |
*/
|
62 |
add_action( 'wp_ajax_efbl_del_trans', array( $this, 'efbl_del_trans_cb' ) );
|
|
|
|
|
|
|
|
|
|
|
63 |
}
|
64 |
|
65 |
/*
|
@@ -126,7 +131,8 @@ if ( !class_exists( 'Easy_Facebook_Likebox_Admin' ) ) {
|
|
126 |
__( 'Facebook', 'easy-facebook-likebox' ),
|
127 |
'manage_options',
|
128 |
'easy-facebook-likebox',
|
129 |
-
array( $this, 'efbl_page' )
|
|
|
130 |
);
|
131 |
}
|
132 |
|
@@ -421,7 +427,7 @@ if ( !class_exists( 'Easy_Facebook_Likebox_Admin' ) ) {
|
|
421 |
$this->efbl_popup_tab(),
|
422 |
$this->efbl_skins_html(),
|
423 |
$this->efbl_cached_html(),
|
424 |
-
'https://www.facebook.com/dialog/oauth?client_id=' . $u_app_ID . '&redirect_uri=https://maltathemes.com/efbl/app-' . $u_app_ID . '/index.php&scope=manage_pages
|
425 |
__( 'Connect My Facebook Pages', 'easy-facebook-likebox' ),
|
426 |
__( "Sorry, Plugin is unable to get the pages data. Please delete the access token and select pages in the second step of authentication to give the permission.", 'easy-facebook-likebox' ),
|
427 |
__( 'Premium Feature', 'easy-facebook-likebox' ),
|
@@ -492,9 +498,8 @@ if ( !class_exists( 'Easy_Facebook_Likebox_Admin' ) ) {
|
|
492 |
|
493 |
jQuery("#efbl_access_token").text("' . $access_token . '");
|
494 |
|
495 |
-
var data={\'action\':\'
|
496 |
-
\'access_token\':\'' . $access_token . '\'
|
497 |
-
\'id\' : \'fb\'
|
498 |
}
|
499 |
|
500 |
jQuery.ajax({
|
@@ -640,7 +645,7 @@ if ( !class_exists( 'Easy_Facebook_Likebox_Admin' ) ) {
|
|
640 |
<h5>%1$s</h5>
|
641 |
<p>%2$s</p>
|
642 |
<a class="waves-effect waves-light efbl_authentication_btn btn" href="%4$s"><img class="efb_icon left" src="' . EFBL_PLUGIN_URL . '/admin/assets/images/facebook-icon.png"/>%3$s</a>
|
643 |
-
|
644 |
<div class="row auth-row">
|
645 |
<div class="efbl_all_pages col s12 %6$s">
|
646 |
%5$s
|
@@ -654,7 +659,7 @@ if ( !class_exists( 'Easy_Facebook_Likebox_Admin' ) ) {
|
|
654 |
__( "Let's connect your Facebook page(s) with the plugin.", 'easy-facebook-likebox' ),
|
655 |
__( 'Click the button below, log into your Facebook account and authorize the app to get access token.', 'easy-facebook-likebox' ),
|
656 |
__( 'Connect My Facebook Pages', 'easy-facebook-likebox' ),
|
657 |
-
'https://www.facebook.com/dialog/oauth?client_id=' . $u_app_ID . '&redirect_uri=https://maltathemes.com/efbl/app-' . $u_app_ID . '/index.php&scope=manage_pages
|
658 |
$efbl_all_pages_html,
|
659 |
$efbl_ap_class,
|
660 |
__( "Please note: This does not give us permission to manage your Facebook pages, it simply allows the plugin to see a list of the pages you manage and retrieve an Access Token.", 'easy-facebook-likebox' )
|
@@ -700,15 +705,23 @@ if ( !class_exists( 'Easy_Facebook_Likebox_Admin' ) ) {
|
|
700 |
$default_skin_id = $fta_settings['plugins']['facebook']['default_skin_id'];
|
701 |
// echo "<pre>"; print_r();exit();
|
702 |
$efbl_premium_filter = null;
|
703 |
-
$efbl_premium_filter = '<div class="col
|
704 |
<a href="javascript:void(0)" class="efbl_open_collapisble" data-id="efbl_filter_posts_info">?</a>
|
705 |
-
<
|
706 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
707 |
$efbl_premium_other_pages = null;
|
708 |
-
$efbl_premium_other_pages = '<div class="col
|
709 |
-
|
710 |
-
|
711 |
-
|
|
|
712 |
$efbl_skin_options = null;
|
713 |
if ( isset( $efbl_skins ) ) {
|
714 |
foreach ( $efbl_skins as $efbl_skin ) {
|
@@ -738,7 +751,7 @@ if ( !class_exists( 'Easy_Facebook_Likebox_Admin' ) ) {
|
|
738 |
<a class="btn waves-effect efbl_copy_shortcode waves-light tooltipped" data-position="right" data-delay="50" data-tooltip="' . __( 'Copy', 'easy-facebook-likebox' ) . '" data-clipboard-text="[efb_feed fanpage_id=' . $default_page_id . ' skin_id=' . $default_skin_id . ']" href="javascript:void(0);"><i class="material-icons right">content_copy</i> </a>';
|
739 |
$efbl_default_likebox_notice = '';
|
740 |
} else {
|
741 |
-
$efbl_default_shortcode = '<blockquote class="efbl-red-notice">' . __( 'It looks like you
|
742 |
$default_page_id = 'easysocialfeed';
|
743 |
$efbl_default_likebox_notice = '<span class="efbl_default_likebox_notice">' . __( '<b>Note:</b> Do not forget to replace "easysocialfeed"</b> with your Facebook page slug/ID or URL', 'easy-facebook-likebox' ) . '</span>';
|
744 |
}
|
@@ -1457,6 +1470,12 @@ if ( !class_exists( 'Easy_Facebook_Likebox_Admin' ) ) {
|
|
1457 |
<input name="" class="modal-trigger" href="#efbl-exit-intent" type="checkbox" required value="efbl_free_exit_intent" id="efbl_free_exit_intent" />
|
1458 |
<label for="efbl_free_exit_intent">' . __( 'Show on exit intent', 'easy-facebook-likebox' ) . '</label>
|
1459 |
<br><i class="efbl_popup_info">' . __( "Enable this option show popup on when user is about to leave the site", 'easy-facebook-likebox' ) . '</i></div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
1460 |
/*
|
1461 |
* General tab html.
|
1462 |
* efbl_popup_html filter can be used to customize general tab html.
|
@@ -1464,6 +1483,21 @@ if ( !class_exists( 'Easy_Facebook_Likebox_Admin' ) ) {
|
|
1464 |
$efbl_popup_html = null;
|
1465 |
$efbl_popup_html .= sprintf(
|
1466 |
'<div id="efbl-auto-popup" class="col s12 efbl_tab_c slideLeft">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1467 |
<h5>%1$s</h5>
|
1468 |
<p>%2$s</p>
|
1469 |
<form class="efbl_popup_settings" name="efbl_popup_settings" type="post">
|
@@ -1554,7 +1588,16 @@ if ( !class_exists( 'Easy_Facebook_Likebox_Admin' ) ) {
|
|
1554 |
__( 'Do not display on mobile devices', 'easy-facebook-likebox' ),
|
1555 |
$this->options( 'efbl_popup_shortcode' ),
|
1556 |
$efbl_premium_pages_enable,
|
1557 |
-
$efbl_premium_exit_intent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1558 |
);
|
1559 |
return apply_filters( 'efbl_popup_html', $efbl_popup_html );
|
1560 |
}
|
@@ -2046,12 +2089,22 @@ if ( !class_exists( 'Easy_Facebook_Likebox_Admin' ) ) {
|
|
2046 |
// echo wp_send_json_success($replaced_value);
|
2047 |
// die();
|
2048 |
if ( wp_verify_nonce( $_POST['efbl_nonce'], 'efbl-ajax-nonce' ) ) {
|
|
|
2049 |
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2050 |
/*
|
2051 |
* Deleting the cache.
|
2052 |
*/
|
2053 |
$efbl_deleted_trans = delete_transient( $replaced_value );
|
2054 |
}
|
|
|
2055 |
}
|
2056 |
/*
|
2057 |
* Checking if option is saved successfully.
|
@@ -2250,6 +2303,145 @@ if ( !class_exists( 'Easy_Facebook_Likebox_Admin' ) ) {
|
|
2250 |
}
|
2251 |
|
2252 |
/* efbl_settings_menu Method ends here. */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2253 |
/*
|
2254 |
* efbl_create_skin_url on ajax.
|
2255 |
* Returns the URL.
|
60 |
* efbl_del_trans method will be call when the cache is being delted.
|
61 |
*/
|
62 |
add_action( 'wp_ajax_efbl_del_trans', array( $this, 'efbl_del_trans_cb' ) );
|
63 |
+
/*
|
64 |
+
* efbl_save_fb_access_token hooks fires on Ajax call.
|
65 |
+
* efbl_save_fb_access_token method will be call when the access token needs to be updated.
|
66 |
+
*/
|
67 |
+
add_action( 'wp_ajax_efbl_save_fb_access_token', array( $this, 'efbl_save_fb_access_token_cb' ) );
|
68 |
}
|
69 |
|
70 |
/*
|
131 |
__( 'Facebook', 'easy-facebook-likebox' ),
|
132 |
'manage_options',
|
133 |
'easy-facebook-likebox',
|
134 |
+
array( $this, 'efbl_page' ),
|
135 |
+
1
|
136 |
);
|
137 |
}
|
138 |
|
427 |
$this->efbl_popup_tab(),
|
428 |
$this->efbl_skins_html(),
|
429 |
$this->efbl_cached_html(),
|
430 |
+
'https://www.facebook.com/dialog/oauth?client_id=' . $u_app_ID . '&redirect_uri=https://maltathemes.com/efbl/app-' . $u_app_ID . '/index.php&scope=manage_pages&state=' . admin_url( 'admin.php?page=easy-facebook-likebox' ) . '',
|
431 |
__( 'Connect My Facebook Pages', 'easy-facebook-likebox' ),
|
432 |
__( "Sorry, Plugin is unable to get the pages data. Please delete the access token and select pages in the second step of authentication to give the permission.", 'easy-facebook-likebox' ),
|
433 |
__( 'Premium Feature', 'easy-facebook-likebox' ),
|
498 |
|
499 |
jQuery("#efbl_access_token").text("' . $access_token . '");
|
500 |
|
501 |
+
var data={\'action\':\'efbl_save_fb_access_token\',
|
502 |
+
\'access_token\':\'' . $access_token . '\'
|
|
|
503 |
}
|
504 |
|
505 |
jQuery.ajax({
|
645 |
<h5>%1$s</h5>
|
646 |
<p>%2$s</p>
|
647 |
<a class="waves-effect waves-light efbl_authentication_btn btn" href="%4$s"><img class="efb_icon left" src="' . EFBL_PLUGIN_URL . '/admin/assets/images/facebook-icon.png"/>%3$s</a>
|
648 |
+
|
649 |
<div class="row auth-row">
|
650 |
<div class="efbl_all_pages col s12 %6$s">
|
651 |
%5$s
|
659 |
__( "Let's connect your Facebook page(s) with the plugin.", 'easy-facebook-likebox' ),
|
660 |
__( 'Click the button below, log into your Facebook account and authorize the app to get access token.', 'easy-facebook-likebox' ),
|
661 |
__( 'Connect My Facebook Pages', 'easy-facebook-likebox' ),
|
662 |
+
'https://www.facebook.com/dialog/oauth?client_id=' . $u_app_ID . '&redirect_uri=https://maltathemes.com/efbl/app-' . $u_app_ID . '/index.php&scope=manage_pages&state=' . admin_url( 'admin.php?page=easy-facebook-likebox' ) . '',
|
663 |
$efbl_all_pages_html,
|
664 |
$efbl_ap_class,
|
665 |
__( "Please note: This does not give us permission to manage your Facebook pages, it simply allows the plugin to see a list of the pages you manage and retrieve an Access Token.", 'easy-facebook-likebox' )
|
705 |
$default_skin_id = $fta_settings['plugins']['facebook']['default_skin_id'];
|
706 |
// echo "<pre>"; print_r();exit();
|
707 |
$efbl_premium_filter = null;
|
708 |
+
$efbl_premium_filter = '<div class="col s12 efbl_fields">
|
709 |
<a href="javascript:void(0)" class="efbl_open_collapisble" data-id="efbl_filter_posts_info">?</a>
|
710 |
+
<select id="efbl_free_filter_popup" class="icons efbl_filter">
|
711 |
+
<option value="">' . __( 'None', 'easy-facebook-likebox' ) . '</option>
|
712 |
+
<option value="">' . __( 'Mentioned', 'easy-facebook-likebox' ) . '</option>
|
713 |
+
<option value="">' . __( 'Events', 'easy-facebook-likebox' ) . '</option>
|
714 |
+
<option value="">' . __( 'Albums', 'easy-facebook-likebox' ) . '</option>
|
715 |
+
<option value="">' . __( 'Videos', 'easy-facebook-likebox' ) . '</option>
|
716 |
+
<option value="">' . __( 'Images', 'easy-facebook-likebox' ) . '</option>
|
717 |
+
</select>
|
718 |
+
<label>' . __( 'Filter Posts', 'easy-facebook-likebox' ) . '</label></div>';
|
719 |
$efbl_premium_other_pages = null;
|
720 |
+
$efbl_premium_other_pages = '<div class="input-field col s12 efbl_fields">
|
721 |
+
<a href="javascript:void(0)" class="efbl_open_collapisble" data-id="efbl_other_pages_info">?</a>
|
722 |
+
<input id="ef_other_spage_free" type="text" min="1">
|
723 |
+
<label for="ef_other_spage_free" class="">' . __( 'Any other page ID', 'easy-facebook-likebox' ) . '</label>
|
724 |
+
</div>';
|
725 |
$efbl_skin_options = null;
|
726 |
if ( isset( $efbl_skins ) ) {
|
727 |
foreach ( $efbl_skins as $efbl_skin ) {
|
751 |
<a class="btn waves-effect efbl_copy_shortcode waves-light tooltipped" data-position="right" data-delay="50" data-tooltip="' . __( 'Copy', 'easy-facebook-likebox' ) . '" data-clipboard-text="[efb_feed fanpage_id=' . $default_page_id . ' skin_id=' . $default_skin_id . ']" href="javascript:void(0);"><i class="material-icons right">content_copy</i> </a>';
|
752 |
$efbl_default_likebox_notice = '';
|
753 |
} else {
|
754 |
+
$efbl_default_shortcode = '<blockquote class="efbl-red-notice">' . __( 'It looks like you did not authenticate the plugin. Please go to <a href="' . admin_url( 'admin.php?page=easy-facebook-likebox' ) . '">this</a> page, click on the Authenticate Facebook Pages.', 'easy-facebook-likebox' ) . '</blockquote>';
|
755 |
$default_page_id = 'easysocialfeed';
|
756 |
$efbl_default_likebox_notice = '<span class="efbl_default_likebox_notice">' . __( '<b>Note:</b> Do not forget to replace "easysocialfeed"</b> with your Facebook page slug/ID or URL', 'easy-facebook-likebox' ) . '</span>';
|
757 |
}
|
1470 |
<input name="" class="modal-trigger" href="#efbl-exit-intent" type="checkbox" required value="efbl_free_exit_intent" id="efbl_free_exit_intent" />
|
1471 |
<label for="efbl_free_exit_intent">' . __( 'Show on exit intent', 'easy-facebook-likebox' ) . '</label>
|
1472 |
<br><i class="efbl_popup_info">' . __( "Enable this option show popup on when user is about to leave the site", 'easy-facebook-likebox' ) . '</i></div>';
|
1473 |
+
$action = 'install-plugin';
|
1474 |
+
$slug = 'wpoptin';
|
1475 |
+
$esf_wpoptin_install = wp_nonce_url( add_query_arg( array(
|
1476 |
+
'action' => $action,
|
1477 |
+
'plugin' => $slug,
|
1478 |
+
), admin_url( 'update.php' ) ), $action . '_' . $slug );
|
1479 |
/*
|
1480 |
* General tab html.
|
1481 |
* efbl_popup_html filter can be used to customize general tab html.
|
1483 |
$efbl_popup_html = null;
|
1484 |
$efbl_popup_html .= sprintf(
|
1485 |
'<div id="efbl-auto-popup" class="col s12 efbl_tab_c slideLeft">
|
1486 |
+
<div class="efbl-popup-dep">
|
1487 |
+
<p>%21$s</p>
|
1488 |
+
<a href="' . $esf_wpoptin_install . '">%22$s</a>
|
1489 |
+
<p>%23$s</p>
|
1490 |
+
<ol>
|
1491 |
+
<li>%24$s</li>
|
1492 |
+
<li>%25$s</li>
|
1493 |
+
<li>%26$s</li>
|
1494 |
+
<li>%27$s</li>
|
1495 |
+
<li>%28$s</li>
|
1496 |
+
<li>%29$s <a class="esf-small-btn" href="' . $esf_wpoptin_install . '">%22$s</a></li>
|
1497 |
+
</ol>
|
1498 |
+
|
1499 |
+
</div>
|
1500 |
+
|
1501 |
<h5>%1$s</h5>
|
1502 |
<p>%2$s</p>
|
1503 |
<form class="efbl_popup_settings" name="efbl_popup_settings" type="post">
|
1588 |
__( 'Do not display on mobile devices', 'easy-facebook-likebox' ),
|
1589 |
$this->options( 'efbl_popup_shortcode' ),
|
1590 |
$efbl_premium_pages_enable,
|
1591 |
+
$efbl_premium_exit_intent,
|
1592 |
+
__( 'Hey! I have deprecated the AutoPop feature of this plugin in favor of my own and most powerful WPOptin and PopUp free plugin.', 'easy-facebook-likebox' ),
|
1593 |
+
__( 'Install now free', 'easy-facebook-likebox' ),
|
1594 |
+
__( 'After installing the plugin follow the steps below to add social media like box in the PopUp:', 'easy-facebook-likebox' ),
|
1595 |
+
__( 'Go to » WPOptin » Add new', 'easy-facebook-likebox' ),
|
1596 |
+
__( 'Select <b>Social Traffic</b> from goals list', 'easy-facebook-likebox' ),
|
1597 |
+
__( 'Select <b>Lightbox popup</b> from types list', 'easy-facebook-likebox' ),
|
1598 |
+
__( 'Select <b>Facebook Likebox</b> option from URL type select field', 'easy-facebook-likebox' ),
|
1599 |
+
__( 'Enter your Facebook page url into the <b>URL to like</b> field.', 'easy-facebook-likebox' ),
|
1600 |
+
__( 'Click the save button and your likebox popup is ready you can further customize the display options and design setting from related tabs.', 'easy-facebook-likebox' )
|
1601 |
);
|
1602 |
return apply_filters( 'efbl_popup_html', $efbl_popup_html );
|
1603 |
}
|
2089 |
// echo wp_send_json_success($replaced_value);
|
2090 |
// die();
|
2091 |
if ( wp_verify_nonce( $_POST['efbl_nonce'], 'efbl-ajax-nonce' ) ) {
|
2092 |
+
|
2093 |
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
2094 |
+
$page_id = explode( '-', $value );
|
2095 |
+
|
2096 |
+
if ( isset( $page_id['1'] ) && !empty($page_id['1']) ) {
|
2097 |
+
$page_id = $page_id['1'];
|
2098 |
+
$page_logo_trasneint_name = "esf_logo_" . $page_id;
|
2099 |
+
delete_transient( $page_logo_trasneint_name );
|
2100 |
+
}
|
2101 |
+
|
2102 |
/*
|
2103 |
* Deleting the cache.
|
2104 |
*/
|
2105 |
$efbl_deleted_trans = delete_transient( $replaced_value );
|
2106 |
}
|
2107 |
+
|
2108 |
}
|
2109 |
/*
|
2110 |
* Checking if option is saved successfully.
|
2303 |
}
|
2304 |
|
2305 |
/* efbl_settings_menu Method ends here. */
|
2306 |
+
/*
|
2307 |
+
* Get the access token and save back into DB
|
2308 |
+
*/
|
2309 |
+
public function efbl_save_fb_access_token_cb()
|
2310 |
+
{
|
2311 |
+
/*
|
2312 |
+
* Getting the access token.
|
2313 |
+
*/
|
2314 |
+
$access_token = $_POST['access_token'];
|
2315 |
+
/*
|
2316 |
+
* All accounts API endpoint
|
2317 |
+
*/
|
2318 |
+
$fta_api_url = 'https://graph.facebook.com/me/accounts?fields=access_token,username,id,name,fan_count,category,about&access_token=' . $access_token;
|
2319 |
+
$args = array(
|
2320 |
+
'timeout' => 150,
|
2321 |
+
'sslverify' => false,
|
2322 |
+
);
|
2323 |
+
/*
|
2324 |
+
* Getting all accounts
|
2325 |
+
*/
|
2326 |
+
$fta_pages = wp_remote_get( $fta_api_url, $args );
|
2327 |
+
/*
|
2328 |
+
* Descoding the array
|
2329 |
+
*/
|
2330 |
+
$fb_pages = json_decode( $fta_pages['body'] );
|
2331 |
+
/*
|
2332 |
+
* Init array
|
2333 |
+
*/
|
2334 |
+
$approved_pages = array();
|
2335 |
+
/*
|
2336 |
+
* If pages exists loop over and save by ID key.
|
2337 |
+
*/
|
2338 |
+
|
2339 |
+
if ( $fb_pages->data ) {
|
2340 |
+
$title = __( 'Approved Pages', 'easy-facebook-likebox' );
|
2341 |
+
$efbl_all_pages_html = '<ul class="collection with-header"> <li class="collection-header"><h5>' . $title . '</h5>
|
2342 |
+
<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>';
|
2343 |
+
foreach ( $fb_pages->data as $efbl_page ) {
|
2344 |
+
$page_logo_trasneint_name = "esf_logo_" . $efbl_page->id;
|
2345 |
+
$auth_img_src = get_transient( $page_logo_trasneint_name );
|
2346 |
+
|
2347 |
+
if ( !$auth_img_src || '' == $auth_img_src ) {
|
2348 |
+
//Get the image suource of author
|
2349 |
+
$auth_img_src = 'https://graph.facebook.com/' . $efbl_page->id . '/picture?type=large&redirect=0&access_token=' . $access_token;
|
2350 |
+
if ( $auth_img_src ) {
|
2351 |
+
$auth_img_src = json_decode( jws_fetchUrl( $auth_img_src ) );
|
2352 |
+
}
|
2353 |
+
if ( $auth_img_src->data->url ) {
|
2354 |
+
$auth_img_src = $auth_img_src->data->url;
|
2355 |
+
}
|
2356 |
+
//Store in a transient for 6 months
|
2357 |
+
$auth_img_src = set_transient( $page_logo_trasneint_name, $auth_img_src, 180 * 60 * 60 * 24 );
|
2358 |
+
}
|
2359 |
+
|
2360 |
+
if ( isset( $auth_img_src->error ) && !empty($auth_img_src->error) ) {
|
2361 |
+
$auth_img_src = null;
|
2362 |
+
}
|
2363 |
+
|
2364 |
+
if ( isset( $efbl_page->username ) ) {
|
2365 |
+
$efbl_username = $efbl_page->username;
|
2366 |
+
$efbl_username_label = __( 'Username:', 'easy-facebook-likebox' );
|
2367 |
+
} else {
|
2368 |
+
$efbl_username = $efbl_page->id;
|
2369 |
+
$efbl_username_label = __( 'ID:', 'easy-facebook-likebox' );
|
2370 |
+
}
|
2371 |
+
|
2372 |
+
$efbl_all_pages_html .= sprintf(
|
2373 |
+
'<li class="collection-item avatar li-' . $efbl_page->id . '">
|
2374 |
+
<a href="https://web.facebook.com/' . $efbl_page->id . '" target="_blank">
|
2375 |
+
<img src="%2$s" alt="" class="circle">
|
2376 |
+
</a>
|
2377 |
+
<span class="title">%1$s</span>
|
2378 |
+
<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>
|
2379 |
+
</li>',
|
2380 |
+
$efbl_page->name,
|
2381 |
+
$auth_img_src,
|
2382 |
+
$efbl_page->category,
|
2383 |
+
$efbl_username,
|
2384 |
+
$efbl_username_label,
|
2385 |
+
__( 'Copy', 'easy-facebook-likebox' )
|
2386 |
+
);
|
2387 |
+
$efbl_page = (array) $efbl_page;
|
2388 |
+
/*
|
2389 |
+
* Making it by ID
|
2390 |
+
*/
|
2391 |
+
$approved_pages[$efbl_page['id']] = $efbl_page;
|
2392 |
+
}
|
2393 |
+
$efbl_all_pages_html .= '</ul>';
|
2394 |
+
}
|
2395 |
+
|
2396 |
+
/*
|
2397 |
+
* All accounts API endpoint
|
2398 |
+
*/
|
2399 |
+
$fta_self_url = 'https://graph.facebook.com/me?fields=id,name&access_token=' . $access_token;
|
2400 |
+
/*
|
2401 |
+
* Getting all accounts
|
2402 |
+
*/
|
2403 |
+
$fta_self_data = wp_remote_get( $fta_self_url, $args );
|
2404 |
+
/*
|
2405 |
+
* Descoding the array
|
2406 |
+
*/
|
2407 |
+
$fta_self_data = json_decode( $fta_self_data['body'] );
|
2408 |
+
$fta_self_data = (array) $fta_self_data;
|
2409 |
+
/*
|
2410 |
+
* Getting Main Class
|
2411 |
+
*/
|
2412 |
+
$FTA = new Feed_Them_All();
|
2413 |
+
/*
|
2414 |
+
* Getting All Settings
|
2415 |
+
*/
|
2416 |
+
$fta_settings = $FTA->fta_get_settings();
|
2417 |
+
$fta_settings['plugins']['facebook']['approved_pages'] = $approved_pages;
|
2418 |
+
$fta_settings['plugins']['facebook']['access_token'] = $access_token;
|
2419 |
+
$fta_settings['plugins']['facebook']['author'] = $fta_self_data;
|
2420 |
+
/*
|
2421 |
+
* Saving values in wp options table.
|
2422 |
+
*/
|
2423 |
+
$efbl_saved = update_option( 'fta_settings', $fta_settings );
|
2424 |
+
/*
|
2425 |
+
* Checking if option is saved successfully.
|
2426 |
+
*/
|
2427 |
+
|
2428 |
+
if ( isset( $efbl_saved ) ) {
|
2429 |
+
/*
|
2430 |
+
* Return success message and die.
|
2431 |
+
*/
|
2432 |
+
echo wp_send_json_success( array( __( 'Successfully Authenticated! Taking you to next step', 'easy-facebook-likebox' ), $efbl_all_pages_html ) ) ;
|
2433 |
+
die;
|
2434 |
+
} else {
|
2435 |
+
/*
|
2436 |
+
* Return error message and die.
|
2437 |
+
*/
|
2438 |
+
echo wp_send_json_error( __( 'Something went wrong! Refresh the page and try Again', 'easy-facebook-likebox' ) ) ;
|
2439 |
+
die;
|
2440 |
+
}
|
2441 |
+
|
2442 |
+
}
|
2443 |
+
|
2444 |
+
/* efbl_save_access_token_cb Method ends here. */
|
2445 |
/*
|
2446 |
* efbl_create_skin_url on ajax.
|
2447 |
* Returns the URL.
|
easy-facebook-likebox/admin/includes/efbl-customizer.php
CHANGED
@@ -1,113 +1,113 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
/*
|
4 |
* Stop execution if someone tried to get file directly.
|
5 |
-
*/
|
6 |
-
if ( !defined( 'ABSPATH' ) ) {
|
7 |
-
exit;
|
8 |
-
}
|
9 |
-
//======================================================================
|
10 |
-
// Customizer code Of My Instagram Feeds
|
11 |
-
//======================================================================
|
12 |
-
|
13 |
-
if ( !class_exists( 'EFBL_Cuustomizer' ) ) {
|
14 |
-
class EFBL_Cuustomizer
|
15 |
-
{
|
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 |
* customize_register hook will add custom files in customizer.
|
25 |
-
*/
|
26 |
-
add_action( 'customize_register', array( $this, 'efbl_customizer' ) );
|
27 |
/*
|
28 |
* customize_preview_init hook will add our js file in customizer.
|
29 |
-
*/
|
30 |
-
add_action( 'customize_preview_init', array( $this, 'efbl_live_preview' ) );
|
31 |
/*
|
32 |
* customize_preview_init hook will add our js file in customizer.
|
33 |
-
*/
|
34 |
-
add_action( 'customize_controls_enqueue_scripts', array( $this, 'efbl_customizer_scripts' ) );
|
35 |
/*
|
36 |
* wp_head hooks fires when page head is load.
|
37 |
* Css file will be added in head.
|
38 |
-
*/
|
39 |
-
add_action( 'wp_head', array( $this, 'efbl_customize_css' ) );
|
40 |
-
}
|
41 |
-
|
42 |
-
/* __construct Method ends here. */
|
43 |
/*
|
44 |
* efbl_customizer holds cutomizer files.
|
45 |
-
*/
|
46 |
-
function efbl_customizer_scripts()
|
47 |
-
{
|
48 |
/*
|
49 |
* Enqueing customizer style file.
|
50 |
-
*/
|
51 |
-
wp_enqueue_style( 'efbl_customizer_style', EFBL_PLUGIN_URL . 'admin/assets/css/efbl-customizer.css' );
|
52 |
-
}
|
53 |
-
|
54 |
-
/* efbl_customizer_scripts Method ends here. */
|
55 |
/*
|
56 |
* efbl_customizer holds code for customizer area.
|
57 |
-
*/
|
58 |
-
public function efbl_customizer( $wp_customize )
|
59 |
-
{
|
60 |
-
$Feed_Them_All = new Feed_Them_All();
|
61 |
-
/* Getting the skin id from URL and saving in option for confliction.*/
|
62 |
-
|
63 |
-
if ( isset( $_GET['efbl_skin_id'] ) ) {
|
64 |
-
$skin_id = $_GET['efbl_skin_id'];
|
65 |
-
update_option( 'efbl_skin_id', $skin_id );
|
66 |
-
}
|
67 |
-
|
68 |
-
|
69 |
-
if ( isset( $_GET['efbl_account_id'] ) ) {
|
70 |
-
$efbl_account_id = $_GET['efbl_account_id'];
|
71 |
-
update_option( 'efbl_account_id', $efbl_account_id );
|
72 |
-
}
|
73 |
-
|
74 |
-
/* Getting back the skin saved ID.*/
|
75 |
-
$skin_id = get_option( 'efbl_skin_id', false );
|
76 |
-
/* Getting the saved values.*/
|
77 |
-
$skin_values = get_option( 'efbl_skin_' . $skin_id, false );
|
78 |
-
/* Selected layout for skin.*/
|
79 |
-
$selected_layout = $skin_values['layout_option'];
|
80 |
-
global $EFBL_SKINS ;
|
81 |
-
if ( !isset( $selected_layout ) or empty($selected_layout) ) {
|
82 |
-
$selected_layout = 'half';
|
83 |
-
}
|
84 |
-
$default_func_name = 'efbl_skin_' . $selected_layout . '_values';
|
85 |
-
$defaults = $EFBL_SKINS->{$default_func_name}();
|
86 |
-
// echo "<pre>"; print_r($defaults);exit();
|
87 |
-
//======================================================================
|
88 |
-
// Easy Facebook Likebox Section
|
89 |
-
//======================================================================
|
90 |
-
/* Adding our efbl panel in customizer.*/
|
91 |
-
$wp_customize->add_panel( 'efbl_customize_panel', array(
|
92 |
-
'title' => __( 'Easy Facebook Feed', $Feed_Them_All->plug_slug ),
|
93 |
-
) );
|
94 |
-
//======================================================================
|
95 |
-
// Layout section
|
96 |
-
//======================================================================
|
97 |
-
/* Adding layout section in customizer under efbl panel.*/
|
98 |
-
$wp_customize->add_section( 'efbl_layout', array(
|
99 |
-
'title' => __( 'Layout Settings', $Feed_Them_All->plug_slug ),
|
100 |
-
'description' => __( 'Select the layout settings in real-time.', $Feed_Them_All->plug_slug ),
|
101 |
-
'priority' => 35,
|
102 |
-
'panel' => 'efbl_customize_panel',
|
103 |
-
) );
|
104 |
-
|
105 |
-
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
106 |
-
} else {
|
107 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_layout_upgrade', array(
|
108 |
-
'settings' => array(),
|
109 |
-
'label' => __( 'Layout Settings', $Feed_Them_All->plug_slug ),
|
110 |
-
'section' => 'efbl_layout',
|
111 |
'description' => __( 'We are sorry, Layout settings are not included in your plan. Please upgrade to premium version to unlock following settings<ul>
|
112 |
<li>Number Of Columns</li>
|
113 |
<li>Show Or Hide Load More Button</li>
|
@@ -115,687 +115,687 @@ if ( !class_exists( 'EFBL_Cuustomizer' ) ) {
|
|
115 |
<li>Load More Color</li>
|
116 |
<li>Load More Hover Background Color</li>
|
117 |
<li>Load More Hover Color</li>
|
118 |
-
</ul>', $Feed_Them_All->plug_slug ),
|
119 |
-
'popup_id' => 'efbl_layout_upgrade',
|
120 |
-
) ) );
|
121 |
-
}
|
122 |
-
|
123 |
-
//======================================================================
|
124 |
-
// Header section
|
125 |
-
//======================================================================
|
126 |
-
/* Adding layout section in customizer under efbl panel.*/
|
127 |
-
$wp_customize->add_section( 'efbl_header', array(
|
128 |
-
'title' => __( 'Header', $Feed_Them_All->plug_slug ),
|
129 |
-
'description' => __( 'Customize the Header In Real Time', $Feed_Them_All->plug_slug ),
|
130 |
-
'priority' => 35,
|
131 |
-
'panel' => 'efbl_customize_panel',
|
132 |
-
) );
|
133 |
-
/* Making settings dynamic and saving data with array.*/
|
134 |
-
$setting = 'efbl_skin_' . $skin_id . '[show_header]';
|
135 |
-
/* Adding Setting of show or hide header.*/
|
136 |
-
$wp_customize->add_setting( $setting, array(
|
137 |
-
'default' => $defaults['show_header'],
|
138 |
-
'transport' => 'postMessage',
|
139 |
-
'type' => 'option',
|
140 |
-
) );
|
141 |
-
/* Adding control of show or hide header.*/
|
142 |
-
$wp_customize->add_control( $setting, array(
|
143 |
-
'label' => __( 'Show Or Hide Header', $Feed_Them_All->plug_slug ),
|
144 |
-
'section' => 'efbl_header',
|
145 |
-
'settings' => $setting,
|
146 |
-
'description' => __( 'Show or hide page header.', $Feed_Them_All->plug_slug ),
|
147 |
-
'type' => 'checkbox',
|
148 |
-
) );
|
149 |
-
/* Making settings dynamic and saving data with array.*/
|
150 |
-
$setting = 'efbl_skin_' . $skin_id . '[header_background_color]';
|
151 |
-
/* Adding Setting of Header text color*/
|
152 |
-
$wp_customize->add_setting( $setting, array(
|
153 |
-
'default' => $defaults['header_background_color'],
|
154 |
-
'transport' => 'postMessage',
|
155 |
-
'type' => 'option',
|
156 |
-
) );
|
157 |
-
/* Adding Control of Header text color*/
|
158 |
-
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $setting, array(
|
159 |
-
'label' => __( 'Header Background Color', $Feed_Them_All->plug_slug ),
|
160 |
-
'section' => 'efbl_header',
|
161 |
-
'settings' => $setting,
|
162 |
-
'description' => __( 'Select the background color of header.', $Feed_Them_All->plug_slug ),
|
163 |
-
) ) );
|
164 |
-
/* Making settings dynamic and saving data with array.*/
|
165 |
-
$setting = 'efbl_skin_' . $skin_id . '[header_text_color]';
|
166 |
-
/* Adding Setting of Header text color*/
|
167 |
-
$wp_customize->add_setting( $setting, array(
|
168 |
-
'default' => $defaults['header_text_color'],
|
169 |
-
'transport' => 'postMessage',
|
170 |
-
'type' => 'option',
|
171 |
-
) );
|
172 |
-
/* Adding Control of Header text color*/
|
173 |
-
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $setting, array(
|
174 |
-
'label' => __( 'Header Text Color', $Feed_Them_All->plug_slug ),
|
175 |
-
'section' => 'efbl_header',
|
176 |
-
'settings' => $setting,
|
177 |
-
'description' => __( 'Select the content color in header.', $Feed_Them_All->plug_slug ),
|
178 |
-
) ) );
|
179 |
-
/* Making settings dynamic and saving data with array.*/
|
180 |
-
$setting = 'efbl_skin_' . $skin_id . '[title_size]';
|
181 |
-
/* Adding Setting of title size*/
|
182 |
-
$wp_customize->add_setting( $setting, array(
|
183 |
-
'default' => $defaults['title_size'],
|
184 |
-
'transport' => 'postMessage',
|
185 |
-
'type' => 'option',
|
186 |
-
) );
|
187 |
-
/* Adding control of title size.*/
|
188 |
-
$wp_customize->add_control( $setting, array(
|
189 |
-
'label' => __( 'Title Size', $Feed_Them_All->plug_slug ),
|
190 |
-
'section' => 'efbl_header',
|
191 |
-
'settings' => $setting,
|
192 |
-
'description' => __( 'Select the text size of profile name.', $Feed_Them_All->plug_slug ),
|
193 |
-
'type' => 'number',
|
194 |
-
'input_attrs' => array(
|
195 |
-
'min' => 0,
|
196 |
-
'max' => 100,
|
197 |
-
),
|
198 |
-
) );
|
199 |
-
|
200 |
-
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
201 |
-
} else {
|
202 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_dp_upgrade', array(
|
203 |
-
'settings' => array(),
|
204 |
-
'label' => __( 'Show Or Hide Display Picture', $Feed_Them_All->plug_slug ),
|
205 |
-
'section' => 'efbl_header',
|
206 |
-
'description' => __( 'We are sorry, “Show Or Hide Display Picture” is a premium feature.', $Feed_Them_All->plug_slug ),
|
207 |
-
'popup_id' => 'efbl_dp_upgrade',
|
208 |
-
) ) );
|
209 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_round_dp_upgrade', array(
|
210 |
-
'settings' => array(),
|
211 |
-
'label' => __( 'Round Display Picture', $Feed_Them_All->plug_slug ),
|
212 |
-
'section' => 'efbl_header',
|
213 |
-
'description' => __( 'We are sorry, “Round Display Picture” is a premium feature.', $Feed_Them_All->plug_slug ),
|
214 |
-
'popup_id' => 'efbl_round_dp_upgrade',
|
215 |
-
) ) );
|
216 |
-
}
|
217 |
-
|
218 |
-
/* Making settings dynamic and saving data with array.*/
|
219 |
-
$setting = 'efbl_skin_' . $skin_id . '[metadata_size]';
|
220 |
-
/* Adding Setting of metadata size*/
|
221 |
-
$wp_customize->add_setting( $setting, array(
|
222 |
-
'default' => $defaults['metadata_size'],
|
223 |
-
'transport' => 'postMessage',
|
224 |
-
'type' => 'option',
|
225 |
-
) );
|
226 |
-
/* Adding control of metadata size.*/
|
227 |
-
$wp_customize->add_control( $setting, array(
|
228 |
-
'label' => __( 'Size of total followers', $Feed_Them_All->plug_slug ),
|
229 |
-
'section' => 'efbl_header',
|
230 |
-
'settings' => $setting,
|
231 |
-
'description' => __( 'Select the text size of total followers in the header.', $Feed_Them_All->plug_slug ),
|
232 |
-
'type' => 'number',
|
233 |
-
'input_attrs' => array(
|
234 |
-
'min' => 0,
|
235 |
-
'max' => 100,
|
236 |
-
),
|
237 |
-
) );
|
238 |
-
|
239 |
-
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
240 |
-
} else {
|
241 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_hide_bio_upgrade', array(
|
242 |
-
'settings' => array(),
|
243 |
-
'label' => __( 'Show Or Hide Bio', $Feed_Them_All->plug_slug ),
|
244 |
-
'section' => 'efbl_header',
|
245 |
-
'description' => __( 'We are sorry, “Show Or Hide Bio” is a premium feature.', $Feed_Them_All->plug_slug ),
|
246 |
-
'popup_id' => 'efbl_head_hide_bio_upgrade',
|
247 |
-
) ) );
|
248 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_color_upgrade', array(
|
249 |
-
'settings' => array(),
|
250 |
-
'label' => __( 'Text Size of Bio', $Feed_Them_All->plug_slug ),
|
251 |
-
'section' => 'efbl_header',
|
252 |
-
'description' => __( 'We are sorry, “Text Size of Bio” is a premium feature.', $Feed_Them_All->plug_slug ),
|
253 |
-
'popup_id' => 'efbl_head_border_color_upgrade',
|
254 |
-
) ) );
|
255 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_color_upgrade', array(
|
256 |
-
'settings' => array(),
|
257 |
-
'label' => __( 'Header Border Color', $Feed_Them_All->plug_slug ),
|
258 |
-
'section' => 'efbl_header',
|
259 |
-
'description' => __( 'We are sorry, “Header Border Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
260 |
-
'popup_id' => 'efbl_head_border_color_upgrade',
|
261 |
-
) ) );
|
262 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_style_upgrade', array(
|
263 |
-
'settings' => array(),
|
264 |
-
'label' => __( 'Border Style', $Feed_Them_All->plug_slug ),
|
265 |
-
'section' => 'efbl_header',
|
266 |
-
'description' => __( 'We are sorry, “Border Style” is a premium feature.', $Feed_Them_All->plug_slug ),
|
267 |
-
'popup_id' => 'efbl_head_border_style_upgrade',
|
268 |
-
) ) );
|
269 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_top_size_upgrade', array(
|
270 |
-
'settings' => array(),
|
271 |
-
'label' => __( 'Border Top', $Feed_Them_All->plug_slug ),
|
272 |
-
'section' => 'efbl_header',
|
273 |
-
'description' => __( 'We are sorry, “Border Top” is a premium feature.', $Feed_Them_All->plug_slug ),
|
274 |
-
'popup_id' => 'efbl_head_border_top_size_upgrade',
|
275 |
-
) ) );
|
276 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_bottom_size_upgrade', array(
|
277 |
-
'settings' => array(),
|
278 |
-
'label' => __( 'Border Bottom', $Feed_Them_All->plug_slug ),
|
279 |
-
'section' => 'efbl_header',
|
280 |
-
'description' => __( 'We are sorry, “Border Bottom” is a premium feature.', $Feed_Them_All->plug_slug ),
|
281 |
-
'popup_id' => 'efbl_head_border_bottom_size_upgrade',
|
282 |
-
) ) );
|
283 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_left_size_upgrade', array(
|
284 |
-
'settings' => array(),
|
285 |
-
'label' => __( 'Border Left', $Feed_Them_All->plug_slug ),
|
286 |
-
'section' => 'efbl_header',
|
287 |
-
'description' => __( 'We are sorry, “Border Left” is a premium feature.', $Feed_Them_All->plug_slug ),
|
288 |
-
'popup_id' => 'efbl_head_border_left_size_upgrade',
|
289 |
-
) ) );
|
290 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_right_size_upgrade', array(
|
291 |
-
'settings' => array(),
|
292 |
-
'label' => __( 'Border Right', $Feed_Them_All->plug_slug ),
|
293 |
-
'section' => 'efbl_header',
|
294 |
-
'description' => __( 'We are sorry, “Border Right” is a premium feature.', $Feed_Them_All->plug_slug ),
|
295 |
-
'popup_id' => 'efbl_head_border_right_size_upgrade',
|
296 |
-
) ) );
|
297 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_padding_top_upgrade', array(
|
298 |
-
'settings' => array(),
|
299 |
-
'label' => __( 'Padding Top', $Feed_Them_All->plug_slug ),
|
300 |
-
'section' => 'efbl_header',
|
301 |
-
'description' => __( 'We are sorry, “Padding Top” is a premium feature.', $Feed_Them_All->plug_slug ),
|
302 |
-
'popup_id' => 'efbl_head_padding_top_upgrade',
|
303 |
-
) ) );
|
304 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_padding_bottom_upgrade', array(
|
305 |
-
'settings' => array(),
|
306 |
-
'label' => __( 'Padding Bottom', $Feed_Them_All->plug_slug ),
|
307 |
-
'section' => 'efbl_header',
|
308 |
-
'description' => __( 'We are sorry, “Padding Bottom” is a premium feature.', $Feed_Them_All->plug_slug ),
|
309 |
-
'popup_id' => 'efbl_head_padding_bottom_upgrade',
|
310 |
-
) ) );
|
311 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_padding_left_upgrade', array(
|
312 |
-
'settings' => array(),
|
313 |
-
'label' => __( 'Padding Left', $Feed_Them_All->plug_slug ),
|
314 |
-
'section' => 'efbl_header',
|
315 |
-
'description' => __( 'We are sorry, “Padding Left” is a premium feature.', $Feed_Them_All->plug_slug ),
|
316 |
-
'popup_id' => 'efbl_head_padding_left_upgrade',
|
317 |
-
) ) );
|
318 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_padding_right_upgrade', array(
|
319 |
-
'settings' => array(),
|
320 |
-
'label' => __( 'Padding Right', $Feed_Them_All->plug_slug ),
|
321 |
-
'section' => 'efbl_header',
|
322 |
-
'description' => __( 'We are sorry, “Padding Right” is a premium feature.', $Feed_Them_All->plug_slug ),
|
323 |
-
'popup_id' => 'efbl_head_padding_right_upgrade',
|
324 |
-
) ) );
|
325 |
-
}
|
326 |
-
|
327 |
-
//======================================================================
|
328 |
-
// Feed section
|
329 |
-
//======================================================================
|
330 |
-
/* Making settings dynamic and saving data with array.*/
|
331 |
-
$setting = 'efbl_skin_' . $skin_id . '[feed_background_color]';
|
332 |
-
/* Adding Setting of Header text color*/
|
333 |
-
$wp_customize->add_setting( $setting, array(
|
334 |
-
'default' => $defaults['feed_background_color'],
|
335 |
-
'transport' => 'postMessage',
|
336 |
-
'type' => 'option',
|
337 |
-
) );
|
338 |
-
/* Adding Control of Header text color*/
|
339 |
-
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $setting, array(
|
340 |
-
'label' => __( 'Background Color', $Feed_Them_All->plug_slug ),
|
341 |
-
'section' => 'efbl_feed',
|
342 |
-
'settings' => $setting,
|
343 |
-
'description' => __( 'Select the Background color of feed.', $Feed_Them_All->plug_slug ),
|
344 |
-
) ) );
|
345 |
-
if ( 'grid' == $selected_layout || 'masonry' == $selected_layout ) {
|
346 |
-
|
347 |
-
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
348 |
-
} else {
|
349 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_shadow_feed_upgrade', array(
|
350 |
-
'settings' => array(),
|
351 |
-
'label' => __( 'Show Or Hide Box Shadow', $Feed_Them_All->plug_slug ),
|
352 |
-
'section' => 'efbl_feed',
|
353 |
-
'description' => __( 'We are sorry, “Show Or Hide Box Shadow” is a premium feature.', $Feed_Them_All->plug_slug ),
|
354 |
-
'popup_id' => 'efbl_shadow_feed_upgrade',
|
355 |
-
) ) );
|
356 |
-
}
|
357 |
-
|
358 |
-
}
|
359 |
-
if ( 'grid' !== $selected_layout ) {
|
360 |
-
|
361 |
-
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
362 |
-
} else {
|
363 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_header_feed_upgrade', array(
|
364 |
-
'settings' => array(),
|
365 |
-
'label' => __( 'Show Or Hide Feed Header', $Feed_Them_All->plug_slug ),
|
366 |
-
'section' => 'efbl_feed',
|
367 |
-
'description' => __( 'We are sorry, “Show Or Hide Feed Header” is a premium feature.', $Feed_Them_All->plug_slug ),
|
368 |
-
'popup_id' => 'efbl_header_feed_upgrade',
|
369 |
-
) ) );
|
370 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_header_feed_logo_upgrade', array(
|
371 |
-
'settings' => array(),
|
372 |
-
'label' => __( 'Show Or Hide Feed Header Logo', $Feed_Them_All->plug_slug ),
|
373 |
-
'section' => 'efbl_feed',
|
374 |
-
'description' => __( 'We are sorry, “Show Or Hide Feed Header Logo” is a premium feature.', $Feed_Them_All->plug_slug ),
|
375 |
-
'popup_id' => 'efbl_header_feed_logo_upgrade',
|
376 |
-
) ) );
|
377 |
-
}
|
378 |
-
|
379 |
-
}
|
380 |
-
|
381 |
-
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
382 |
-
} else {
|
383 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_text_color_feed_upgrade', array(
|
384 |
-
'settings' => array(),
|
385 |
-
'label' => __( 'Text Color', $Feed_Them_All->plug_slug ),
|
386 |
-
'section' => 'efbl_feed',
|
387 |
-
'description' => __( 'We are sorry, “Text Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
388 |
-
'popup_id' => 'efbl_text_color_feed_upgrade',
|
389 |
-
) ) );
|
390 |
-
}
|
391 |
-
|
392 |
-
/* Making settings dynamic and saving data with array.*/
|
393 |
-
$setting = 'efbl_skin_' . $skin_id . '[feed_padding_top]';
|
394 |
-
/* Adding Setting of title size*/
|
395 |
-
$wp_customize->add_setting( $setting, array(
|
396 |
-
'default' => $defaults['feed_padding_top'],
|
397 |
-
'transport' => 'postMessage',
|
398 |
-
'type' => 'option',
|
399 |
-
) );
|
400 |
-
/* Adding control of title size.*/
|
401 |
-
$wp_customize->add_control( $setting, array(
|
402 |
-
'label' => __( 'Padding Top', $Feed_Them_All->plug_slug ),
|
403 |
-
'section' => 'efbl_feed',
|
404 |
-
'settings' => $setting,
|
405 |
-
'description' => __( 'Select the padding top', $Feed_Them_All->plug_slug ),
|
406 |
-
'type' => 'number',
|
407 |
-
'input_attrs' => array(
|
408 |
-
'min' => 0,
|
409 |
-
'max' => 100,
|
410 |
-
),
|
411 |
-
) );
|
412 |
-
/* Making settings dynamic and saving data with array.*/
|
413 |
-
$setting = 'efbl_skin_' . $skin_id . '[feed_padding_bottom]';
|
414 |
-
/* Adding Setting of title size*/
|
415 |
-
$wp_customize->add_setting( $setting, array(
|
416 |
-
'default' => $defaults['feed_padding_bottom'],
|
417 |
-
'transport' => 'postMessage',
|
418 |
-
'type' => 'option',
|
419 |
-
) );
|
420 |
-
/* Adding control of title size.*/
|
421 |
-
$wp_customize->add_control( $setting, array(
|
422 |
-
'label' => __( 'Padding Bottom', $Feed_Them_All->plug_slug ),
|
423 |
-
'section' => 'efbl_feed',
|
424 |
-
'settings' => $setting,
|
425 |
-
'description' => __( 'Select the padding bottom of feed.', $Feed_Them_All->plug_slug ),
|
426 |
-
'type' => 'number',
|
427 |
-
'input_attrs' => array(
|
428 |
-
'min' => 0,
|
429 |
-
'max' => 100,
|
430 |
-
),
|
431 |
-
) );
|
432 |
-
/* Making settings dynamic and saving data with array.*/
|
433 |
-
$setting = 'efbl_skin_' . $skin_id . '[feed_padding_right]';
|
434 |
-
/* Adding Setting of title size*/
|
435 |
-
$wp_customize->add_setting( $setting, array(
|
436 |
-
'default' => $defaults['feed_padding_right'],
|
437 |
-
'transport' => 'postMessage',
|
438 |
-
'type' => 'option',
|
439 |
-
) );
|
440 |
-
/* Adding control of title size.*/
|
441 |
-
$wp_customize->add_control( $setting, array(
|
442 |
-
'label' => __( 'Padding Right', $Feed_Them_All->plug_slug ),
|
443 |
-
'section' => 'efbl_feed',
|
444 |
-
'settings' => $setting,
|
445 |
-
'description' => __( 'Select the padding right for feed.', $Feed_Them_All->plug_slug ),
|
446 |
-
'type' => 'number',
|
447 |
-
'input_attrs' => array(
|
448 |
-
'min' => 0,
|
449 |
-
'max' => 100,
|
450 |
-
),
|
451 |
-
) );
|
452 |
-
/* Making settings dynamic and saving data with array.*/
|
453 |
-
$setting = 'efbl_skin_' . $skin_id . '[feed_padding_left]';
|
454 |
-
/* Adding Setting of title size*/
|
455 |
-
$wp_customize->add_setting( $setting, array(
|
456 |
-
'default' => $defaults['feed_padding_left'],
|
457 |
-
'transport' => 'postMessage',
|
458 |
-
'type' => 'option',
|
459 |
-
) );
|
460 |
-
/* Adding control of title size.*/
|
461 |
-
$wp_customize->add_control( $setting, array(
|
462 |
-
'label' => __( 'Padding Left', $Feed_Them_All->plug_slug ),
|
463 |
-
'section' => 'efbl_feed',
|
464 |
-
'settings' => $setting,
|
465 |
-
'description' => __( 'Select the padding left for feed.', $Feed_Them_All->plug_slug ),
|
466 |
-
'type' => 'number',
|
467 |
-
'input_attrs' => array(
|
468 |
-
'min' => 0,
|
469 |
-
'max' => 100,
|
470 |
-
),
|
471 |
-
) );
|
472 |
-
|
473 |
-
if ( 'masonry' !== $selected_layout && 'carousel' !== $selected_layout ) {
|
474 |
-
/* Making settings dynamic and saving data with array.*/
|
475 |
-
$setting = 'efbl_skin_' . $skin_id . '[feed_margin_top]';
|
476 |
-
/* Adding Setting of title size*/
|
477 |
-
$wp_customize->add_setting( $setting, array(
|
478 |
-
'default' => $defaults['feed_margin_top'],
|
479 |
-
'transport' => 'postMessage',
|
480 |
-
'type' => 'option',
|
481 |
-
) );
|
482 |
-
/* Adding control of title size.*/
|
483 |
-
$wp_customize->add_control( $setting, array(
|
484 |
-
'label' => __( 'Margin Top', $Feed_Them_All->plug_slug ),
|
485 |
-
'section' => 'efbl_feed',
|
486 |
-
'settings' => $setting,
|
487 |
-
'description' => __( 'Select the margin top of feed.', $Feed_Them_All->plug_slug ),
|
488 |
-
'type' => 'number',
|
489 |
-
'input_attrs' => array(
|
490 |
-
'min' => 0,
|
491 |
-
'max' => 100,
|
492 |
-
),
|
493 |
-
) );
|
494 |
-
/* Making settings dynamic and saving data with array.*/
|
495 |
-
$setting = 'efbl_skin_' . $skin_id . '[feed_margin_bottom]';
|
496 |
-
/* Adding Setting of title size*/
|
497 |
-
$wp_customize->add_setting( $setting, array(
|
498 |
-
'default' => $defaults['feed_margin_bottom'],
|
499 |
-
'transport' => 'postMessage',
|
500 |
-
'type' => 'option',
|
501 |
-
) );
|
502 |
-
/* Adding control of title size.*/
|
503 |
-
$wp_customize->add_control( $setting, array(
|
504 |
-
'label' => __( 'Margin Bottom', $Feed_Them_All->plug_slug ),
|
505 |
-
'section' => 'efbl_feed',
|
506 |
-
'settings' => $setting,
|
507 |
-
'description' => __( 'Select the margin bottom of feed.', $Feed_Them_All->plug_slug ),
|
508 |
-
'type' => 'number',
|
509 |
-
'input_attrs' => array(
|
510 |
-
'min' => 0,
|
511 |
-
'max' => 100,
|
512 |
-
),
|
513 |
-
) );
|
514 |
-
/* Making settings dynamic and saving data with array.*/
|
515 |
-
$setting = 'efbl_skin_' . $skin_id . '[feed_margin_right]';
|
516 |
-
/* Adding Setting of title size*/
|
517 |
-
$wp_customize->add_setting( $setting, array(
|
518 |
-
'default' => $defaults['feed_margin_right'],
|
519 |
-
'transport' => 'postMessage',
|
520 |
-
'type' => 'option',
|
521 |
-
) );
|
522 |
-
/* Adding control of title size.*/
|
523 |
-
$wp_customize->add_control( $setting, array(
|
524 |
-
'label' => __( 'Margin Right', $Feed_Them_All->plug_slug ),
|
525 |
-
'section' => 'efbl_feed',
|
526 |
-
'settings' => $setting,
|
527 |
-
'description' => __( 'Select the margin left and right for feed.', $Feed_Them_All->plug_slug ),
|
528 |
-
'type' => 'number',
|
529 |
-
'input_attrs' => array(
|
530 |
-
'min' => 0,
|
531 |
-
'max' => 100,
|
532 |
-
),
|
533 |
-
) );
|
534 |
-
/* Making settings dynamic and saving data with array.*/
|
535 |
-
$setting = 'efbl_skin_' . $skin_id . '[feed_margin_left]';
|
536 |
-
/* Adding Setting of title size*/
|
537 |
-
$wp_customize->add_setting( $setting, array(
|
538 |
-
'default' => $defaults['feed_margin_left'],
|
539 |
-
'transport' => 'postMessage',
|
540 |
-
'type' => 'option',
|
541 |
-
) );
|
542 |
-
/* Adding control of title size.*/
|
543 |
-
$wp_customize->add_control( $setting, array(
|
544 |
-
'label' => __( 'Margin Left', $Feed_Them_All->plug_slug ),
|
545 |
-
'section' => 'efbl_feed',
|
546 |
-
'settings' => $setting,
|
547 |
-
'description' => __( 'Select the margin left for feed.', $Feed_Them_All->plug_slug ),
|
548 |
-
'type' => 'number',
|
549 |
-
'input_attrs' => array(
|
550 |
-
'min' => 0,
|
551 |
-
'max' => 100,
|
552 |
-
),
|
553 |
-
) );
|
554 |
-
} else {
|
555 |
-
|
556 |
-
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
557 |
-
} else {
|
558 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_gutter_width_feed_upgrade', array(
|
559 |
-
'settings' => array(),
|
560 |
-
'label' => __( 'Gutter Width', $Feed_Them_All->plug_slug ),
|
561 |
-
'section' => 'efbl_feed',
|
562 |
-
'description' => __( 'We are sorry, “Gutter Width” is a premium feature.', $Feed_Them_All->plug_slug ),
|
563 |
-
'popup_id' => 'efbl_gutter_width_feed_upgrade',
|
564 |
-
) ) );
|
565 |
-
}
|
566 |
-
|
567 |
-
}
|
568 |
-
|
569 |
-
/* Adding layout section in customizer under efbl panel.*/
|
570 |
-
$wp_customize->add_section( 'efbl_feed', array(
|
571 |
-
'title' => __( 'Feed', $Feed_Them_All->plug_slug ),
|
572 |
-
'description' => __( 'Customize the Single Feed Design In Real Time', $Feed_Them_All->plug_slug ),
|
573 |
-
'priority' => 35,
|
574 |
-
'panel' => 'efbl_customize_panel',
|
575 |
-
) );
|
576 |
-
|
577 |
-
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
578 |
-
} else {
|
579 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_meta_bg_feed_upgrade', array(
|
580 |
-
'settings' => array(),
|
581 |
-
'label' => __( 'Feed Meta Background Color', $Feed_Them_All->plug_slug ),
|
582 |
-
'section' => 'efbl_feed',
|
583 |
-
'description' => __( 'We are sorry, “Feed Meta Background Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
584 |
-
'popup_id' => 'efbl_meta_bg_feed_upgrade',
|
585 |
-
) ) );
|
586 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_meta_feed_upgrade', array(
|
587 |
-
'settings' => array(),
|
588 |
-
'label' => __( 'Feed Meta Color', $Feed_Them_All->plug_slug ),
|
589 |
-
'section' => 'efbl_feed',
|
590 |
-
'description' => __( 'We are sorry, “Feed Meta Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
591 |
-
'popup_id' => 'efbl_meta_feed_upgrade',
|
592 |
-
) ) );
|
593 |
-
}
|
594 |
-
|
595 |
-
/* Making settings dynamic and saving data with array.*/
|
596 |
-
$setting = 'efbl_skin_' . $skin_id . '[show_likes]';
|
597 |
-
/* Adding Setting of show or hide Follow Button*/
|
598 |
-
$wp_customize->add_setting( $setting, array(
|
599 |
-
'default' => $defaults['show_likes'],
|
600 |
-
'transport' => 'postMessage',
|
601 |
-
'type' => 'option',
|
602 |
-
) );
|
603 |
-
/* Adding control of show or hide Follow Button.*/
|
604 |
-
$wp_customize->add_control( $setting, array(
|
605 |
-
'label' => __( 'Show Or Hide Reactions Counter', $Feed_Them_All->plug_slug ),
|
606 |
-
'section' => 'efbl_feed',
|
607 |
-
'settings' => $setting,
|
608 |
-
'description' => __( 'Show or Hide reactions counter', $Feed_Them_All->plug_slug ),
|
609 |
-
'type' => 'checkbox',
|
610 |
-
) );
|
611 |
-
/* Making settings dynamic and saving data with array.*/
|
612 |
-
$setting = 'efbl_skin_' . $skin_id . '[show_comments]';
|
613 |
-
/* Adding Setting of show or hide Follow Button*/
|
614 |
-
$wp_customize->add_setting( $setting, array(
|
615 |
-
'default' => $defaults['show_comments'],
|
616 |
-
'transport' => 'postMessage',
|
617 |
-
'type' => 'option',
|
618 |
-
) );
|
619 |
-
/* Adding control of show or hide Follow Button.*/
|
620 |
-
$wp_customize->add_control( $setting, array(
|
621 |
-
'label' => __( 'Show Or Hide Comments of feeds', $Feed_Them_All->plug_slug ),
|
622 |
-
'section' => 'efbl_feed',
|
623 |
-
'settings' => $setting,
|
624 |
-
'description' => __( 'Show or Hide comments of feed', $Feed_Them_All->plug_slug ),
|
625 |
-
'type' => 'checkbox',
|
626 |
-
) );
|
627 |
-
/* Making settings dynamic and saving data with array.*/
|
628 |
-
$setting = 'efbl_skin_' . $skin_id . '[show_shares]';
|
629 |
-
/* Adding Setting of show or hide Follow Button*/
|
630 |
-
$wp_customize->add_setting( $setting, array(
|
631 |
-
'default' => $defaults['show_shares'],
|
632 |
-
'transport' => 'postMessage',
|
633 |
-
'type' => 'option',
|
634 |
-
) );
|
635 |
-
/* Adding control of show or hide Follow Button.*/
|
636 |
-
$wp_customize->add_control( $setting, array(
|
637 |
-
'label' => __( 'Show Or Hide Shares Counter', $Feed_Them_All->plug_slug ),
|
638 |
-
'section' => 'efbl_feed',
|
639 |
-
'settings' => $setting,
|
640 |
-
'description' => __( 'Show or Hide shares counter', $Feed_Them_All->plug_slug ),
|
641 |
-
'type' => 'checkbox',
|
642 |
-
) );
|
643 |
-
/* Making settings dynamic and saving data with array.*/
|
644 |
-
$setting = 'efbl_skin_' . $skin_id . '[show_feed_caption]';
|
645 |
-
/* Adding Setting of show or hide Follow Button*/
|
646 |
-
$wp_customize->add_setting( $setting, array(
|
647 |
-
'default' => $defaults['show_feed_caption'],
|
648 |
-
'transport' => 'postMessage',
|
649 |
-
'type' => 'option',
|
650 |
-
) );
|
651 |
-
/* Adding control of show or hide Follow Button.*/
|
652 |
-
$wp_customize->add_control( $setting, array(
|
653 |
-
'label' => __( 'Show Or Hide Feed Caption', $Feed_Them_All->plug_slug ),
|
654 |
-
'section' => 'efbl_feed',
|
655 |
-
'settings' => $setting,
|
656 |
-
'description' => __( 'Show or Hide Caption.', $Feed_Them_All->plug_slug ),
|
657 |
-
'type' => 'checkbox',
|
658 |
-
) );
|
659 |
-
|
660 |
-
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
661 |
-
} else {
|
662 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_icon_feed_upgrade', array(
|
663 |
-
'settings' => array(),
|
664 |
-
'label' => __( 'Show Or Hide Open PopUp Icon', $Feed_Them_All->plug_slug ),
|
665 |
-
'section' => 'efbl_feed',
|
666 |
-
'description' => __( 'We are sorry, “Show Or Hide Open PopUp Icon” is a premium feature.', $Feed_Them_All->plug_slug ),
|
667 |
-
'popup_id' => 'efbl_popup_icon_feed_upgrade',
|
668 |
-
) ) );
|
669 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_icon_color_feed_upgrade', array(
|
670 |
-
'settings' => array(),
|
671 |
-
'label' => __( 'Open PopUp Icon color', $Feed_Them_All->plug_slug ),
|
672 |
-
'section' => 'efbl_feed',
|
673 |
-
'description' => __( 'We are sorry, “Open PopUp Icon color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
674 |
-
'popup_id' => 'efbl_popup_icon_color_feed_upgrade',
|
675 |
-
) ) );
|
676 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_icon_color_feedtype_upgrade', array(
|
677 |
-
'settings' => array(),
|
678 |
-
'label' => __( 'Feed Type Icon color', $Feed_Them_All->plug_slug ),
|
679 |
-
'section' => 'efbl_feed',
|
680 |
-
'description' => __( 'We are sorry, “Feed Type Icon color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
681 |
-
'popup_id' => 'efbl_popup_icon_color_feedtype_upgrade',
|
682 |
-
) ) );
|
683 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_cta_feed_upgrade', array(
|
684 |
-
'settings' => array(),
|
685 |
-
'label' => __( 'Show Or Hide Feed Call To Action Buttons', $Feed_Them_All->plug_slug ),
|
686 |
-
'section' => 'efbl_feed',
|
687 |
-
'description' => __( 'We are sorry, “Show Or Hide Feed Call To Action Buttons” is a premium feature.', $Feed_Them_All->plug_slug ),
|
688 |
-
'popup_id' => 'efbl_popup_cta_feed_upgrade',
|
689 |
-
) ) );
|
690 |
-
}
|
691 |
-
|
692 |
-
/* Making settings dynamic and saving data with array.*/
|
693 |
-
$setting = 'efbl_skin_' . $skin_id . '[feed_cta_text_color]';
|
694 |
-
/* Adding Setting of Header text color*/
|
695 |
-
$wp_customize->add_setting( $setting, array(
|
696 |
-
'default' => $defaults['feed_cta_text_color'],
|
697 |
-
'transport' => 'postMessage',
|
698 |
-
'type' => 'option',
|
699 |
-
) );
|
700 |
-
/* Adding Control of Header text color*/
|
701 |
-
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $setting, array(
|
702 |
-
'label' => __( 'Call To Action color', $Feed_Them_All->plug_slug ),
|
703 |
-
'section' => 'efbl_feed',
|
704 |
-
'settings' => $setting,
|
705 |
-
'description' => __( 'Select the color of links like (Share and Read Full Story).', $Feed_Them_All->plug_slug ),
|
706 |
-
) ) );
|
707 |
-
|
708 |
-
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
709 |
-
} else {
|
710 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_cta_hover_feed_upgrade', array(
|
711 |
-
'settings' => array(),
|
712 |
-
'label' => __( 'Call To Action Hover color', $Feed_Them_All->plug_slug ),
|
713 |
-
'section' => 'efbl_feed',
|
714 |
-
'description' => __( 'We are sorry, “Call To Action Hover color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
715 |
-
'popup_id' => 'efbl_popup_cta_hover_feed_upgrade',
|
716 |
-
) ) );
|
717 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_bg_hover_feed_upgrade', array(
|
718 |
-
'settings' => array(),
|
719 |
-
'label' => __( 'Feed Hover Shadow Color', $Feed_Them_All->plug_slug ),
|
720 |
-
'section' => 'efbl_feed',
|
721 |
-
'description' => __( 'We are sorry, “Feed Hover Shadow Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
722 |
-
'popup_id' => 'efbl_popup_bg_hover_feed_upgrade',
|
723 |
-
) ) );
|
724 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_border_feed_upgrade', array(
|
725 |
-
'settings' => array(),
|
726 |
-
'label' => __( 'Feed Border Color', $Feed_Them_All->plug_slug ),
|
727 |
-
'section' => 'efbl_feed',
|
728 |
-
'description' => __( 'We are sorry, “Feed Border Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
729 |
-
'popup_id' => 'efbl_popup_border_feed_upgrade',
|
730 |
-
) ) );
|
731 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_bordersize_feed_upgrade', array(
|
732 |
-
'settings' => array(),
|
733 |
-
'label' => __( 'Border Size', $Feed_Them_All->plug_slug ),
|
734 |
-
'section' => 'efbl_feed',
|
735 |
-
'description' => __( 'We are sorry, “Border Size” is a premium feature.', $Feed_Them_All->plug_slug ),
|
736 |
-
'popup_id' => 'efbl_popup_bordersize_feed_upgrade',
|
737 |
-
) ) );
|
738 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_borderstyle_feed_upgrade', array(
|
739 |
-
'settings' => array(),
|
740 |
-
'label' => __( 'Border Style', $Feed_Them_All->plug_slug ),
|
741 |
-
'section' => 'efbl_feed',
|
742 |
-
'description' => __( 'We are sorry, “Border Style” is a premium feature.', $Feed_Them_All->plug_slug ),
|
743 |
-
'popup_id' => 'efbl_popup_borderstyle_feed_upgrade',
|
744 |
-
) ) );
|
745 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_shared_link_feed_upgrade', array(
|
746 |
-
'settings' => array(),
|
747 |
-
'label' => __( 'Show Or Hide Shared Link Data', $Feed_Them_All->plug_slug ),
|
748 |
-
'section' => 'efbl_feed',
|
749 |
-
'description' => __( 'We are sorry, “Show Or Hide Shared Link Data” is a premium feature.', $Feed_Them_All->plug_slug ),
|
750 |
-
'popup_id' => 'efbl_popup_shared_link_feed_upgrade',
|
751 |
-
) ) );
|
752 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_shared_linkbg_feed_upgrade', array(
|
753 |
-
'settings' => array(),
|
754 |
-
'label' => __( 'Shared Link Background Color', $Feed_Them_All->plug_slug ),
|
755 |
-
'section' => 'efbl_feed',
|
756 |
-
'description' => __( 'We are sorry, “Shared Link Background Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
757 |
-
'popup_id' => 'efbl_popup_shared_linkbg_feed_upgrade',
|
758 |
-
) ) );
|
759 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_shared_linkhead_feed_upgrade', array(
|
760 |
-
'settings' => array(),
|
761 |
-
'label' => __( 'Shared Link Heading Color', $Feed_Them_All->plug_slug ),
|
762 |
-
'section' => 'efbl_feed',
|
763 |
-
'description' => __( 'We are sorry, “Shared Link Heading Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
764 |
-
'popup_id' => 'efbl_popup_shared_linkhead_feed_upgrade',
|
765 |
-
) ) );
|
766 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_shared_linktext_feed_upgrade', array(
|
767 |
-
'settings' => array(),
|
768 |
-
'label' => __( 'Shared Link Content Color', $Feed_Them_All->plug_slug ),
|
769 |
-
'section' => 'efbl_feed',
|
770 |
-
'description' => __( 'We are sorry, “Shared Link Content Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
771 |
-
'popup_id' => 'efbl_popup_shared_linktext_feed_upgrade',
|
772 |
-
) ) );
|
773 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_shared_linkborder_feed_upgrade', array(
|
774 |
-
'settings' => array(),
|
775 |
-
'label' => __( 'Shared Link Border Color', $Feed_Them_All->plug_slug ),
|
776 |
-
'section' => 'efbl_feed',
|
777 |
-
'description' => __( 'We are sorry, “Shared Link Border Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
778 |
-
'popup_id' => 'efbl_popup_shared_linkborder_feed_upgrade',
|
779 |
-
) ) );
|
780 |
-
}
|
781 |
-
|
782 |
-
//======================================================================
|
783 |
-
// PopUP section
|
784 |
-
//======================================================================
|
785 |
-
/* Adding layout section in customizer under efbl panel.*/
|
786 |
-
$wp_customize->add_section( 'efbl_popup', array(
|
787 |
-
'title' => __( 'Media lightbox', $Feed_Them_All->plug_slug ),
|
788 |
-
'description' => __( 'Customize the PopUp In Real Time', $Feed_Them_All->plug_slug ),
|
789 |
-
'priority' => 35,
|
790 |
-
'panel' => 'efbl_customize_panel',
|
791 |
-
) );
|
792 |
-
|
793 |
-
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
794 |
-
} else {
|
795 |
-
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_popup_upgrade', array(
|
796 |
-
'settings' => array(),
|
797 |
-
'label' => __( 'Media Lightbox Settings', $Feed_Them_All->plug_slug ),
|
798 |
-
'section' => 'efbl_popup',
|
799 |
'description' => __( 'We are sorry, Media Lightbox Settings are not included in your plan. Please upgrade to premium version to unlock following settings<ul>
|
800 |
<li>Sidebar Background Color</li>
|
801 |
<li>Sidebar Content Color</li>
|
@@ -818,219 +818,219 @@ if ( !class_exists( 'EFBL_Cuustomizer' ) ) {
|
|
818 |
<li>Close Icon Color</li>
|
819 |
<li>Close Icon Hover Background Color</li>
|
820 |
<li>Close Icon Hover Color</li>
|
821 |
-
</ul>', $Feed_Them_All->plug_slug ),
|
822 |
-
'popup_id' => 'efbl_popup_popup_upgrade',
|
823 |
-
) ) );
|
824 |
-
}
|
825 |
-
|
826 |
-
}
|
827 |
-
|
828 |
-
/* efbl_customizer Method ends here. */
|
829 |
/**
|
830 |
* Used by hook: 'customize_preview_init'
|
831 |
*
|
832 |
* @see add_action('customize_preview_init',$func)
|
833 |
-
*/
|
834 |
-
public function efbl_live_preview()
|
835 |
-
{
|
836 |
-
/* Getting saved skin id. */
|
837 |
-
$skin_id = get_option( 'efbl_skin_id', false );
|
838 |
-
/* Enqueing script for displaying live changes. */
|
839 |
-
wp_enqueue_script(
|
840 |
-
'efbl_live_preview',
|
841 |
-
EFBL_PLUGIN_URL . 'admin/assets/js/efbl-live-preview.js',
|
842 |
-
array( 'jquery', 'customize-preview' ),
|
843 |
-
true
|
844 |
-
);
|
845 |
-
/* Localizing script for getting skin id in js. */
|
846 |
-
wp_localize_script( 'efbl_live_preview', 'efbl_skin_id', $skin_id );
|
847 |
-
}
|
848 |
-
|
849 |
-
/* efbl_live_preview Method ends here. */
|
850 |
-
/* mif_style Method ends here. */
|
851 |
/*
|
852 |
* efbl_customize_css will add the styling to the head of the site.
|
853 |
-
*/
|
854 |
-
public function efbl_customize_css()
|
855 |
-
{
|
856 |
/*
|
857 |
* Getting all the skins.
|
858 |
-
*/
|
859 |
-
global $efbl_skins ;
|
860 |
-
// echo "<pre>"; print_r($efbl_skins);exit();
|
861 |
/*
|
862 |
* Intializing mif css variable.
|
863 |
-
*/
|
864 |
-
$efbl_css = null;
|
865 |
-
$efbl_css = '<style type="text/css">';
|
866 |
/*
|
867 |
* Getting skins exists loop thorugh it.
|
868 |
-
*/
|
869 |
-
if ( isset( $efbl_skins ) ) {
|
870 |
-
foreach ( $efbl_skins as $efbl_skin ) {
|
871 |
-
$selected_layout = $efbl_skin['design']['layout_option'];
|
872 |
-
$skinn_id = $efbl_skin['ID'];
|
873 |
-
$no_of_cols = get_option( 'efbl_skin_' . $skinn_id, false );
|
874 |
-
if ( isset( $no_of_cols['number_of_cols'] ) ) {
|
875 |
-
$no_of_cols = $no_of_cols['number_of_cols'];
|
876 |
-
}
|
877 |
/*
|
878 |
* If header is enabled and layout is not full width.
|
879 |
-
*/
|
880 |
-
|
881 |
-
if ( !empty($efbl_skin['design']['show_header']) ) {
|
882 |
-
$mif_header_display = 'block';
|
883 |
-
} else {
|
884 |
-
$mif_header_display = 'none';
|
885 |
-
}
|
886 |
-
|
887 |
/*
|
888 |
* Background color of the skin.
|
889 |
-
*/
|
890 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header { display: ' . $mif_header_display . '; }';
|
891 |
/*
|
892 |
* Header Size.
|
893 |
-
*/
|
894 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header_meta .efbl_header_title { font-size: ' . $efbl_skin['design']['title_size'] . 'px; }';
|
895 |
/*
|
896 |
* If likes needs to show.
|
897 |
-
*/
|
898 |
-
|
899 |
-
if ( !empty($efbl_skin['design']['show_likes']) ) {
|
900 |
-
$efbl_show_likes = 'inline-block';
|
901 |
-
} else {
|
902 |
-
$efbl_show_likes = 'none';
|
903 |
-
}
|
904 |
-
|
905 |
/*
|
906 |
* Show number of feeds counter.
|
907 |
-
*/
|
908 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_likes, .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_story_meta .efbl_story_lnc_holder .efbl_all_likes_wrap { display: ' . $efbl_show_likes . '; }';
|
909 |
/*
|
910 |
* If shares needs to show.
|
911 |
-
*/
|
912 |
-
|
913 |
-
if ( !empty($efbl_skin['design']['show_shares']) ) {
|
914 |
-
$efbl_show_shares = 'inline-block';
|
915 |
-
} else {
|
916 |
-
$efbl_show_shares = 'none';
|
917 |
-
}
|
918 |
-
|
919 |
/*
|
920 |
* Show number of shares counter.
|
921 |
-
*/
|
922 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_shares { display: ' . $efbl_show_shares . '; }';
|
923 |
/*
|
924 |
* If comments needs to show.
|
925 |
-
*/
|
926 |
-
|
927 |
-
if ( !empty($efbl_skin['design']['show_comments']) ) {
|
928 |
-
$efbl_show_comments = 'inline-block';
|
929 |
-
} else {
|
930 |
-
$efbl_show_comments = 'none';
|
931 |
-
}
|
932 |
-
|
933 |
/*
|
934 |
* Show number of feeds counter.
|
935 |
-
*/
|
936 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_comments { display: ' . $efbl_show_comments . '; }';
|
937 |
/*
|
938 |
* If follow button is enabled.
|
939 |
-
*/
|
940 |
-
|
941 |
-
if ( !empty($efbl_skin['design']['show_follow_btn']) ) {
|
942 |
-
$mif_follow_btn_display = 'inline-block';
|
943 |
-
} else {
|
944 |
-
$mif_follow_btn_display = 'none';
|
945 |
-
}
|
946 |
-
|
947 |
/*
|
948 |
* Show Follow Button.
|
949 |
-
*/
|
950 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .mif_follow_btn { display: ' . $mif_follow_btn_display . '; }';
|
951 |
/*
|
952 |
* If feed caption is enabled.
|
953 |
-
*/
|
954 |
-
|
955 |
-
if ( !empty($efbl_skin['design']['show_feed_caption']) ) {
|
956 |
-
$efbl_show_feed_caption = 'block';
|
957 |
-
} else {
|
958 |
-
$efbl_show_feed_caption = 'none';
|
959 |
-
}
|
960 |
-
|
961 |
/*
|
962 |
* Show caption
|
963 |
-
*/
|
964 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf .efbl_story_text { display: ' . $efbl_show_feed_caption . '; }';
|
965 |
/*
|
966 |
* Header Size.
|
967 |
-
*/
|
968 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_header_title { font-size: ' . $efbl_skin['design']['title_size'] . 'px; }';
|
969 |
/*
|
970 |
* Meta data Size.
|
971 |
-
*/
|
972 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_posts,.efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_followers { font-size: ' . $efbl_skin['design']['metadata_size'] . 'px; }';
|
973 |
/*
|
974 |
* Header background Color.
|
975 |
-
*/
|
976 |
-
$efbl_css .= '.efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header { background-color: ' . $efbl_skin['design']['header_background_color'] . '; }';
|
977 |
/*
|
978 |
* Header Color.
|
979 |
-
*/
|
980 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header, .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_posts, .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_followers, .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_bio, .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_header_title { color: ' . $efbl_skin['design']['header_text_color'] . '; }';
|
981 |
/*
|
982 |
* Feed CTA Color.
|
983 |
-
*/
|
984 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_read_more_link a { color: ' . $efbl_skin['design']['feed_cta_text_color'] . '; }';
|
985 |
/*
|
986 |
* Background color of feed.
|
987 |
-
*/
|
988 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story { background-color: ' . $efbl_skin['design']['feed_background_color'] . ' !important; }';
|
989 |
/*
|
990 |
* Feed Padding Top.
|
991 |
-
*/
|
992 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf { padding-top: ' . $efbl_skin['design']['feed_padding_top'] . 'px; }';
|
993 |
/*
|
994 |
* Feed Padding Bottom.
|
995 |
-
*/
|
996 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf {padding-bottom: ' . $efbl_skin['design']['feed_padding_bottom'] . 'px; }';
|
997 |
/*
|
998 |
* Feed Padding left.
|
999 |
-
*/
|
1000 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf { padding-left: ' . $efbl_skin['design']['feed_padding_left'] . 'px; }';
|
1001 |
/*
|
1002 |
* Feed Padding right.
|
1003 |
-
*/
|
1004 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf {padding-right: ' . $efbl_skin['design']['feed_padding_right'] . 'px; }';
|
1005 |
-
|
1006 |
-
if ( 'masonry' !== $selected_layout && 'carousel' !== $selected_layout ) {
|
1007 |
/*
|
1008 |
* Feed Margin Top.
|
1009 |
-
*/
|
1010 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf { margin-top: ' . $efbl_skin['design']['feed_margin_top'] . 'px; }';
|
1011 |
/*
|
1012 |
* Feed Margin Bottom.
|
1013 |
-
*/
|
1014 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf { margin-bottom: ' . $efbl_skin['design']['feed_margin_bottom'] . 'px; }';
|
1015 |
/*
|
1016 |
* Feed Margin Left.
|
1017 |
-
*/
|
1018 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf { margin-left: ' . $efbl_skin['design']['feed_margin_left'] . 'px; }';
|
1019 |
/*
|
1020 |
* Feed Margin Right.
|
1021 |
-
*/
|
1022 |
-
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf {margin-right: ' . $efbl_skin['design']['feed_margin_right'] . 'px; }';
|
1023 |
-
}
|
1024 |
-
|
1025 |
-
}
|
1026 |
-
}
|
1027 |
-
$efbl_css .= '</style>';
|
1028 |
-
// echo "<pre>";
|
1029 |
-
// print_r($efbl_css);exit();
|
1030 |
-
echo $efbl_css ;
|
1031 |
-
}
|
1032 |
-
|
1033 |
-
}
|
1034 |
-
/* EFBL_Cuustomizer Class ends here. */
|
1035 |
-
$EFBL_Cuustomizer = new EFBL_Cuustomizer();
|
1036 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
/*
|
4 |
* Stop execution if someone tried to get file directly.
|
5 |
+
*/
|
6 |
+
if ( !defined( 'ABSPATH' ) ) {
|
7 |
+
exit;
|
8 |
+
}
|
9 |
+
//======================================================================
|
10 |
+
// Customizer code Of My Instagram Feeds
|
11 |
+
//======================================================================
|
12 |
+
|
13 |
+
if ( !class_exists( 'EFBL_Cuustomizer' ) ) {
|
14 |
+
class EFBL_Cuustomizer
|
15 |
+
{
|
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 |
* customize_register hook will add custom files in customizer.
|
25 |
+
*/
|
26 |
+
add_action( 'customize_register', array( $this, 'efbl_customizer' ) );
|
27 |
/*
|
28 |
* customize_preview_init hook will add our js file in customizer.
|
29 |
+
*/
|
30 |
+
add_action( 'customize_preview_init', array( $this, 'efbl_live_preview' ) );
|
31 |
/*
|
32 |
* customize_preview_init hook will add our js file in customizer.
|
33 |
+
*/
|
34 |
+
add_action( 'customize_controls_enqueue_scripts', array( $this, 'efbl_customizer_scripts' ) );
|
35 |
/*
|
36 |
* wp_head hooks fires when page head is load.
|
37 |
* Css file will be added in head.
|
38 |
+
*/
|
39 |
+
add_action( 'wp_head', array( $this, 'efbl_customize_css' ) );
|
40 |
+
}
|
41 |
+
|
42 |
+
/* __construct Method ends here. */
|
43 |
/*
|
44 |
* efbl_customizer holds cutomizer files.
|
45 |
+
*/
|
46 |
+
function efbl_customizer_scripts()
|
47 |
+
{
|
48 |
/*
|
49 |
* Enqueing customizer style file.
|
50 |
+
*/
|
51 |
+
wp_enqueue_style( 'efbl_customizer_style', EFBL_PLUGIN_URL . 'admin/assets/css/efbl-customizer.css' );
|
52 |
+
}
|
53 |
+
|
54 |
+
/* efbl_customizer_scripts Method ends here. */
|
55 |
/*
|
56 |
* efbl_customizer holds code for customizer area.
|
57 |
+
*/
|
58 |
+
public function efbl_customizer( $wp_customize )
|
59 |
+
{
|
60 |
+
$Feed_Them_All = new Feed_Them_All();
|
61 |
+
/* Getting the skin id from URL and saving in option for confliction.*/
|
62 |
+
|
63 |
+
if ( isset( $_GET['efbl_skin_id'] ) ) {
|
64 |
+
$skin_id = $_GET['efbl_skin_id'];
|
65 |
+
update_option( 'efbl_skin_id', $skin_id );
|
66 |
+
}
|
67 |
+
|
68 |
+
|
69 |
+
if ( isset( $_GET['efbl_account_id'] ) ) {
|
70 |
+
$efbl_account_id = $_GET['efbl_account_id'];
|
71 |
+
update_option( 'efbl_account_id', $efbl_account_id );
|
72 |
+
}
|
73 |
+
|
74 |
+
/* Getting back the skin saved ID.*/
|
75 |
+
$skin_id = get_option( 'efbl_skin_id', false );
|
76 |
+
/* Getting the saved values.*/
|
77 |
+
$skin_values = get_option( 'efbl_skin_' . $skin_id, false );
|
78 |
+
/* Selected layout for skin.*/
|
79 |
+
$selected_layout = $skin_values['layout_option'];
|
80 |
+
global $EFBL_SKINS ;
|
81 |
+
if ( !isset( $selected_layout ) or empty($selected_layout) ) {
|
82 |
+
$selected_layout = 'half';
|
83 |
+
}
|
84 |
+
$default_func_name = 'efbl_skin_' . $selected_layout . '_values';
|
85 |
+
$defaults = $EFBL_SKINS->{$default_func_name}();
|
86 |
+
// echo "<pre>"; print_r($defaults);exit();
|
87 |
+
//======================================================================
|
88 |
+
// Easy Facebook Likebox Section
|
89 |
+
//======================================================================
|
90 |
+
/* Adding our efbl panel in customizer.*/
|
91 |
+
$wp_customize->add_panel( 'efbl_customize_panel', array(
|
92 |
+
'title' => __( 'Easy Facebook Feed', $Feed_Them_All->plug_slug ),
|
93 |
+
) );
|
94 |
+
//======================================================================
|
95 |
+
// Layout section
|
96 |
+
//======================================================================
|
97 |
+
/* Adding layout section in customizer under efbl panel.*/
|
98 |
+
$wp_customize->add_section( 'efbl_layout', array(
|
99 |
+
'title' => __( 'Layout Settings', $Feed_Them_All->plug_slug ),
|
100 |
+
'description' => __( 'Select the layout settings in real-time.', $Feed_Them_All->plug_slug ),
|
101 |
+
'priority' => 35,
|
102 |
+
'panel' => 'efbl_customize_panel',
|
103 |
+
) );
|
104 |
+
|
105 |
+
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
106 |
+
} else {
|
107 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_layout_upgrade', array(
|
108 |
+
'settings' => array(),
|
109 |
+
'label' => __( 'Layout Settings', $Feed_Them_All->plug_slug ),
|
110 |
+
'section' => 'efbl_layout',
|
111 |
'description' => __( 'We are sorry, Layout settings are not included in your plan. Please upgrade to premium version to unlock following settings<ul>
|
112 |
<li>Number Of Columns</li>
|
113 |
<li>Show Or Hide Load More Button</li>
|
115 |
<li>Load More Color</li>
|
116 |
<li>Load More Hover Background Color</li>
|
117 |
<li>Load More Hover Color</li>
|
118 |
+
</ul>', $Feed_Them_All->plug_slug ),
|
119 |
+
'popup_id' => 'efbl_layout_upgrade',
|
120 |
+
) ) );
|
121 |
+
}
|
122 |
+
|
123 |
+
//======================================================================
|
124 |
+
// Header section
|
125 |
+
//======================================================================
|
126 |
+
/* Adding layout section in customizer under efbl panel.*/
|
127 |
+
$wp_customize->add_section( 'efbl_header', array(
|
128 |
+
'title' => __( 'Header', $Feed_Them_All->plug_slug ),
|
129 |
+
'description' => __( 'Customize the Header In Real Time', $Feed_Them_All->plug_slug ),
|
130 |
+
'priority' => 35,
|
131 |
+
'panel' => 'efbl_customize_panel',
|
132 |
+
) );
|
133 |
+
/* Making settings dynamic and saving data with array.*/
|
134 |
+
$setting = 'efbl_skin_' . $skin_id . '[show_header]';
|
135 |
+
/* Adding Setting of show or hide header.*/
|
136 |
+
$wp_customize->add_setting( $setting, array(
|
137 |
+
'default' => $defaults['show_header'],
|
138 |
+
'transport' => 'postMessage',
|
139 |
+
'type' => 'option',
|
140 |
+
) );
|
141 |
+
/* Adding control of show or hide header.*/
|
142 |
+
$wp_customize->add_control( $setting, array(
|
143 |
+
'label' => __( 'Show Or Hide Header', $Feed_Them_All->plug_slug ),
|
144 |
+
'section' => 'efbl_header',
|
145 |
+
'settings' => $setting,
|
146 |
+
'description' => __( 'Show or hide page header.', $Feed_Them_All->plug_slug ),
|
147 |
+
'type' => 'checkbox',
|
148 |
+
) );
|
149 |
+
/* Making settings dynamic and saving data with array.*/
|
150 |
+
$setting = 'efbl_skin_' . $skin_id . '[header_background_color]';
|
151 |
+
/* Adding Setting of Header text color*/
|
152 |
+
$wp_customize->add_setting( $setting, array(
|
153 |
+
'default' => $defaults['header_background_color'],
|
154 |
+
'transport' => 'postMessage',
|
155 |
+
'type' => 'option',
|
156 |
+
) );
|
157 |
+
/* Adding Control of Header text color*/
|
158 |
+
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $setting, array(
|
159 |
+
'label' => __( 'Header Background Color', $Feed_Them_All->plug_slug ),
|
160 |
+
'section' => 'efbl_header',
|
161 |
+
'settings' => $setting,
|
162 |
+
'description' => __( 'Select the background color of header.', $Feed_Them_All->plug_slug ),
|
163 |
+
) ) );
|
164 |
+
/* Making settings dynamic and saving data with array.*/
|
165 |
+
$setting = 'efbl_skin_' . $skin_id . '[header_text_color]';
|
166 |
+
/* Adding Setting of Header text color*/
|
167 |
+
$wp_customize->add_setting( $setting, array(
|
168 |
+
'default' => $defaults['header_text_color'],
|
169 |
+
'transport' => 'postMessage',
|
170 |
+
'type' => 'option',
|
171 |
+
) );
|
172 |
+
/* Adding Control of Header text color*/
|
173 |
+
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $setting, array(
|
174 |
+
'label' => __( 'Header Text Color', $Feed_Them_All->plug_slug ),
|
175 |
+
'section' => 'efbl_header',
|
176 |
+
'settings' => $setting,
|
177 |
+
'description' => __( 'Select the content color in header.', $Feed_Them_All->plug_slug ),
|
178 |
+
) ) );
|
179 |
+
/* Making settings dynamic and saving data with array.*/
|
180 |
+
$setting = 'efbl_skin_' . $skin_id . '[title_size]';
|
181 |
+
/* Adding Setting of title size*/
|
182 |
+
$wp_customize->add_setting( $setting, array(
|
183 |
+
'default' => $defaults['title_size'],
|
184 |
+
'transport' => 'postMessage',
|
185 |
+
'type' => 'option',
|
186 |
+
) );
|
187 |
+
/* Adding control of title size.*/
|
188 |
+
$wp_customize->add_control( $setting, array(
|
189 |
+
'label' => __( 'Title Size', $Feed_Them_All->plug_slug ),
|
190 |
+
'section' => 'efbl_header',
|
191 |
+
'settings' => $setting,
|
192 |
+
'description' => __( 'Select the text size of profile name.', $Feed_Them_All->plug_slug ),
|
193 |
+
'type' => 'number',
|
194 |
+
'input_attrs' => array(
|
195 |
+
'min' => 0,
|
196 |
+
'max' => 100,
|
197 |
+
),
|
198 |
+
) );
|
199 |
+
|
200 |
+
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
201 |
+
} else {
|
202 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_dp_upgrade', array(
|
203 |
+
'settings' => array(),
|
204 |
+
'label' => __( 'Show Or Hide Display Picture', $Feed_Them_All->plug_slug ),
|
205 |
+
'section' => 'efbl_header',
|
206 |
+
'description' => __( 'We are sorry, “Show Or Hide Display Picture” is a premium feature.', $Feed_Them_All->plug_slug ),
|
207 |
+
'popup_id' => 'efbl_dp_upgrade',
|
208 |
+
) ) );
|
209 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_round_dp_upgrade', array(
|
210 |
+
'settings' => array(),
|
211 |
+
'label' => __( 'Round Display Picture', $Feed_Them_All->plug_slug ),
|
212 |
+
'section' => 'efbl_header',
|
213 |
+
'description' => __( 'We are sorry, “Round Display Picture” is a premium feature.', $Feed_Them_All->plug_slug ),
|
214 |
+
'popup_id' => 'efbl_round_dp_upgrade',
|
215 |
+
) ) );
|
216 |
+
}
|
217 |
+
|
218 |
+
/* Making settings dynamic and saving data with array.*/
|
219 |
+
$setting = 'efbl_skin_' . $skin_id . '[metadata_size]';
|
220 |
+
/* Adding Setting of metadata size*/
|
221 |
+
$wp_customize->add_setting( $setting, array(
|
222 |
+
'default' => $defaults['metadata_size'],
|
223 |
+
'transport' => 'postMessage',
|
224 |
+
'type' => 'option',
|
225 |
+
) );
|
226 |
+
/* Adding control of metadata size.*/
|
227 |
+
$wp_customize->add_control( $setting, array(
|
228 |
+
'label' => __( 'Size of total followers', $Feed_Them_All->plug_slug ),
|
229 |
+
'section' => 'efbl_header',
|
230 |
+
'settings' => $setting,
|
231 |
+
'description' => __( 'Select the text size of total followers in the header.', $Feed_Them_All->plug_slug ),
|
232 |
+
'type' => 'number',
|
233 |
+
'input_attrs' => array(
|
234 |
+
'min' => 0,
|
235 |
+
'max' => 100,
|
236 |
+
),
|
237 |
+
) );
|
238 |
+
|
239 |
+
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
240 |
+
} else {
|
241 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_hide_bio_upgrade', array(
|
242 |
+
'settings' => array(),
|
243 |
+
'label' => __( 'Show Or Hide Bio', $Feed_Them_All->plug_slug ),
|
244 |
+
'section' => 'efbl_header',
|
245 |
+
'description' => __( 'We are sorry, “Show Or Hide Bio” is a premium feature.', $Feed_Them_All->plug_slug ),
|
246 |
+
'popup_id' => 'efbl_head_hide_bio_upgrade',
|
247 |
+
) ) );
|
248 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_color_upgrade', array(
|
249 |
+
'settings' => array(),
|
250 |
+
'label' => __( 'Text Size of Bio', $Feed_Them_All->plug_slug ),
|
251 |
+
'section' => 'efbl_header',
|
252 |
+
'description' => __( 'We are sorry, “Text Size of Bio” is a premium feature.', $Feed_Them_All->plug_slug ),
|
253 |
+
'popup_id' => 'efbl_head_border_color_upgrade',
|
254 |
+
) ) );
|
255 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_color_upgrade', array(
|
256 |
+
'settings' => array(),
|
257 |
+
'label' => __( 'Header Border Color', $Feed_Them_All->plug_slug ),
|
258 |
+
'section' => 'efbl_header',
|
259 |
+
'description' => __( 'We are sorry, “Header Border Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
260 |
+
'popup_id' => 'efbl_head_border_color_upgrade',
|
261 |
+
) ) );
|
262 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_style_upgrade', array(
|
263 |
+
'settings' => array(),
|
264 |
+
'label' => __( 'Border Style', $Feed_Them_All->plug_slug ),
|
265 |
+
'section' => 'efbl_header',
|
266 |
+
'description' => __( 'We are sorry, “Border Style” is a premium feature.', $Feed_Them_All->plug_slug ),
|
267 |
+
'popup_id' => 'efbl_head_border_style_upgrade',
|
268 |
+
) ) );
|
269 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_top_size_upgrade', array(
|
270 |
+
'settings' => array(),
|
271 |
+
'label' => __( 'Border Top', $Feed_Them_All->plug_slug ),
|
272 |
+
'section' => 'efbl_header',
|
273 |
+
'description' => __( 'We are sorry, “Border Top” is a premium feature.', $Feed_Them_All->plug_slug ),
|
274 |
+
'popup_id' => 'efbl_head_border_top_size_upgrade',
|
275 |
+
) ) );
|
276 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_bottom_size_upgrade', array(
|
277 |
+
'settings' => array(),
|
278 |
+
'label' => __( 'Border Bottom', $Feed_Them_All->plug_slug ),
|
279 |
+
'section' => 'efbl_header',
|
280 |
+
'description' => __( 'We are sorry, “Border Bottom” is a premium feature.', $Feed_Them_All->plug_slug ),
|
281 |
+
'popup_id' => 'efbl_head_border_bottom_size_upgrade',
|
282 |
+
) ) );
|
283 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_left_size_upgrade', array(
|
284 |
+
'settings' => array(),
|
285 |
+
'label' => __( 'Border Left', $Feed_Them_All->plug_slug ),
|
286 |
+
'section' => 'efbl_header',
|
287 |
+
'description' => __( 'We are sorry, “Border Left” is a premium feature.', $Feed_Them_All->plug_slug ),
|
288 |
+
'popup_id' => 'efbl_head_border_left_size_upgrade',
|
289 |
+
) ) );
|
290 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_border_right_size_upgrade', array(
|
291 |
+
'settings' => array(),
|
292 |
+
'label' => __( 'Border Right', $Feed_Them_All->plug_slug ),
|
293 |
+
'section' => 'efbl_header',
|
294 |
+
'description' => __( 'We are sorry, “Border Right” is a premium feature.', $Feed_Them_All->plug_slug ),
|
295 |
+
'popup_id' => 'efbl_head_border_right_size_upgrade',
|
296 |
+
) ) );
|
297 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_padding_top_upgrade', array(
|
298 |
+
'settings' => array(),
|
299 |
+
'label' => __( 'Padding Top', $Feed_Them_All->plug_slug ),
|
300 |
+
'section' => 'efbl_header',
|
301 |
+
'description' => __( 'We are sorry, “Padding Top” is a premium feature.', $Feed_Them_All->plug_slug ),
|
302 |
+
'popup_id' => 'efbl_head_padding_top_upgrade',
|
303 |
+
) ) );
|
304 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_padding_bottom_upgrade', array(
|
305 |
+
'settings' => array(),
|
306 |
+
'label' => __( 'Padding Bottom', $Feed_Them_All->plug_slug ),
|
307 |
+
'section' => 'efbl_header',
|
308 |
+
'description' => __( 'We are sorry, “Padding Bottom” is a premium feature.', $Feed_Them_All->plug_slug ),
|
309 |
+
'popup_id' => 'efbl_head_padding_bottom_upgrade',
|
310 |
+
) ) );
|
311 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_padding_left_upgrade', array(
|
312 |
+
'settings' => array(),
|
313 |
+
'label' => __( 'Padding Left', $Feed_Them_All->plug_slug ),
|
314 |
+
'section' => 'efbl_header',
|
315 |
+
'description' => __( 'We are sorry, “Padding Left” is a premium feature.', $Feed_Them_All->plug_slug ),
|
316 |
+
'popup_id' => 'efbl_head_padding_left_upgrade',
|
317 |
+
) ) );
|
318 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_head_padding_right_upgrade', array(
|
319 |
+
'settings' => array(),
|
320 |
+
'label' => __( 'Padding Right', $Feed_Them_All->plug_slug ),
|
321 |
+
'section' => 'efbl_header',
|
322 |
+
'description' => __( 'We are sorry, “Padding Right” is a premium feature.', $Feed_Them_All->plug_slug ),
|
323 |
+
'popup_id' => 'efbl_head_padding_right_upgrade',
|
324 |
+
) ) );
|
325 |
+
}
|
326 |
+
|
327 |
+
//======================================================================
|
328 |
+
// Feed section
|
329 |
+
//======================================================================
|
330 |
+
/* Making settings dynamic and saving data with array.*/
|
331 |
+
$setting = 'efbl_skin_' . $skin_id . '[feed_background_color]';
|
332 |
+
/* Adding Setting of Header text color*/
|
333 |
+
$wp_customize->add_setting( $setting, array(
|
334 |
+
'default' => $defaults['feed_background_color'],
|
335 |
+
'transport' => 'postMessage',
|
336 |
+
'type' => 'option',
|
337 |
+
) );
|
338 |
+
/* Adding Control of Header text color*/
|
339 |
+
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $setting, array(
|
340 |
+
'label' => __( 'Background Color', $Feed_Them_All->plug_slug ),
|
341 |
+
'section' => 'efbl_feed',
|
342 |
+
'settings' => $setting,
|
343 |
+
'description' => __( 'Select the Background color of feed.', $Feed_Them_All->plug_slug ),
|
344 |
+
) ) );
|
345 |
+
if ( 'grid' == $selected_layout || 'masonry' == $selected_layout ) {
|
346 |
+
|
347 |
+
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
348 |
+
} else {
|
349 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_shadow_feed_upgrade', array(
|
350 |
+
'settings' => array(),
|
351 |
+
'label' => __( 'Show Or Hide Box Shadow', $Feed_Them_All->plug_slug ),
|
352 |
+
'section' => 'efbl_feed',
|
353 |
+
'description' => __( 'We are sorry, “Show Or Hide Box Shadow” is a premium feature.', $Feed_Them_All->plug_slug ),
|
354 |
+
'popup_id' => 'efbl_shadow_feed_upgrade',
|
355 |
+
) ) );
|
356 |
+
}
|
357 |
+
|
358 |
+
}
|
359 |
+
if ( 'grid' !== $selected_layout ) {
|
360 |
+
|
361 |
+
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
362 |
+
} else {
|
363 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_header_feed_upgrade', array(
|
364 |
+
'settings' => array(),
|
365 |
+
'label' => __( 'Show Or Hide Feed Header', $Feed_Them_All->plug_slug ),
|
366 |
+
'section' => 'efbl_feed',
|
367 |
+
'description' => __( 'We are sorry, “Show Or Hide Feed Header” is a premium feature.', $Feed_Them_All->plug_slug ),
|
368 |
+
'popup_id' => 'efbl_header_feed_upgrade',
|
369 |
+
) ) );
|
370 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_header_feed_logo_upgrade', array(
|
371 |
+
'settings' => array(),
|
372 |
+
'label' => __( 'Show Or Hide Feed Header Logo', $Feed_Them_All->plug_slug ),
|
373 |
+
'section' => 'efbl_feed',
|
374 |
+
'description' => __( 'We are sorry, “Show Or Hide Feed Header Logo” is a premium feature.', $Feed_Them_All->plug_slug ),
|
375 |
+
'popup_id' => 'efbl_header_feed_logo_upgrade',
|
376 |
+
) ) );
|
377 |
+
}
|
378 |
+
|
379 |
+
}
|
380 |
+
|
381 |
+
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
382 |
+
} else {
|
383 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_text_color_feed_upgrade', array(
|
384 |
+
'settings' => array(),
|
385 |
+
'label' => __( 'Text Color', $Feed_Them_All->plug_slug ),
|
386 |
+
'section' => 'efbl_feed',
|
387 |
+
'description' => __( 'We are sorry, “Text Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
388 |
+
'popup_id' => 'efbl_text_color_feed_upgrade',
|
389 |
+
) ) );
|
390 |
+
}
|
391 |
+
|
392 |
+
/* Making settings dynamic and saving data with array.*/
|
393 |
+
$setting = 'efbl_skin_' . $skin_id . '[feed_padding_top]';
|
394 |
+
/* Adding Setting of title size*/
|
395 |
+
$wp_customize->add_setting( $setting, array(
|
396 |
+
'default' => $defaults['feed_padding_top'],
|
397 |
+
'transport' => 'postMessage',
|
398 |
+
'type' => 'option',
|
399 |
+
) );
|
400 |
+
/* Adding control of title size.*/
|
401 |
+
$wp_customize->add_control( $setting, array(
|
402 |
+
'label' => __( 'Padding Top', $Feed_Them_All->plug_slug ),
|
403 |
+
'section' => 'efbl_feed',
|
404 |
+
'settings' => $setting,
|
405 |
+
'description' => __( 'Select the padding top', $Feed_Them_All->plug_slug ),
|
406 |
+
'type' => 'number',
|
407 |
+
'input_attrs' => array(
|
408 |
+
'min' => 0,
|
409 |
+
'max' => 100,
|
410 |
+
),
|
411 |
+
) );
|
412 |
+
/* Making settings dynamic and saving data with array.*/
|
413 |
+
$setting = 'efbl_skin_' . $skin_id . '[feed_padding_bottom]';
|
414 |
+
/* Adding Setting of title size*/
|
415 |
+
$wp_customize->add_setting( $setting, array(
|
416 |
+
'default' => $defaults['feed_padding_bottom'],
|
417 |
+
'transport' => 'postMessage',
|
418 |
+
'type' => 'option',
|
419 |
+
) );
|
420 |
+
/* Adding control of title size.*/
|
421 |
+
$wp_customize->add_control( $setting, array(
|
422 |
+
'label' => __( 'Padding Bottom', $Feed_Them_All->plug_slug ),
|
423 |
+
'section' => 'efbl_feed',
|
424 |
+
'settings' => $setting,
|
425 |
+
'description' => __( 'Select the padding bottom of feed.', $Feed_Them_All->plug_slug ),
|
426 |
+
'type' => 'number',
|
427 |
+
'input_attrs' => array(
|
428 |
+
'min' => 0,
|
429 |
+
'max' => 100,
|
430 |
+
),
|
431 |
+
) );
|
432 |
+
/* Making settings dynamic and saving data with array.*/
|
433 |
+
$setting = 'efbl_skin_' . $skin_id . '[feed_padding_right]';
|
434 |
+
/* Adding Setting of title size*/
|
435 |
+
$wp_customize->add_setting( $setting, array(
|
436 |
+
'default' => $defaults['feed_padding_right'],
|
437 |
+
'transport' => 'postMessage',
|
438 |
+
'type' => 'option',
|
439 |
+
) );
|
440 |
+
/* Adding control of title size.*/
|
441 |
+
$wp_customize->add_control( $setting, array(
|
442 |
+
'label' => __( 'Padding Right', $Feed_Them_All->plug_slug ),
|
443 |
+
'section' => 'efbl_feed',
|
444 |
+
'settings' => $setting,
|
445 |
+
'description' => __( 'Select the padding right for feed.', $Feed_Them_All->plug_slug ),
|
446 |
+
'type' => 'number',
|
447 |
+
'input_attrs' => array(
|
448 |
+
'min' => 0,
|
449 |
+
'max' => 100,
|
450 |
+
),
|
451 |
+
) );
|
452 |
+
/* Making settings dynamic and saving data with array.*/
|
453 |
+
$setting = 'efbl_skin_' . $skin_id . '[feed_padding_left]';
|
454 |
+
/* Adding Setting of title size*/
|
455 |
+
$wp_customize->add_setting( $setting, array(
|
456 |
+
'default' => $defaults['feed_padding_left'],
|
457 |
+
'transport' => 'postMessage',
|
458 |
+
'type' => 'option',
|
459 |
+
) );
|
460 |
+
/* Adding control of title size.*/
|
461 |
+
$wp_customize->add_control( $setting, array(
|
462 |
+
'label' => __( 'Padding Left', $Feed_Them_All->plug_slug ),
|
463 |
+
'section' => 'efbl_feed',
|
464 |
+
'settings' => $setting,
|
465 |
+
'description' => __( 'Select the padding left for feed.', $Feed_Them_All->plug_slug ),
|
466 |
+
'type' => 'number',
|
467 |
+
'input_attrs' => array(
|
468 |
+
'min' => 0,
|
469 |
+
'max' => 100,
|
470 |
+
),
|
471 |
+
) );
|
472 |
+
|
473 |
+
if ( 'masonry' !== $selected_layout && 'carousel' !== $selected_layout ) {
|
474 |
+
/* Making settings dynamic and saving data with array.*/
|
475 |
+
$setting = 'efbl_skin_' . $skin_id . '[feed_margin_top]';
|
476 |
+
/* Adding Setting of title size*/
|
477 |
+
$wp_customize->add_setting( $setting, array(
|
478 |
+
'default' => $defaults['feed_margin_top'],
|
479 |
+
'transport' => 'postMessage',
|
480 |
+
'type' => 'option',
|
481 |
+
) );
|
482 |
+
/* Adding control of title size.*/
|
483 |
+
$wp_customize->add_control( $setting, array(
|
484 |
+
'label' => __( 'Margin Top', $Feed_Them_All->plug_slug ),
|
485 |
+
'section' => 'efbl_feed',
|
486 |
+
'settings' => $setting,
|
487 |
+
'description' => __( 'Select the margin top of feed.', $Feed_Them_All->plug_slug ),
|
488 |
+
'type' => 'number',
|
489 |
+
'input_attrs' => array(
|
490 |
+
'min' => 0,
|
491 |
+
'max' => 100,
|
492 |
+
),
|
493 |
+
) );
|
494 |
+
/* Making settings dynamic and saving data with array.*/
|
495 |
+
$setting = 'efbl_skin_' . $skin_id . '[feed_margin_bottom]';
|
496 |
+
/* Adding Setting of title size*/
|
497 |
+
$wp_customize->add_setting( $setting, array(
|
498 |
+
'default' => $defaults['feed_margin_bottom'],
|
499 |
+
'transport' => 'postMessage',
|
500 |
+
'type' => 'option',
|
501 |
+
) );
|
502 |
+
/* Adding control of title size.*/
|
503 |
+
$wp_customize->add_control( $setting, array(
|
504 |
+
'label' => __( 'Margin Bottom', $Feed_Them_All->plug_slug ),
|
505 |
+
'section' => 'efbl_feed',
|
506 |
+
'settings' => $setting,
|
507 |
+
'description' => __( 'Select the margin bottom of feed.', $Feed_Them_All->plug_slug ),
|
508 |
+
'type' => 'number',
|
509 |
+
'input_attrs' => array(
|
510 |
+
'min' => 0,
|
511 |
+
'max' => 100,
|
512 |
+
),
|
513 |
+
) );
|
514 |
+
/* Making settings dynamic and saving data with array.*/
|
515 |
+
$setting = 'efbl_skin_' . $skin_id . '[feed_margin_right]';
|
516 |
+
/* Adding Setting of title size*/
|
517 |
+
$wp_customize->add_setting( $setting, array(
|
518 |
+
'default' => $defaults['feed_margin_right'],
|
519 |
+
'transport' => 'postMessage',
|
520 |
+
'type' => 'option',
|
521 |
+
) );
|
522 |
+
/* Adding control of title size.*/
|
523 |
+
$wp_customize->add_control( $setting, array(
|
524 |
+
'label' => __( 'Margin Right', $Feed_Them_All->plug_slug ),
|
525 |
+
'section' => 'efbl_feed',
|
526 |
+
'settings' => $setting,
|
527 |
+
'description' => __( 'Select the margin left and right for feed.', $Feed_Them_All->plug_slug ),
|
528 |
+
'type' => 'number',
|
529 |
+
'input_attrs' => array(
|
530 |
+
'min' => 0,
|
531 |
+
'max' => 100,
|
532 |
+
),
|
533 |
+
) );
|
534 |
+
/* Making settings dynamic and saving data with array.*/
|
535 |
+
$setting = 'efbl_skin_' . $skin_id . '[feed_margin_left]';
|
536 |
+
/* Adding Setting of title size*/
|
537 |
+
$wp_customize->add_setting( $setting, array(
|
538 |
+
'default' => $defaults['feed_margin_left'],
|
539 |
+
'transport' => 'postMessage',
|
540 |
+
'type' => 'option',
|
541 |
+
) );
|
542 |
+
/* Adding control of title size.*/
|
543 |
+
$wp_customize->add_control( $setting, array(
|
544 |
+
'label' => __( 'Margin Left', $Feed_Them_All->plug_slug ),
|
545 |
+
'section' => 'efbl_feed',
|
546 |
+
'settings' => $setting,
|
547 |
+
'description' => __( 'Select the margin left for feed.', $Feed_Them_All->plug_slug ),
|
548 |
+
'type' => 'number',
|
549 |
+
'input_attrs' => array(
|
550 |
+
'min' => 0,
|
551 |
+
'max' => 100,
|
552 |
+
),
|
553 |
+
) );
|
554 |
+
} else {
|
555 |
+
|
556 |
+
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
557 |
+
} else {
|
558 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_gutter_width_feed_upgrade', array(
|
559 |
+
'settings' => array(),
|
560 |
+
'label' => __( 'Gutter Width', $Feed_Them_All->plug_slug ),
|
561 |
+
'section' => 'efbl_feed',
|
562 |
+
'description' => __( 'We are sorry, “Gutter Width” is a premium feature.', $Feed_Them_All->plug_slug ),
|
563 |
+
'popup_id' => 'efbl_gutter_width_feed_upgrade',
|
564 |
+
) ) );
|
565 |
+
}
|
566 |
+
|
567 |
+
}
|
568 |
+
|
569 |
+
/* Adding layout section in customizer under efbl panel.*/
|
570 |
+
$wp_customize->add_section( 'efbl_feed', array(
|
571 |
+
'title' => __( 'Feed', $Feed_Them_All->plug_slug ),
|
572 |
+
'description' => __( 'Customize the Single Feed Design In Real Time', $Feed_Them_All->plug_slug ),
|
573 |
+
'priority' => 35,
|
574 |
+
'panel' => 'efbl_customize_panel',
|
575 |
+
) );
|
576 |
+
|
577 |
+
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
578 |
+
} else {
|
579 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_meta_bg_feed_upgrade', array(
|
580 |
+
'settings' => array(),
|
581 |
+
'label' => __( 'Feed Meta Background Color', $Feed_Them_All->plug_slug ),
|
582 |
+
'section' => 'efbl_feed',
|
583 |
+
'description' => __( 'We are sorry, “Feed Meta Background Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
584 |
+
'popup_id' => 'efbl_meta_bg_feed_upgrade',
|
585 |
+
) ) );
|
586 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_meta_feed_upgrade', array(
|
587 |
+
'settings' => array(),
|
588 |
+
'label' => __( 'Feed Meta Color', $Feed_Them_All->plug_slug ),
|
589 |
+
'section' => 'efbl_feed',
|
590 |
+
'description' => __( 'We are sorry, “Feed Meta Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
591 |
+
'popup_id' => 'efbl_meta_feed_upgrade',
|
592 |
+
) ) );
|
593 |
+
}
|
594 |
+
|
595 |
+
/* Making settings dynamic and saving data with array.*/
|
596 |
+
$setting = 'efbl_skin_' . $skin_id . '[show_likes]';
|
597 |
+
/* Adding Setting of show or hide Follow Button*/
|
598 |
+
$wp_customize->add_setting( $setting, array(
|
599 |
+
'default' => $defaults['show_likes'],
|
600 |
+
'transport' => 'postMessage',
|
601 |
+
'type' => 'option',
|
602 |
+
) );
|
603 |
+
/* Adding control of show or hide Follow Button.*/
|
604 |
+
$wp_customize->add_control( $setting, array(
|
605 |
+
'label' => __( 'Show Or Hide Reactions Counter', $Feed_Them_All->plug_slug ),
|
606 |
+
'section' => 'efbl_feed',
|
607 |
+
'settings' => $setting,
|
608 |
+
'description' => __( 'Show or Hide reactions counter', $Feed_Them_All->plug_slug ),
|
609 |
+
'type' => 'checkbox',
|
610 |
+
) );
|
611 |
+
/* Making settings dynamic and saving data with array.*/
|
612 |
+
$setting = 'efbl_skin_' . $skin_id . '[show_comments]';
|
613 |
+
/* Adding Setting of show or hide Follow Button*/
|
614 |
+
$wp_customize->add_setting( $setting, array(
|
615 |
+
'default' => $defaults['show_comments'],
|
616 |
+
'transport' => 'postMessage',
|
617 |
+
'type' => 'option',
|
618 |
+
) );
|
619 |
+
/* Adding control of show or hide Follow Button.*/
|
620 |
+
$wp_customize->add_control( $setting, array(
|
621 |
+
'label' => __( 'Show Or Hide Comments of feeds', $Feed_Them_All->plug_slug ),
|
622 |
+
'section' => 'efbl_feed',
|
623 |
+
'settings' => $setting,
|
624 |
+
'description' => __( 'Show or Hide comments of feed', $Feed_Them_All->plug_slug ),
|
625 |
+
'type' => 'checkbox',
|
626 |
+
) );
|
627 |
+
/* Making settings dynamic and saving data with array.*/
|
628 |
+
$setting = 'efbl_skin_' . $skin_id . '[show_shares]';
|
629 |
+
/* Adding Setting of show or hide Follow Button*/
|
630 |
+
$wp_customize->add_setting( $setting, array(
|
631 |
+
'default' => $defaults['show_shares'],
|
632 |
+
'transport' => 'postMessage',
|
633 |
+
'type' => 'option',
|
634 |
+
) );
|
635 |
+
/* Adding control of show or hide Follow Button.*/
|
636 |
+
$wp_customize->add_control( $setting, array(
|
637 |
+
'label' => __( 'Show Or Hide Shares Counter', $Feed_Them_All->plug_slug ),
|
638 |
+
'section' => 'efbl_feed',
|
639 |
+
'settings' => $setting,
|
640 |
+
'description' => __( 'Show or Hide shares counter', $Feed_Them_All->plug_slug ),
|
641 |
+
'type' => 'checkbox',
|
642 |
+
) );
|
643 |
+
/* Making settings dynamic and saving data with array.*/
|
644 |
+
$setting = 'efbl_skin_' . $skin_id . '[show_feed_caption]';
|
645 |
+
/* Adding Setting of show or hide Follow Button*/
|
646 |
+
$wp_customize->add_setting( $setting, array(
|
647 |
+
'default' => $defaults['show_feed_caption'],
|
648 |
+
'transport' => 'postMessage',
|
649 |
+
'type' => 'option',
|
650 |
+
) );
|
651 |
+
/* Adding control of show or hide Follow Button.*/
|
652 |
+
$wp_customize->add_control( $setting, array(
|
653 |
+
'label' => __( 'Show Or Hide Feed Caption', $Feed_Them_All->plug_slug ),
|
654 |
+
'section' => 'efbl_feed',
|
655 |
+
'settings' => $setting,
|
656 |
+
'description' => __( 'Show or Hide Caption.', $Feed_Them_All->plug_slug ),
|
657 |
+
'type' => 'checkbox',
|
658 |
+
) );
|
659 |
+
|
660 |
+
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
661 |
+
} else {
|
662 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_icon_feed_upgrade', array(
|
663 |
+
'settings' => array(),
|
664 |
+
'label' => __( 'Show Or Hide Open PopUp Icon', $Feed_Them_All->plug_slug ),
|
665 |
+
'section' => 'efbl_feed',
|
666 |
+
'description' => __( 'We are sorry, “Show Or Hide Open PopUp Icon” is a premium feature.', $Feed_Them_All->plug_slug ),
|
667 |
+
'popup_id' => 'efbl_popup_icon_feed_upgrade',
|
668 |
+
) ) );
|
669 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_icon_color_feed_upgrade', array(
|
670 |
+
'settings' => array(),
|
671 |
+
'label' => __( 'Open PopUp Icon color', $Feed_Them_All->plug_slug ),
|
672 |
+
'section' => 'efbl_feed',
|
673 |
+
'description' => __( 'We are sorry, “Open PopUp Icon color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
674 |
+
'popup_id' => 'efbl_popup_icon_color_feed_upgrade',
|
675 |
+
) ) );
|
676 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_icon_color_feedtype_upgrade', array(
|
677 |
+
'settings' => array(),
|
678 |
+
'label' => __( 'Feed Type Icon color', $Feed_Them_All->plug_slug ),
|
679 |
+
'section' => 'efbl_feed',
|
680 |
+
'description' => __( 'We are sorry, “Feed Type Icon color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
681 |
+
'popup_id' => 'efbl_popup_icon_color_feedtype_upgrade',
|
682 |
+
) ) );
|
683 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_cta_feed_upgrade', array(
|
684 |
+
'settings' => array(),
|
685 |
+
'label' => __( 'Show Or Hide Feed Call To Action Buttons', $Feed_Them_All->plug_slug ),
|
686 |
+
'section' => 'efbl_feed',
|
687 |
+
'description' => __( 'We are sorry, “Show Or Hide Feed Call To Action Buttons” is a premium feature.', $Feed_Them_All->plug_slug ),
|
688 |
+
'popup_id' => 'efbl_popup_cta_feed_upgrade',
|
689 |
+
) ) );
|
690 |
+
}
|
691 |
+
|
692 |
+
/* Making settings dynamic and saving data with array.*/
|
693 |
+
$setting = 'efbl_skin_' . $skin_id . '[feed_cta_text_color]';
|
694 |
+
/* Adding Setting of Header text color*/
|
695 |
+
$wp_customize->add_setting( $setting, array(
|
696 |
+
'default' => $defaults['feed_cta_text_color'],
|
697 |
+
'transport' => 'postMessage',
|
698 |
+
'type' => 'option',
|
699 |
+
) );
|
700 |
+
/* Adding Control of Header text color*/
|
701 |
+
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $setting, array(
|
702 |
+
'label' => __( 'Call To Action color', $Feed_Them_All->plug_slug ),
|
703 |
+
'section' => 'efbl_feed',
|
704 |
+
'settings' => $setting,
|
705 |
+
'description' => __( 'Select the color of links like (Share and Read Full Story).', $Feed_Them_All->plug_slug ),
|
706 |
+
) ) );
|
707 |
+
|
708 |
+
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
709 |
+
} else {
|
710 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_cta_hover_feed_upgrade', array(
|
711 |
+
'settings' => array(),
|
712 |
+
'label' => __( 'Call To Action Hover color', $Feed_Them_All->plug_slug ),
|
713 |
+
'section' => 'efbl_feed',
|
714 |
+
'description' => __( 'We are sorry, “Call To Action Hover color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
715 |
+
'popup_id' => 'efbl_popup_cta_hover_feed_upgrade',
|
716 |
+
) ) );
|
717 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_bg_hover_feed_upgrade', array(
|
718 |
+
'settings' => array(),
|
719 |
+
'label' => __( 'Feed Hover Shadow Color', $Feed_Them_All->plug_slug ),
|
720 |
+
'section' => 'efbl_feed',
|
721 |
+
'description' => __( 'We are sorry, “Feed Hover Shadow Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
722 |
+
'popup_id' => 'efbl_popup_bg_hover_feed_upgrade',
|
723 |
+
) ) );
|
724 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_border_feed_upgrade', array(
|
725 |
+
'settings' => array(),
|
726 |
+
'label' => __( 'Feed Border Color', $Feed_Them_All->plug_slug ),
|
727 |
+
'section' => 'efbl_feed',
|
728 |
+
'description' => __( 'We are sorry, “Feed Border Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
729 |
+
'popup_id' => 'efbl_popup_border_feed_upgrade',
|
730 |
+
) ) );
|
731 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_bordersize_feed_upgrade', array(
|
732 |
+
'settings' => array(),
|
733 |
+
'label' => __( 'Border Size', $Feed_Them_All->plug_slug ),
|
734 |
+
'section' => 'efbl_feed',
|
735 |
+
'description' => __( 'We are sorry, “Border Size” is a premium feature.', $Feed_Them_All->plug_slug ),
|
736 |
+
'popup_id' => 'efbl_popup_bordersize_feed_upgrade',
|
737 |
+
) ) );
|
738 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_borderstyle_feed_upgrade', array(
|
739 |
+
'settings' => array(),
|
740 |
+
'label' => __( 'Border Style', $Feed_Them_All->plug_slug ),
|
741 |
+
'section' => 'efbl_feed',
|
742 |
+
'description' => __( 'We are sorry, “Border Style” is a premium feature.', $Feed_Them_All->plug_slug ),
|
743 |
+
'popup_id' => 'efbl_popup_borderstyle_feed_upgrade',
|
744 |
+
) ) );
|
745 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_shared_link_feed_upgrade', array(
|
746 |
+
'settings' => array(),
|
747 |
+
'label' => __( 'Show Or Hide Shared Link Data', $Feed_Them_All->plug_slug ),
|
748 |
+
'section' => 'efbl_feed',
|
749 |
+
'description' => __( 'We are sorry, “Show Or Hide Shared Link Data” is a premium feature.', $Feed_Them_All->plug_slug ),
|
750 |
+
'popup_id' => 'efbl_popup_shared_link_feed_upgrade',
|
751 |
+
) ) );
|
752 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_shared_linkbg_feed_upgrade', array(
|
753 |
+
'settings' => array(),
|
754 |
+
'label' => __( 'Shared Link Background Color', $Feed_Them_All->plug_slug ),
|
755 |
+
'section' => 'efbl_feed',
|
756 |
+
'description' => __( 'We are sorry, “Shared Link Background Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
757 |
+
'popup_id' => 'efbl_popup_shared_linkbg_feed_upgrade',
|
758 |
+
) ) );
|
759 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_shared_linkhead_feed_upgrade', array(
|
760 |
+
'settings' => array(),
|
761 |
+
'label' => __( 'Shared Link Heading Color', $Feed_Them_All->plug_slug ),
|
762 |
+
'section' => 'efbl_feed',
|
763 |
+
'description' => __( 'We are sorry, “Shared Link Heading Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
764 |
+
'popup_id' => 'efbl_popup_shared_linkhead_feed_upgrade',
|
765 |
+
) ) );
|
766 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_shared_linktext_feed_upgrade', array(
|
767 |
+
'settings' => array(),
|
768 |
+
'label' => __( 'Shared Link Content Color', $Feed_Them_All->plug_slug ),
|
769 |
+
'section' => 'efbl_feed',
|
770 |
+
'description' => __( 'We are sorry, “Shared Link Content Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
771 |
+
'popup_id' => 'efbl_popup_shared_linktext_feed_upgrade',
|
772 |
+
) ) );
|
773 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_shared_linkborder_feed_upgrade', array(
|
774 |
+
'settings' => array(),
|
775 |
+
'label' => __( 'Shared Link Border Color', $Feed_Them_All->plug_slug ),
|
776 |
+
'section' => 'efbl_feed',
|
777 |
+
'description' => __( 'We are sorry, “Shared Link Border Color” is a premium feature.', $Feed_Them_All->plug_slug ),
|
778 |
+
'popup_id' => 'efbl_popup_shared_linkborder_feed_upgrade',
|
779 |
+
) ) );
|
780 |
+
}
|
781 |
+
|
782 |
+
//======================================================================
|
783 |
+
// PopUP section
|
784 |
+
//======================================================================
|
785 |
+
/* Adding layout section in customizer under efbl panel.*/
|
786 |
+
$wp_customize->add_section( 'efbl_popup', array(
|
787 |
+
'title' => __( 'Media lightbox', $Feed_Them_All->plug_slug ),
|
788 |
+
'description' => __( 'Customize the PopUp In Real Time', $Feed_Them_All->plug_slug ),
|
789 |
+
'priority' => 35,
|
790 |
+
'panel' => 'efbl_customize_panel',
|
791 |
+
) );
|
792 |
+
|
793 |
+
if ( efl_fs()->is_plan( 'facebook_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
794 |
+
} else {
|
795 |
+
$wp_customize->add_control( new Customize_EFBL_PopUp( $wp_customize, 'efbl_popup_popup_upgrade', array(
|
796 |
+
'settings' => array(),
|
797 |
+
'label' => __( 'Media Lightbox Settings', $Feed_Them_All->plug_slug ),
|
798 |
+
'section' => 'efbl_popup',
|
799 |
'description' => __( 'We are sorry, Media Lightbox Settings are not included in your plan. Please upgrade to premium version to unlock following settings<ul>
|
800 |
<li>Sidebar Background Color</li>
|
801 |
<li>Sidebar Content Color</li>
|
818 |
<li>Close Icon Color</li>
|
819 |
<li>Close Icon Hover Background Color</li>
|
820 |
<li>Close Icon Hover Color</li>
|
821 |
+
</ul>', $Feed_Them_All->plug_slug ),
|
822 |
+
'popup_id' => 'efbl_popup_popup_upgrade',
|
823 |
+
) ) );
|
824 |
+
}
|
825 |
+
|
826 |
+
}
|
827 |
+
|
828 |
+
/* efbl_customizer Method ends here. */
|
829 |
/**
|
830 |
* Used by hook: 'customize_preview_init'
|
831 |
*
|
832 |
* @see add_action('customize_preview_init',$func)
|
833 |
+
*/
|
834 |
+
public function efbl_live_preview()
|
835 |
+
{
|
836 |
+
/* Getting saved skin id. */
|
837 |
+
$skin_id = get_option( 'efbl_skin_id', false );
|
838 |
+
/* Enqueing script for displaying live changes. */
|
839 |
+
wp_enqueue_script(
|
840 |
+
'efbl_live_preview',
|
841 |
+
EFBL_PLUGIN_URL . 'admin/assets/js/efbl-live-preview.js',
|
842 |
+
array( 'jquery', 'customize-preview' ),
|
843 |
+
true
|
844 |
+
);
|
845 |
+
/* Localizing script for getting skin id in js. */
|
846 |
+
wp_localize_script( 'efbl_live_preview', 'efbl_skin_id', $skin_id );
|
847 |
+
}
|
848 |
+
|
849 |
+
/* efbl_live_preview Method ends here. */
|
850 |
+
/* mif_style Method ends here. */
|
851 |
/*
|
852 |
* efbl_customize_css will add the styling to the head of the site.
|
853 |
+
*/
|
854 |
+
public function efbl_customize_css()
|
855 |
+
{
|
856 |
/*
|
857 |
* Getting all the skins.
|
858 |
+
*/
|
859 |
+
global $efbl_skins ;
|
860 |
+
// echo "<pre>"; print_r($efbl_skins);exit();
|
861 |
/*
|
862 |
* Intializing mif css variable.
|
863 |
+
*/
|
864 |
+
$efbl_css = null;
|
865 |
+
$efbl_css = '<style type="text/css">';
|
866 |
/*
|
867 |
* Getting skins exists loop thorugh it.
|
868 |
+
*/
|
869 |
+
if ( isset( $efbl_skins ) ) {
|
870 |
+
foreach ( $efbl_skins as $efbl_skin ) {
|
871 |
+
$selected_layout = $efbl_skin['design']['layout_option'];
|
872 |
+
$skinn_id = $efbl_skin['ID'];
|
873 |
+
$no_of_cols = get_option( 'efbl_skin_' . $skinn_id, false );
|
874 |
+
if ( isset( $no_of_cols['number_of_cols'] ) ) {
|
875 |
+
$no_of_cols = $no_of_cols['number_of_cols'];
|
876 |
+
}
|
877 |
/*
|
878 |
* If header is enabled and layout is not full width.
|
879 |
+
*/
|
880 |
+
|
881 |
+
if ( !empty($efbl_skin['design']['show_header']) ) {
|
882 |
+
$mif_header_display = 'block';
|
883 |
+
} else {
|
884 |
+
$mif_header_display = 'none';
|
885 |
+
}
|
886 |
+
|
887 |
/*
|
888 |
* Background color of the skin.
|
889 |
+
*/
|
890 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header { display: ' . $mif_header_display . '; }';
|
891 |
/*
|
892 |
* Header Size.
|
893 |
+
*/
|
894 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header_meta .efbl_header_title { font-size: ' . $efbl_skin['design']['title_size'] . 'px; }';
|
895 |
/*
|
896 |
* If likes needs to show.
|
897 |
+
*/
|
898 |
+
|
899 |
+
if ( !empty($efbl_skin['design']['show_likes']) ) {
|
900 |
+
$efbl_show_likes = 'inline-block';
|
901 |
+
} else {
|
902 |
+
$efbl_show_likes = 'none';
|
903 |
+
}
|
904 |
+
|
905 |
/*
|
906 |
* Show number of feeds counter.
|
907 |
+
*/
|
908 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_likes, .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_story_meta .efbl_story_lnc_holder .efbl_all_likes_wrap { display: ' . $efbl_show_likes . '; }';
|
909 |
/*
|
910 |
* If shares needs to show.
|
911 |
+
*/
|
912 |
+
|
913 |
+
if ( !empty($efbl_skin['design']['show_shares']) ) {
|
914 |
+
$efbl_show_shares = 'inline-block';
|
915 |
+
} else {
|
916 |
+
$efbl_show_shares = 'none';
|
917 |
+
}
|
918 |
+
|
919 |
/*
|
920 |
* Show number of shares counter.
|
921 |
+
*/
|
922 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_shares { display: ' . $efbl_show_shares . '; }';
|
923 |
/*
|
924 |
* If comments needs to show.
|
925 |
+
*/
|
926 |
+
|
927 |
+
if ( !empty($efbl_skin['design']['show_comments']) ) {
|
928 |
+
$efbl_show_comments = 'inline-block';
|
929 |
+
} else {
|
930 |
+
$efbl_show_comments = 'none';
|
931 |
+
}
|
932 |
+
|
933 |
/*
|
934 |
* Show number of feeds counter.
|
935 |
+
*/
|
936 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_comments { display: ' . $efbl_show_comments . '; }';
|
937 |
/*
|
938 |
* If follow button is enabled.
|
939 |
+
*/
|
940 |
+
|
941 |
+
if ( !empty($efbl_skin['design']['show_follow_btn']) ) {
|
942 |
+
$mif_follow_btn_display = 'inline-block';
|
943 |
+
} else {
|
944 |
+
$mif_follow_btn_display = 'none';
|
945 |
+
}
|
946 |
+
|
947 |
/*
|
948 |
* Show Follow Button.
|
949 |
+
*/
|
950 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .mif_follow_btn { display: ' . $mif_follow_btn_display . '; }';
|
951 |
/*
|
952 |
* If feed caption is enabled.
|
953 |
+
*/
|
954 |
+
|
955 |
+
if ( !empty($efbl_skin['design']['show_feed_caption']) ) {
|
956 |
+
$efbl_show_feed_caption = 'block';
|
957 |
+
} else {
|
958 |
+
$efbl_show_feed_caption = 'none';
|
959 |
+
}
|
960 |
+
|
961 |
/*
|
962 |
* Show caption
|
963 |
+
*/
|
964 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf .efbl_story_text { display: ' . $efbl_show_feed_caption . '; }';
|
965 |
/*
|
966 |
* Header Size.
|
967 |
+
*/
|
968 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_header_title { font-size: ' . $efbl_skin['design']['title_size'] . 'px; }';
|
969 |
/*
|
970 |
* Meta data Size.
|
971 |
+
*/
|
972 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_posts,.efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_followers { font-size: ' . $efbl_skin['design']['metadata_size'] . 'px; }';
|
973 |
/*
|
974 |
* Header background Color.
|
975 |
+
*/
|
976 |
+
$efbl_css .= '.efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header { background-color: ' . $efbl_skin['design']['header_background_color'] . '; }';
|
977 |
/*
|
978 |
* Header Color.
|
979 |
+
*/
|
980 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header, .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_posts, .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_followers, .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_bio, .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_header .mif_header_title { color: ' . $efbl_skin['design']['header_text_color'] . '; }';
|
981 |
/*
|
982 |
* Feed CTA Color.
|
983 |
+
*/
|
984 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_read_more_link a { color: ' . $efbl_skin['design']['feed_cta_text_color'] . '; }';
|
985 |
/*
|
986 |
* Background color of feed.
|
987 |
+
*/
|
988 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story { background-color: ' . $efbl_skin['design']['feed_background_color'] . ' !important; }';
|
989 |
/*
|
990 |
* Feed Padding Top.
|
991 |
+
*/
|
992 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf { padding-top: ' . $efbl_skin['design']['feed_padding_top'] . 'px; }';
|
993 |
/*
|
994 |
* Feed Padding Bottom.
|
995 |
+
*/
|
996 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf {padding-bottom: ' . $efbl_skin['design']['feed_padding_bottom'] . 'px; }';
|
997 |
/*
|
998 |
* Feed Padding left.
|
999 |
+
*/
|
1000 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf { padding-left: ' . $efbl_skin['design']['feed_padding_left'] . 'px; }';
|
1001 |
/*
|
1002 |
* Feed Padding right.
|
1003 |
+
*/
|
1004 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf {padding-right: ' . $efbl_skin['design']['feed_padding_right'] . 'px; }';
|
1005 |
+
|
1006 |
+
if ( 'masonry' !== $selected_layout && 'carousel' !== $selected_layout ) {
|
1007 |
/*
|
1008 |
* Feed Margin Top.
|
1009 |
+
*/
|
1010 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf { margin-top: ' . $efbl_skin['design']['feed_margin_top'] . 'px; }';
|
1011 |
/*
|
1012 |
* Feed Margin Bottom.
|
1013 |
+
*/
|
1014 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf { margin-bottom: ' . $efbl_skin['design']['feed_margin_bottom'] . 'px; }';
|
1015 |
/*
|
1016 |
* Feed Margin Left.
|
1017 |
+
*/
|
1018 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf { margin-left: ' . $efbl_skin['design']['feed_margin_left'] . 'px; }';
|
1019 |
/*
|
1020 |
* Feed Margin Right.
|
1021 |
+
*/
|
1022 |
+
$efbl_css .= ' .efbl_feed_wraper.efbl_skin_' . $efbl_skin['ID'] . ' .efbl_fb_story#efblcf {margin-right: ' . $efbl_skin['design']['feed_margin_right'] . 'px; }';
|
1023 |
+
}
|
1024 |
+
|
1025 |
+
}
|
1026 |
+
}
|
1027 |
+
$efbl_css .= '</style>';
|
1028 |
+
// echo "<pre>";
|
1029 |
+
// print_r($efbl_css);exit();
|
1030 |
+
echo $efbl_css ;
|
1031 |
+
}
|
1032 |
+
|
1033 |
+
}
|
1034 |
+
/* EFBL_Cuustomizer Class ends here. */
|
1035 |
+
$EFBL_Cuustomizer = new EFBL_Cuustomizer();
|
1036 |
+
}
|
easy-facebook-likebox/admin/includes/efbl-skins.php
CHANGED
@@ -1,551 +1,551 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
/*
|
4 |
* Stop execution if someone tried to get file directly.
|
5 |
-
*/
|
6 |
-
if ( !defined( 'ABSPATH' ) ) {
|
7 |
-
exit;
|
8 |
-
}
|
9 |
-
//======================================================================
|
10 |
-
// Main class of all efbl Skins
|
11 |
-
//======================================================================
|
12 |
-
|
13 |
-
if ( !class_exists( 'EFBL_SKINS' ) ) {
|
14 |
-
class EFBL_SKINS
|
15 |
-
{
|
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 |
-
/* Action hook fires on admin load. */
|
24 |
-
add_action( 'init', array( $this, 'efbl_skins_register' ), 20 );
|
25 |
-
$this->efbl_default_skins();
|
26 |
/*
|
27 |
* init hooks fires on wp load.
|
28 |
* Gets all Skins.
|
29 |
-
*/
|
30 |
-
add_action( 'init', array( $this, 'efbl_skins' ), 30 );
|
31 |
-
}
|
32 |
-
|
33 |
-
/* __construct Method ends here. */
|
34 |
-
public function efbl_skins_register()
|
35 |
-
{
|
36 |
-
/* Arguments for custom post type of xOptin. */
|
37 |
-
$args = array(
|
38 |
-
'public' => false,
|
39 |
-
'label' => __( 'Facebook Skins', 'easy-facebook-likebox' ),
|
40 |
-
'show_in_menu' => false,
|
41 |
-
'exclude_from_search' => true,
|
42 |
-
'has_archive' => false,
|
43 |
-
'hierarchical' => true,
|
44 |
-
'menu_position' => null,
|
45 |
-
);
|
46 |
-
/* register_post_type() registers a custom post type in wp. */
|
47 |
-
register_post_type( 'efbl_skins', $args );
|
48 |
-
}
|
49 |
-
|
50 |
-
/* efbl_skins_register Method ends here. */
|
51 |
-
public function efbl_default_skins()
|
52 |
-
{
|
53 |
-
$FTA = new Feed_Them_All();
|
54 |
-
$fta_settings = $FTA->fta_get_settings();
|
55 |
-
// echo '<pre>'; print_r($fta_settings['plugins']['facebook']['default_skin_id']);exit();
|
56 |
-
|
57 |
-
if ( !isset( $fta_settings['plugins']['facebook']['default_skin_id'] ) && empty($fta_settings['plugins']['facebook']['default_skin_id']) ) {
|
58 |
-
/* Arguments for default skin. */
|
59 |
-
$efbl_new_skins = array(
|
60 |
-
'post_title' => __( "Skin - Half Width", 'easy-facebook-likebox' ),
|
61 |
-
'post_content' => __( "This is the half width demo skin created by plugin automatically with default values. You can edit it and change the look & feel of your Facebook Feeds.", 'easy-facebook-likebox' ),
|
62 |
-
'post_type' => 'efbl_skins',
|
63 |
-
'post_status' => 'publish',
|
64 |
-
'post_author' => get_current_user_id(),
|
65 |
-
);
|
66 |
-
$efbl_new_skins = apply_filters( 'efbl_default_skin', $efbl_new_skins );
|
67 |
/*
|
68 |
* it will update the demo page on every activate if it's exists.
|
69 |
* If not exists the add new demo page.
|
70 |
-
*/
|
71 |
-
$skin_id = wp_insert_post( $efbl_new_skins );
|
72 |
-
/* Arguments for default skin. */
|
73 |
-
$efbl_new_skin_full = array(
|
74 |
-
'post_title' => __( "Skin - Full Width", 'easy-facebook-likebox' ),
|
75 |
-
'post_content' => __( "This is the Full width demo skin created by plugin automatically with default values. You can edit it and change the look & feel of your Facebook Feeds.", 'easy-facebook-likebox' ),
|
76 |
-
'post_type' => 'efbl_skins',
|
77 |
-
'post_status' => 'publish',
|
78 |
-
'post_author' => get_current_user_id(),
|
79 |
-
);
|
80 |
/*
|
81 |
* it will update the demo page on every activate if it's exists.
|
82 |
* If not exists the add new demo page.
|
83 |
-
*/
|
84 |
-
$efbl_new_skin_full_id = wp_insert_post( $efbl_new_skin_full );
|
85 |
-
/* Arguments for default skin. */
|
86 |
-
$efbl_new_skin_thumbnail = array(
|
87 |
-
'post_title' => __( "Skin - Thumbnail", 'easy-facebook-likebox' ),
|
88 |
-
'post_content' => __( "This is the Thumbnail demo skin created by plugin automatically with default values. You can edit it and change the look & feel of your Facebook Feeds.", 'easy-facebook-likebox' ),
|
89 |
-
'post_type' => 'efbl_skins',
|
90 |
-
'post_status' => 'publish',
|
91 |
-
'post_author' => get_current_user_id(),
|
92 |
-
);
|
93 |
/*
|
94 |
* it will update the demo page on every activate if it's exists.
|
95 |
* If not exists the add new demo page.
|
96 |
-
*/
|
97 |
-
$efbl_new_skin_thumbnail_id = wp_insert_post( $efbl_new_skin_thumbnail );
|
98 |
-
if ( isset( $skin_id ) ) {
|
99 |
-
/* saving values.*/
|
100 |
-
update_option( 'efbl_skin_' . $skin_id, $this->efbl_skin_half_values() );
|
101 |
-
}
|
102 |
-
if ( isset( $efbl_new_skin_thumbnail_id ) ) {
|
103 |
-
/* saving values.*/
|
104 |
-
update_option( 'efbl_skin_' . $efbl_new_skin_thumbnail_id, $this->efbl_skin_thumbnail_values() );
|
105 |
-
}
|
106 |
-
if ( isset( $efbl_new_skin_full_id ) ) {
|
107 |
-
/* saving values.*/
|
108 |
-
update_option( 'efbl_skin_' . $efbl_new_skin_full_id, $this->efbl_skin_full_values() );
|
109 |
-
}
|
110 |
-
$fta_settings['plugins']['facebook']['default_skin_id'] = $skin_id;
|
111 |
-
update_option( 'fta_settings', $fta_settings );
|
112 |
-
}
|
113 |
-
|
114 |
-
|
115 |
-
if ( !isset( $fta_settings['plugins']['facebook']['default_page_id'] ) && empty($fta_settings['plugins']['facebook']['default_page_id']) ) {
|
116 |
-
$skin_id = $fta_settings['plugins']['facebook']['default_skin_id'];
|
117 |
/*
|
118 |
* $data array contains the data of demo page.
|
119 |
-
*/
|
120 |
-
$efbl_default_page = array(
|
121 |
-
'post_title' => __( "Facebook Demo - Customizer", 'easy-facebook-likebox' ),
|
122 |
-
'post_content' => __( '[efb_feed fanpage_id="106704037405386" show_like_box="1" post_limit="10" cache_unit="5" cache_duration="days" skin_id=' . $skin_id . ' ]<br> This is a Facebook demo page created by plugin automatically. Please do not delete to make the plugin work properly.', 'easy-facebook-likebox' ),
|
123 |
-
'post_type' => 'page',
|
124 |
-
'post_status' => '
|
125 |
-
);
|
126 |
-
$efbl_default_page = apply_filters( 'efbl_default_page', $efbl_default_page );
|
127 |
-
$page_id = wp_insert_post( $efbl_default_page );
|
128 |
-
$fta_settings['plugins']['facebook']['default_page_id'] = $page_id;
|
129 |
-
update_option( 'fta_settings', $fta_settings );
|
130 |
-
}
|
131 |
-
|
132 |
-
}
|
133 |
-
|
134 |
/*
|
135 |
* xo_accounts will get the all accounts.
|
136 |
* Returns accounts object.
|
137 |
-
*/
|
138 |
-
public function efbl_skins()
|
139 |
-
{
|
140 |
/*
|
141 |
* Arguments for WP_Query().
|
142 |
-
*/
|
143 |
-
$efbl_skins = array(
|
144 |
-
'posts_per_page' => 1000,
|
145 |
-
'post_type' => 'efbl_skins',
|
146 |
-
'post_status' => array( 'publish', 'draft', 'pending' ),
|
147 |
-
);
|
148 |
/*
|
149 |
* Quering all active xOptins.
|
150 |
* WP_Query() object of wp will be used.
|
151 |
-
*/
|
152 |
-
$efbl_skins = new WP_Query( $efbl_skins );
|
153 |
-
/* If any xoptins_skins are in database. */
|
154 |
-
|
155 |
-
if ( $efbl_skins->have_posts() ) {
|
156 |
-
/* Declaring an empty array. */
|
157 |
-
$efbl_skins_holder = array();
|
158 |
-
/* Looping efbl_skins to get all records. */
|
159 |
-
while ( $efbl_skins->have_posts() ) {
|
160 |
-
/* Making it post. */
|
161 |
-
$efbl_skins->the_post();
|
162 |
-
/* Getting the ID. */
|
163 |
-
$id = get_the_ID();
|
164 |
-
// wp_delete_post($id, true );
|
165 |
-
$design_arr = null;
|
166 |
-
$design_arr = get_option( 'efbl_skin_' . $id, false );
|
167 |
-
// echo "<pre>"; print_r( $design_arr);exit();
|
168 |
-
$selected_layout = $design_arr['layout_option'];
|
169 |
-
$title = get_the_title();
|
170 |
-
if ( empty($title) ) {
|
171 |
-
$title = __( 'Skin', 'easy-facebook-likebox' );
|
172 |
-
}
|
173 |
-
/* Making an array of skins. */
|
174 |
-
$efbl_skins_holder[$id] = array(
|
175 |
-
'ID' => $id,
|
176 |
-
'title' => $title,
|
177 |
-
'description' => get_the_content(),
|
178 |
-
);
|
179 |
-
if ( !isset( $selected_layout ) or empty($selected_layout) ) {
|
180 |
-
$selected_layout = 'half';
|
181 |
-
}
|
182 |
-
$default_func_name = 'efbl_skin_' . $selected_layout . '_values';
|
183 |
-
$defaults = $this->{$default_func_name}();
|
184 |
-
/* If there is no data in live preview section of xOptin setting the default data. */
|
185 |
-
$efbl_skins_holder[$id]['design'] = wp_parse_args( $design_arr, $defaults );
|
186 |
-
// $efbl_skins_holder[$id]['design'] = $design_arr;
|
187 |
-
}
|
188 |
-
// Loop ends here.
|
189 |
-
/* Reseting the current query. */
|
190 |
-
wp_reset_postdata();
|
191 |
-
} else {
|
192 |
-
return __( 'No skins found.', 'easy-facebook-likebox' );
|
193 |
-
}
|
194 |
-
|
195 |
-
/* Globalising array to access anywhere. */
|
196 |
-
$GLOBALS['efbl_skins'] = $efbl_skins_holder;
|
197 |
-
}
|
198 |
-
|
199 |
-
/* xo_Skins Method ends here. */
|
200 |
/*
|
201 |
* efbl_skin_half_values will have default design values of halfwidth layout skin.
|
202 |
-
*/
|
203 |
-
public function efbl_skin_half_values()
|
204 |
-
{
|
205 |
/*
|
206 |
* Default values
|
207 |
-
*/
|
208 |
-
$half_default = array(
|
209 |
-
'layout_option' => 'half',
|
210 |
-
'show_load_more_btn' => true,
|
211 |
-
'load_more_background_color' => '#333',
|
212 |
-
'load_more_color' => '#fff',
|
213 |
-
'load_more_hover_background_color' => '#5c5c5c',
|
214 |
-
'load_more_hover_color' => '#fff',
|
215 |
-
'header_background_color' => 'transparent',
|
216 |
-
'header_text_color' => '#000',
|
217 |
-
'header_border_color' => '#ccc',
|
218 |
-
'header_border_style' => 'none',
|
219 |
-
'header_border_top' => '0',
|
220 |
-
'header_border_bottom' => '1',
|
221 |
-
'header_border_left' => '0',
|
222 |
-
'header_border_right' => '0',
|
223 |
-
'header_padding_top' => '10',
|
224 |
-
'header_padding_bottom' => '10',
|
225 |
-
'header_padding_left' => '10',
|
226 |
-
'header_padding_right' => '10',
|
227 |
-
'title_size' => '16',
|
228 |
-
'metadata_size' => '16',
|
229 |
-
'bio_size' => '14',
|
230 |
-
'show_comments' => true,
|
231 |
-
'show_likes' => true,
|
232 |
-
'show_header' => false,
|
233 |
-
'show_dp' => true,
|
234 |
-
'header_round_dp' => true,
|
235 |
-
'show_page_category' => true,
|
236 |
-
'show_no_of_followers' => true,
|
237 |
-
'show_bio' => true,
|
238 |
-
'feed_header' => true,
|
239 |
-
'feed_header_logo' => true,
|
240 |
-
'feed_background_color' => 'transparent',
|
241 |
-
'feed_padding_top' => '0',
|
242 |
-
'feed_padding_bottom' => '0',
|
243 |
-
'feed_padding_left' => '0',
|
244 |
-
'feed_padding_right' => '0',
|
245 |
-
'feed_margin_top' => '0',
|
246 |
-
'feed_margin_bottom' => '20',
|
247 |
-
'feed_margin_left' => '0',
|
248 |
-
'feed_margin_right' => '0',
|
249 |
-
'feed_meta_data_bg_color' => '#0073aa',
|
250 |
-
'feed_meta_data_color' => '#fff',
|
251 |
-
'show_likes' => true,
|
252 |
-
'show_comments' => true,
|
253 |
-
'show_shares' => true,
|
254 |
-
'show_feed_caption' => true,
|
255 |
-
'show_feed_open_popup_icon' => true,
|
256 |
-
'popup_icon_color' => '#fff',
|
257 |
-
'show_feed_cta' => true,
|
258 |
-
'feed_cta_text_color' => '#000',
|
259 |
-
'feed_cta_text_hover_color' => '#000',
|
260 |
-
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
261 |
-
'feed_seprator_color' => '#ccc',
|
262 |
-
'feed_border_size' => '1',
|
263 |
-
'feed_border_style' => 'none',
|
264 |
-
'feed_type_icon_color' => '#fff',
|
265 |
-
'feed_text_color' => '#000',
|
266 |
-
'feed_shared_link' => true,
|
267 |
-
'feed_shared_link_bg_color' => '#f7f7f7',
|
268 |
-
'feed_shared_link_heading_color' => '#0073aa',
|
269 |
-
'feed_shared_link_color' => '#000',
|
270 |
-
'feed_shared_link_border_color' => '#eee',
|
271 |
-
'popup_sidebar_bg' => '#fff',
|
272 |
-
'popup_sidebar_color' => '#000',
|
273 |
-
'popup_show_header' => true,
|
274 |
-
'popup_show_header_logo' => true,
|
275 |
-
'popup_header_title_color' => '#ed6d62',
|
276 |
-
'popup_post_time_color' => '#9197a3',
|
277 |
-
'popup_show_caption' => true,
|
278 |
-
'popup_show_meta' => true,
|
279 |
-
'popup_meta_bg_color' => '#f6f7f9',
|
280 |
-
'popup_meta_color' => '#000',
|
281 |
-
'popup_show_reactions_counter' => true,
|
282 |
-
'popup_show_comments_counter' => true,
|
283 |
-
'popup_show_view_fb_link' => true,
|
284 |
-
'popup_show_comments' => true,
|
285 |
-
'popup_comments_bg_color' => '#f2f3f5',
|
286 |
-
'popup_comments_color' => '#4b4f52',
|
287 |
-
'popup_close_icon_bg_color' => 'transparent',
|
288 |
-
'popup_close_icon_color' => '#888',
|
289 |
-
'popup_close_icon_bg_hover_color' => '#eee',
|
290 |
-
'popup_close_icon_hover_color' => '#000',
|
291 |
-
'popup_show_close_icon' => true,
|
292 |
-
);
|
293 |
/*
|
294 |
* Filters to add more default values
|
295 |
-
*/
|
296 |
-
$half_default = apply_filters( 'efbl_half_layout_defaults', $half_default );
|
297 |
/*
|
298 |
* Returns the half skin default values
|
299 |
-
*/
|
300 |
-
return $half_default;
|
301 |
-
}
|
302 |
-
|
303 |
-
/* efbl_skin_half_values Method ends here. */
|
304 |
/*
|
305 |
* efbl_skin_half_values will have default design values of fullwidth layout skin.
|
306 |
-
*/
|
307 |
-
public function efbl_skin_full_values()
|
308 |
-
{
|
309 |
/*
|
310 |
* Default values
|
311 |
-
*/
|
312 |
-
$full_default = array(
|
313 |
-
'layout_option' => 'full',
|
314 |
-
'show_load_more_btn' => true,
|
315 |
-
'load_more_background_color' => '#333',
|
316 |
-
'load_more_color' => '#fff',
|
317 |
-
'load_more_hover_background_color' => '#5c5c5c',
|
318 |
-
'load_more_hover_color' => '#fff',
|
319 |
-
'header_background_color' => '#fff',
|
320 |
-
'btnbordercolor-hover' => '#000',
|
321 |
-
'header_text_color' => '#000',
|
322 |
-
'feed_time_text_color' => '#000',
|
323 |
-
'feed_cta_text_color' => '#000',
|
324 |
-
'header_background_color' => 'transparent',
|
325 |
-
'header_text_color' => '#000',
|
326 |
-
'header_border_color' => '#ccc',
|
327 |
-
'header_border_style' => 'none',
|
328 |
-
'header_border_top' => '0',
|
329 |
-
'header_border_bottom' => '1',
|
330 |
-
'header_border_left' => '0',
|
331 |
-
'header_border_right' => '0',
|
332 |
-
'header_padding_top' => '10',
|
333 |
-
'header_padding_bottom' => '10',
|
334 |
-
'header_padding_left' => '10',
|
335 |
-
'header_padding_right' => '10',
|
336 |
-
'title_size' => '16',
|
337 |
-
'metadata_size' => '16',
|
338 |
-
'bio_size' => '14',
|
339 |
-
'show_comments' => true,
|
340 |
-
'show_likes' => true,
|
341 |
-
'show_header' => false,
|
342 |
-
'show_dp' => true,
|
343 |
-
'header_round_dp' => true,
|
344 |
-
'show_page_category' => true,
|
345 |
-
'show_no_of_followers' => true,
|
346 |
-
'show_bio' => true,
|
347 |
-
'feed_header' => true,
|
348 |
-
'feed_header_logo' => true,
|
349 |
-
'feed_background_color' => 'transparent',
|
350 |
-
'feed_padding_top' => '0',
|
351 |
-
'feed_padding_bottom' => '0',
|
352 |
-
'feed_padding_left' => '0',
|
353 |
-
'feed_padding_right' => '0',
|
354 |
-
'feed_margin_top' => '0',
|
355 |
-
'feed_margin_bottom' => '20',
|
356 |
-
'feed_margin_left' => '0',
|
357 |
-
'feed_margin_right' => '0',
|
358 |
-
'feed_meta_data_bg_color' => '#0073aa',
|
359 |
-
'feed_meta_data_color' => '#fff',
|
360 |
-
'show_likes' => true,
|
361 |
-
'show_comments' => true,
|
362 |
-
'show_shares' => true,
|
363 |
-
'show_feed_caption' => true,
|
364 |
-
'show_feed_open_popup_icon' => true,
|
365 |
-
'popup_icon_color' => '#fff',
|
366 |
-
'show_feed_cta' => true,
|
367 |
-
'feed_cta_text_color' => '#000',
|
368 |
-
'feed_cta_text_hover_color' => '#000',
|
369 |
-
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
370 |
-
'feed_seprator_color' => '#ccc',
|
371 |
-
'feed_border_size' => '1',
|
372 |
-
'feed_border_style' => 'none',
|
373 |
-
'feed_type_icon_color' => '#fff',
|
374 |
-
'feed_text_color' => '#000',
|
375 |
-
'feed_shared_link' => true,
|
376 |
-
'feed_shared_link_bg_color' => '#f7f7f7',
|
377 |
-
'feed_shared_link_heading_color' => '#0073aa',
|
378 |
-
'feed_shared_link_color' => '#000',
|
379 |
-
'feed_shared_link_border_color' => '#eee',
|
380 |
-
'popup_sidebar_bg' => '#fff',
|
381 |
-
'popup_sidebar_color' => '#000',
|
382 |
-
'popup_show_header' => true,
|
383 |
-
'popup_show_header_logo' => true,
|
384 |
-
'popup_header_title_color' => '#ed6d62',
|
385 |
-
'popup_post_time_color' => '#9197a3',
|
386 |
-
'popup_show_caption' => true,
|
387 |
-
'popup_show_meta' => true,
|
388 |
-
'popup_meta_bg_color' => '#f6f7f9',
|
389 |
-
'popup_meta_color' => '#000',
|
390 |
-
'popup_show_reactions_counter' => true,
|
391 |
-
'popup_show_comments_counter' => true,
|
392 |
-
'popup_show_view_fb_link' => true,
|
393 |
-
'popup_show_comments' => true,
|
394 |
-
'popup_comments_bg_color' => '#f2f3f5',
|
395 |
-
'popup_comments_color' => '#4b4f52',
|
396 |
-
'popup_close_icon_bg_color' => 'transparent',
|
397 |
-
'popup_close_icon_color' => '#888',
|
398 |
-
'popup_close_icon_bg_hover_color' => '#eee',
|
399 |
-
'popup_close_icon_hover_color' => '#000',
|
400 |
-
'popup_show_close_icon' => true,
|
401 |
-
);
|
402 |
/*
|
403 |
* Filters to add more default values
|
404 |
-
*/
|
405 |
-
$full_default = apply_filters( 'efbl_full_layout_defaults', $full_default );
|
406 |
/*
|
407 |
* Returns the Full skin default values
|
408 |
-
*/
|
409 |
-
return $full_default;
|
410 |
-
}
|
411 |
-
|
412 |
-
/* efbl_skin_full_values Method ends here. */
|
413 |
/*
|
414 |
* efbl_skin_grid_values will have default design values of grid layout skin.
|
415 |
-
*/
|
416 |
-
public function efbl_skin_grid_values()
|
417 |
-
{
|
418 |
-
}
|
419 |
-
|
420 |
-
/* efbl_skin_grid_values Method ends here. */
|
421 |
/*
|
422 |
* efbl_skin_masonry_values will have default design values of masonry layout skin.
|
423 |
-
*/
|
424 |
-
public function efbl_skin_masonry_values()
|
425 |
-
{
|
426 |
-
}
|
427 |
-
|
428 |
-
/* efbl_skin_masonry_values Method ends here. */
|
429 |
/*
|
430 |
* efbl_skin_carousel_values will have default design values of carousel layout skin.
|
431 |
-
*/
|
432 |
-
public function efbl_skin_carousel_values()
|
433 |
-
{
|
434 |
-
}
|
435 |
-
|
436 |
-
/* efbl_skin_carousel_values Method ends here. */
|
437 |
/*
|
438 |
* efbl_skin_thumbnail_values will have default design values of thumbnail layout skin.
|
439 |
-
*/
|
440 |
-
public function efbl_skin_thumbnail_values()
|
441 |
-
{
|
442 |
/*
|
443 |
* Default values
|
444 |
-
*/
|
445 |
-
$thumbnail_default = array(
|
446 |
-
'layout_option' => 'thumbnail',
|
447 |
-
'show_load_more_btn' => true,
|
448 |
-
'load_more_background_color' => '#333',
|
449 |
-
'load_more_color' => '#fff',
|
450 |
-
'load_more_hover_background_color' => '#5c5c5c',
|
451 |
-
'load_more_hover_color' => '#fff',
|
452 |
-
'header_background_color' => '#fff',
|
453 |
-
'btnbordercolor-hover' => '#000',
|
454 |
-
'header_text_color' => '#000',
|
455 |
-
'feed_time_text_color' => '#000',
|
456 |
-
'feed_cta_text_color' => '#000',
|
457 |
-
'header_background_color' => 'transparent',
|
458 |
-
'header_text_color' => '#000',
|
459 |
-
'header_border_color' => '#ccc',
|
460 |
-
'header_border_style' => 'none',
|
461 |
-
'header_border_top' => '0',
|
462 |
-
'header_border_bottom' => '1',
|
463 |
-
'header_border_left' => '0',
|
464 |
-
'header_border_right' => '0',
|
465 |
-
'header_padding_top' => '10',
|
466 |
-
'header_padding_bottom' => '10',
|
467 |
-
'header_padding_left' => '10',
|
468 |
-
'header_padding_right' => '10',
|
469 |
-
'title_size' => '16',
|
470 |
-
'metadata_size' => '16',
|
471 |
-
'bio_size' => '14',
|
472 |
-
'show_comments' => true,
|
473 |
-
'show_likes' => true,
|
474 |
-
'show_header' => false,
|
475 |
-
'show_dp' => true,
|
476 |
-
'header_round_dp' => true,
|
477 |
-
'show_page_category' => true,
|
478 |
-
'show_no_of_followers' => true,
|
479 |
-
'show_bio' => true,
|
480 |
-
'feed_header' => true,
|
481 |
-
'feed_header_logo' => true,
|
482 |
-
'feed_background_color' => 'transparent',
|
483 |
-
'feed_padding_top' => '0',
|
484 |
-
'feed_padding_bottom' => '0',
|
485 |
-
'feed_padding_left' => '0',
|
486 |
-
'feed_padding_right' => '0',
|
487 |
-
'feed_margin_top' => '0',
|
488 |
-
'feed_margin_bottom' => '20',
|
489 |
-
'feed_margin_left' => '0',
|
490 |
-
'feed_margin_right' => '0',
|
491 |
-
'feed_meta_data_bg_color' => '#0073aa',
|
492 |
-
'feed_meta_data_color' => '#fff',
|
493 |
-
'show_likes' => true,
|
494 |
-
'show_comments' => true,
|
495 |
-
'show_shares' => true,
|
496 |
-
'show_feed_caption' => true,
|
497 |
-
'show_feed_open_popup_icon' => true,
|
498 |
-
'popup_icon_color' => '#fff',
|
499 |
-
'show_feed_cta' => true,
|
500 |
-
'feed_cta_text_color' => '#000',
|
501 |
-
'feed_cta_text_hover_color' => '#000',
|
502 |
-
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
503 |
-
'feed_seprator_color' => '#ccc',
|
504 |
-
'feed_border_size' => '1',
|
505 |
-
'feed_border_style' => 'none',
|
506 |
-
'feed_type_icon_color' => '#fff',
|
507 |
-
'feed_text_color' => '#000',
|
508 |
-
'feed_shared_link' => true,
|
509 |
-
'feed_shared_link_bg_color' => '#f7f7f7',
|
510 |
-
'feed_shared_link_heading_color' => '#0073aa',
|
511 |
-
'feed_shared_link_color' => '#000',
|
512 |
-
'feed_shared_link_border_color' => '#eee',
|
513 |
-
'popup_sidebar_bg' => '#fff',
|
514 |
-
'popup_sidebar_color' => '#000',
|
515 |
-
'popup_show_header' => true,
|
516 |
-
'popup_show_header_logo' => true,
|
517 |
-
'popup_header_title_color' => '#ed6d62',
|
518 |
-
'popup_post_time_color' => '#9197a3',
|
519 |
-
'popup_show_caption' => true,
|
520 |
-
'popup_show_meta' => true,
|
521 |
-
'popup_meta_bg_color' => '#f6f7f9',
|
522 |
-
'popup_meta_color' => '#000',
|
523 |
-
'popup_show_reactions_counter' => true,
|
524 |
-
'popup_show_comments_counter' => true,
|
525 |
-
'popup_show_view_fb_link' => true,
|
526 |
-
'popup_show_comments' => true,
|
527 |
-
'popup_comments_bg_color' => '#f2f3f5',
|
528 |
-
'popup_comments_color' => '#4b4f52',
|
529 |
-
'popup_close_icon_bg_color' => 'transparent',
|
530 |
-
'popup_close_icon_color' => '#888',
|
531 |
-
'popup_close_icon_bg_hover_color' => '#eee',
|
532 |
-
'popup_close_icon_hover_color' => '#000',
|
533 |
-
'popup_show_close_icon' => true,
|
534 |
-
);
|
535 |
/*
|
536 |
* Filters to add more default values
|
537 |
-
*/
|
538 |
-
$thumbnail_default = apply_filters( 'efbl_thumbnail_layout_defaults', $thumbnail_default );
|
539 |
/*
|
540 |
* Returns the thumbnail skin default values
|
541 |
-
*/
|
542 |
-
return $thumbnail_default;
|
543 |
-
}
|
544 |
-
|
545 |
-
}
|
546 |
-
/* Class ends here. */
|
547 |
/*
|
548 |
* Globalising class to get functionality on other files.
|
549 |
-
*/
|
550 |
-
$GLOBALS['EFBL_SKINS'] = new EFBL_SKINS();
|
551 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
/*
|
4 |
* Stop execution if someone tried to get file directly.
|
5 |
+
*/
|
6 |
+
if ( !defined( 'ABSPATH' ) ) {
|
7 |
+
exit;
|
8 |
+
}
|
9 |
+
//======================================================================
|
10 |
+
// Main class of all efbl Skins
|
11 |
+
//======================================================================
|
12 |
+
|
13 |
+
if ( !class_exists( 'EFBL_SKINS' ) ) {
|
14 |
+
class EFBL_SKINS
|
15 |
+
{
|
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 |
+
/* Action hook fires on admin load. */
|
24 |
+
add_action( 'init', array( $this, 'efbl_skins_register' ), 20 );
|
25 |
+
$this->efbl_default_skins();
|
26 |
/*
|
27 |
* init hooks fires on wp load.
|
28 |
* Gets all Skins.
|
29 |
+
*/
|
30 |
+
add_action( 'init', array( $this, 'efbl_skins' ), 30 );
|
31 |
+
}
|
32 |
+
|
33 |
+
/* __construct Method ends here. */
|
34 |
+
public function efbl_skins_register()
|
35 |
+
{
|
36 |
+
/* Arguments for custom post type of xOptin. */
|
37 |
+
$args = array(
|
38 |
+
'public' => false,
|
39 |
+
'label' => __( 'Facebook Skins', 'easy-facebook-likebox' ),
|
40 |
+
'show_in_menu' => false,
|
41 |
+
'exclude_from_search' => true,
|
42 |
+
'has_archive' => false,
|
43 |
+
'hierarchical' => true,
|
44 |
+
'menu_position' => null,
|
45 |
+
);
|
46 |
+
/* register_post_type() registers a custom post type in wp. */
|
47 |
+
register_post_type( 'efbl_skins', $args );
|
48 |
+
}
|
49 |
+
|
50 |
+
/* efbl_skins_register Method ends here. */
|
51 |
+
public function efbl_default_skins()
|
52 |
+
{
|
53 |
+
$FTA = new Feed_Them_All();
|
54 |
+
$fta_settings = $FTA->fta_get_settings();
|
55 |
+
// echo '<pre>'; print_r($fta_settings['plugins']['facebook']['default_skin_id']);exit();
|
56 |
+
|
57 |
+
if ( !isset( $fta_settings['plugins']['facebook']['default_skin_id'] ) && empty($fta_settings['plugins']['facebook']['default_skin_id']) ) {
|
58 |
+
/* Arguments for default skin. */
|
59 |
+
$efbl_new_skins = array(
|
60 |
+
'post_title' => __( "Skin - Half Width", 'easy-facebook-likebox' ),
|
61 |
+
'post_content' => __( "This is the half width demo skin created by plugin automatically with default values. You can edit it and change the look & feel of your Facebook Feeds.", 'easy-facebook-likebox' ),
|
62 |
+
'post_type' => 'efbl_skins',
|
63 |
+
'post_status' => 'publish',
|
64 |
+
'post_author' => get_current_user_id(),
|
65 |
+
);
|
66 |
+
$efbl_new_skins = apply_filters( 'efbl_default_skin', $efbl_new_skins );
|
67 |
/*
|
68 |
* it will update the demo page on every activate if it's exists.
|
69 |
* If not exists the add new demo page.
|
70 |
+
*/
|
71 |
+
$skin_id = wp_insert_post( $efbl_new_skins );
|
72 |
+
/* Arguments for default skin. */
|
73 |
+
$efbl_new_skin_full = array(
|
74 |
+
'post_title' => __( "Skin - Full Width", 'easy-facebook-likebox' ),
|
75 |
+
'post_content' => __( "This is the Full width demo skin created by plugin automatically with default values. You can edit it and change the look & feel of your Facebook Feeds.", 'easy-facebook-likebox' ),
|
76 |
+
'post_type' => 'efbl_skins',
|
77 |
+
'post_status' => 'publish',
|
78 |
+
'post_author' => get_current_user_id(),
|
79 |
+
);
|
80 |
/*
|
81 |
* it will update the demo page on every activate if it's exists.
|
82 |
* If not exists the add new demo page.
|
83 |
+
*/
|
84 |
+
$efbl_new_skin_full_id = wp_insert_post( $efbl_new_skin_full );
|
85 |
+
/* Arguments for default skin. */
|
86 |
+
$efbl_new_skin_thumbnail = array(
|
87 |
+
'post_title' => __( "Skin - Thumbnail", 'easy-facebook-likebox' ),
|
88 |
+
'post_content' => __( "This is the Thumbnail demo skin created by plugin automatically with default values. You can edit it and change the look & feel of your Facebook Feeds.", 'easy-facebook-likebox' ),
|
89 |
+
'post_type' => 'efbl_skins',
|
90 |
+
'post_status' => 'publish',
|
91 |
+
'post_author' => get_current_user_id(),
|
92 |
+
);
|
93 |
/*
|
94 |
* it will update the demo page on every activate if it's exists.
|
95 |
* If not exists the add new demo page.
|
96 |
+
*/
|
97 |
+
$efbl_new_skin_thumbnail_id = wp_insert_post( $efbl_new_skin_thumbnail );
|
98 |
+
if ( isset( $skin_id ) ) {
|
99 |
+
/* saving values.*/
|
100 |
+
update_option( 'efbl_skin_' . $skin_id, $this->efbl_skin_half_values() );
|
101 |
+
}
|
102 |
+
if ( isset( $efbl_new_skin_thumbnail_id ) ) {
|
103 |
+
/* saving values.*/
|
104 |
+
update_option( 'efbl_skin_' . $efbl_new_skin_thumbnail_id, $this->efbl_skin_thumbnail_values() );
|
105 |
+
}
|
106 |
+
if ( isset( $efbl_new_skin_full_id ) ) {
|
107 |
+
/* saving values.*/
|
108 |
+
update_option( 'efbl_skin_' . $efbl_new_skin_full_id, $this->efbl_skin_full_values() );
|
109 |
+
}
|
110 |
+
$fta_settings['plugins']['facebook']['default_skin_id'] = $skin_id;
|
111 |
+
update_option( 'fta_settings', $fta_settings );
|
112 |
+
}
|
113 |
+
|
114 |
+
|
115 |
+
if ( !isset( $fta_settings['plugins']['facebook']['default_page_id'] ) && empty($fta_settings['plugins']['facebook']['default_page_id']) ) {
|
116 |
+
$skin_id = $fta_settings['plugins']['facebook']['default_skin_id'];
|
117 |
/*
|
118 |
* $data array contains the data of demo page.
|
119 |
+
*/
|
120 |
+
$efbl_default_page = array(
|
121 |
+
'post_title' => __( "Facebook Demo - Customizer", 'easy-facebook-likebox' ),
|
122 |
+
'post_content' => __( '[efb_feed fanpage_id="106704037405386" show_like_box="1" post_limit="10" cache_unit="5" cache_duration="days" skin_id=' . $skin_id . ' ]<br> This is a Facebook demo page created by plugin automatically. Please do not delete to make the plugin work properly.', 'easy-facebook-likebox' ),
|
123 |
+
'post_type' => 'page',
|
124 |
+
'post_status' => 'private',
|
125 |
+
);
|
126 |
+
$efbl_default_page = apply_filters( 'efbl_default_page', $efbl_default_page );
|
127 |
+
$page_id = wp_insert_post( $efbl_default_page );
|
128 |
+
$fta_settings['plugins']['facebook']['default_page_id'] = $page_id;
|
129 |
+
update_option( 'fta_settings', $fta_settings );
|
130 |
+
}
|
131 |
+
|
132 |
+
}
|
133 |
+
|
134 |
/*
|
135 |
* xo_accounts will get the all accounts.
|
136 |
* Returns accounts object.
|
137 |
+
*/
|
138 |
+
public function efbl_skins()
|
139 |
+
{
|
140 |
/*
|
141 |
* Arguments for WP_Query().
|
142 |
+
*/
|
143 |
+
$efbl_skins = array(
|
144 |
+
'posts_per_page' => 1000,
|
145 |
+
'post_type' => 'efbl_skins',
|
146 |
+
'post_status' => array( 'publish', 'draft', 'pending' ),
|
147 |
+
);
|
148 |
/*
|
149 |
* Quering all active xOptins.
|
150 |
* WP_Query() object of wp will be used.
|
151 |
+
*/
|
152 |
+
$efbl_skins = new WP_Query( $efbl_skins );
|
153 |
+
/* If any xoptins_skins are in database. */
|
154 |
+
|
155 |
+
if ( $efbl_skins->have_posts() ) {
|
156 |
+
/* Declaring an empty array. */
|
157 |
+
$efbl_skins_holder = array();
|
158 |
+
/* Looping efbl_skins to get all records. */
|
159 |
+
while ( $efbl_skins->have_posts() ) {
|
160 |
+
/* Making it post. */
|
161 |
+
$efbl_skins->the_post();
|
162 |
+
/* Getting the ID. */
|
163 |
+
$id = get_the_ID();
|
164 |
+
// wp_delete_post($id, true );
|
165 |
+
$design_arr = null;
|
166 |
+
$design_arr = get_option( 'efbl_skin_' . $id, false );
|
167 |
+
// echo "<pre>"; print_r( $design_arr);exit();
|
168 |
+
$selected_layout = $design_arr['layout_option'];
|
169 |
+
$title = get_the_title();
|
170 |
+
if ( empty($title) ) {
|
171 |
+
$title = __( 'Skin', 'easy-facebook-likebox' );
|
172 |
+
}
|
173 |
+
/* Making an array of skins. */
|
174 |
+
$efbl_skins_holder[$id] = array(
|
175 |
+
'ID' => $id,
|
176 |
+
'title' => $title,
|
177 |
+
'description' => get_the_content(),
|
178 |
+
);
|
179 |
+
if ( !isset( $selected_layout ) or empty($selected_layout) ) {
|
180 |
+
$selected_layout = 'half';
|
181 |
+
}
|
182 |
+
$default_func_name = 'efbl_skin_' . $selected_layout . '_values';
|
183 |
+
$defaults = $this->{$default_func_name}();
|
184 |
+
/* If there is no data in live preview section of xOptin setting the default data. */
|
185 |
+
$efbl_skins_holder[$id]['design'] = wp_parse_args( $design_arr, $defaults );
|
186 |
+
// $efbl_skins_holder[$id]['design'] = $design_arr;
|
187 |
+
}
|
188 |
+
// Loop ends here.
|
189 |
+
/* Reseting the current query. */
|
190 |
+
wp_reset_postdata();
|
191 |
+
} else {
|
192 |
+
return __( 'No skins found.', 'easy-facebook-likebox' );
|
193 |
+
}
|
194 |
+
|
195 |
+
/* Globalising array to access anywhere. */
|
196 |
+
$GLOBALS['efbl_skins'] = $efbl_skins_holder;
|
197 |
+
}
|
198 |
+
|
199 |
+
/* xo_Skins Method ends here. */
|
200 |
/*
|
201 |
* efbl_skin_half_values will have default design values of halfwidth layout skin.
|
202 |
+
*/
|
203 |
+
public function efbl_skin_half_values()
|
204 |
+
{
|
205 |
/*
|
206 |
* Default values
|
207 |
+
*/
|
208 |
+
$half_default = array(
|
209 |
+
'layout_option' => 'half',
|
210 |
+
'show_load_more_btn' => true,
|
211 |
+
'load_more_background_color' => '#333',
|
212 |
+
'load_more_color' => '#fff',
|
213 |
+
'load_more_hover_background_color' => '#5c5c5c',
|
214 |
+
'load_more_hover_color' => '#fff',
|
215 |
+
'header_background_color' => 'transparent',
|
216 |
+
'header_text_color' => '#000',
|
217 |
+
'header_border_color' => '#ccc',
|
218 |
+
'header_border_style' => 'none',
|
219 |
+
'header_border_top' => '0',
|
220 |
+
'header_border_bottom' => '1',
|
221 |
+
'header_border_left' => '0',
|
222 |
+
'header_border_right' => '0',
|
223 |
+
'header_padding_top' => '10',
|
224 |
+
'header_padding_bottom' => '10',
|
225 |
+
'header_padding_left' => '10',
|
226 |
+
'header_padding_right' => '10',
|
227 |
+
'title_size' => '16',
|
228 |
+
'metadata_size' => '16',
|
229 |
+
'bio_size' => '14',
|
230 |
+
'show_comments' => true,
|
231 |
+
'show_likes' => true,
|
232 |
+
'show_header' => false,
|
233 |
+
'show_dp' => true,
|
234 |
+
'header_round_dp' => true,
|
235 |
+
'show_page_category' => true,
|
236 |
+
'show_no_of_followers' => true,
|
237 |
+
'show_bio' => true,
|
238 |
+
'feed_header' => true,
|
239 |
+
'feed_header_logo' => true,
|
240 |
+
'feed_background_color' => 'transparent',
|
241 |
+
'feed_padding_top' => '0',
|
242 |
+
'feed_padding_bottom' => '0',
|
243 |
+
'feed_padding_left' => '0',
|
244 |
+
'feed_padding_right' => '0',
|
245 |
+
'feed_margin_top' => '0',
|
246 |
+
'feed_margin_bottom' => '20',
|
247 |
+
'feed_margin_left' => '0',
|
248 |
+
'feed_margin_right' => '0',
|
249 |
+
'feed_meta_data_bg_color' => '#0073aa',
|
250 |
+
'feed_meta_data_color' => '#fff',
|
251 |
+
'show_likes' => true,
|
252 |
+
'show_comments' => true,
|
253 |
+
'show_shares' => true,
|
254 |
+
'show_feed_caption' => true,
|
255 |
+
'show_feed_open_popup_icon' => true,
|
256 |
+
'popup_icon_color' => '#fff',
|
257 |
+
'show_feed_cta' => true,
|
258 |
+
'feed_cta_text_color' => '#000',
|
259 |
+
'feed_cta_text_hover_color' => '#000',
|
260 |
+
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
261 |
+
'feed_seprator_color' => '#ccc',
|
262 |
+
'feed_border_size' => '1',
|
263 |
+
'feed_border_style' => 'none',
|
264 |
+
'feed_type_icon_color' => '#fff',
|
265 |
+
'feed_text_color' => '#000',
|
266 |
+
'feed_shared_link' => true,
|
267 |
+
'feed_shared_link_bg_color' => '#f7f7f7',
|
268 |
+
'feed_shared_link_heading_color' => '#0073aa',
|
269 |
+
'feed_shared_link_color' => '#000',
|
270 |
+
'feed_shared_link_border_color' => '#eee',
|
271 |
+
'popup_sidebar_bg' => '#fff',
|
272 |
+
'popup_sidebar_color' => '#000',
|
273 |
+
'popup_show_header' => true,
|
274 |
+
'popup_show_header_logo' => true,
|
275 |
+
'popup_header_title_color' => '#ed6d62',
|
276 |
+
'popup_post_time_color' => '#9197a3',
|
277 |
+
'popup_show_caption' => true,
|
278 |
+
'popup_show_meta' => true,
|
279 |
+
'popup_meta_bg_color' => '#f6f7f9',
|
280 |
+
'popup_meta_color' => '#000',
|
281 |
+
'popup_show_reactions_counter' => true,
|
282 |
+
'popup_show_comments_counter' => true,
|
283 |
+
'popup_show_view_fb_link' => true,
|
284 |
+
'popup_show_comments' => true,
|
285 |
+
'popup_comments_bg_color' => '#f2f3f5',
|
286 |
+
'popup_comments_color' => '#4b4f52',
|
287 |
+
'popup_close_icon_bg_color' => 'transparent',
|
288 |
+
'popup_close_icon_color' => '#888',
|
289 |
+
'popup_close_icon_bg_hover_color' => '#eee',
|
290 |
+
'popup_close_icon_hover_color' => '#000',
|
291 |
+
'popup_show_close_icon' => true,
|
292 |
+
);
|
293 |
/*
|
294 |
* Filters to add more default values
|
295 |
+
*/
|
296 |
+
$half_default = apply_filters( 'efbl_half_layout_defaults', $half_default );
|
297 |
/*
|
298 |
* Returns the half skin default values
|
299 |
+
*/
|
300 |
+
return $half_default;
|
301 |
+
}
|
302 |
+
|
303 |
+
/* efbl_skin_half_values Method ends here. */
|
304 |
/*
|
305 |
* efbl_skin_half_values will have default design values of fullwidth layout skin.
|
306 |
+
*/
|
307 |
+
public function efbl_skin_full_values()
|
308 |
+
{
|
309 |
/*
|
310 |
* Default values
|
311 |
+
*/
|
312 |
+
$full_default = array(
|
313 |
+
'layout_option' => 'full',
|
314 |
+
'show_load_more_btn' => true,
|
315 |
+
'load_more_background_color' => '#333',
|
316 |
+
'load_more_color' => '#fff',
|
317 |
+
'load_more_hover_background_color' => '#5c5c5c',
|
318 |
+
'load_more_hover_color' => '#fff',
|
319 |
+
'header_background_color' => '#fff',
|
320 |
+
'btnbordercolor-hover' => '#000',
|
321 |
+
'header_text_color' => '#000',
|
322 |
+
'feed_time_text_color' => '#000',
|
323 |
+
'feed_cta_text_color' => '#000',
|
324 |
+
'header_background_color' => 'transparent',
|
325 |
+
'header_text_color' => '#000',
|
326 |
+
'header_border_color' => '#ccc',
|
327 |
+
'header_border_style' => 'none',
|
328 |
+
'header_border_top' => '0',
|
329 |
+
'header_border_bottom' => '1',
|
330 |
+
'header_border_left' => '0',
|
331 |
+
'header_border_right' => '0',
|
332 |
+
'header_padding_top' => '10',
|
333 |
+
'header_padding_bottom' => '10',
|
334 |
+
'header_padding_left' => '10',
|
335 |
+
'header_padding_right' => '10',
|
336 |
+
'title_size' => '16',
|
337 |
+
'metadata_size' => '16',
|
338 |
+
'bio_size' => '14',
|
339 |
+
'show_comments' => true,
|
340 |
+
'show_likes' => true,
|
341 |
+
'show_header' => false,
|
342 |
+
'show_dp' => true,
|
343 |
+
'header_round_dp' => true,
|
344 |
+
'show_page_category' => true,
|
345 |
+
'show_no_of_followers' => true,
|
346 |
+
'show_bio' => true,
|
347 |
+
'feed_header' => true,
|
348 |
+
'feed_header_logo' => true,
|
349 |
+
'feed_background_color' => 'transparent',
|
350 |
+
'feed_padding_top' => '0',
|
351 |
+
'feed_padding_bottom' => '0',
|
352 |
+
'feed_padding_left' => '0',
|
353 |
+
'feed_padding_right' => '0',
|
354 |
+
'feed_margin_top' => '0',
|
355 |
+
'feed_margin_bottom' => '20',
|
356 |
+
'feed_margin_left' => '0',
|
357 |
+
'feed_margin_right' => '0',
|
358 |
+
'feed_meta_data_bg_color' => '#0073aa',
|
359 |
+
'feed_meta_data_color' => '#fff',
|
360 |
+
'show_likes' => true,
|
361 |
+
'show_comments' => true,
|
362 |
+
'show_shares' => true,
|
363 |
+
'show_feed_caption' => true,
|
364 |
+
'show_feed_open_popup_icon' => true,
|
365 |
+
'popup_icon_color' => '#fff',
|
366 |
+
'show_feed_cta' => true,
|
367 |
+
'feed_cta_text_color' => '#000',
|
368 |
+
'feed_cta_text_hover_color' => '#000',
|
369 |
+
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
370 |
+
'feed_seprator_color' => '#ccc',
|
371 |
+
'feed_border_size' => '1',
|
372 |
+
'feed_border_style' => 'none',
|
373 |
+
'feed_type_icon_color' => '#fff',
|
374 |
+
'feed_text_color' => '#000',
|
375 |
+
'feed_shared_link' => true,
|
376 |
+
'feed_shared_link_bg_color' => '#f7f7f7',
|
377 |
+
'feed_shared_link_heading_color' => '#0073aa',
|
378 |
+
'feed_shared_link_color' => '#000',
|
379 |
+
'feed_shared_link_border_color' => '#eee',
|
380 |
+
'popup_sidebar_bg' => '#fff',
|
381 |
+
'popup_sidebar_color' => '#000',
|
382 |
+
'popup_show_header' => true,
|
383 |
+
'popup_show_header_logo' => true,
|
384 |
+
'popup_header_title_color' => '#ed6d62',
|
385 |
+
'popup_post_time_color' => '#9197a3',
|
386 |
+
'popup_show_caption' => true,
|
387 |
+
'popup_show_meta' => true,
|
388 |
+
'popup_meta_bg_color' => '#f6f7f9',
|
389 |
+
'popup_meta_color' => '#000',
|
390 |
+
'popup_show_reactions_counter' => true,
|
391 |
+
'popup_show_comments_counter' => true,
|
392 |
+
'popup_show_view_fb_link' => true,
|
393 |
+
'popup_show_comments' => true,
|
394 |
+
'popup_comments_bg_color' => '#f2f3f5',
|
395 |
+
'popup_comments_color' => '#4b4f52',
|
396 |
+
'popup_close_icon_bg_color' => 'transparent',
|
397 |
+
'popup_close_icon_color' => '#888',
|
398 |
+
'popup_close_icon_bg_hover_color' => '#eee',
|
399 |
+
'popup_close_icon_hover_color' => '#000',
|
400 |
+
'popup_show_close_icon' => true,
|
401 |
+
);
|
402 |
/*
|
403 |
* Filters to add more default values
|
404 |
+
*/
|
405 |
+
$full_default = apply_filters( 'efbl_full_layout_defaults', $full_default );
|
406 |
/*
|
407 |
* Returns the Full skin default values
|
408 |
+
*/
|
409 |
+
return $full_default;
|
410 |
+
}
|
411 |
+
|
412 |
+
/* efbl_skin_full_values Method ends here. */
|
413 |
/*
|
414 |
* efbl_skin_grid_values will have default design values of grid layout skin.
|
415 |
+
*/
|
416 |
+
public function efbl_skin_grid_values()
|
417 |
+
{
|
418 |
+
}
|
419 |
+
|
420 |
+
/* efbl_skin_grid_values Method ends here. */
|
421 |
/*
|
422 |
* efbl_skin_masonry_values will have default design values of masonry layout skin.
|
423 |
+
*/
|
424 |
+
public function efbl_skin_masonry_values()
|
425 |
+
{
|
426 |
+
}
|
427 |
+
|
428 |
+
/* efbl_skin_masonry_values Method ends here. */
|
429 |
/*
|
430 |
* efbl_skin_carousel_values will have default design values of carousel layout skin.
|
431 |
+
*/
|
432 |
+
public function efbl_skin_carousel_values()
|
433 |
+
{
|
434 |
+
}
|
435 |
+
|
436 |
+
/* efbl_skin_carousel_values Method ends here. */
|
437 |
/*
|
438 |
* efbl_skin_thumbnail_values will have default design values of thumbnail layout skin.
|
439 |
+
*/
|
440 |
+
public function efbl_skin_thumbnail_values()
|
441 |
+
{
|
442 |
/*
|
443 |
* Default values
|
444 |
+
*/
|
445 |
+
$thumbnail_default = array(
|
446 |
+
'layout_option' => 'thumbnail',
|
447 |
+
'show_load_more_btn' => true,
|
448 |
+
'load_more_background_color' => '#333',
|
449 |
+
'load_more_color' => '#fff',
|
450 |
+
'load_more_hover_background_color' => '#5c5c5c',
|
451 |
+
'load_more_hover_color' => '#fff',
|
452 |
+
'header_background_color' => '#fff',
|
453 |
+
'btnbordercolor-hover' => '#000',
|
454 |
+
'header_text_color' => '#000',
|
455 |
+
'feed_time_text_color' => '#000',
|
456 |
+
'feed_cta_text_color' => '#000',
|
457 |
+
'header_background_color' => 'transparent',
|
458 |
+
'header_text_color' => '#000',
|
459 |
+
'header_border_color' => '#ccc',
|
460 |
+
'header_border_style' => 'none',
|
461 |
+
'header_border_top' => '0',
|
462 |
+
'header_border_bottom' => '1',
|
463 |
+
'header_border_left' => '0',
|
464 |
+
'header_border_right' => '0',
|
465 |
+
'header_padding_top' => '10',
|
466 |
+
'header_padding_bottom' => '10',
|
467 |
+
'header_padding_left' => '10',
|
468 |
+
'header_padding_right' => '10',
|
469 |
+
'title_size' => '16',
|
470 |
+
'metadata_size' => '16',
|
471 |
+
'bio_size' => '14',
|
472 |
+
'show_comments' => true,
|
473 |
+
'show_likes' => true,
|
474 |
+
'show_header' => false,
|
475 |
+
'show_dp' => true,
|
476 |
+
'header_round_dp' => true,
|
477 |
+
'show_page_category' => true,
|
478 |
+
'show_no_of_followers' => true,
|
479 |
+
'show_bio' => true,
|
480 |
+
'feed_header' => true,
|
481 |
+
'feed_header_logo' => true,
|
482 |
+
'feed_background_color' => 'transparent',
|
483 |
+
'feed_padding_top' => '0',
|
484 |
+
'feed_padding_bottom' => '0',
|
485 |
+
'feed_padding_left' => '0',
|
486 |
+
'feed_padding_right' => '0',
|
487 |
+
'feed_margin_top' => '0',
|
488 |
+
'feed_margin_bottom' => '20',
|
489 |
+
'feed_margin_left' => '0',
|
490 |
+
'feed_margin_right' => '0',
|
491 |
+
'feed_meta_data_bg_color' => '#0073aa',
|
492 |
+
'feed_meta_data_color' => '#fff',
|
493 |
+
'show_likes' => true,
|
494 |
+
'show_comments' => true,
|
495 |
+
'show_shares' => true,
|
496 |
+
'show_feed_caption' => true,
|
497 |
+
'show_feed_open_popup_icon' => true,
|
498 |
+
'popup_icon_color' => '#fff',
|
499 |
+
'show_feed_cta' => true,
|
500 |
+
'feed_cta_text_color' => '#000',
|
501 |
+
'feed_cta_text_hover_color' => '#000',
|
502 |
+
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
503 |
+
'feed_seprator_color' => '#ccc',
|
504 |
+
'feed_border_size' => '1',
|
505 |
+
'feed_border_style' => 'none',
|
506 |
+
'feed_type_icon_color' => '#fff',
|
507 |
+
'feed_text_color' => '#000',
|
508 |
+
'feed_shared_link' => true,
|
509 |
+
'feed_shared_link_bg_color' => '#f7f7f7',
|
510 |
+
'feed_shared_link_heading_color' => '#0073aa',
|
511 |
+
'feed_shared_link_color' => '#000',
|
512 |
+
'feed_shared_link_border_color' => '#eee',
|
513 |
+
'popup_sidebar_bg' => '#fff',
|
514 |
+
'popup_sidebar_color' => '#000',
|
515 |
+
'popup_show_header' => true,
|
516 |
+
'popup_show_header_logo' => true,
|
517 |
+
'popup_header_title_color' => '#ed6d62',
|
518 |
+
'popup_post_time_color' => '#9197a3',
|
519 |
+
'popup_show_caption' => true,
|
520 |
+
'popup_show_meta' => true,
|
521 |
+
'popup_meta_bg_color' => '#f6f7f9',
|
522 |
+
'popup_meta_color' => '#000',
|
523 |
+
'popup_show_reactions_counter' => true,
|
524 |
+
'popup_show_comments_counter' => true,
|
525 |
+
'popup_show_view_fb_link' => true,
|
526 |
+
'popup_show_comments' => true,
|
527 |
+
'popup_comments_bg_color' => '#f2f3f5',
|
528 |
+
'popup_comments_color' => '#4b4f52',
|
529 |
+
'popup_close_icon_bg_color' => 'transparent',
|
530 |
+
'popup_close_icon_color' => '#888',
|
531 |
+
'popup_close_icon_bg_hover_color' => '#eee',
|
532 |
+
'popup_close_icon_hover_color' => '#000',
|
533 |
+
'popup_show_close_icon' => true,
|
534 |
+
);
|
535 |
/*
|
536 |
* Filters to add more default values
|
537 |
+
*/
|
538 |
+
$thumbnail_default = apply_filters( 'efbl_thumbnail_layout_defaults', $thumbnail_default );
|
539 |
/*
|
540 |
* Returns the thumbnail skin default values
|
541 |
+
*/
|
542 |
+
return $thumbnail_default;
|
543 |
+
}
|
544 |
+
|
545 |
+
}
|
546 |
+
/* Class ends here. */
|
547 |
/*
|
548 |
* Globalising class to get functionality on other files.
|
549 |
+
*/
|
550 |
+
$GLOBALS['EFBL_SKINS'] = new EFBL_SKINS();
|
551 |
+
}
|
easy-facebook-likebox/public/assets/css/public.css
CHANGED
@@ -241,7 +241,6 @@ padding-bottom: 9px;
|
|
241 |
|
242 |
/*custom facebook feed styling starts form here*/
|
243 |
.efbl_feed_wraper{
|
244 |
-
float: left;
|
245 |
width: 100%;
|
246 |
margin: 0 auto;
|
247 |
padding: 0;
|
241 |
|
242 |
/*custom facebook feed styling starts form here*/
|
243 |
.efbl_feed_wraper{
|
|
|
244 |
width: 100%;
|
245 |
margin: 0 auto;
|
246 |
padding: 0;
|
easy-facebook-likebox/public/assets/js/public.js
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
jQuery(document).ready(function($) {
|
|
|
|
|
2 |
|
3 |
/*
|
4 |
* Check if the like box has loaded. If yes then remove loader and add animation class!
|
5 |
*/
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
|
10 |
if ($(".efbl_feed_wraper .efbl_custom_likebox")[0] || $(".widget_easy_facebook_page_plugin .efbl-like-box")[0] ){
|
11 |
|
1 |
jQuery(document).ready(function($) {
|
2 |
+
|
3 |
+
jQuery(".efbl-popup-carousel-container img").removeAttr("srcset");
|
4 |
|
5 |
/*
|
6 |
* Check if the like box has loaded. If yes then remove loader and add animation class!
|
7 |
*/
|
|
|
|
|
|
|
8 |
|
9 |
if ($(".efbl_feed_wraper .efbl_custom_likebox")[0] || $(".widget_easy_facebook_page_plugin .efbl-like-box")[0] ){
|
10 |
|
easy-facebook-likebox/public/easy-facebook-likebox.php
CHANGED
@@ -452,8 +452,8 @@ class Easy_Facebook_Likebox
|
|
452 |
<iframe src="" class="efbl_popup_if_video" ></iframe>
|
453 |
<video src="" class="efbl_popup_video" id="html_video" controls></video>
|
454 |
<div class="efbl-popup-nav">
|
455 |
-
<a class="efbl-popup-prev"><i class="
|
456 |
-
<a class="efbl-popup-next"><i class="
|
457 |
</div>
|
458 |
</div>
|
459 |
|
452 |
<iframe src="" class="efbl_popup_if_video" ></iframe>
|
453 |
<video src="" class="efbl_popup_video" id="html_video" controls></video>
|
454 |
<div class="efbl-popup-nav">
|
455 |
+
<a class="efbl-popup-prev"><i class="icon icon-esf-angle-left" aria-hidden="true"></i></a>
|
456 |
+
<a class="efbl-popup-next"><i class="icon icon-esf-angle-right" aria-hidden="true"></i></a>
|
457 |
</div>
|
458 |
</div>
|
459 |
|
easy-facebook-likebox/public/includes/core-functions.php
CHANGED
@@ -319,10 +319,16 @@ function efbl_get_page_bio($id, $access_token, $cache_seconds){
|
|
319 |
* Getting all accounts
|
320 |
*/
|
321 |
$efbl_bio_data_api = wp_remote_get($efbl_bio_url);
|
|
|
|
|
322 |
/*
|
323 |
* Descoding the array
|
324 |
*/
|
325 |
-
$
|
|
|
|
|
|
|
|
|
326 |
|
327 |
if ( 200 == $efbl_bio_data_api['response']['code'] && !empty($efbl_bio_data) ):
|
328 |
set_transient( $efbl_bio_slug, $efbl_bio_data, $cache_seconds );
|
319 |
* Getting all accounts
|
320 |
*/
|
321 |
$efbl_bio_data_api = wp_remote_get($efbl_bio_url);
|
322 |
+
|
323 |
+
|
324 |
/*
|
325 |
* Descoding the array
|
326 |
*/
|
327 |
+
if(isset($efbl_bio_data_api) && !empty($efbl_bio_data_api)){
|
328 |
+
|
329 |
+
$efbl_bio_data = json_decode($efbl_bio_data_api['body']);
|
330 |
+
|
331 |
+
}
|
332 |
|
333 |
if ( 200 == $efbl_bio_data_api['response']['code'] && !empty($efbl_bio_data) ):
|
334 |
set_transient( $efbl_bio_slug, $efbl_bio_data, $cache_seconds );
|
easy-facebook-likebox/public/views/feed.php
CHANGED
@@ -280,7 +280,7 @@ if ( !$json_decoded->error ) {
|
|
280 |
// echo "<pre>"; print_r($layout);exit();
|
281 |
$carousel_class = null;
|
282 |
$carousel_atts = null;
|
283 |
-
// echo "<pre>"; print_r($fbData
|
284 |
$returner .= '<div class="efbl_feeds_holder efbl_feeds_' . $layout . ' ' . $carousel_class . '" ' . $carousel_atts . ' data-template="' . $layout . '">';
|
285 |
if ( 'masonry' == $layout ) {
|
286 |
$returner .= '<div class="efbl-masonry-sizer"></div> <div class="efbl-gutter-sizer"></div>';
|
@@ -444,13 +444,24 @@ if ( !$json_decoded->error ) {
|
|
444 |
$returner .= '<div class="efbl_custom_likebox">' . do_shortcode( '[efb_likebox fanpage_url="' . $page_id . '" box_width="" box_height="500" colorscheme="light" locale="en_US" responsive="1" show_faces="0" show_header="0" show_stream="0" show_border="0" ]' ) . '</div>';
|
445 |
}
|
446 |
$returner .= '<input type="hidden" id="item_number" value=""></div>';
|
|
|
447 |
echo $returner ;
|
448 |
} else {
|
449 |
-
// echo "<pre>"; print_r($json_decoded);exit();
|
450 |
$error_msg = $json_decoded->error->message;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
|
452 |
if ( $fbData->error->code == 10 ) {
|
453 |
-
$error_msg = __( 'Please authenticate your Facebook pages from Easy
|
454 |
} else {
|
455 |
echo '<p class="efbl_error_msg">' . __( 'Error: ', 'easy-facebook-likebox' ) . '' . $error_msg . '</p>' ;
|
456 |
}
|
280 |
// echo "<pre>"; print_r($layout);exit();
|
281 |
$carousel_class = null;
|
282 |
$carousel_atts = null;
|
283 |
+
// echo "<pre>"; print_r($fbData); echo "</pre>"; exit();
|
284 |
$returner .= '<div class="efbl_feeds_holder efbl_feeds_' . $layout . ' ' . $carousel_class . '" ' . $carousel_atts . ' data-template="' . $layout . '">';
|
285 |
if ( 'masonry' == $layout ) {
|
286 |
$returner .= '<div class="efbl-masonry-sizer"></div> <div class="efbl-gutter-sizer"></div>';
|
444 |
$returner .= '<div class="efbl_custom_likebox">' . do_shortcode( '[efb_likebox fanpage_url="' . $page_id . '" box_width="" box_height="500" colorscheme="light" locale="en_US" responsive="1" show_faces="0" show_header="0" show_stream="0" show_border="0" ]' ) . '</div>';
|
445 |
}
|
446 |
$returner .= '<input type="hidden" id="item_number" value=""></div>';
|
447 |
+
// echo "<pre>"; print_r($fbData);exit();
|
448 |
echo $returner ;
|
449 |
} else {
|
|
|
450 |
$error_msg = $json_decoded->error->message;
|
451 |
+
if ( empty($fbData) ) {
|
452 |
+
$error_msg = __( 'No posts available for this ID', 'easy-facebook-likebox' );
|
453 |
+
}
|
454 |
+
// switch (variable) {
|
455 |
+
// case 'value':
|
456 |
+
// # code...
|
457 |
+
// break;
|
458 |
+
// default:
|
459 |
+
// # code...
|
460 |
+
// break;
|
461 |
+
// }
|
462 |
|
463 |
if ( $fbData->error->code == 10 ) {
|
464 |
+
$error_msg = __( 'Please authenticate your Facebook pages from Easy Social Feed settings page and use page id of approved pages only', 'easy-facebook-likebox' );
|
465 |
} else {
|
466 |
echo '<p class="efbl_error_msg">' . __( 'Error: ', 'easy-facebook-likebox' ) . '' . $error_msg . '</p>' ;
|
467 |
}
|
my-instagram-feed/admin/admin.php
CHANGED
@@ -1,101 +1,119 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
/*
|
4 |
* Stop execution if someone tried to get file directly.
|
5 |
-
*/
|
6 |
-
if ( !defined( 'ABSPATH' ) ) {
|
7 |
-
exit;
|
8 |
-
}
|
9 |
-
//======================================================================
|
10 |
-
// Code for the admin funcionality of My Instagram Feeds
|
11 |
-
//======================================================================
|
12 |
-
|
13 |
-
if ( !class_exists( 'MIF_Admin' ) ) {
|
14 |
-
class MIF_Admin
|
15 |
-
{
|
16 |
-
/* Intitializing $adminurl .*/
|
17 |
-
var $adminurl ;
|
18 |
/*
|
19 |
* __construct initialize all function of this class.
|
20 |
* Returns nothing.
|
21 |
* Used action_hooks to get things sequentially.
|
22 |
-
*/
|
23 |
-
function __construct()
|
24 |
-
{
|
25 |
/*
|
26 |
* admin_menu hooks fires on wp admin load.
|
27 |
* Add the menu page in wp admin area.
|
28 |
-
*/
|
29 |
-
add_action( 'admin_menu', array( $this, 'mif_menu' ), 100 );
|
30 |
-
add_action( 'admin_footer', array( $this, 'mif_head' ) );
|
31 |
/*
|
32 |
* admin_enqueue_scripts hooks fires for enqueing custom script and styles.
|
33 |
* Css file will be include in admin area.
|
34 |
-
*/
|
35 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'mif_admin_style' ) );
|
36 |
/*
|
37 |
* mif_save_values hooks fires on Ajax call.
|
38 |
* mif_save_values method will be call when the authentication been done.
|
39 |
-
*/
|
40 |
-
add_action( 'wp_ajax_mif_create_skin', array( $this, 'mif_create_skin' ) );
|
41 |
/*
|
42 |
* mif_delete_skin hooks fires on Ajax call.
|
43 |
* mif_delete_skin method will be call when the delete skin button is clicked.
|
44 |
-
*/
|
45 |
-
add_action( 'wp_ajax_mif_delete_skin', array( $this, 'mif_delete_skin' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
/*
|
47 |
* mif_create_skin_url hooks fires on Ajax call.
|
48 |
* mif_create_skin_url method will be call when the delete skin button is clicked.
|
49 |
-
*/
|
50 |
-
add_action( 'wp_ajax_mif_create_skin_url', array( $this, 'mif_create_skin_url' ) );
|
51 |
/*
|
52 |
* mif_delete_transient hooks fires on Ajax call.
|
53 |
* mif_delete_transient method will be call when the delete transient button is clicked.
|
54 |
-
*/
|
55 |
-
add_action( 'wp_ajax_mif_delete_transient', array( $this, 'mif_delete_transient' ) );
|
56 |
-
}
|
57 |
-
|
58 |
-
/* __construct Method ends here. */
|
59 |
/*
|
60 |
* mif_admin_style will enqueue style and js files.
|
61 |
* Returns hook name of the current page in admin.
|
62 |
* $hook will contain the hook name.
|
63 |
-
*/
|
64 |
-
public function mif_admin_style( $hook )
|
65 |
-
{
|
66 |
-
// exit(MIF_PLUGIN_URL);
|
67 |
/*
|
68 |
* Following files should load only on mif page in backend.
|
69 |
-
*/
|
70 |
-
if ( 'easy-social-feed_page_mif' !== $hook ) {
|
71 |
-
return;
|
72 |
-
}
|
73 |
/*
|
74 |
* Css file for admin area.
|
75 |
-
*/
|
76 |
-
wp_enqueue_style( 'mif_admin_style', MIF_PLUGIN_URL . 'assets/css/mif_admin_style.css' );
|
77 |
/*
|
78 |
* Custom scripts file for admin area.
|
79 |
-
*/
|
80 |
-
wp_enqueue_script( 'mif_admin_jquery', MIF_PLUGIN_URL . 'assets/js/mif-admin.js', array( 'jquery' ) );
|
81 |
-
// echo "<pre>";
|
82 |
-
// print_r(admin_url('admin-ajax.php'));exit();
|
83 |
-
wp_localize_script( 'mif_admin_jquery', 'mif', array(
|
84 |
-
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
85 |
-
'nonce' => wp_create_nonce( 'mif-ajax-nonce' ),
|
86 |
-
) );
|
87 |
-
wp_enqueue_script( 'media-upload' );
|
88 |
-
wp_enqueue_media();
|
89 |
-
}
|
90 |
-
|
91 |
-
/* mif_admin_style Method ends here. */
|
92 |
/*
|
93 |
* mif_menu will add admin page.
|
94 |
* Returns nothing.
|
95 |
-
*/
|
96 |
-
public function mif_menu()
|
97 |
-
{
|
98 |
-
$mif_page_title = __( 'Instagram', 'easy-facebook-likebox' );
|
99 |
/*
|
100 |
* add_menu_page will add menu into the page.
|
101 |
* string $page_title
|
@@ -103,209 +121,95 @@ if ( !class_exists( 'MIF_Admin' ) ) {
|
|
103 |
* string $capability
|
104 |
* string $menu_slug
|
105 |
* callable $function
|
106 |
-
*/
|
107 |
-
add_submenu_page(
|
108 |
-
'feed-them-all',
|
109 |
-
$mif_page_title,
|
110 |
-
$mif_page_title,
|
111 |
-
'administrator',
|
112 |
-
$menu_slug = 'mif',
|
113 |
-
array( $this, 'mif_page_cb' )
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
|
|
118 |
/*
|
119 |
* mif_page_cb contains the html/markup of the page.
|
120 |
* Returns nothing.
|
121 |
-
*/
|
122 |
-
public function mif_page_cb()
|
123 |
-
{
|
124 |
-
$FTA = new Feed_Them_All();
|
125 |
-
$fta_settings = $FTA->fta_get_settings();
|
126 |
-
$mif_users = array();
|
127 |
-
$mif_pro_auth_noti = null;
|
128 |
-
// echo "<pre>";
|
129 |
-
// print_r($fta_settings);exit();
|
130 |
/*
|
131 |
* Getting the saved acocunts.
|
132 |
-
*/
|
133 |
-
if ( isset( $fta_settings['plugins']['instagram']['authenticated_accounts'] ) ) {
|
134 |
-
$mif_users = $fta_settings['plugins']['instagram']['authenticated_accounts'];
|
135 |
-
}
|
136 |
-
$mif_ver = null;
|
137 |
-
$mif_ver = efl_fs()->is_premium();
|
138 |
-
$mif_version = ( $mif_ver ? 'pro' : 'free' );
|
139 |
/*
|
140 |
* Getting all skins.
|
141 |
-
*/
|
142 |
-
global $mif_skins ;
|
143 |
/*
|
144 |
* Registred Apps ID's
|
145 |
-
*/
|
146 |
-
// $app_ID = array('222116127877068','405460652816219','256146211143372', '406362656509338','395202813876688');
|
147 |
-
$app_ID = array( '405460652816219', '222116127877068' );
|
148 |
/*
|
149 |
* Randomly get one
|
150 |
-
*/
|
151 |
-
$rand_app_ID = array_rand( $app_ID, '1' );
|
152 |
/*
|
153 |
* To use APP ID
|
154 |
-
*/
|
155 |
-
$u_app_ID = $app_ID[$rand_app_ID];
|
156 |
-
$fb_access_token = null;
|
157 |
-
if ( isset( $fta_settings['plugins']['facebook']['access_token'] ) ) {
|
158 |
-
$fb_access_token = $fta_settings['plugins']['facebook']['access_token'];
|
159 |
-
}
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
$access_token = preg_replace( '/[^A-Za-z0-9]/', "", $access_token );
|
171 |
-
|
172 |
-
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
173 |
-
$script = ' <script>
|
174 |
-
jQuery( document ).ready(function( $ ) {
|
175 |
-
|
176 |
-
jQuery("#toast-container").slideUp("slow");
|
177 |
-
|
178 |
-
Materialize.Toast.removeAll();
|
179 |
-
|
180 |
-
/*
|
181 |
-
* Show the dialog for Saving.
|
182 |
-
*/
|
183 |
-
Materialize.toast("Please wait! Authenticating...", 50000000);
|
184 |
-
|
185 |
-
var url = window.location.href;
|
186 |
-
|
187 |
-
url = MIFremoveURLParameter(url, "access_token");
|
188 |
-
|
189 |
-
jQuery("#efbl_access_token").text("' . $access_token . '");
|
190 |
-
|
191 |
-
var data={\'action\':\'efbl_save_access_token\',
|
192 |
-
\'access_token\':\'' . $access_token . '\',
|
193 |
-
\'id\' : \'insta\'
|
194 |
-
}
|
195 |
-
|
196 |
-
jQuery.ajax({
|
197 |
-
|
198 |
-
url: "' . admin_url( 'admin-ajax.php' ) . '",
|
199 |
-
type: "post",
|
200 |
-
data: data,
|
201 |
-
dataType: "json",
|
202 |
-
success: function(response ) {
|
203 |
-
window.history.pushState("newurl", "newurl", url);
|
204 |
-
// jQuery("#toast-container").slideUp("slow");
|
205 |
-
|
206 |
-
Materialize.Toast.removeAll();
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
/*
|
211 |
-
* Show the dialog.
|
212 |
-
*/
|
213 |
-
|
214 |
-
if (response.success) {
|
215 |
-
|
216 |
-
var pages_html = response.data["1"];
|
217 |
-
|
218 |
-
if(pages_html == null) { $(\'#fta-auth-error\').modal(\'open\');return;}
|
219 |
-
|
220 |
-
// console.log(response.data);return;
|
221 |
-
Materialize.toast(response.data["0"], 3000);
|
222 |
-
jQuery("#toast-container").addClass("efbl_green");
|
223 |
-
jQuery(".efbl_all_pages").html(" ").html(response.data["1"]).slideDown("slow");
|
224 |
-
jQuery(".fta_noti_holder").fadeOut("slow");
|
225 |
-
setTimeout(function(){
|
226 |
-
window.location.href = "#mif-shortcode";
|
227 |
-
window.location.reload();
|
228 |
-
}, 2000);
|
229 |
-
}else{
|
230 |
-
Materialize.toast(response.data, 3000);
|
231 |
-
|
232 |
-
jQuery("#toast-container").addClass("efbl_red");
|
233 |
-
|
234 |
-
}
|
235 |
-
}
|
236 |
-
});
|
237 |
-
|
238 |
-
|
239 |
-
});
|
240 |
-
</script>';
|
241 |
-
echo $script ;
|
242 |
-
}
|
243 |
-
|
244 |
-
}
|
245 |
-
|
246 |
-
$efbl_ap_class = null;
|
247 |
-
$efbl_all_pages_html = null;
|
248 |
-
$mif_insta_accounts = null;
|
249 |
-
// echo "<pre>";print_r($fta_settings);exit();
|
250 |
-
/*
|
251 |
-
* If approved pages exists show them
|
252 |
-
*/
|
253 |
-
|
254 |
-
if ( isset( $fta_settings['plugins']['facebook']['approved_pages'] ) && !empty($fta_settings['plugins']['facebook']['approved_pages']) ) {
|
255 |
-
$efbl_all_pages_html = '<ul class="collection with-header"> <li class="collection-header"><h5>' . __( 'Connected Instagram Accounts', 'easy-facebook-likebox' ) . '</h5> <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>';
|
256 |
-
$efbl_ap_class = 'show';
|
257 |
-
foreach ( $fta_settings['plugins']['facebook']['approved_pages'] as $efbl_page ) {
|
258 |
-
$fta_insta_connected_account = $efbl_page['instagram_connected_account'];
|
259 |
-
|
260 |
-
if ( isset( $fta_insta_connected_account->ig_id ) && !empty($fta_insta_connected_account->ig_id) ) {
|
261 |
-
$mif_insta_accounts[] = $fta_insta_connected_account;
|
262 |
-
// echo "<pre>"; print_r($fta_insta_connected_account);exit();
|
263 |
-
$efbl_all_pages_html .= sprintf(
|
264 |
-
'<li class="collection-item avatar fta_insta_connected_account li-' . $fta_insta_connected_account->ig_id . '">
|
265 |
-
|
266 |
-
<a href="https://www.instagram.com/' . $fta_insta_connected_account->username . '" target="_blank">
|
267 |
-
<img src="%2$s" alt="" class="circle">
|
268 |
-
</a>
|
269 |
-
<span class="title">%1$s</span>
|
270 |
-
<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>
|
271 |
-
</li>',
|
272 |
-
$fta_insta_connected_account->name,
|
273 |
-
$fta_insta_connected_account->profile_picture_url,
|
274 |
-
$fta_insta_connected_account->id,
|
275 |
-
__( 'Instagram account connected with ' . $efbl_page['name'] . '', 'easy-facebook-likebox' ),
|
276 |
-
$fta_insta_connected_account->username,
|
277 |
-
__( 'ID:', 'easy-facebook-likebox' ),
|
278 |
-
__( 'Copy', 'easy-facebook-likebox' )
|
279 |
-
);
|
280 |
-
}
|
281 |
-
|
282 |
-
}
|
283 |
-
$efbl_all_pages_html .= '</ul>';
|
284 |
-
}
|
285 |
-
|
286 |
-
// echo "<pre>"; print_r($mif_insta_accounts);exit();
|
287 |
/*
|
288 |
* $returner variable will contain all html.
|
289 |
* $returner defines empty at start to avoid junk values.
|
290 |
-
*/
|
291 |
-
$returner = null;
|
292 |
-
$adminurl = admin_url( 'admin.php?page=mif' );
|
293 |
-
$authenticated_accounts = $mif_users;
|
294 |
-
//echo "<pre>"; print_r($a);exit();
|
295 |
/*
|
296 |
* General tab html.
|
297 |
* mif_general_html filter can be used to customize general tab html.
|
298 |
-
*/
|
299 |
-
$mif_general_html = null;
|
300 |
-
$
|
301 |
-
|
302 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
'<div id="mif-general" class="col s12 mif_tab_c slideLeft">
|
304 |
<h5>%1$s</h5>
|
305 |
-
|
306 |
%3$s
|
307 |
-
|
308 |
-
|
309 |
<div class="row auth-row">
|
310 |
<div class="efbl_all_pages col s12 %7$s">
|
311 |
%6$s
|
@@ -313,80 +217,76 @@ if ( !class_exists( 'MIF_Admin' ) ) {
|
|
313 |
</div>
|
314 |
|
315 |
<p>%8$s</p>
|
316 |
-
</div>',
|
317 |
-
/* Variables starts here. */
|
318 |
-
__( "Let's connect your account with plugin", 'easy-facebook-likebox' ),
|
319 |
-
__( '
|
320 |
-
$mif_premium_auth_btn,
|
321 |
-
__( 'Access Token', 'easy-facebook-likebox' ),
|
322 |
-
$fb_access_token,
|
323 |
-
$efbl_all_pages_html,
|
324 |
-
$efbl_ap_class,
|
325 |
-
__( "Please note: This does not give us permission to manage your
|
326 |
-
__( 'Save', 'easy-facebook-likebox' ),
|
327 |
-
__( 'Step by step guide to connect account with video.', 'easy-facebook-likebox' )
|
328 |
-
);
|
329 |
-
$mif_general_html = apply_filters( 'mif_general_html', $mif_general_html );
|
330 |
-
$mif_skin_options = null;
|
331 |
-
if ( isset( $mif_skins ) ) {
|
332 |
-
foreach ( $mif_skins as $mif_skin ) {
|
333 |
-
$mif_skin_options .= '<option value="' . $mif_skin['ID'] . '" data-icon="' . get_the_post_thumbnail_url( $mif_skin['ID'], 'thumbnail' ) . '">' . $mif_skin['title'] . '</option>';
|
334 |
-
}
|
335 |
-
}
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
348 |
/*
|
349 |
* Shortcode tab html.
|
350 |
* mif_shortcode_html filter can be used to customize shortcode tab html.
|
351 |
-
*/
|
352 |
-
$mif_shortcode_html = null;
|
353 |
-
$mif_premium_hashtag = null;
|
354 |
$mif_premium_multi_feeds = '<span class="form_fields">
|
355 |
<input name="" class="modal-trigger" href="#mif-multifeed-upgrade" type="checkbox" required value="mif_free_multifeed" id="mif_free_multifeed" />
|
356 |
<label for="mif_free_multifeed">' . __( 'Multiple Feeds', 'easy-facebook-likebox' ) . '</label>
|
357 |
-
</span>';
|
358 |
-
$fta_settings = $FTA->fta_get_settings();
|
359 |
-
$skin_id = null;
|
360 |
-
/* Getting the demo page id. */
|
361 |
-
if ( isset( $fta_settings['plugins']['instagram']['default_skin_id'] ) && !empty($fta_settings['plugins']['instagram']['default_skin_id']) ) {
|
362 |
-
$skin_id = $fta_settings['plugins']['instagram']['default_skin_id'];
|
363 |
-
}
|
364 |
-
$mif_insta_account =
|
365 |
-
|
366 |
-
|
367 |
-
}
|
368 |
-
$mif_users_id_options = null;
|
369 |
-
|
370 |
-
if ( $mif_insta_accounts ) {
|
371 |
-
foreach ( $mif_insta_accounts as $mif_insta_single_account ) {
|
372 |
-
$mif_users_id_options .= '<option value="' . $mif_insta_single_account->id . '" data-icon="' . $mif_insta_single_account->profile_picture_url . '">' . $mif_insta_single_account->username . '</option>';
|
373 |
-
}
|
374 |
-
} else {
|
375 |
-
$mif_users_id_options = '<option value="" disabled selected>' . __( 'No accounts found, Please connect your Instagram account with plugin first', 'easy-facebook-likebox' ) . '</option>';
|
376 |
-
}
|
377 |
-
|
378 |
-
|
379 |
-
if ( isset( $fta_settings['plugins']['facebook']['approved_pages'] ) && !empty($fta_settings['plugins']['facebook']['approved_pages']) ) {
|
380 |
$mif_default_shortcode = '<p>' . __( 'Copy and paste the following shortcode in any page, post or text widget to display the feed.', 'easy-facebook-likebox' ) . '</p>
|
381 |
<blockquote class="mif-shortcode-block">[my-instagram-feed user_id=' . $mif_insta_account . ' skin_id=' . $skin_id . '] </blockquote>
|
382 |
<a class="btn waves-effect mif_copy_shortcode waves-light tooltipped" data-position="right" data-delay="50" data-tooltip="' . __( 'Copy', 'easy-facebook-likebox' ) . '" data-clipboard-text="[my-instagram-feed user_id=' . $mif_insta_account . ' skin_id=' . $skin_id . ']" href="javascript:void(0);"><i class="material-icons right">content_copy</i> </a>
|
383 |
-
';
|
384 |
-
} else {
|
385 |
-
$mif_default_shortcode = '<blockquote class="efbl-red-notice">' . __( 'It looks like you have not connected your Instagram account with plugin yet. Please click on the Connect My Instagram Account button from authentication tab to get the access token from Facebook and then go with the flow.', 'easy-facebook-likebox' ) . '</blockquote>';
|
386 |
-
}
|
387 |
-
|
388 |
-
// echo '<pre>'; print_r($
|
389 |
-
$mif_shortcode_html .= sprintf(
|
390 |
'<div id="mif-shortcode" class="col s12 mif_tab_c slideLeft">
|
391 |
<div class="mif-swipe-shortcode_wrap">
|
392 |
|
@@ -520,75 +420,76 @@ if ( !class_exists( 'MIF_Admin' ) ) {
|
|
520 |
</ul>
|
521 |
|
522 |
</div>
|
523 |
-
</div>',
|
524 |
-
/* Variables starts here. */
|
525 |
-
__( "Unable to understand shortocde parameters?", 'easy-facebook-likebox' ),
|
526 |
-
__( 'No worries, Each shortocde parameter is explained below first read them and generate your shortocde.', 'easy-facebook-likebox' ),
|
527 |
-
__( 'How to use this plugin?', 'easy-facebook-likebox' ),
|
528 |
-
__( 'Wrapper Class', 'easy-facebook-likebox' ),
|
529 |
-
__( 'You can easily add the custom CSS class to the wraper of your Instagram Feeds.', 'easy-facebook-likebox' ),
|
530 |
-
__( 'Cache Unit', 'easy-facebook-likebox' ),
|
531 |
-
__( 'Feeds Will be automatically refreshed after particular minutes/hours/days. Simply paste the number of days in cache_unit parameter.', 'easy-facebook-likebox' ),
|
532 |
-
__( 'Hashtag', 'easy-facebook-likebox' ),
|
533 |
-
__( 'You can also show the Instagram Feeds by hashtag. Simply insert the hashtag. It will override the username option and display feeds by hashtag only.', 'easy-facebook-likebox' ),
|
534 |
-
__( 'Accounts', 'easy-facebook-likebox' ),
|
535 |
-
__( "You can display any of the connected account feeds. Select the account you wish to display the feeds from list.", 'easy-facebook-likebox' ),
|
536 |
-
__( 'Skin', 'easy-facebook-likebox' ),
|
537 |
-
__( 'You can totally change the look and feel of your feeds section. Simply paste the Skin ID in skin_id parameter. You can find the skins in dashboard->My Instagram Feeds->Skins section.', 'easy-facebook-likebox' ),
|
538 |
-
__( 'Feeds Per Page', 'easy-facebook-likebox' ),
|
539 |
-
__( 'You can show only specific feeds. Simply paste the Feeds Per Page number in feeds_per_page parameter.', 'easy-facebook-likebox' ),
|
540 |
-
__( 'Caption Words', 'easy-facebook-likebox' ),
|
541 |
-
__( 'You can show limited caption words. Simply paste the Caption Words number in caption_words parameter.', 'easy-facebook-likebox' ),
|
542 |
-
__( 'Need More Options?', 'easy-facebook-likebox' ),
|
543 |
-
__( 'User Name', 'easy-facebook-likebox' ),
|
544 |
-
__( 'Hashtag', 'easy-facebook-likebox' ),
|
545 |
-
__( 'Use the following shortcode generator to further customize the shortcode.', 'easy-facebook-likebox' ),
|
546 |
-
__( 'Generate', 'easy-facebook-likebox' ),
|
547 |
-
__( 'Copy and paste the following shortcode in any page, post or text widget to display the feed.', 'easy-facebook-likebox' ),
|
548 |
-
__( 'Copy', 'easy-facebook-likebox' ),
|
549 |
-
$mif_skin_options,
|
550 |
-
__( 'Cache Duration', 'easy-facebook-likebox' ),
|
551 |
-
__( 'Minutes', 'easy-facebook-likebox' ),
|
552 |
-
__( 'Hours', 'easy-facebook-likebox' ),
|
553 |
-
__( 'Days', 'easy-facebook-likebox' ),
|
554 |
-
__( 'Multiple Feeds', 'easy-facebook-likebox' ),
|
555 |
-
$mif_users_options,
|
556 |
-
__( 'Define cache duration to refresh feeds automatically. Like after minutes/hours/days feeds would be refreshed. Simply paste the duration option in cache_duration parameter', 'easy-facebook-likebox' ),
|
557 |
-
$mif_premium_hashtag,
|
558 |
-
$mif_premium_multi_feeds,
|
559 |
-
__( 'PRO', 'easy-facebook-likebox' ),
|
560 |
-
$mif_users_id_options,
|
561 |
-
$mif_default_shortcode
|
562 |
-
);
|
563 |
-
$mif_skin_html = null;
|
564 |
-
/* Getting the demo page id. */
|
565 |
-
$fta_settings = $FTA->fta_get_settings();
|
566 |
-
$page_id = null;
|
567 |
-
/* Getting the demo page id. */
|
568 |
-
if ( isset( $fta_settings['plugins']['instagram']['default_page_id'] ) && !empty($fta_settings['plugins']['instagram']['default_page_id']) ) {
|
569 |
-
$page_id = $fta_settings['plugins']['instagram']['default_page_id'];
|
570 |
-
}
|
571 |
-
$page_permalink = get_permalink( $page_id );
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
'
|
582 |
-
'
|
583 |
-
'
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
|
|
592 |
$mif_skin_html .= '<div class="card col mif_single_skin s3 mif_skin_' . $mif_skin['ID'] . '">
|
593 |
<div class="card-image waves-effect waves-block waves-light">
|
594 |
<img class="activator" src="' . $skin_img . '">
|
@@ -596,10 +497,10 @@ if ( !class_exists( 'MIF_Admin' ) ) {
|
|
596 |
<div class="card-content">
|
597 |
<span class="card-title activator grey-text text-darken-4">' . $mif_skin['title'] . '<i class="material-icons right">more_vert</i></span>
|
598 |
|
599 |
-
</div>';
|
600 |
-
if ( $selected_layout ) {
|
601 |
-
$mif_skin_html .= '<span class="selected_layout">' . __( 'Layout: ', 'easy-facebook-likebox' ) . '' . $selected_layout . '</span>';
|
602 |
-
}
|
603 |
$mif_skin_html .= '<div class="mif_cta_holder">
|
604 |
<label>' . __( 'Please select your account first for preview ignorer to add/edit the skin. (This selection is only for preview, it can be used with any account.)', 'easy-facebook-likebox' ) . '</label>
|
605 |
<select class="mif_selected_account_' . $mif_skin['ID'] . '" required>
|
@@ -617,15 +518,15 @@ if ( !class_exists( 'MIF_Admin' ) ) {
|
|
617 |
<span class="card-title grey-text text-darken-4">' . $mif_skin['title'] . '<i class="material-icons right">close</i></span>
|
618 |
<p>' . $mif_skin['description'] . '</p>
|
619 |
</div>
|
620 |
-
</div>';
|
621 |
-
}
|
622 |
-
} else {
|
623 |
-
$mif_skin_html .= '<blockquote class="error">' . __( 'Whoops! No skin found. Create new skin from button above to totally customize your feed in real-time.', 'easy-facebook-likebox' ) . '</blockquote>';
|
624 |
-
}
|
625 |
-
|
626 |
-
|
627 |
-
if ( efl_fs()->is_plan( 'instagram_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
628 |
-
} else {
|
629 |
$mif_skin_html .= '<div class="card col mif_single_skin mif_single_skin_free s3">
|
630 |
<a class="skin_free_full modal-trigger" href="#mif-free-masonry-upgrade"></a>
|
631 |
<div class="card-image waves-effect waves-block waves-light">
|
@@ -651,7 +552,7 @@ if ( !class_exists( 'MIF_Admin' ) ) {
|
|
651 |
<span class="card-title grey-text text-darken-4">' . __( 'Layout: Masonry', 'easy-facebook-likebox' ) . '<i class="material-icons right">close</i></span>
|
652 |
<p>' . __( 'This is the Masonry demo skin included in premium version', 'easy-facebook-likebox' ) . '</p>
|
653 |
</div>
|
654 |
-
</div>';
|
655 |
$mif_skin_html .= '<div class="card col mif_single_skin mif_single_skin_free s3">
|
656 |
<a class="skin_free_full modal-trigger" href="#mif-free-carousel-upgrade"></a>
|
657 |
<div class="card-image waves-effect waves-block waves-light">
|
@@ -677,7 +578,7 @@ if ( !class_exists( 'MIF_Admin' ) ) {
|
|
677 |
<span class="card-title grey-text text-darken-4">' . __( 'Layout: Carousel', 'easy-facebook-likebox' ) . '<i class="material-icons right">close</i></span>
|
678 |
<p>' . __( 'This is the Carousel demo skin included in premium version', 'easy-facebook-likebox' ) . '</p>
|
679 |
</div>
|
680 |
-
</div>';
|
681 |
$mif_skin_html .= '<div class="card col mif_single_skin mif_single_skin_free s3">
|
682 |
<a class="skin_free_full modal-trigger" href="#mif-free-half_width-upgrade"></a>
|
683 |
<div class="card-image waves-effect waves-block waves-light">
|
@@ -703,7 +604,7 @@ if ( !class_exists( 'MIF_Admin' ) ) {
|
|
703 |
<span class="card-title grey-text text-darken-4">' . __( 'Layout: Half Width', 'easy-facebook-likebox' ) . '<i class="material-icons right">close</i></span>
|
704 |
<p>' . __( 'This is the Half Width demo skin included in premium version', 'easy-facebook-likebox' ) . '</p>
|
705 |
</div>
|
706 |
-
</div>';
|
707 |
$mif_skin_html .= '<div class="card col mif_single_skin mif_single_skin_free s3">
|
708 |
<a class="skin_free_full modal-trigger" href="#mif-free-full_width-upgrade"></a>
|
709 |
<div class="card-image waves-effect waves-block waves-light">
|
@@ -729,45 +630,45 @@ if ( !class_exists( 'MIF_Admin' ) ) {
|
|
729 |
<span class="card-title grey-text text-darken-4">' . __( 'Layout: Full width', 'easy-facebook-likebox' ) . '<i class="material-icons right">close</i></span>
|
730 |
<p>' . __( 'This is the full Width demo skin included in premium version', 'easy-facebook-likebox' ) . '</p>
|
731 |
</div>
|
732 |
-
</div>';
|
733 |
-
}
|
734 |
-
|
735 |
-
// echo "<pre>"; print_r($mif_skins);exit();
|
736 |
/*
|
737 |
* Getting MIF transients.
|
738 |
-
*/
|
739 |
-
$mif_transients = $this->mif_transients();
|
740 |
/*
|
741 |
* Cache tab html.
|
742 |
* mif_cache_html filter can be used to customize cache tab html.
|
743 |
-
*/
|
744 |
-
$mif_cache_html = null;
|
745 |
-
$mif_cache_html .= sprintf(
|
746 |
'<div id="mif-cache" class="col s12 mif_tab_c slideLeft">
|
747 |
<div class="mif-swipe-cache_wrap">
|
748 |
%1$s
|
749 |
</div>
|
750 |
-
</div>',
|
751 |
-
/* Variables starts here. */
|
752 |
-
$mif_transients
|
753 |
-
);
|
754 |
-
$mif_cache_html = apply_filters( 'mif_shortcode_html', $mif_cache_html );
|
755 |
-
$layout_choices = '<option value="grid">' . __( 'Grid', 'easy-facebook-likebox' ) . '</option>';
|
756 |
-
|
757 |
-
if ( efl_fs()->is_plan( 'instagram_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
758 |
-
} else {
|
759 |
$layout_choices .= '<option value="free-masonary">' . __( 'Masonry', 'easy-facebook-likebox' ) . '</option>
|
760 |
<option value="free-carousel">' . __( 'Carousel', 'easy-facebook-likebox' ) . '</option>
|
761 |
<option value="free-half_width">' . __( 'Half Width', 'easy-facebook-likebox' ) . '</option>
|
762 |
-
<option value="free-full_width">' . __( 'Full Width', 'easy-facebook-likebox' ) . '</option>';
|
763 |
-
}
|
764 |
-
|
765 |
/*
|
766 |
* Skins tab html.
|
767 |
* mif_skinsl_html filter can be used to customize skins tab html.
|
768 |
-
*/
|
769 |
-
$mif_skins_html = null;
|
770 |
-
$mif_skins_html .= sprintf(
|
771 |
'<div id="mif-skins" class="col s12 mif_tab_c slideLeft"><div class="row">
|
772 |
|
773 |
<div class="mif_skin_head_wrap">
|
@@ -838,60 +739,60 @@ if ( !class_exists( 'MIF_Admin' ) ) {
|
|
838 |
<!-- Skin Html Ends Here -->
|
839 |
|
840 |
|
841 |
-
</div></div>',
|
842 |
-
/* Variables starts here. */
|
843 |
-
__( 'Create New Skin', 'easy-facebook-likebox' ),
|
844 |
-
__( 'Title (optional)', 'easy-facebook-likebox' ),
|
845 |
-
__( 'Description (optional)', 'easy-facebook-likebox' ),
|
846 |
-
__( 'Upload Skin Image', 'easy-facebook-likebox' ),
|
847 |
-
__( 'Create', 'easy-facebook-likebox' ),
|
848 |
-
$mif_skin_html,
|
849 |
-
__( 'Skin Image (optional)', 'easy-facebook-likebox' ),
|
850 |
-
__( 'Please select your account to see in preview', 'easy-facebook-likebox' ),
|
851 |
-
__( 'Want to customize the layout of Instagram feed?', 'easy-facebook-likebox' ),
|
852 |
-
__( 'Skins allows you to totally customize the look and feel of your feed in real-time using WordPress customizer. Skin holds all the design settings like feed layout (fullwidth, Grid, etc), show hide elements, page header, and single post colors, margins and a lot of cool settings separately. Questions? <a target="_blank" href="https://easysocialfeed.com/documentation/how-to-use-skins/">See this support document.</a>', 'easy-facebook-likebox' ),
|
853 |
-
__( 'Show All Skins', 'easy-facebook-likebox' ),
|
854 |
-
$layout_choices,
|
855 |
-
__( 'Layout', 'easy-facebook-likebox' )
|
856 |
-
);
|
857 |
-
$mif_skins_html = apply_filters( 'mif_skins_html', $mif_skins_html );
|
858 |
/*
|
859 |
* Our Plugins tab html.
|
860 |
* mif_other_plugins_html filter can be used to customize our plugins tab html.
|
861 |
-
*/
|
862 |
-
$mif_op_html = null;
|
863 |
-
//echo "<pre>"; print_r($mif_op_html);exit();
|
864 |
/*
|
865 |
* Getting the Current URL for returing back to this page.
|
866 |
* Getting the mif saved page id.
|
867 |
* Getting the permalink of page.
|
868 |
-
*/
|
869 |
-
$current_link = urlencode( (( isset( $_SERVER['HTTPS'] ) ? "https" : "http" )) . "://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}" );
|
870 |
-
$fta_settings = $FTA->fta_get_settings();
|
871 |
-
$page_id = null;
|
872 |
-
/* Getting the demo page id. */
|
873 |
-
if ( isset( $fta_settings['plugins']['instagram']['default_page_id'] ) && !empty($fta_settings['plugins']['instagram']['default_page_id']) ) {
|
874 |
-
$page_id = $fta_settings['plugins']['instagram']['default_page_id'];
|
875 |
-
}
|
876 |
-
$page_permalink = get_permalink( $page_id );
|
877 |
-
$page_permalink = urlencode( $page_permalink );
|
878 |
-
$final_customize_Url = admin_url( 'customize.php?url=' . $page_permalink . '&autofocus[panel]=fta_skins_panel&mif_customize=yes&return=' . $current_link . '' );
|
879 |
-
$efbl_empty_at_class = null;
|
880 |
-
if ( empty($fta_settings['plugins']['facebook']['access_token']) ) {
|
881 |
-
$efbl_empty_at_class = 'fta_empty_at';
|
882 |
-
}
|
883 |
-
$mif_fb_link = null;
|
884 |
-
if ( isset( $fta_settings['plugins']['facebook']['status'] ) && 'activated' == $fta_settings['plugins']['facebook']['status'] ) {
|
885 |
$mif_fb_link = '<div class="mif_tabs_right">
|
886 |
<a class="" href="' . esc_url( admin_url( 'admin.php?page=easy-facebook-likebox' ) ) . '">' . __( 'Facebook', 'easy-facebook-likebox' ) . '</a>
|
887 |
-
</div> ';
|
888 |
-
}
|
889 |
-
//echo "<pre>"; print_r($access_token);exit();
|
890 |
/*
|
891 |
* Base html.
|
892 |
* mif_base_html filter can be used to customize base html of setting page.
|
893 |
-
*/
|
894 |
-
$returner .= sprintf(
|
895 |
'<div class="esf_loader_wrap">
|
896 |
<div class="esf_loader_inner">
|
897 |
<div class="loader mif_loader"></div>
|
@@ -959,6 +860,30 @@ if ( !class_exists( 'MIF_Admin' ) ) {
|
|
959 |
</div>
|
960 |
<!-- Popup ends<!-->
|
961 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
962 |
<!-- Remove Skin Popup starts<!-->
|
963 |
<div id="mif-remove-skin" class="modal mif-remove-skin mif-confirm-modal">
|
964 |
<div class="modal-content">
|
@@ -1060,399 +985,939 @@ if ( !class_exists( 'MIF_Admin' ) ) {
|
|
1060 |
|
1061 |
<!-- full_width Layout Structure Ends-->
|
1062 |
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1098 |
$returner .= '<div class="espf-upgrade">
|
1099 |
<h2>' . __( 'Easy Social Feed <b>Pro</b>', 'easy-facebook-likebox' ) . '</h2>
|
1100 |
<p>' . __( 'Unlock all premium features such as Advanced PopUp, More Fancy Layouts, Post filters like events, images, videos, and albums, gallery in the PopUp and above all top notch priority support.', 'easy-facebook-likebox' ) . '</p>
|
1101 |
<p>' . __( 'Upgrade today and get a 10% discount! On the checkout click on "Have a promotional code?" and enter <code>espf10</code>', 'easy-facebook-likebox' ) . '</p>
|
1102 |
<a href="' . efl_fs()->get_upgrade_url() . '" class="waves-effect waves-light btn"><i class="material-icons right">lock_open</i>' . __( 'Upgrade To Pro', 'easy-facebook-likebox' ) . '</a>
|
1103 |
-
</div>';
|
1104 |
-
}
|
1105 |
-
$returner = apply_filters( 'mif_base_html', $returner );
|
1106 |
-
echo $returner ;
|
1107 |
-
}
|
1108 |
-
|
1109 |
-
/* mif_supported_func Method ends here. */
|
1110 |
/*
|
1111 |
* mif_create_skin on ajax.
|
1112 |
* Returns the customizer URL with skin ID.
|
1113 |
* Create the skin for instagram feeds
|
1114 |
-
*/
|
1115 |
-
function mif_create_skin()
|
1116 |
-
{
|
1117 |
-
$FTA = new Feed_Them_All();
|
1118 |
-
/* Getting the form data. */
|
1119 |
-
$form_data = $_POST['form_data'];
|
1120 |
-
/* Getting the form data in strings. */
|
1121 |
-
parse_str( $form_data );
|
1122 |
-
/* Initalizing layout array. */
|
1123 |
-
$layout = array();
|
1124 |
-
/* Adding layout value to the array. */
|
1125 |
-
$layout['layout_option'] = sanitize_text_field( $mif_selected_layout );
|
1126 |
-
/* Arguments for default skin. */
|
1127 |
-
$xo_new_skins = array(
|
1128 |
-
'post_title' => sanitize_text_field( $mif_skin_title ),
|
1129 |
-
'post_content' => sanitize_text_field( $mif_skin_description ),
|
1130 |
-
'post_type' => 'mif_skins',
|
1131 |
-
'post_status' => 'publish',
|
1132 |
-
'post_author' => get_current_user_id(),
|
1133 |
-
);
|
1134 |
-
if ( wp_verify_nonce( $_POST['mif_nonce'], 'mif-ajax-nonce' ) ) {
|
1135 |
-
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
1136 |
-
$skin_id = wp_insert_post( $xo_new_skins );
|
1137 |
-
}
|
1138 |
-
}
|
1139 |
-
/* If skin is created successfully. */
|
1140 |
-
|
1141 |
-
if ( isset( $skin_id ) ) {
|
1142 |
-
update_option( 'mif_skin_' . $skin_id, $layout );
|
1143 |
-
$thumbnail_id = $this->mif_get_image_id( $mif_skin_feat_img );
|
1144 |
-
set_post_thumbnail( $skin_id, $thumbnail_id );
|
1145 |
-
/* Getting the demo page id. */
|
1146 |
-
$fta_settings = $FTA->fta_get_settings();
|
1147 |
-
$page_id = $fta_settings['plugins']['instagram']['default_page_id'];
|
1148 |
-
/* Getting permalink from ID. */
|
1149 |
-
$page_permalink = get_permalink( $page_id );
|
1150 |
-
$customizer_url = 'customize.php';
|
1151 |
-
/* If permalink got successfully */
|
1152 |
-
if ( isset( $page_permalink ) ) {
|
1153 |
-
/* Include permalinks for making*/
|
1154 |
-
$customizer_url = add_query_arg( array(
|
1155 |
-
'url' => urlencode( $page_permalink ),
|
1156 |
-
'autofocus[panel]' => 'mif_skins_panel',
|
1157 |
-
'mif_skin_id' => $skin_id,
|
1158 |
-
'mif_customize' => 'yes',
|
1159 |
-
'mif_account_id' => $mif_selected_account,
|
1160 |
-
), $customizer_url );
|
1161 |
-
}
|
1162 |
-
/* if condition ends here*/
|
1163 |
-
/* Sending back the values. */
|
1164 |
-
echo wp_send_json_success( admin_url( $customizer_url ) ) ;
|
1165 |
-
die;
|
1166 |
-
} else {
|
1167 |
-
echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', 'easy-facebook-likebox' ) ) ;
|
1168 |
-
die;
|
1169 |
-
}
|
1170 |
-
|
1171 |
-
exit;
|
1172 |
-
}
|
1173 |
-
|
1174 |
-
/* mif_create_skin Method ends here. */
|
1175 |
/*
|
1176 |
* mif_delete_skin on ajax.
|
1177 |
* Returns the Success or Error Message.
|
1178 |
* Delete the skin
|
1179 |
-
*/
|
1180 |
-
function mif_delete_skin()
|
1181 |
-
{
|
1182 |
-
/* Getting the skin ID. */
|
1183 |
-
$skin_id = intval( $_POST['skin_id'] );
|
1184 |
-
if ( wp_verify_nonce( $_POST['mif_nonce'], 'mif-ajax-nonce' ) ) {
|
1185 |
-
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
1186 |
-
$skin_deleted = wp_delete_post( $skin_id, true );
|
1187 |
-
}
|
1188 |
-
}
|
1189 |
-
/* If skin is deleted successfully. */
|
1190 |
-
|
1191 |
-
if ( isset( $skin_deleted ) ) {
|
1192 |
-
$returned_arr = array( __( 'Skin is successfully deleted.', 'easy-facebook-likebox' ), $skin_id );
|
1193 |
-
/* Sending back the values. */
|
1194 |
-
echo wp_send_json_success( $returned_arr ) ;
|
1195 |
-
die;
|
1196 |
-
} else {
|
1197 |
-
echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', 'easy-facebook-likebox' ) ) ;
|
1198 |
-
die;
|
1199 |
-
}
|
1200 |
-
|
1201 |
-
exit;
|
1202 |
-
}
|
1203 |
-
|
1204 |
/*
|
1205 |
* mif_create_skin_url on ajax.
|
1206 |
* Returns the URL.
|
1207 |
-
*/
|
1208 |
-
function mif_create_skin_url()
|
1209 |
-
{
|
1210 |
-
/* Getting the skin ID. */
|
1211 |
-
$skin_id = intval( $_POST['skin_id'] );
|
1212 |
-
$selectedVal = intval( $_POST['selectedVal'] );
|
1213 |
-
$page_id = intval( $_POST['page_id'] );
|
1214 |
-
$page_permalink = get_permalink( $page_id );
|
1215 |
-
|
1216 |
-
if ( wp_verify_nonce( $_POST['mif_nonce'], 'mif-ajax-nonce' ) ) {
|
1217 |
-
$customizer_url = admin_url( 'customize.php' );
|
1218 |
-
/* If permalink got successfully */
|
1219 |
-
if ( isset( $page_permalink ) ) {
|
1220 |
-
/* Include permalinks for making*/
|
1221 |
-
$customizer_url = add_query_arg( array(
|
1222 |
-
'url' => urlencode( $page_permalink ),
|
1223 |
-
'autofocus[panel]' => 'mif_skins_panel',
|
1224 |
-
'mif_skin_id' => $skin_id,
|
1225 |
-
'mif_customize' => 'yes',
|
1226 |
-
'mif_account_id' => $selectedVal,
|
1227 |
-
), $customizer_url );
|
1228 |
-
}
|
1229 |
-
// echo wp_send_json_error( $customizer_url ) ; die;
|
1230 |
-
echo wp_send_json_success( array( __( 'Please wait! We are generating preview for you.', 'easy-facebook-likebox' ), $customizer_url ) ) ;
|
1231 |
-
die;
|
1232 |
-
} else {
|
1233 |
-
echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', 'easy-facebook-likebox' ) ) ;
|
1234 |
-
die;
|
1235 |
-
}
|
1236 |
-
|
1237 |
-
}
|
1238 |
-
|
1239 |
-
/* mif_create_skin Method ends here. */
|
1240 |
/*
|
1241 |
* mif_delete_transient on ajax.
|
1242 |
* Returns the Success or Error Message.
|
1243 |
* Delete the transient
|
1244 |
-
*/
|
1245 |
-
function mif_delete_transient()
|
1246 |
-
{
|
1247 |
-
/* Getting the skin ID. */
|
1248 |
-
$transient_id = sanitize_text_field( $_POST['transient_id'] );
|
1249 |
-
$replaced_value = str_replace( '_transient_', '', $transient_id );
|
1250 |
-
if ( wp_verify_nonce( $_POST['mif_nonce'], 'mif-ajax-nonce' ) ) {
|
1251 |
-
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
1252 |
-
$mif_deleted_trans = delete_transient( $replaced_value );
|
1253 |
-
}
|
1254 |
-
}
|
1255 |
-
/* If skin is deleted successfully. */
|
1256 |
-
|
1257 |
-
if ( isset( $mif_deleted_trans ) ) {
|
1258 |
-
$returned_arr = array( __( 'Cache is successfully deleted.', 'easy-facebook-likebox' ), $transient_id );
|
1259 |
-
/* Sending back the values. */
|
1260 |
-
echo wp_send_json_success( $returned_arr ) ;
|
1261 |
-
die;
|
1262 |
-
} else {
|
1263 |
-
echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', 'easy-facebook-likebox' ) ) ;
|
1264 |
-
die;
|
1265 |
-
}
|
1266 |
-
|
1267 |
-
exit;
|
1268 |
-
}
|
1269 |
-
|
1270 |
-
/* mif_delete_transient Method ends here. */
|
1271 |
-
/* mif_disable_app_notification__premium_only Method ends here. */
|
1272 |
-
/* retrieves the attachment ID from the file URL */
|
1273 |
-
function mif_get_image_id( $image_url )
|
1274 |
-
{
|
1275 |
-
/* Getting the global wpdb */
|
1276 |
-
global $wpdb ;
|
1277 |
-
/* Getting attachment ID from custom query */
|
1278 |
-
$attachment = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE guid='%s';", $image_url ) );
|
1279 |
-
/* Returning back the attachment ID */
|
1280 |
-
return $attachment[0];
|
1281 |
-
}
|
1282 |
-
|
1283 |
-
/* mif_get_image_id Method ends here. */
|
1284 |
/*
|
1285 |
* It will get the remote URL, Retreive it and return decoded data.
|
1286 |
-
*/
|
1287 |
-
public function mif_get_data( $url )
|
1288 |
-
{
|
1289 |
/*
|
1290 |
* Getting the data from remote URL.
|
1291 |
-
*/
|
1292 |
-
$json_data = wp_remote_retrieve_body( wp_remote_get( $url ) );
|
1293 |
/*
|
1294 |
* Decoding the data.
|
1295 |
-
*/
|
1296 |
-
$decoded_data = json_decode( $json_data );
|
1297 |
/*
|
1298 |
* Returning it to back.
|
1299 |
-
*/
|
1300 |
-
return $decoded_data;
|
1301 |
-
}
|
1302 |
-
|
1303 |
-
/* mif_mif_get_data method ends here. */
|
1304 |
/*
|
1305 |
* Will return All Transients collection.
|
1306 |
-
*/
|
1307 |
-
public function mif_transients()
|
1308 |
-
{
|
1309 |
-
$FTA = new Feed_Them_All();
|
1310 |
-
$fta_settings = $FTA->fta_get_settings();
|
1311 |
-
$mif_auth_accounts = array();
|
1312 |
-
$trans_name = null;
|
1313 |
-
$returner = null;
|
1314 |
/*
|
1315 |
* Getting saved access token.
|
1316 |
-
*/
|
1317 |
-
if ( isset( $fta_settings['plugins']['instagram']['access_token'] ) ) {
|
1318 |
-
$access_token = $fta_settings['plugins']['instagram']['access_token'];
|
1319 |
-
}
|
1320 |
/*
|
1321 |
* Initializing global wpdb varibale.
|
1322 |
-
*/
|
1323 |
-
global $wpdb ;
|
1324 |
/*
|
1325 |
* Custom Query for getting all transients from wp
|
1326 |
-
*/
|
1327 |
-
$mif_trans_sql = "SELECT `option_name` AS `name`, `option_value` AS `value`\r\n\t\t FROM {$wpdb->options}\r\n\t\t WHERE `option_name` LIKE '%transient_%'\r\n\t\t ORDER BY `option_name`";
|
1328 |
/*
|
1329 |
* Getting results of the cahche.
|
1330 |
-
*/
|
1331 |
-
$mif_trans_results = $wpdb->get_results( $mif_trans_sql );
|
1332 |
/*
|
1333 |
* Initializing empty array for mif transients.
|
1334 |
-
*/
|
1335 |
-
$mif_trans_posts = array();
|
1336 |
/*
|
1337 |
* Initializing empty array for mif bio transients.
|
1338 |
-
*/
|
1339 |
-
$mif_trans_bio = array();
|
1340 |
/*
|
1341 |
* Looping thorugh transients if got any results.
|
1342 |
-
*/
|
1343 |
-
if ( $mif_trans_results ) {
|
1344 |
-
foreach ( $mif_trans_results as $mif_trans_result ) {
|
1345 |
/*
|
1346 |
* Checking Mif exists in transient slug then save that in mif transient array.
|
1347 |
-
*/
|
1348 |
-
if ( strpos( $mif_trans_result->name, 'mif' ) !== false && strpos( $mif_trans_result->name, 'posts' ) !== false && strpos( $mif_trans_result->name, 'timeout' ) == false ) {
|
1349 |
-
$mif_trans_posts[$mif_trans_result->name] = $mif_trans_result->value;
|
1350 |
-
}
|
1351 |
/*
|
1352 |
* Checking Mif exists in transient slug then save that in mif transient array.
|
1353 |
-
*/
|
1354 |
-
if ( strpos( $mif_trans_result->name, 'mif' ) !== false && strpos( $mif_trans_result->name, 'bio' ) !== false && strpos( $mif_trans_result->name, 'timeout' ) == false ) {
|
1355 |
-
$mif_trans_bio[$mif_trans_result->name] = $mif_trans_result->value;
|
1356 |
-
}
|
1357 |
-
}
|
1358 |
-
}
|
1359 |
/*
|
1360 |
* Bio Cached.
|
1361 |
-
*/
|
1362 |
-
|
1363 |
-
if ( $mif_trans_bio ) {
|
1364 |
$returner .= '<ul class="collection with-header mif_bio_collection">
|
1365 |
-
<li class="collection-header"><h5>' . __( 'Profile Data', 'easy-facebook-likebox' ) . '</h5></li>';
|
1366 |
-
foreach ( $mif_trans_bio as $key => $value ) {
|
1367 |
-
$pieces = explode( '-', $key );
|
1368 |
-
$trans_name = array_pop( $pieces );
|
1369 |
-
// if(isset($fta_settings['plugins']['instagram']['authenticated_accounts']))
|
1370 |
-
// $mif_auth_accounts = $fta_settings['plugins']['instagram']['authenticated_accounts'];
|
1371 |
-
// $trans_name = $mif_auth_accounts[$trans_name]['username'];
|
1372 |
$returner .= '<li class="collection-item ' . $key . '">
|
1373 |
<div>' . $trans_name . '
|
1374 |
<a href="javascript:void(0);" data-mif_collection="mif_bio_collection" data-mif_trans="' . $key . '" class="secondary-content mif_del_trans"><i class="material-icons">delete</i></a>
|
1375 |
</div>
|
1376 |
-
</li>';
|
1377 |
-
}
|
1378 |
-
$returner .= '</ul>';
|
1379 |
-
}
|
1380 |
-
|
1381 |
/*
|
1382 |
* Posts Cached.
|
1383 |
-
*/
|
1384 |
-
|
1385 |
-
if ( $mif_trans_posts ) {
|
1386 |
$returner .= '<ul class="collection with-header mif_users_collection">
|
1387 |
-
<li class="collection-header"><h5>' . __( 'Profile Feeds', 'easy-facebook-likebox' ) . '</h5></li>';
|
1388 |
-
foreach ( $mif_trans_posts as $key => $value ) {
|
1389 |
-
$pieces = explode( '-', $key );
|
1390 |
-
$trans_name = array_pop( $pieces );
|
1391 |
-
$trans_name = $pieces['1'];
|
1392 |
-
// echo "<pre>"; print_r($pieces);exit();
|
1393 |
-
// if(isset($fta_settings['plugins']['instagram']['authenticated_accounts']))
|
1394 |
-
// $mif_auth_accounts = $fta_settings['plugins']['instagram']['authenticated_accounts'];
|
1395 |
-
// $trans_name = $mif_auth_accounts[$trans_name]['username'];
|
1396 |
$returner .= '<li class="collection-item ' . $key . '">
|
1397 |
<div>' . $trans_name . '
|
1398 |
<a href="javascript:void(0);" data-mif_collection="mif_users_collection" data-mif_trans="' . $key . '" class="secondary-content mif_del_trans"><i class="material-icons">delete</i></a>
|
1399 |
</div>
|
1400 |
-
</li>';
|
1401 |
-
}
|
1402 |
-
$returner .= '</ul>';
|
1403 |
-
}
|
1404 |
-
|
1405 |
-
if ( empty($mif_trans_posts) && empty($mif_trans_bio) ) {
|
1406 |
-
$returner = '<h4>' . __( 'Nothing Found!', 'mif' ) . '</h4> <p>' . __( 'Nothing cached at the moment.Feeds will be automatically after showing the feeds on frontend.', 'easy-facebook-likebox' ) . '</p>';
|
1407 |
-
}
|
1408 |
/*
|
1409 |
* Returning it to back.
|
1410 |
-
*/
|
1411 |
-
return $returner;
|
1412 |
-
}
|
1413 |
-
|
1414 |
-
/* mif_transients method ends here. */
|
1415 |
/*
|
1416 |
* Return the user ID from access token.
|
1417 |
-
*/
|
1418 |
-
public function mif_get_user_id( $access_token )
|
1419 |
-
{
|
1420 |
-
$access_token_exploded = explode( ".", $access_token );
|
1421 |
/*
|
1422 |
* Getting saved user id.
|
1423 |
-
*/
|
1424 |
-
return $access_token_exploded['0'];
|
1425 |
-
}
|
1426 |
-
|
1427 |
-
/* mif_get_bio method ends here. */
|
1428 |
/*
|
1429 |
* Return the user name from access token.
|
1430 |
-
*/
|
1431 |
-
public function mif_get_user_name( $access_token )
|
1432 |
-
{
|
1433 |
-
$FTA = new Feed_Them_All();
|
1434 |
-
$fta_settings = $FTA->fta_get_settings();
|
1435 |
/*
|
1436 |
* Getting the authenticated accounts.
|
1437 |
-
*/
|
1438 |
-
$authenticated_accounts = $fta_settings['plugins']['instagram']['authenticated_accounts'];
|
1439 |
/*
|
1440 |
* Getting the user_id from access token.
|
1441 |
-
*/
|
1442 |
-
$mif_user_id = $this->mif_get_user_id( $access_token );
|
1443 |
/*
|
1444 |
* Returning the user name.
|
1445 |
-
*/
|
1446 |
-
return $authenticated_accounts[$mif_user_id]['username'];
|
1447 |
-
}
|
1448 |
-
|
1449 |
-
/*
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
/*
|
4 |
* Stop execution if someone tried to get file directly.
|
5 |
+
*/
|
6 |
+
if ( !defined( 'ABSPATH' ) ) {
|
7 |
+
exit;
|
8 |
+
}
|
9 |
+
//======================================================================
|
10 |
+
// Code for the admin funcionality of My Instagram Feeds
|
11 |
+
//======================================================================
|
12 |
+
|
13 |
+
if ( !class_exists( 'MIF_Admin' ) ) {
|
14 |
+
class MIF_Admin
|
15 |
+
{
|
16 |
+
/* Intitializing $adminurl .*/
|
17 |
+
var $adminurl ;
|
18 |
/*
|
19 |
* __construct initialize all function of this class.
|
20 |
* Returns nothing.
|
21 |
* Used action_hooks to get things sequentially.
|
22 |
+
*/
|
23 |
+
function __construct()
|
24 |
+
{
|
25 |
/*
|
26 |
* admin_menu hooks fires on wp admin load.
|
27 |
* Add the menu page in wp admin area.
|
28 |
+
*/
|
29 |
+
add_action( 'admin_menu', array( $this, 'mif_menu' ), 100 );
|
30 |
+
add_action( 'admin_footer', array( $this, 'mif_head' ) );
|
31 |
/*
|
32 |
* admin_enqueue_scripts hooks fires for enqueing custom script and styles.
|
33 |
* Css file will be include in admin area.
|
34 |
+
*/
|
35 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'mif_admin_style' ) );
|
36 |
/*
|
37 |
* mif_save_values hooks fires on Ajax call.
|
38 |
* mif_save_values method will be call when the authentication been done.
|
39 |
+
*/
|
40 |
+
add_action( 'wp_ajax_mif_create_skin', array( $this, 'mif_create_skin' ) );
|
41 |
/*
|
42 |
* mif_delete_skin hooks fires on Ajax call.
|
43 |
* mif_delete_skin method will be call when the delete skin button is clicked.
|
44 |
+
*/
|
45 |
+
add_action( 'wp_ajax_mif_delete_skin', array( $this, 'mif_delete_skin' ) );
|
46 |
+
/*
|
47 |
+
* mif_remove_access_token hooks fires on Ajax call.
|
48 |
+
* mif_remove_access_token method will remove the access token from DB.
|
49 |
+
*/
|
50 |
+
add_action( 'wp_ajax_mif_remove_access_token', array( $this, 'mif_remove_access_token' ) );
|
51 |
+
/*
|
52 |
+
* Authenticate the access token and save in DB
|
53 |
+
*/
|
54 |
+
add_action( 'wp_ajax_mif_save_access_token', array( $this, 'mif_save_access_token' ) );
|
55 |
+
/*
|
56 |
+
* Change API type
|
57 |
+
*/
|
58 |
+
add_action( 'wp_ajax_mif_switch_api_type', array( $this, 'mif_switch_api_type' ) );
|
59 |
+
/*
|
60 |
+
* mif_save_business_access_token hooks fires on Ajax call.
|
61 |
+
* mif_save_business_access_token method will be call when the access token needs to be updated.
|
62 |
+
*/
|
63 |
+
add_action( 'wp_ajax_mif_save_business_access_token', array( $this, 'mif_save_business_access_token_cb' ) );
|
64 |
/*
|
65 |
* mif_create_skin_url hooks fires on Ajax call.
|
66 |
* mif_create_skin_url method will be call when the delete skin button is clicked.
|
67 |
+
*/
|
68 |
+
add_action( 'wp_ajax_mif_create_skin_url', array( $this, 'mif_create_skin_url' ) );
|
69 |
/*
|
70 |
* mif_delete_transient hooks fires on Ajax call.
|
71 |
* mif_delete_transient method will be call when the delete transient button is clicked.
|
72 |
+
*/
|
73 |
+
add_action( 'wp_ajax_mif_delete_transient', array( $this, 'mif_delete_transient' ) );
|
74 |
+
}
|
75 |
+
|
76 |
+
/* __construct Method ends here. */
|
77 |
/*
|
78 |
* mif_admin_style will enqueue style and js files.
|
79 |
* Returns hook name of the current page in admin.
|
80 |
* $hook will contain the hook name.
|
81 |
+
*/
|
82 |
+
public function mif_admin_style( $hook )
|
83 |
+
{
|
84 |
+
// exit(MIF_PLUGIN_URL);
|
85 |
/*
|
86 |
* Following files should load only on mif page in backend.
|
87 |
+
*/
|
88 |
+
if ( 'easy-social-feed_page_mif' !== $hook ) {
|
89 |
+
return;
|
90 |
+
}
|
91 |
/*
|
92 |
* Css file for admin area.
|
93 |
+
*/
|
94 |
+
wp_enqueue_style( 'mif_admin_style', MIF_PLUGIN_URL . 'assets/css/mif_admin_style.css' );
|
95 |
/*
|
96 |
* Custom scripts file for admin area.
|
97 |
+
*/
|
98 |
+
wp_enqueue_script( 'mif_admin_jquery', MIF_PLUGIN_URL . 'assets/js/mif-admin.js', array( 'jquery' ) );
|
99 |
+
// echo "<pre>";
|
100 |
+
// print_r(admin_url('admin-ajax.php'));exit();
|
101 |
+
wp_localize_script( 'mif_admin_jquery', 'mif', array(
|
102 |
+
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
103 |
+
'nonce' => wp_create_nonce( 'mif-ajax-nonce' ),
|
104 |
+
) );
|
105 |
+
wp_enqueue_script( 'media-upload' );
|
106 |
+
wp_enqueue_media();
|
107 |
+
}
|
108 |
+
|
109 |
+
/* mif_admin_style Method ends here. */
|
110 |
/*
|
111 |
* mif_menu will add admin page.
|
112 |
* Returns nothing.
|
113 |
+
*/
|
114 |
+
public function mif_menu()
|
115 |
+
{
|
116 |
+
$mif_page_title = __( 'Instagram', 'easy-facebook-likebox' );
|
117 |
/*
|
118 |
* add_menu_page will add menu into the page.
|
119 |
* string $page_title
|
121 |
* string $capability
|
122 |
* string $menu_slug
|
123 |
* callable $function
|
124 |
+
*/
|
125 |
+
add_submenu_page(
|
126 |
+
'feed-them-all',
|
127 |
+
$mif_page_title,
|
128 |
+
$mif_page_title,
|
129 |
+
'administrator',
|
130 |
+
$menu_slug = 'mif',
|
131 |
+
array( $this, 'mif_page_cb' ),
|
132 |
+
2
|
133 |
+
);
|
134 |
+
}
|
135 |
+
|
136 |
+
/* mif_menu Method ends here. */
|
137 |
/*
|
138 |
* mif_page_cb contains the html/markup of the page.
|
139 |
* Returns nothing.
|
140 |
+
*/
|
141 |
+
public function mif_page_cb()
|
142 |
+
{
|
143 |
+
$FTA = new Feed_Them_All();
|
144 |
+
$fta_settings = $FTA->fta_get_settings();
|
145 |
+
$mif_users = array();
|
146 |
+
$mif_pro_auth_noti = null;
|
147 |
+
// echo "<pre>";print_r($fta_settings);exit();
|
|
|
148 |
/*
|
149 |
* Getting the saved acocunts.
|
150 |
+
*/
|
151 |
+
if ( isset( $fta_settings['plugins']['instagram']['authenticated_accounts'] ) ) {
|
152 |
+
$mif_users = $fta_settings['plugins']['instagram']['authenticated_accounts'];
|
153 |
+
}
|
154 |
+
$mif_ver = null;
|
155 |
+
$mif_ver = efl_fs()->is_premium();
|
156 |
+
$mif_version = ( $mif_ver ? 'pro' : 'free' );
|
157 |
/*
|
158 |
* Getting all skins.
|
159 |
+
*/
|
160 |
+
global $mif_skins ;
|
161 |
/*
|
162 |
* Registred Apps ID's
|
163 |
+
*/
|
164 |
+
// $app_ID = array('222116127877068','405460652816219','256146211143372', '406362656509338','395202813876688');
|
165 |
+
$app_ID = array( '405460652816219', '222116127877068' );
|
166 |
/*
|
167 |
* Randomly get one
|
168 |
+
*/
|
169 |
+
$rand_app_ID = array_rand( $app_ID, '1' );
|
170 |
/*
|
171 |
* To use APP ID
|
172 |
+
*/
|
173 |
+
$u_app_ID = $app_ID[$rand_app_ID];
|
174 |
+
$fb_access_token = null;
|
175 |
+
if ( isset( $fta_settings['plugins']['facebook']['access_token'] ) ) {
|
176 |
+
$fb_access_token = $fta_settings['plugins']['facebook']['access_token'];
|
177 |
+
}
|
178 |
+
$this->mif_auth_access_token_script();
|
179 |
+
$efbl_ap_class = '';
|
180 |
+
$efbl_all_pages_html = '';
|
181 |
+
$mif_insta_accounts = '';
|
182 |
+
$mif_switch_type_btn = '';
|
183 |
+
$efbl_all_pages_response = $this->__mif_authenticated_accounts_html();
|
184 |
+
$efbl_all_pages_html = $efbl_all_pages_response[0];
|
185 |
+
$efbl_ap_class = $efbl_all_pages_response[1];
|
186 |
+
$mif_users_id_options = $efbl_all_pages_response[2];
|
187 |
+
$mif_instagram_type = mif_instagram_type();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
/*
|
189 |
* $returner variable will contain all html.
|
190 |
* $returner defines empty at start to avoid junk values.
|
191 |
+
*/
|
192 |
+
$returner = null;
|
193 |
+
$adminurl = admin_url( 'admin.php?page=mif' );
|
194 |
+
$authenticated_accounts = $mif_users;
|
|
|
195 |
/*
|
196 |
* General tab html.
|
197 |
* mif_general_html filter can be used to customize general tab html.
|
198 |
+
*/
|
199 |
+
$mif_general_html = null;
|
200 |
+
$mif_personal_clients = array( '2478794912435887', '494132551291859' );
|
201 |
+
/*
|
202 |
+
* Randomly get one
|
203 |
+
*/
|
204 |
+
$mif_personal_app_ID = $mif_personal_clients[array_rand( $mif_personal_clients, '1' )];
|
205 |
+
// echo "<pre>";print_r($mif_switch_type_btn);exit();
|
206 |
+
$mif_premium_auth_btn = '<a class="mif_auth_btn mif_auth_btn_st btn waves-effect waves-light modal-trigger" href="#mif-authentication-modal">
|
207 |
+
<img src="' . MIF_PLUGIN_URL . '/assets/images/insta-logo.png"/>' . __( 'Connect My Instagram Account', 'easy-facebook-likebox' ) . '</a>';
|
208 |
+
$mif_general_html .= sprintf(
|
209 |
'<div id="mif-general" class="col s12 mif_tab_c slideLeft">
|
210 |
<h5>%1$s</h5>
|
211 |
+
<p>%2$s</p>
|
212 |
%3$s
|
|
|
|
|
213 |
<div class="row auth-row">
|
214 |
<div class="efbl_all_pages col s12 %7$s">
|
215 |
%6$s
|
217 |
</div>
|
218 |
|
219 |
<p>%8$s</p>
|
220 |
+
</div>',
|
221 |
+
/* Variables starts here. */
|
222 |
+
__( "Let's connect your account with plugin", 'easy-facebook-likebox' ),
|
223 |
+
__( 'Click the button below, log into your Instagram account and authorize the app to get access token.', 'easy-facebook-likebox' ),
|
224 |
+
$mif_premium_auth_btn,
|
225 |
+
__( 'Access Token', 'easy-facebook-likebox' ),
|
226 |
+
$fb_access_token,
|
227 |
+
$efbl_all_pages_html,
|
228 |
+
$efbl_ap_class,
|
229 |
+
__( "Please note: This does not give us permission to manage your Instagram accounts, It simply allows the plugin to retrieve access token and show feeds to your website.", 'easy-facebook-likebox' ),
|
230 |
+
__( 'Save', 'easy-facebook-likebox' ),
|
231 |
+
__( 'Step by step guide to connect account with video.', 'easy-facebook-likebox' )
|
232 |
+
);
|
233 |
+
$mif_general_html = apply_filters( 'mif_general_html', $mif_general_html );
|
234 |
+
$mif_skin_options = null;
|
235 |
+
if ( isset( $mif_skins ) ) {
|
236 |
+
foreach ( $mif_skins as $mif_skin ) {
|
237 |
+
$mif_skin_options .= '<option value="' . $mif_skin['ID'] . '" data-icon="' . get_the_post_thumbnail_url( $mif_skin['ID'], 'thumbnail' ) . '">' . $mif_skin['title'] . '</option>';
|
238 |
+
}
|
239 |
+
}
|
240 |
+
|
241 |
+
if ( efl_fs()->is_plan( 'instagram_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
242 |
+
} else {
|
243 |
+
$mif_skin_options .= '<option value="free-masonry">' . __( 'Skin - Masonry', 'easy-facebook-likebox' ) . '</option>
|
244 |
+
<option value="free-carousel">' . __( 'Skin - Carousel', 'easy-facebook-likebox' ) . '</option>
|
245 |
+
<option value="free-half_width">' . __( 'Skin - Half Width', 'easy-facebook-likebox' ) . '</option>
|
246 |
+
<option value="free-full_width">' . __( 'Skin - Full Width', 'easy-facebook-likebox' ) . '</option>';
|
247 |
+
}
|
248 |
+
|
249 |
+
$mif_users_options = null;
|
250 |
+
$mif_auth_accounts = $mif_users;
|
251 |
+
$mif_all_auth_accounts = count( $mif_auth_accounts );
|
252 |
+
|
253 |
+
if ( isset( $mif_auth_accounts ) && $mif_all_auth_accounts > 1 ) {
|
254 |
+
foreach ( $mif_auth_accounts as $mif_auth_account ) {
|
255 |
+
$mif_users_options .= '<option value="' . $mif_auth_account['user_id'] . '" data-icon="' . $mif_auth_account['profile_picture'] . '">' . $mif_auth_account['username'] . '</option>';
|
256 |
+
}
|
257 |
+
} else {
|
258 |
+
$mif_users_options .= '<option value="" disabled selected>' . __( 'Connect More Than One Account To Use This Feature.', 'easy-facebook-likebox' ) . '</option>';
|
259 |
+
}
|
260 |
+
|
261 |
/*
|
262 |
* Shortcode tab html.
|
263 |
* mif_shortcode_html filter can be used to customize shortcode tab html.
|
264 |
+
*/
|
265 |
+
$mif_shortcode_html = null;
|
266 |
+
$mif_premium_hashtag = null;
|
267 |
$mif_premium_multi_feeds = '<span class="form_fields">
|
268 |
<input name="" class="modal-trigger" href="#mif-multifeed-upgrade" type="checkbox" required value="mif_free_multifeed" id="mif_free_multifeed" />
|
269 |
<label for="mif_free_multifeed">' . __( 'Multiple Feeds', 'easy-facebook-likebox' ) . '</label>
|
270 |
+
</span>';
|
271 |
+
$fta_settings = $FTA->fta_get_settings();
|
272 |
+
$skin_id = null;
|
273 |
+
/* Getting the demo page id. */
|
274 |
+
if ( isset( $fta_settings['plugins']['instagram']['default_skin_id'] ) && !empty($fta_settings['plugins']['instagram']['default_skin_id']) ) {
|
275 |
+
$skin_id = $fta_settings['plugins']['instagram']['default_skin_id'];
|
276 |
+
}
|
277 |
+
$mif_insta_account = $efbl_all_pages_response[3];
|
278 |
+
|
279 |
+
if ( isset( $fta_settings['plugins']['facebook']['approved_pages'] ) && !empty($fta_settings['plugins']['facebook']['approved_pages']) || mif_instagram_type() == 'personal' ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
$mif_default_shortcode = '<p>' . __( 'Copy and paste the following shortcode in any page, post or text widget to display the feed.', 'easy-facebook-likebox' ) . '</p>
|
281 |
<blockquote class="mif-shortcode-block">[my-instagram-feed user_id=' . $mif_insta_account . ' skin_id=' . $skin_id . '] </blockquote>
|
282 |
<a class="btn waves-effect mif_copy_shortcode waves-light tooltipped" data-position="right" data-delay="50" data-tooltip="' . __( 'Copy', 'easy-facebook-likebox' ) . '" data-clipboard-text="[my-instagram-feed user_id=' . $mif_insta_account . ' skin_id=' . $skin_id . ']" href="javascript:void(0);"><i class="material-icons right">content_copy</i> </a>
|
283 |
+
';
|
284 |
+
} else {
|
285 |
+
$mif_default_shortcode = '<blockquote class="efbl-red-notice">' . __( 'It looks like you have not connected your Instagram account with plugin yet. Please click on the Connect My Instagram Account button from authentication tab to get the access token from Facebook and then go with the flow.', 'easy-facebook-likebox' ) . '</blockquote>';
|
286 |
+
}
|
287 |
+
|
288 |
+
// echo '<pre>'; print_r($efbl_all_pages_response);exit();
|
289 |
+
$mif_shortcode_html .= sprintf(
|
290 |
'<div id="mif-shortcode" class="col s12 mif_tab_c slideLeft">
|
291 |
<div class="mif-swipe-shortcode_wrap">
|
292 |
|
420 |
</ul>
|
421 |
|
422 |
</div>
|
423 |
+
</div>',
|
424 |
+
/* Variables starts here. */
|
425 |
+
__( "Unable to understand shortocde parameters?", 'easy-facebook-likebox' ),
|
426 |
+
__( 'No worries, Each shortocde parameter is explained below first read them and generate your shortocde.', 'easy-facebook-likebox' ),
|
427 |
+
__( 'How to use this plugin?', 'easy-facebook-likebox' ),
|
428 |
+
__( 'Wrapper Class', 'easy-facebook-likebox' ),
|
429 |
+
__( 'You can easily add the custom CSS class to the wraper of your Instagram Feeds.', 'easy-facebook-likebox' ),
|
430 |
+
__( 'Cache Unit', 'easy-facebook-likebox' ),
|
431 |
+
__( 'Feeds Will be automatically refreshed after particular minutes/hours/days. Simply paste the number of days in cache_unit parameter.', 'easy-facebook-likebox' ),
|
432 |
+
__( 'Hashtag', 'easy-facebook-likebox' ),
|
433 |
+
__( 'You can also show the Instagram Feeds by hashtag. Simply insert the hashtag. It will override the username option and display feeds by hashtag only.', 'easy-facebook-likebox' ),
|
434 |
+
__( 'Accounts', 'easy-facebook-likebox' ),
|
435 |
+
__( "You can display any of the connected account feeds. Select the account you wish to display the feeds from list.", 'easy-facebook-likebox' ),
|
436 |
+
__( 'Skin', 'easy-facebook-likebox' ),
|
437 |
+
__( 'You can totally change the look and feel of your feeds section. Simply paste the Skin ID in skin_id parameter. You can find the skins in dashboard->My Instagram Feeds->Skins section.', 'easy-facebook-likebox' ),
|
438 |
+
__( 'Feeds Per Page', 'easy-facebook-likebox' ),
|
439 |
+
__( 'You can show only specific feeds. Simply paste the Feeds Per Page number in feeds_per_page parameter.', 'easy-facebook-likebox' ),
|
440 |
+
__( 'Caption Words', 'easy-facebook-likebox' ),
|
441 |
+
__( 'You can show limited caption words. Simply paste the Caption Words number in caption_words parameter.', 'easy-facebook-likebox' ),
|
442 |
+
__( 'Need More Options?', 'easy-facebook-likebox' ),
|
443 |
+
__( 'User Name', 'easy-facebook-likebox' ),
|
444 |
+
__( 'Hashtag', 'easy-facebook-likebox' ),
|
445 |
+
__( 'Use the following shortcode generator to further customize the shortcode.', 'easy-facebook-likebox' ),
|
446 |
+
__( 'Generate', 'easy-facebook-likebox' ),
|
447 |
+
__( 'Copy and paste the following shortcode in any page, post or text widget to display the feed.', 'easy-facebook-likebox' ),
|
448 |
+
__( 'Copy', 'easy-facebook-likebox' ),
|
449 |
+
$mif_skin_options,
|
450 |
+
__( 'Cache Duration', 'easy-facebook-likebox' ),
|
451 |
+
__( 'Minutes', 'easy-facebook-likebox' ),
|
452 |
+
__( 'Hours', 'easy-facebook-likebox' ),
|
453 |
+
__( 'Days', 'easy-facebook-likebox' ),
|
454 |
+
__( 'Multiple Feeds', 'easy-facebook-likebox' ),
|
455 |
+
$mif_users_options,
|
456 |
+
__( 'Define cache duration to refresh feeds automatically. Like after minutes/hours/days feeds would be refreshed. Simply paste the duration option in cache_duration parameter', 'easy-facebook-likebox' ),
|
457 |
+
$mif_premium_hashtag,
|
458 |
+
$mif_premium_multi_feeds,
|
459 |
+
__( 'PRO', 'easy-facebook-likebox' ),
|
460 |
+
$mif_users_id_options,
|
461 |
+
$mif_default_shortcode
|
462 |
+
);
|
463 |
+
$mif_skin_html = null;
|
464 |
+
/* Getting the demo page id. */
|
465 |
+
$fta_settings = $FTA->fta_get_settings();
|
466 |
+
$page_id = null;
|
467 |
+
/* Getting the demo page id. */
|
468 |
+
if ( isset( $fta_settings['plugins']['instagram']['default_page_id'] ) && !empty($fta_settings['plugins']['instagram']['default_page_id']) ) {
|
469 |
+
$page_id = $fta_settings['plugins']['instagram']['default_page_id'];
|
470 |
+
}
|
471 |
+
$page_permalink = get_permalink( $page_id );
|
472 |
+
// echo "<pre>"; print_r($mif_skins);exit();
|
473 |
+
|
474 |
+
if ( isset( $mif_skins ) ) {
|
475 |
+
foreach ( $mif_skins as $mif_skin ) {
|
476 |
+
$customizer_url = admin_url( 'customize.php' );
|
477 |
+
/* If permalink got successfully */
|
478 |
+
if ( isset( $page_permalink ) ) {
|
479 |
+
/* Include permalinks for making*/
|
480 |
+
$customizer_url = add_query_arg( array(
|
481 |
+
'url' => urlencode( $page_permalink ),
|
482 |
+
'autofocus[panel]' => 'mif_skins_panel',
|
483 |
+
'mif_skin_id' => $mif_skin['ID'],
|
484 |
+
'mif_customize' => 'yes',
|
485 |
+
), $customizer_url );
|
486 |
+
}
|
487 |
+
$selected_layout = null;
|
488 |
+
if ( isset( $mif_skin['design']['layout_option'] ) ) {
|
489 |
+
$selected_layout = ucfirst( str_replace( "_", " ", $mif_skin['design']['layout_option'] ) );
|
490 |
+
}
|
491 |
+
/* if condition ends here*/
|
492 |
+
$skin_img = ( get_the_post_thumbnail_url( $mif_skin['ID'], 'thumbnail' ) ? get_the_post_thumbnail_url( $mif_skin['ID'], 'thumbnail' ) : MIF_PLUGIN_URL . 'assets/images/skin-placeholder.jpg' );
|
493 |
$mif_skin_html .= '<div class="card col mif_single_skin s3 mif_skin_' . $mif_skin['ID'] . '">
|
494 |
<div class="card-image waves-effect waves-block waves-light">
|
495 |
<img class="activator" src="' . $skin_img . '">
|
497 |
<div class="card-content">
|
498 |
<span class="card-title activator grey-text text-darken-4">' . $mif_skin['title'] . '<i class="material-icons right">more_vert</i></span>
|
499 |
|
500 |
+
</div>';
|
501 |
+
if ( $selected_layout ) {
|
502 |
+
$mif_skin_html .= '<span class="selected_layout">' . __( 'Layout: ', 'easy-facebook-likebox' ) . '' . $selected_layout . '</span>';
|
503 |
+
}
|
504 |
$mif_skin_html .= '<div class="mif_cta_holder">
|
505 |
<label>' . __( 'Please select your account first for preview ignorer to add/edit the skin. (This selection is only for preview, it can be used with any account.)', 'easy-facebook-likebox' ) . '</label>
|
506 |
<select class="mif_selected_account_' . $mif_skin['ID'] . '" required>
|
518 |
<span class="card-title grey-text text-darken-4">' . $mif_skin['title'] . '<i class="material-icons right">close</i></span>
|
519 |
<p>' . $mif_skin['description'] . '</p>
|
520 |
</div>
|
521 |
+
</div>';
|
522 |
+
}
|
523 |
+
} else {
|
524 |
+
$mif_skin_html .= '<blockquote class="error">' . __( 'Whoops! No skin found. Create new skin from button above to totally customize your feed in real-time.', 'easy-facebook-likebox' ) . '</blockquote>';
|
525 |
+
}
|
526 |
+
|
527 |
+
|
528 |
+
if ( efl_fs()->is_plan( 'instagram_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
529 |
+
} else {
|
530 |
$mif_skin_html .= '<div class="card col mif_single_skin mif_single_skin_free s3">
|
531 |
<a class="skin_free_full modal-trigger" href="#mif-free-masonry-upgrade"></a>
|
532 |
<div class="card-image waves-effect waves-block waves-light">
|
552 |
<span class="card-title grey-text text-darken-4">' . __( 'Layout: Masonry', 'easy-facebook-likebox' ) . '<i class="material-icons right">close</i></span>
|
553 |
<p>' . __( 'This is the Masonry demo skin included in premium version', 'easy-facebook-likebox' ) . '</p>
|
554 |
</div>
|
555 |
+
</div>';
|
556 |
$mif_skin_html .= '<div class="card col mif_single_skin mif_single_skin_free s3">
|
557 |
<a class="skin_free_full modal-trigger" href="#mif-free-carousel-upgrade"></a>
|
558 |
<div class="card-image waves-effect waves-block waves-light">
|
578 |
<span class="card-title grey-text text-darken-4">' . __( 'Layout: Carousel', 'easy-facebook-likebox' ) . '<i class="material-icons right">close</i></span>
|
579 |
<p>' . __( 'This is the Carousel demo skin included in premium version', 'easy-facebook-likebox' ) . '</p>
|
580 |
</div>
|
581 |
+
</div>';
|
582 |
$mif_skin_html .= '<div class="card col mif_single_skin mif_single_skin_free s3">
|
583 |
<a class="skin_free_full modal-trigger" href="#mif-free-half_width-upgrade"></a>
|
584 |
<div class="card-image waves-effect waves-block waves-light">
|
604 |
<span class="card-title grey-text text-darken-4">' . __( 'Layout: Half Width', 'easy-facebook-likebox' ) . '<i class="material-icons right">close</i></span>
|
605 |
<p>' . __( 'This is the Half Width demo skin included in premium version', 'easy-facebook-likebox' ) . '</p>
|
606 |
</div>
|
607 |
+
</div>';
|
608 |
$mif_skin_html .= '<div class="card col mif_single_skin mif_single_skin_free s3">
|
609 |
<a class="skin_free_full modal-trigger" href="#mif-free-full_width-upgrade"></a>
|
610 |
<div class="card-image waves-effect waves-block waves-light">
|
630 |
<span class="card-title grey-text text-darken-4">' . __( 'Layout: Full width', 'easy-facebook-likebox' ) . '<i class="material-icons right">close</i></span>
|
631 |
<p>' . __( 'This is the full Width demo skin included in premium version', 'easy-facebook-likebox' ) . '</p>
|
632 |
</div>
|
633 |
+
</div>';
|
634 |
+
}
|
635 |
+
|
636 |
+
// echo "<pre>"; print_r($mif_skins);exit();
|
637 |
/*
|
638 |
* Getting MIF transients.
|
639 |
+
*/
|
640 |
+
$mif_transients = $this->mif_transients();
|
641 |
/*
|
642 |
* Cache tab html.
|
643 |
* mif_cache_html filter can be used to customize cache tab html.
|
644 |
+
*/
|
645 |
+
$mif_cache_html = null;
|
646 |
+
$mif_cache_html .= sprintf(
|
647 |
'<div id="mif-cache" class="col s12 mif_tab_c slideLeft">
|
648 |
<div class="mif-swipe-cache_wrap">
|
649 |
%1$s
|
650 |
</div>
|
651 |
+
</div>',
|
652 |
+
/* Variables starts here. */
|
653 |
+
$mif_transients
|
654 |
+
);
|
655 |
+
$mif_cache_html = apply_filters( 'mif_shortcode_html', $mif_cache_html );
|
656 |
+
$layout_choices = '<option value="grid">' . __( 'Grid', 'easy-facebook-likebox' ) . '</option>';
|
657 |
+
|
658 |
+
if ( efl_fs()->is_plan( 'instagram_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
659 |
+
} else {
|
660 |
$layout_choices .= '<option value="free-masonary">' . __( 'Masonry', 'easy-facebook-likebox' ) . '</option>
|
661 |
<option value="free-carousel">' . __( 'Carousel', 'easy-facebook-likebox' ) . '</option>
|
662 |
<option value="free-half_width">' . __( 'Half Width', 'easy-facebook-likebox' ) . '</option>
|
663 |
+
<option value="free-full_width">' . __( 'Full Width', 'easy-facebook-likebox' ) . '</option>';
|
664 |
+
}
|
665 |
+
|
666 |
/*
|
667 |
* Skins tab html.
|
668 |
* mif_skinsl_html filter can be used to customize skins tab html.
|
669 |
+
*/
|
670 |
+
$mif_skins_html = null;
|
671 |
+
$mif_skins_html .= sprintf(
|
672 |
'<div id="mif-skins" class="col s12 mif_tab_c slideLeft"><div class="row">
|
673 |
|
674 |
<div class="mif_skin_head_wrap">
|
739 |
<!-- Skin Html Ends Here -->
|
740 |
|
741 |
|
742 |
+
</div></div>',
|
743 |
+
/* Variables starts here. */
|
744 |
+
__( 'Create New Skin', 'easy-facebook-likebox' ),
|
745 |
+
__( 'Title (optional)', 'easy-facebook-likebox' ),
|
746 |
+
__( 'Description (optional)', 'easy-facebook-likebox' ),
|
747 |
+
__( 'Upload Skin Image', 'easy-facebook-likebox' ),
|
748 |
+
__( 'Create', 'easy-facebook-likebox' ),
|
749 |
+
$mif_skin_html,
|
750 |
+
__( 'Skin Image (optional)', 'easy-facebook-likebox' ),
|
751 |
+
__( 'Please select your account to see in preview', 'easy-facebook-likebox' ),
|
752 |
+
__( 'Want to customize the layout of Instagram feed?', 'easy-facebook-likebox' ),
|
753 |
+
__( 'Skins allows you to totally customize the look and feel of your feed in real-time using WordPress customizer. Skin holds all the design settings like feed layout (fullwidth, Grid, etc), show hide elements, page header, and single post colors, margins and a lot of cool settings separately. Questions? <a target="_blank" href="https://easysocialfeed.com/documentation/how-to-use-skins/">See this support document.</a>', 'easy-facebook-likebox' ),
|
754 |
+
__( 'Show All Skins', 'easy-facebook-likebox' ),
|
755 |
+
$layout_choices,
|
756 |
+
__( 'Layout', 'easy-facebook-likebox' )
|
757 |
+
);
|
758 |
+
$mif_skins_html = apply_filters( 'mif_skins_html', $mif_skins_html );
|
759 |
/*
|
760 |
* Our Plugins tab html.
|
761 |
* mif_other_plugins_html filter can be used to customize our plugins tab html.
|
762 |
+
*/
|
763 |
+
$mif_op_html = null;
|
764 |
+
//echo "<pre>"; print_r($mif_op_html);exit();
|
765 |
/*
|
766 |
* Getting the Current URL for returing back to this page.
|
767 |
* Getting the mif saved page id.
|
768 |
* Getting the permalink of page.
|
769 |
+
*/
|
770 |
+
$current_link = urlencode( (( isset( $_SERVER['HTTPS'] ) ? "https" : "http" )) . "://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}" );
|
771 |
+
$fta_settings = $FTA->fta_get_settings();
|
772 |
+
$page_id = null;
|
773 |
+
/* Getting the demo page id. */
|
774 |
+
if ( isset( $fta_settings['plugins']['instagram']['default_page_id'] ) && !empty($fta_settings['plugins']['instagram']['default_page_id']) ) {
|
775 |
+
$page_id = $fta_settings['plugins']['instagram']['default_page_id'];
|
776 |
+
}
|
777 |
+
$page_permalink = get_permalink( $page_id );
|
778 |
+
$page_permalink = urlencode( $page_permalink );
|
779 |
+
$final_customize_Url = admin_url( 'customize.php?url=' . $page_permalink . '&autofocus[panel]=fta_skins_panel&mif_customize=yes&return=' . $current_link . '' );
|
780 |
+
$efbl_empty_at_class = null;
|
781 |
+
if ( empty($fta_settings['plugins']['facebook']['access_token']) ) {
|
782 |
+
$efbl_empty_at_class = 'fta_empty_at';
|
783 |
+
}
|
784 |
+
$mif_fb_link = null;
|
785 |
+
if ( isset( $fta_settings['plugins']['facebook']['status'] ) && 'activated' == $fta_settings['plugins']['facebook']['status'] ) {
|
786 |
$mif_fb_link = '<div class="mif_tabs_right">
|
787 |
<a class="" href="' . esc_url( admin_url( 'admin.php?page=easy-facebook-likebox' ) ) . '">' . __( 'Facebook', 'easy-facebook-likebox' ) . '</a>
|
788 |
+
</div> ';
|
789 |
+
}
|
790 |
+
//echo "<pre>"; print_r($access_token);exit();
|
791 |
/*
|
792 |
* Base html.
|
793 |
* mif_base_html filter can be used to customize base html of setting page.
|
794 |
+
*/
|
795 |
+
$returner .= sprintf(
|
796 |
'<div class="esf_loader_wrap">
|
797 |
<div class="esf_loader_inner">
|
798 |
<div class="loader mif_loader"></div>
|
860 |
</div>
|
861 |
<!-- Popup ends<!-->
|
862 |
|
863 |
+
<!-- Popup starts<!-->
|
864 |
+
<div id="mif-remove-at" class="modal">
|
865 |
+
<div class="modal-content">
|
866 |
+
<span class="mif-close-modal modal-close"><i class="material-icons dp48">close</i></span>
|
867 |
+
<div class="mif-modal-content"> <span class="mif-lock-icon"><i class="material-icons dp48">error_outline</i> </span>
|
868 |
+
<h5>%19$s</h5>
|
869 |
+
<p>%38$s</p>
|
870 |
+
<a class="waves-effect waves-light btn modal-close" href="javascript:void(0)">%22$s</a>
|
871 |
+
<a class="waves-effect waves-light btn mif_delete_at_confirmed" href="#">%21$s</a>
|
872 |
+
<div class="mif-revoke-access-steps">
|
873 |
+
<p>%39$s</p>
|
874 |
+
<ol>
|
875 |
+
<li>%40$s</li>
|
876 |
+
<li>%41$s</li>
|
877 |
+
<li>%42$s</li>
|
878 |
+
<li>%43$s</li>
|
879 |
+
</ol>
|
880 |
+
</div>
|
881 |
+
</div>
|
882 |
+
</div>
|
883 |
+
|
884 |
+
</div>
|
885 |
+
<!-- Popup ends<!-->
|
886 |
+
|
887 |
<!-- Remove Skin Popup starts<!-->
|
888 |
<div id="mif-remove-skin" class="modal mif-remove-skin mif-confirm-modal">
|
889 |
<div class="modal-content">
|
985 |
|
986 |
<!-- full_width Layout Structure Ends-->
|
987 |
|
988 |
+
<!-- Authentication Modal Structure -->
|
989 |
+
<div id="mif-authentication-modal" class="mif-authentication-modal modal">
|
990 |
+
<div class="modal-content">
|
991 |
+
|
992 |
+
<div class="mif-modal-content">
|
993 |
+
<h6>%32$s</h6>
|
994 |
+
|
995 |
+
<div class="mif-auth-btn-holder">
|
996 |
+
|
997 |
+
<input class="with-gap" name="mif_login_type" data-url="https://api.instagram.com/oauth/authorize?client_id=' . $mif_personal_app_ID . '&redirect_uri=https://easysocialfeed.com/efbl/app-' . $mif_personal_app_ID . '/index.php&scope=user_profile,user_media&response_type=code&state=' . admin_url( 'admin.php?page=mif' ) . '" value="basic" type="radio" id="mif_basic_type" checked />
|
998 |
+
<label for="mif_basic_type">%33$s</label>
|
999 |
+
<a href="#" class="mif_info_link"><i class="material-icons">info</i></a>
|
1000 |
+
<div class="mif_auth_info_holder">
|
1001 |
+
<p>%35$s</p>
|
1002 |
+
</div>
|
1003 |
+
</div>
|
1004 |
+
<div class="mif-auth-btn-holder">
|
1005 |
+
<input class="with-gap" name="mif_login_type" data-url="https://www.facebook.com/dialog/oauth?client_id=' . $u_app_ID . '&redirect_uri=https://maltathemes.com/efbl/app-' . $u_app_ID . '/index.php&scope=manage_pages,instagram_basic&state=' . $adminurl . '" value="business" type="radio" id="mif_business_type" />
|
1006 |
+
<label for="mif_business_type">%34$s</label>
|
1007 |
+
<a href="#" class="mif_info_link"><i class="material-icons">info</i></a>
|
1008 |
+
<div class="mif_auth_info_holder">
|
1009 |
+
<p>%36$s</p>
|
1010 |
+
</div>
|
1011 |
+
</div>
|
1012 |
+
<a href="https://api.instagram.com/oauth/authorize?client_id=' . $mif_personal_app_ID . '&redirect_uri=https://easysocialfeed.com/efbl/app-' . $mif_personal_app_ID . '/index.php&scope=user_profile,user_media&response_type=code&state=' . admin_url( 'admin.php?page=mif' ) . '" class="waves-effect waves-light btn mif-auth-modal-btn">%37$s</a>
|
1013 |
+
|
1014 |
+
</div>
|
1015 |
+
</div>
|
1016 |
+
|
1017 |
+
</div>
|
1018 |
+
|
1019 |
+
<!-- full_width Layout Structure Ends-->
|
1020 |
+
|
1021 |
+
</div>',
|
1022 |
+
/* Variables starts here. */
|
1023 |
+
__( 'Authentication', 'easy-facebook-likebox' ),
|
1024 |
+
__( 'How to use?', 'easy-facebook-likebox' ),
|
1025 |
+
$mif_general_html,
|
1026 |
+
$mif_shortcode_html,
|
1027 |
+
__( 'Customize (skins)', 'easy-facebook-likebox' ),
|
1028 |
+
$mif_skins_html,
|
1029 |
+
__( 'Attention!', 'easy-facebook-likebox' ),
|
1030 |
+
__( 'It looks like you have not connected your Facebook page with plugin yet. Please click on the “Connect My Facebook Pages” button to get the access token from Facebook and then go with the flow.', 'easy-facebook-likebox' ),
|
1031 |
+
__( 'Clear Cache', 'easy-facebook-likebox' ),
|
1032 |
+
$mif_cache_html,
|
1033 |
+
$efbl_empty_at_class,
|
1034 |
+
__( 'Help', 'easy-facebook-likebox' ),
|
1035 |
+
$mif_help_html = null,
|
1036 |
+
$mif_op_html,
|
1037 |
+
__( "Sorry, Plugin is unable to get the accounts data. Please delete the access token and select accounts in the second step of authentication to give the permission.", 'easy-facebook-likebox' ),
|
1038 |
+
'https://www.facebook.com/dialog/oauth?client_id=' . $u_app_ID . '&redirect_uri=https://maltathemes.com/efbl/app-' . $u_app_ID . '/index.php&scope=manage_pages,instagram_basic&state=' . admin_url( 'admin.php?page=mif' ) . '',
|
1039 |
+
__( 'Connect My Instagram Account', 'easy-facebook-likebox' ),
|
1040 |
+
__( 'Other Plugins', 'easy-facebook-likebox' ),
|
1041 |
+
__( 'Are you sure?', 'easy-facebook-likebox' ),
|
1042 |
+
__( "Do you really want to delete the access token? It will delete all the pages data, access tokens and premissions given to the app.", 'easy-facebook-likebox' ),
|
1043 |
+
__( 'Delete', 'easy-facebook-likebox' ),
|
1044 |
+
__( 'Cancel', 'easy-facebook-likebox' ),
|
1045 |
+
$mif_fb_link,
|
1046 |
+
__( 'Premium Feature', 'easy-facebook-likebox' ),
|
1047 |
+
__( 'Upgrade to pro', 'easy-facebook-likebox' ),
|
1048 |
+
__( "We're sorry, Masonry layout is not included in your plan. Please upgrade to premium version to unlock this and all other cool features. <a target=_blank href=https://easysocialfeed.com/my-instagram-feed-demo/masonary>Check out the demo</a>", 'easy-facebook-likebox' ),
|
1049 |
+
__( 'Upgrade today and get a 10% discount! On the checkout click on "Have a promotional code?" and enter <code>espf10</code>', 'easy-facebook-likebox' ),
|
1050 |
+
__( "We're sorry, Carousel layout is not included in your plan. Please upgrade to premium version to unlock this and all other cool features. <a target=_blank href=https://easysocialfeed.com/my-instagram-feed-demo/carousel>Check out the demo</a>", 'easy-facebook-likebox' ),
|
1051 |
+
__( "We're sorry, Half Width layout is not included in your plan. Please upgrade to premium version to unlock this and all other cool features. <a target=_blank href=https://easysocialfeed.com/my-instagram-feed-demo/blog-layout>Check out the demo</a>", 'easy-facebook-likebox' ),
|
1052 |
+
__( "We're sorry, Full Width layout is not included in your plan. Please upgrade to premium version to unlock this and all other cool features. <a target=_blank href=https://easysocialfeed.com/my-instagram-feed-demo/full-width>Check out the demo</a>", 'easy-facebook-likebox' ),
|
1053 |
+
__( "Do you really want to delete the skin? It will delete all the settings values of the skin.", 'easy-facebook-likebox' ),
|
1054 |
+
__( "Are you connecting a Personal or Business Instagram Profile?", 'easy-facebook-likebox' ),
|
1055 |
+
__( "Personal", 'easy-facebook-likebox' ),
|
1056 |
+
__( "Business", 'easy-facebook-likebox' ),
|
1057 |
+
__( 'The "Personal" option can display feeds from personal Instagram account. It is limited to display only pictures, videos, username and caption.', 'easy-facebook-likebox' ),
|
1058 |
+
__( 'Used for displaying a user feed from a "Business" or "Creator" Instagram account. A Business or Creator account is required for displaying avatar,bio,comments and likes. See this <a href="https://easysocialfeed.com/documentation/how-to-connect-instagram-account-with-facebook-page/" target="_blank"> support guide </a> to convert personal account to business account.', 'easy-facebook-likebox' ),
|
1059 |
+
__( "Connect", 'easy-facebook-likebox' ),
|
1060 |
+
__( "Do you really want to delete the access token? It will delete the access token saved in your website databse.", 'easy-facebook-likebox' ),
|
1061 |
+
__( "If you want to disconnect plugin app also follow the steps below:", 'easy-facebook-likebox' ),
|
1062 |
+
__( "Go to <a target='_blank; href='https://www.instagram.com/''>instagram.com</a> Log in with your username and password", 'easy-facebook-likebox' ),
|
1063 |
+
__( "Click on the user icon located on the top right of your screen.", 'easy-facebook-likebox' ),
|
1064 |
+
__( "Go in your Instagram Settings and select “Authorized Apps”", 'easy-facebook-likebox' ),
|
1065 |
+
__( "You will see a list of the apps & websites that are linked to your Instagram account. Click “Revoke Access” and “Yes” on the button below which you authenticated", 'easy-facebook-likebox' )
|
1066 |
+
);
|
1067 |
+
if ( efl_fs()->is_free_plan() ) {
|
1068 |
$returner .= '<div class="espf-upgrade">
|
1069 |
<h2>' . __( 'Easy Social Feed <b>Pro</b>', 'easy-facebook-likebox' ) . '</h2>
|
1070 |
<p>' . __( 'Unlock all premium features such as Advanced PopUp, More Fancy Layouts, Post filters like events, images, videos, and albums, gallery in the PopUp and above all top notch priority support.', 'easy-facebook-likebox' ) . '</p>
|
1071 |
<p>' . __( 'Upgrade today and get a 10% discount! On the checkout click on "Have a promotional code?" and enter <code>espf10</code>', 'easy-facebook-likebox' ) . '</p>
|
1072 |
<a href="' . efl_fs()->get_upgrade_url() . '" class="waves-effect waves-light btn"><i class="material-icons right">lock_open</i>' . __( 'Upgrade To Pro', 'easy-facebook-likebox' ) . '</a>
|
1073 |
+
</div>';
|
1074 |
+
}
|
1075 |
+
$returner = apply_filters( 'mif_base_html', $returner );
|
1076 |
+
echo $returner ;
|
1077 |
+
}
|
1078 |
+
|
1079 |
+
/* mif_supported_func Method ends here. */
|
1080 |
/*
|
1081 |
* mif_create_skin on ajax.
|
1082 |
* Returns the customizer URL with skin ID.
|
1083 |
* Create the skin for instagram feeds
|
1084 |
+
*/
|
1085 |
+
function mif_create_skin()
|
1086 |
+
{
|
1087 |
+
$FTA = new Feed_Them_All();
|
1088 |
+
/* Getting the form data. */
|
1089 |
+
$form_data = $_POST['form_data'];
|
1090 |
+
/* Getting the form data in strings. */
|
1091 |
+
parse_str( $form_data );
|
1092 |
+
/* Initalizing layout array. */
|
1093 |
+
$layout = array();
|
1094 |
+
/* Adding layout value to the array. */
|
1095 |
+
$layout['layout_option'] = sanitize_text_field( $mif_selected_layout );
|
1096 |
+
/* Arguments for default skin. */
|
1097 |
+
$xo_new_skins = array(
|
1098 |
+
'post_title' => sanitize_text_field( $mif_skin_title ),
|
1099 |
+
'post_content' => sanitize_text_field( $mif_skin_description ),
|
1100 |
+
'post_type' => 'mif_skins',
|
1101 |
+
'post_status' => 'publish',
|
1102 |
+
'post_author' => get_current_user_id(),
|
1103 |
+
);
|
1104 |
+
if ( wp_verify_nonce( $_POST['mif_nonce'], 'mif-ajax-nonce' ) ) {
|
1105 |
+
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
1106 |
+
$skin_id = wp_insert_post( $xo_new_skins );
|
1107 |
+
}
|
1108 |
+
}
|
1109 |
+
/* If skin is created successfully. */
|
1110 |
+
|
1111 |
+
if ( isset( $skin_id ) ) {
|
1112 |
+
update_option( 'mif_skin_' . $skin_id, $layout );
|
1113 |
+
$thumbnail_id = $this->mif_get_image_id( $mif_skin_feat_img );
|
1114 |
+
set_post_thumbnail( $skin_id, $thumbnail_id );
|
1115 |
+
/* Getting the demo page id. */
|
1116 |
+
$fta_settings = $FTA->fta_get_settings();
|
1117 |
+
$page_id = $fta_settings['plugins']['instagram']['default_page_id'];
|
1118 |
+
/* Getting permalink from ID. */
|
1119 |
+
$page_permalink = get_permalink( $page_id );
|
1120 |
+
$customizer_url = 'customize.php';
|
1121 |
+
/* If permalink got successfully */
|
1122 |
+
if ( isset( $page_permalink ) ) {
|
1123 |
+
/* Include permalinks for making*/
|
1124 |
+
$customizer_url = add_query_arg( array(
|
1125 |
+
'url' => urlencode( $page_permalink ),
|
1126 |
+
'autofocus[panel]' => 'mif_skins_panel',
|
1127 |
+
'mif_skin_id' => $skin_id,
|
1128 |
+
'mif_customize' => 'yes',
|
1129 |
+
'mif_account_id' => $mif_selected_account,
|
1130 |
+
), $customizer_url );
|
1131 |
+
}
|
1132 |
+
/* if condition ends here*/
|
1133 |
+
/* Sending back the values. */
|
1134 |
+
echo wp_send_json_success( admin_url( $customizer_url ) ) ;
|
1135 |
+
die;
|
1136 |
+
} else {
|
1137 |
+
echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', 'easy-facebook-likebox' ) ) ;
|
1138 |
+
die;
|
1139 |
+
}
|
1140 |
+
|
1141 |
+
exit;
|
1142 |
+
}
|
1143 |
+
|
1144 |
+
/* mif_create_skin Method ends here. */
|
1145 |
/*
|
1146 |
* mif_delete_skin on ajax.
|
1147 |
* Returns the Success or Error Message.
|
1148 |
* Delete the skin
|
1149 |
+
*/
|
1150 |
+
function mif_delete_skin()
|
1151 |
+
{
|
1152 |
+
/* Getting the skin ID. */
|
1153 |
+
$skin_id = intval( $_POST['skin_id'] );
|
1154 |
+
if ( wp_verify_nonce( $_POST['mif_nonce'], 'mif-ajax-nonce' ) ) {
|
1155 |
+
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
1156 |
+
$skin_deleted = wp_delete_post( $skin_id, true );
|
1157 |
+
}
|
1158 |
+
}
|
1159 |
+
/* If skin is deleted successfully. */
|
1160 |
+
|
1161 |
+
if ( isset( $skin_deleted ) ) {
|
1162 |
+
$returned_arr = array( __( 'Skin is successfully deleted.', 'easy-facebook-likebox' ), $skin_id );
|
1163 |
+
/* Sending back the values. */
|
1164 |
+
echo wp_send_json_success( $returned_arr ) ;
|
1165 |
+
die;
|
1166 |
+
} else {
|
1167 |
+
echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', 'easy-facebook-likebox' ) ) ;
|
1168 |
+
die;
|
1169 |
+
}
|
1170 |
+
|
1171 |
+
exit;
|
1172 |
+
}
|
1173 |
+
|
1174 |
/*
|
1175 |
* mif_create_skin_url on ajax.
|
1176 |
* Returns the URL.
|
1177 |
+
*/
|
1178 |
+
function mif_create_skin_url()
|
1179 |
+
{
|
1180 |
+
/* Getting the skin ID. */
|
1181 |
+
$skin_id = intval( $_POST['skin_id'] );
|
1182 |
+
$selectedVal = intval( $_POST['selectedVal'] );
|
1183 |
+
$page_id = intval( $_POST['page_id'] );
|
1184 |
+
$page_permalink = get_permalink( $page_id );
|
1185 |
+
|
1186 |
+
if ( wp_verify_nonce( $_POST['mif_nonce'], 'mif-ajax-nonce' ) ) {
|
1187 |
+
$customizer_url = admin_url( 'customize.php' );
|
1188 |
+
/* If permalink got successfully */
|
1189 |
+
if ( isset( $page_permalink ) ) {
|
1190 |
+
/* Include permalinks for making*/
|
1191 |
+
$customizer_url = add_query_arg( array(
|
1192 |
+
'url' => urlencode( $page_permalink ),
|
1193 |
+
'autofocus[panel]' => 'mif_skins_panel',
|
1194 |
+
'mif_skin_id' => $skin_id,
|
1195 |
+
'mif_customize' => 'yes',
|
1196 |
+
'mif_account_id' => $selectedVal,
|
1197 |
+
), $customizer_url );
|
1198 |
+
}
|
1199 |
+
// echo wp_send_json_error( $customizer_url ) ; die;
|
1200 |
+
echo wp_send_json_success( array( __( 'Please wait! We are generating preview for you.', 'easy-facebook-likebox' ), $customizer_url ) ) ;
|
1201 |
+
die;
|
1202 |
+
} else {
|
1203 |
+
echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', 'easy-facebook-likebox' ) ) ;
|
1204 |
+
die;
|
1205 |
+
}
|
1206 |
+
|
1207 |
+
}
|
1208 |
+
|
1209 |
+
/* mif_create_skin Method ends here. */
|
1210 |
/*
|
1211 |
* mif_delete_transient on ajax.
|
1212 |
* Returns the Success or Error Message.
|
1213 |
* Delete the transient
|
1214 |
+
*/
|
1215 |
+
function mif_delete_transient()
|
1216 |
+
{
|
1217 |
+
/* Getting the skin ID. */
|
1218 |
+
$transient_id = sanitize_text_field( $_POST['transient_id'] );
|
1219 |
+
$replaced_value = str_replace( '_transient_', '', $transient_id );
|
1220 |
+
if ( wp_verify_nonce( $_POST['mif_nonce'], 'mif-ajax-nonce' ) ) {
|
1221 |
+
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
1222 |
+
$mif_deleted_trans = delete_transient( $replaced_value );
|
1223 |
+
}
|
1224 |
+
}
|
1225 |
+
/* If skin is deleted successfully. */
|
1226 |
+
|
1227 |
+
if ( isset( $mif_deleted_trans ) ) {
|
1228 |
+
$returned_arr = array( __( 'Cache is successfully deleted.', 'easy-facebook-likebox' ), $transient_id );
|
1229 |
+
/* Sending back the values. */
|
1230 |
+
echo wp_send_json_success( $returned_arr ) ;
|
1231 |
+
die;
|
1232 |
+
} else {
|
1233 |
+
echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', 'easy-facebook-likebox' ) ) ;
|
1234 |
+
die;
|
1235 |
+
}
|
1236 |
+
|
1237 |
+
exit;
|
1238 |
+
}
|
1239 |
+
|
1240 |
+
/* mif_delete_transient Method ends here. */
|
1241 |
+
/* mif_disable_app_notification__premium_only Method ends here. */
|
1242 |
+
/* retrieves the attachment ID from the file URL */
|
1243 |
+
function mif_get_image_id( $image_url )
|
1244 |
+
{
|
1245 |
+
/* Getting the global wpdb */
|
1246 |
+
global $wpdb ;
|
1247 |
+
/* Getting attachment ID from custom query */
|
1248 |
+
$attachment = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE guid='%s';", $image_url ) );
|
1249 |
+
/* Returning back the attachment ID */
|
1250 |
+
return $attachment[0];
|
1251 |
+
}
|
1252 |
+
|
1253 |
+
/* mif_get_image_id Method ends here. */
|
1254 |
/*
|
1255 |
* It will get the remote URL, Retreive it and return decoded data.
|
1256 |
+
*/
|
1257 |
+
public function mif_get_data( $url )
|
1258 |
+
{
|
1259 |
/*
|
1260 |
* Getting the data from remote URL.
|
1261 |
+
*/
|
1262 |
+
$json_data = wp_remote_retrieve_body( wp_remote_get( $url ) );
|
1263 |
/*
|
1264 |
* Decoding the data.
|
1265 |
+
*/
|
1266 |
+
$decoded_data = json_decode( $json_data );
|
1267 |
/*
|
1268 |
* Returning it to back.
|
1269 |
+
*/
|
1270 |
+
return $decoded_data;
|
1271 |
+
}
|
1272 |
+
|
1273 |
+
/* mif_mif_get_data method ends here. */
|
1274 |
/*
|
1275 |
* Will return All Transients collection.
|
1276 |
+
*/
|
1277 |
+
public function mif_transients()
|
1278 |
+
{
|
1279 |
+
$FTA = new Feed_Them_All();
|
1280 |
+
$fta_settings = $FTA->fta_get_settings();
|
1281 |
+
$mif_auth_accounts = array();
|
1282 |
+
$trans_name = null;
|
1283 |
+
$returner = null;
|
1284 |
/*
|
1285 |
* Getting saved access token.
|
1286 |
+
*/
|
1287 |
+
if ( isset( $fta_settings['plugins']['instagram']['access_token'] ) ) {
|
1288 |
+
$access_token = $fta_settings['plugins']['instagram']['access_token'];
|
1289 |
+
}
|
1290 |
/*
|
1291 |
* Initializing global wpdb varibale.
|
1292 |
+
*/
|
1293 |
+
global $wpdb ;
|
1294 |
/*
|
1295 |
* Custom Query for getting all transients from wp
|
1296 |
+
*/
|
1297 |
+
$mif_trans_sql = "SELECT `option_name` AS `name`, `option_value` AS `value`\r\n\t\t FROM {$wpdb->options}\r\n\t\t WHERE `option_name` LIKE '%transient_%'\r\n\t\t ORDER BY `option_name`";
|
1298 |
/*
|
1299 |
* Getting results of the cahche.
|
1300 |
+
*/
|
1301 |
+
$mif_trans_results = $wpdb->get_results( $mif_trans_sql );
|
1302 |
/*
|
1303 |
* Initializing empty array for mif transients.
|
1304 |
+
*/
|
1305 |
+
$mif_trans_posts = array();
|
1306 |
/*
|
1307 |
* Initializing empty array for mif bio transients.
|
1308 |
+
*/
|
1309 |
+
$mif_trans_bio = array();
|
1310 |
/*
|
1311 |
* Looping thorugh transients if got any results.
|
1312 |
+
*/
|
1313 |
+
if ( $mif_trans_results ) {
|
1314 |
+
foreach ( $mif_trans_results as $mif_trans_result ) {
|
1315 |
/*
|
1316 |
* Checking Mif exists in transient slug then save that in mif transient array.
|
1317 |
+
*/
|
1318 |
+
if ( strpos( $mif_trans_result->name, 'mif' ) !== false && strpos( $mif_trans_result->name, 'posts' ) !== false && strpos( $mif_trans_result->name, 'timeout' ) == false ) {
|
1319 |
+
$mif_trans_posts[$mif_trans_result->name] = $mif_trans_result->value;
|
1320 |
+
}
|
1321 |
/*
|
1322 |
* Checking Mif exists in transient slug then save that in mif transient array.
|
1323 |
+
*/
|
1324 |
+
if ( strpos( $mif_trans_result->name, 'mif' ) !== false && strpos( $mif_trans_result->name, 'bio' ) !== false && strpos( $mif_trans_result->name, 'timeout' ) == false ) {
|
1325 |
+
$mif_trans_bio[$mif_trans_result->name] = $mif_trans_result->value;
|
1326 |
+
}
|
1327 |
+
}
|
1328 |
+
}
|
1329 |
/*
|
1330 |
* Bio Cached.
|
1331 |
+
*/
|
1332 |
+
|
1333 |
+
if ( $mif_trans_bio ) {
|
1334 |
$returner .= '<ul class="collection with-header mif_bio_collection">
|
1335 |
+
<li class="collection-header"><h5>' . __( 'Profile Data', 'easy-facebook-likebox' ) . '</h5></li>';
|
1336 |
+
foreach ( $mif_trans_bio as $key => $value ) {
|
1337 |
+
$pieces = explode( '-', $key );
|
1338 |
+
$trans_name = array_pop( $pieces );
|
1339 |
+
// if(isset($fta_settings['plugins']['instagram']['authenticated_accounts']))
|
1340 |
+
// $mif_auth_accounts = $fta_settings['plugins']['instagram']['authenticated_accounts'];
|
1341 |
+
// $trans_name = $mif_auth_accounts[$trans_name]['username'];
|
1342 |
$returner .= '<li class="collection-item ' . $key . '">
|
1343 |
<div>' . $trans_name . '
|
1344 |
<a href="javascript:void(0);" data-mif_collection="mif_bio_collection" data-mif_trans="' . $key . '" class="secondary-content mif_del_trans"><i class="material-icons">delete</i></a>
|
1345 |
</div>
|
1346 |
+
</li>';
|
1347 |
+
}
|
1348 |
+
$returner .= '</ul>';
|
1349 |
+
}
|
1350 |
+
|
1351 |
/*
|
1352 |
* Posts Cached.
|
1353 |
+
*/
|
1354 |
+
|
1355 |
+
if ( $mif_trans_posts ) {
|
1356 |
$returner .= '<ul class="collection with-header mif_users_collection">
|
1357 |
+
<li class="collection-header"><h5>' . __( 'Profile Feeds', 'easy-facebook-likebox' ) . '</h5></li>';
|
1358 |
+
foreach ( $mif_trans_posts as $key => $value ) {
|
1359 |
+
$pieces = explode( '-', $key );
|
1360 |
+
$trans_name = array_pop( $pieces );
|
1361 |
+
$trans_name = $pieces['1'];
|
1362 |
+
// echo "<pre>"; print_r($pieces);exit();
|
1363 |
+
// if(isset($fta_settings['plugins']['instagram']['authenticated_accounts']))
|
1364 |
+
// $mif_auth_accounts = $fta_settings['plugins']['instagram']['authenticated_accounts'];
|
1365 |
+
// $trans_name = $mif_auth_accounts[$trans_name]['username'];
|
1366 |
$returner .= '<li class="collection-item ' . $key . '">
|
1367 |
<div>' . $trans_name . '
|
1368 |
<a href="javascript:void(0);" data-mif_collection="mif_users_collection" data-mif_trans="' . $key . '" class="secondary-content mif_del_trans"><i class="material-icons">delete</i></a>
|
1369 |
</div>
|
1370 |
+
</li>';
|
1371 |
+
}
|
1372 |
+
$returner .= '</ul>';
|
1373 |
+
}
|
1374 |
+
|
1375 |
+
if ( empty($mif_trans_posts) && empty($mif_trans_bio) ) {
|
1376 |
+
$returner = '<h4>' . __( 'Nothing Found!', 'mif' ) . '</h4> <p>' . __( 'Nothing cached at the moment.Feeds will be automatically after showing the feeds on frontend.', 'easy-facebook-likebox' ) . '</p>';
|
1377 |
+
}
|
1378 |
/*
|
1379 |
* Returning it to back.
|
1380 |
+
*/
|
1381 |
+
return $returner;
|
1382 |
+
}
|
1383 |
+
|
1384 |
+
/* mif_transients method ends here. */
|
1385 |
/*
|
1386 |
* Return the user ID from access token.
|
1387 |
+
*/
|
1388 |
+
public function mif_get_user_id( $access_token )
|
1389 |
+
{
|
1390 |
+
$access_token_exploded = explode( ".", $access_token );
|
1391 |
/*
|
1392 |
* Getting saved user id.
|
1393 |
+
*/
|
1394 |
+
return $access_token_exploded['0'];
|
1395 |
+
}
|
1396 |
+
|
1397 |
+
/* mif_get_bio method ends here. */
|
1398 |
/*
|
1399 |
* Return the user name from access token.
|
1400 |
+
*/
|
1401 |
+
public function mif_get_user_name( $access_token )
|
1402 |
+
{
|
1403 |
+
$FTA = new Feed_Them_All();
|
1404 |
+
$fta_settings = $FTA->fta_get_settings();
|
1405 |
/*
|
1406 |
* Getting the authenticated accounts.
|
1407 |
+
*/
|
1408 |
+
$authenticated_accounts = $fta_settings['plugins']['instagram']['authenticated_accounts'];
|
1409 |
/*
|
1410 |
* Getting the user_id from access token.
|
1411 |
+
*/
|
1412 |
+
$mif_user_id = $this->mif_get_user_id( $access_token );
|
1413 |
/*
|
1414 |
* Returning the user name.
|
1415 |
+
*/
|
1416 |
+
return $authenticated_accounts[$mif_user_id]['username'];
|
1417 |
+
}
|
1418 |
+
|
1419 |
+
/*
|
1420 |
+
* Change API type to personal or business
|
1421 |
+
*/
|
1422 |
+
public function mif_switch_api_type()
|
1423 |
+
{
|
1424 |
+
/*
|
1425 |
+
* Getting access token.
|
1426 |
+
*/
|
1427 |
+
$switch_to = $_POST['switch_to'];
|
1428 |
+
$FTA = new Feed_Them_All();
|
1429 |
+
/*
|
1430 |
+
* Getting All Settings
|
1431 |
+
*/
|
1432 |
+
$fta_settings = $FTA->fta_get_settings();
|
1433 |
+
$fta_settings['plugins']['instagram']['selected_type'] = $switch_to;
|
1434 |
+
if ( wp_verify_nonce( $_POST['mif_nonce'], 'mif-ajax-nonce' ) ) {
|
1435 |
+
|
1436 |
+
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
1437 |
+
$mif_saved = update_option( 'fta_settings', $fta_settings );
|
1438 |
+
|
1439 |
+
if ( isset( $mif_saved ) ) {
|
1440 |
+
/*
|
1441 |
+
* Return success message and die.
|
1442 |
+
*/
|
1443 |
+
echo wp_send_json_success( __( 'Successfully changed!', 'easy-facebook-likebox' ) ) ;
|
1444 |
+
die;
|
1445 |
+
} else {
|
1446 |
+
/*
|
1447 |
+
* Return error message and die.
|
1448 |
+
*/
|
1449 |
+
echo wp_send_json_error( __( 'Something went wrong! Refresh the page and try Again', 'easy-facebook-likebox' ) ) ;
|
1450 |
+
die;
|
1451 |
+
}
|
1452 |
+
|
1453 |
+
}
|
1454 |
+
|
1455 |
+
}
|
1456 |
+
}
|
1457 |
+
|
1458 |
+
/*
|
1459 |
+
* Get the access token and save back into DB
|
1460 |
+
*/
|
1461 |
+
public function mif_save_access_token()
|
1462 |
+
{
|
1463 |
+
/*
|
1464 |
+
* Getting access token.
|
1465 |
+
*/
|
1466 |
+
$access_token = $_POST['access_token'];
|
1467 |
+
$mif_accounts_html = '';
|
1468 |
+
/*
|
1469 |
+
* Getting the data of user.
|
1470 |
+
*/
|
1471 |
+
$self_data = "https://graph.instagram.com/me?fields=id,username&access_token={$access_token}";
|
1472 |
+
/*
|
1473 |
+
* Getting the data of user in decoded form.
|
1474 |
+
*/
|
1475 |
+
$self_decoded_data = $this->mif_get_data( $self_data );
|
1476 |
+
|
1477 |
+
if ( isset( $self_decoded_data->error ) && !empty($self_decoded_data->error) ) {
|
1478 |
+
echo wp_send_json_error( $self_decoded_data->error->message ) ;
|
1479 |
+
die;
|
1480 |
+
} else {
|
1481 |
+
|
1482 |
+
if ( isset( $self_decoded_data ) && !empty($self_decoded_data) ) {
|
1483 |
+
$FTA = new Feed_Them_All();
|
1484 |
+
$fta_settings = $FTA->fta_get_settings();
|
1485 |
+
$mif_accounts_html .= '<ul class="collection with-header"> <li class="collection-header"><h5>' . __( 'Connected Instagram Account', 'easy-facebook-likebox' ) . '</h5>
|
1486 |
+
<a href="#fta-remove-at" class="modal-trigger fta-remove-at-btn tooltipped" data-type="personal" data-position="left" data-delay="50" data-tooltip="' . __( 'Delete Access Token', 'easy-facebook-likebox' ) . '"><i class="material-icons">delete_forever</i></a></li>
|
1487 |
+
<li class="collection-item li-' . $self_decoded_data->id . '">
|
1488 |
+
|
1489 |
+
<span class="title">' . $self_decoded_data->username . '</span>
|
1490 |
+
<p>' . __( 'ID:', 'easy-facebook-likebox' ) . ' ' . $self_decoded_data->id . ' <i class="material-icons efbl_copy_id tooltipped" data-position="right" data-clipboard-text="' . $self_decoded_data->id . '" data-delay="100" data-tooltip="' . __( 'Copy', 'easy-facebook-likebox' ) . '">content_copy</i></p>
|
1491 |
+
</li>
|
1492 |
+
</ul>';
|
1493 |
+
$fta_settings['plugins']['instagram']['instagram_connected_account'][$self_decoded_data->id];
|
1494 |
+
$fta_settings['plugins']['instagram']['instagram_connected_account'][$self_decoded_data->id]['username'] = $self_decoded_data->username;
|
1495 |
+
$fta_settings['plugins']['instagram']['instagram_connected_account'][$self_decoded_data->id]['access_token'] = $access_token;
|
1496 |
+
$fta_settings['plugins']['instagram']['selected_type'] = 'personal';
|
1497 |
+
$mif_saved = update_option( 'fta_settings', $fta_settings );
|
1498 |
+
|
1499 |
+
if ( isset( $mif_saved ) ) {
|
1500 |
+
/*
|
1501 |
+
* Return success message and die.
|
1502 |
+
*/
|
1503 |
+
echo wp_send_json_success( array( __( 'Successfully Authenticated! Taking you to next step', 'easy-facebook-likebox' ), $mif_accounts_html ) ) ;
|
1504 |
+
die;
|
1505 |
+
} else {
|
1506 |
+
/*
|
1507 |
+
* Return error message and die.
|
1508 |
+
*/
|
1509 |
+
echo wp_send_json_error( __( 'Something went wrong! Refresh the page and try Again', 'easy-facebook-likebox' ) ) ;
|
1510 |
+
die;
|
1511 |
+
}
|
1512 |
+
|
1513 |
+
} else {
|
1514 |
+
/*
|
1515 |
+
* Return error message and die.
|
1516 |
+
*/
|
1517 |
+
echo wp_send_json_error( __( 'Something went wrong! Refresh the page and try Again', 'easy-facebook-likebox' ) ) ;
|
1518 |
+
die;
|
1519 |
+
}
|
1520 |
+
|
1521 |
+
}
|
1522 |
+
|
1523 |
+
}
|
1524 |
+
|
1525 |
+
/*
|
1526 |
+
* Get the access token and save back into DB
|
1527 |
+
*/
|
1528 |
+
public function mif_save_business_access_token_cb()
|
1529 |
+
{
|
1530 |
+
/*
|
1531 |
+
* Getting the access token.
|
1532 |
+
*/
|
1533 |
+
$access_token = $_POST['access_token'];
|
1534 |
+
/*
|
1535 |
+
* Getting the access token.
|
1536 |
+
*/
|
1537 |
+
$id = $_POST['id'];
|
1538 |
+
/*
|
1539 |
+
* All accounts API endpoint
|
1540 |
+
*/
|
1541 |
+
$fta_api_url = 'https://graph.facebook.com/me/accounts?fields=access_token,username,id,name,fan_count,category,about&access_token=' . $access_token;
|
1542 |
+
$args = array(
|
1543 |
+
'timeout' => 150,
|
1544 |
+
'sslverify' => false,
|
1545 |
+
);
|
1546 |
+
/*
|
1547 |
+
* Getting all accounts
|
1548 |
+
*/
|
1549 |
+
$fta_pages = wp_remote_get( $fta_api_url, $args );
|
1550 |
+
/*
|
1551 |
+
* Descoding the array
|
1552 |
+
*/
|
1553 |
+
$fb_pages = json_decode( $fta_pages['body'] );
|
1554 |
+
/*
|
1555 |
+
* Init array
|
1556 |
+
*/
|
1557 |
+
$approved_pages = array();
|
1558 |
+
/*
|
1559 |
+
* If pages exists loop over and save by ID key.
|
1560 |
+
*/
|
1561 |
+
|
1562 |
+
if ( $fb_pages->data ) {
|
1563 |
+
$title = __( 'Connected Instagram Accounts', 'easy-facebook-likebox' );
|
1564 |
+
$efbl_all_pages_html = '<ul class="collection with-header"> <li class="collection-header"><h5>' . $title . '</h5>
|
1565 |
+
<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>';
|
1566 |
+
foreach ( $fb_pages->data as $efbl_page ) {
|
1567 |
+
$page_logo_trasneint_name = "esf_logo_" . $efbl_page->id;
|
1568 |
+
$auth_img_src = get_transient( $page_logo_trasneint_name );
|
1569 |
+
|
1570 |
+
if ( !$auth_img_src || '' == $auth_img_src ) {
|
1571 |
+
//Get the image suource of author
|
1572 |
+
$auth_img_src = 'https://graph.facebook.com/' . $efbl_page->id . '/picture?type=large&redirect=0&access_token=' . $access_token;
|
1573 |
+
if ( $auth_img_src ) {
|
1574 |
+
$auth_img_src = json_decode( jws_fetchUrl( $auth_img_src ) );
|
1575 |
+
}
|
1576 |
+
if ( $auth_img_src->data->url ) {
|
1577 |
+
$auth_img_src = $auth_img_src->data->url;
|
1578 |
+
}
|
1579 |
+
//Store in a transient for 6 months
|
1580 |
+
$auth_img_src = set_transient( $page_logo_trasneint_name, $auth_img_src, 180 * 60 * 60 * 24 );
|
1581 |
+
}
|
1582 |
+
|
1583 |
+
$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;
|
1584 |
+
/*
|
1585 |
+
* Getting all accounts
|
1586 |
+
*/
|
1587 |
+
$fta_insta_accounts = wp_remote_get( $fta_insta_api_url, $args );
|
1588 |
+
/*
|
1589 |
+
* Descoding the array
|
1590 |
+
*/
|
1591 |
+
$fta_insta_accounts = json_decode( $fta_insta_accounts['body'] );
|
1592 |
+
$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;
|
1593 |
+
/*
|
1594 |
+
* Getting all accounts
|
1595 |
+
*/
|
1596 |
+
$fta_insta_connected_account = wp_remote_get( $fta_insta_connected_api_url, $args );
|
1597 |
+
/*
|
1598 |
+
* Descoding the array
|
1599 |
+
*/
|
1600 |
+
$fta_insta_connected_account = json_decode( $fta_insta_connected_account['body'] );
|
1601 |
+
if ( isset( $auth_img_src->error ) && !empty($auth_img_src->error) ) {
|
1602 |
+
$auth_img_src = null;
|
1603 |
+
}
|
1604 |
+
if ( 'insta' == $id ) {
|
1605 |
+
if ( $fta_insta_connected_account->ig_id ) {
|
1606 |
+
$efbl_all_pages_html .= sprintf(
|
1607 |
+
'<li class="collection-item avatar fta_insta_connected_account li-' . $fta_insta_connected_account->ig_id . '">
|
1608 |
+
|
1609 |
+
<a href="https://www.instagram.com/' . $fta_insta_connected_account->username . '" target="_blank">
|
1610 |
+
<img src="%2$s" alt="" class="circle">
|
1611 |
+
</a>
|
1612 |
+
<span class="title">%1$s</span>
|
1613 |
+
<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>
|
1614 |
+
</li>',
|
1615 |
+
$fta_insta_connected_account->name,
|
1616 |
+
$fta_insta_connected_account->profile_picture_url,
|
1617 |
+
$fta_insta_connected_account->id,
|
1618 |
+
__( 'Instagram account connected with ' . $efbl_page->name . '', 'easy-facebook-likebox' ),
|
1619 |
+
$fta_insta_connected_account->username,
|
1620 |
+
__( 'ID:', 'easy-facebook-likebox' ),
|
1621 |
+
__( 'Copy', 'easy-facebook-likebox' )
|
1622 |
+
);
|
1623 |
+
}
|
1624 |
+
}
|
1625 |
+
$efbl_page = (array) $efbl_page;
|
1626 |
+
/*
|
1627 |
+
* Making it by ID
|
1628 |
+
*/
|
1629 |
+
$approved_pages[$efbl_page['id']] = $efbl_page;
|
1630 |
+
$approved_pages[$efbl_page['id']]['instagram_accounts'] = $fta_insta_accounts;
|
1631 |
+
$approved_pages[$efbl_page['id']]['instagram_connected_account'] = $fta_insta_connected_account;
|
1632 |
+
}
|
1633 |
+
$efbl_all_pages_html .= '</ul>';
|
1634 |
+
}
|
1635 |
+
|
1636 |
+
/*
|
1637 |
+
* All accounts API endpoint
|
1638 |
+
*/
|
1639 |
+
$fta_self_url = 'https://graph.facebook.com/me?fields=id,name&access_token=' . $access_token;
|
1640 |
+
/*
|
1641 |
+
* Getting all accounts
|
1642 |
+
*/
|
1643 |
+
$fta_self_data = wp_remote_get( $fta_self_url, $args );
|
1644 |
+
/*
|
1645 |
+
* Descoding the array
|
1646 |
+
*/
|
1647 |
+
$fta_self_data = json_decode( $fta_self_data['body'] );
|
1648 |
+
$fta_self_data = (array) $fta_self_data;
|
1649 |
+
/*
|
1650 |
+
* Getting Main Class
|
1651 |
+
*/
|
1652 |
+
$FTA = new Feed_Them_All();
|
1653 |
+
/*
|
1654 |
+
* Getting All Settings
|
1655 |
+
*/
|
1656 |
+
$fta_settings = $FTA->fta_get_settings();
|
1657 |
+
$fta_settings['plugins']['facebook']['approved_pages'] = $approved_pages;
|
1658 |
+
$fta_settings['plugins']['facebook']['access_token'] = $access_token;
|
1659 |
+
$fta_settings['plugins']['facebook']['author'] = $fta_self_data;
|
1660 |
+
$fta_settings['plugins']['instagram']['selected_type'] = 'business';
|
1661 |
+
/*
|
1662 |
+
* Saving values in wp options table.
|
1663 |
+
*/
|
1664 |
+
$efbl_saved = update_option( 'fta_settings', $fta_settings );
|
1665 |
+
/*
|
1666 |
+
* Checking if option is saved successfully.
|
1667 |
+
*/
|
1668 |
+
|
1669 |
+
if ( isset( $efbl_saved ) ) {
|
1670 |
+
/*
|
1671 |
+
* Return success message and die.
|
1672 |
+
*/
|
1673 |
+
echo wp_send_json_success( array( __( 'Successfully Authenticated! Taking you to next step', 'easy-facebook-likebox' ), $efbl_all_pages_html ) ) ;
|
1674 |
+
die;
|
1675 |
+
} else {
|
1676 |
+
/*
|
1677 |
+
* Return error message and die.
|
1678 |
+
*/
|
1679 |
+
echo wp_send_json_error( __( 'Something went wrong! Refresh the page and try Again', 'easy-facebook-likebox' ) ) ;
|
1680 |
+
die;
|
1681 |
+
}
|
1682 |
+
|
1683 |
+
}
|
1684 |
+
|
1685 |
+
/* efbl_save_access_token_cb Method ends here. */
|
1686 |
+
/* mif_get_user_name method ends here. */
|
1687 |
+
function mif_head()
|
1688 |
+
{
|
1689 |
+
echo "<script>function MIFremoveURLParameter(url, parameter) {\r\n //prefer to use l.search if you have a location/link object\r\n var urlparts= url.split('?'); \r\n if (urlparts.length>=2) {\r\n\r\n var prefix= encodeURIComponent(parameter)+'=';\r\n var pars= urlparts[1].split(/[&;]/g);\r\n\r\n //reverse iteration as may be destructive\r\n for (var i= pars.length; i-- > 0;) { \r\n //idiom for string.startsWith\r\n if (pars[i].lastIndexOf(prefix, 0) !== -1) { \r\n pars.splice(i, 1);\r\n }\r\n }\r\n\r\n url= urlparts[0]+'?'+pars.join('&');\r\n return url;\r\n } else {\r\n return url;\r\n }\r\n} </script>" ;
|
1690 |
+
}
|
1691 |
+
|
1692 |
+
/* Prints the script which will automatically get the access token from URL and save in DB after authentication */
|
1693 |
+
private function mif_auth_access_token_script()
|
1694 |
+
{
|
1695 |
+
/*
|
1696 |
+
* If Acees Token retrived successfully save it in database automatically.
|
1697 |
+
*/
|
1698 |
+
|
1699 |
+
if ( isset( $_GET['access_token'] ) && !empty($_GET['access_token']) || isset( $_GET['mif_access_token'] ) && !empty($_GET['mif_access_token']) ) {
|
1700 |
+
|
1701 |
+
if ( !empty($_GET['access_token']) ) {
|
1702 |
+
$access_token = $_GET['access_token'];
|
1703 |
+
$action = 'mif_save_business_access_token';
|
1704 |
+
$remove_pram = 'access_token';
|
1705 |
+
}
|
1706 |
+
|
1707 |
+
|
1708 |
+
if ( !empty($_GET['mif_access_token']) ) {
|
1709 |
+
$access_token = $_GET['mif_access_token'];
|
1710 |
+
$action = 'mif_save_access_token';
|
1711 |
+
$remove_pram = 'mif_access_token';
|
1712 |
+
}
|
1713 |
+
|
1714 |
+
$access_token = preg_replace( '/[^A-Za-z0-9]/', "", $access_token );
|
1715 |
+
|
1716 |
+
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
1717 |
+
$script = ' <script>
|
1718 |
+
jQuery( document ).ready(function( $ ) {
|
1719 |
+
|
1720 |
+
jQuery("#toast-container").slideUp("slow");
|
1721 |
+
|
1722 |
+
Materialize.Toast.removeAll();
|
1723 |
+
|
1724 |
+
/*
|
1725 |
+
* Show the dialog for Saving.
|
1726 |
+
*/
|
1727 |
+
Materialize.toast("Please wait! Authenticating...", 50000000);
|
1728 |
+
|
1729 |
+
var url = window.location.href;
|
1730 |
+
|
1731 |
+
url = MIFremoveURLParameter(url, "' . $remove_pram . '");
|
1732 |
+
|
1733 |
+
jQuery("#efbl_access_token").text("' . $access_token . '");
|
1734 |
+
|
1735 |
+
var data={\'action\':\'' . $action . '\',
|
1736 |
+
\'access_token\':\'' . $access_token . '\',
|
1737 |
+
\'id\' : \'insta\'
|
1738 |
+
}
|
1739 |
+
|
1740 |
+
jQuery.ajax({
|
1741 |
+
|
1742 |
+
url: "' . admin_url( 'admin-ajax.php' ) . '",
|
1743 |
+
type: "post",
|
1744 |
+
data: data,
|
1745 |
+
dataType: "json",
|
1746 |
+
success: function(response ) {
|
1747 |
+
|
1748 |
+
// return;
|
1749 |
+
window.history.pushState("newurl", "newurl", url);
|
1750 |
+
// jQuery("#toast-container").slideUp("slow");
|
1751 |
+
|
1752 |
+
Materialize.Toast.removeAll();
|
1753 |
+
|
1754 |
+
|
1755 |
+
|
1756 |
+
/*
|
1757 |
+
* Show the dialog.
|
1758 |
+
*/
|
1759 |
+
|
1760 |
+
if (response.success) {
|
1761 |
+
|
1762 |
+
var pages_html = response.data["1"];
|
1763 |
+
|
1764 |
+
// console.log(response.data);return;
|
1765 |
+
Materialize.toast(response.data["0"], 3000);
|
1766 |
+
jQuery("#toast-container").addClass("efbl_green");
|
1767 |
+
jQuery(".efbl_all_pages").html(" ").html(response.data["1"]).slideDown("slow");
|
1768 |
+
jQuery(".fta_noti_holder").fadeOut("slow");
|
1769 |
+
setTimeout(function(){
|
1770 |
+
window.location.href = "#mif-shortcode";
|
1771 |
+
window.location.reload();
|
1772 |
+
}, 2000);
|
1773 |
+
}else{
|
1774 |
+
Materialize.toast(response.data, 3000);
|
1775 |
+
|
1776 |
+
jQuery("#toast-container").addClass("efbl_red");
|
1777 |
+
|
1778 |
+
}
|
1779 |
+
}
|
1780 |
+
});
|
1781 |
+
|
1782 |
+
|
1783 |
+
});
|
1784 |
+
</script>';
|
1785 |
+
echo $script ;
|
1786 |
+
}
|
1787 |
+
|
1788 |
+
}
|
1789 |
+
|
1790 |
+
}
|
1791 |
+
|
1792 |
+
/* Returns the html of authenticated accounts */
|
1793 |
+
private function __mif_authenticated_accounts_html()
|
1794 |
+
{
|
1795 |
+
$FTA = new Feed_Them_All();
|
1796 |
+
$fta_settings = $FTA->fta_get_settings();
|
1797 |
+
$mif_insta_account = null;
|
1798 |
+
$efbl_ap_class = '';
|
1799 |
+
$mif_personal_connected_accounts = $fta_settings['plugins']['instagram']['instagram_connected_account'];
|
1800 |
+
|
1801 |
+
if ( mif_instagram_type() == 'personal' && !empty($mif_personal_connected_accounts) ) {
|
1802 |
+
foreach ( $mif_personal_connected_accounts as $personal_id => $mif_personal_connected_account ) {
|
1803 |
+
$efbl_all_pages_html = '<ul class="collection with-header"> <li class="collection-header"><h5>' . __( 'Connected Instagram Account', 'easy-facebook-likebox' ) . '</h5>
|
1804 |
+
<a href="#mif-remove-at" class="modal-trigger fta-remove-at-btn tooltipped" data-type="personal" data-position="left" data-delay="50" data-tooltip="' . __( 'Delete Access Token', 'easy-facebook-likebox' ) . '"><i class="material-icons">delete_forever</i></a></li>
|
1805 |
+
<li class="collection-item li-' . $personal_id . '">
|
1806 |
+
|
1807 |
+
<span class="title">' . $mif_personal_connected_account['username'] . '</span>
|
1808 |
+
<p>' . __( 'ID:', 'easy-facebook-likebox' ) . ' ' . $personal_id . ' <i class="material-icons efbl_copy_id tooltipped" data-position="right" data-clipboard-text="' . $personal_id . '" data-delay="100" data-tooltip="' . __( 'Copy', 'easy-facebook-likebox' ) . '">content_copy</i></p>
|
1809 |
+
</li>
|
1810 |
+
</ul>';
|
1811 |
+
$mif_users_id_options .= '<option value="' . $personal_id . '">' . $mif_personal_connected_account['username'] . '</option>';
|
1812 |
+
$mif_insta_account = $personal_id;
|
1813 |
+
}
|
1814 |
+
$efbl_ap_class = 'show';
|
1815 |
+
} else {
|
1816 |
+
|
1817 |
+
if ( isset( $fta_settings['plugins']['facebook']['approved_pages'] ) && !empty($fta_settings['plugins']['facebook']['approved_pages']) ) {
|
1818 |
+
$efbl_all_pages_html = '<ul class="collection with-header"> <li class="collection-header"><h5>' . __( 'Connected Instagram Accounts', 'easy-facebook-likebox' ) . '</h5> <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>';
|
1819 |
+
$efbl_ap_class = 'show';
|
1820 |
+
foreach ( $fta_settings['plugins']['facebook']['approved_pages'] as $efbl_page ) {
|
1821 |
+
$fta_insta_connected_account = $efbl_page['instagram_connected_account'];
|
1822 |
+
// echo "<pre>";print_r($fta_insta_connected_account);exit();
|
1823 |
+
|
1824 |
+
if ( isset( $fta_insta_connected_account->ig_id ) && !empty($fta_insta_connected_account->ig_id) ) {
|
1825 |
+
$efbl_ap_class = 'show';
|
1826 |
+
$mif_insta_accounts[] = $fta_insta_connected_account;
|
1827 |
+
$efbl_all_pages_html .= sprintf(
|
1828 |
+
'<li class="collection-item avatar fta_insta_connected_account li-' . $fta_insta_connected_account->ig_id . '">
|
1829 |
+
|
1830 |
+
<a href="https://www.instagram.com/' . $fta_insta_connected_account->username . '" target="_blank">
|
1831 |
+
<img src="%2$s" alt="" class="circle">
|
1832 |
+
</a>
|
1833 |
+
<span class="title">%1$s</span>
|
1834 |
+
<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>
|
1835 |
+
</li>',
|
1836 |
+
$fta_insta_connected_account->name,
|
1837 |
+
$fta_insta_connected_account->profile_picture_url,
|
1838 |
+
$fta_insta_connected_account->id,
|
1839 |
+
__( 'Instagram account connected with ' . $efbl_page['name'] . '', 'easy-facebook-likebox' ),
|
1840 |
+
$fta_insta_connected_account->username,
|
1841 |
+
__( 'ID:', 'easy-facebook-likebox' ),
|
1842 |
+
__( 'Copy', 'easy-facebook-likebox' )
|
1843 |
+
);
|
1844 |
+
} else {
|
1845 |
+
$efbl_ap_class = '';
|
1846 |
+
}
|
1847 |
+
|
1848 |
+
}
|
1849 |
+
$efbl_all_pages_html .= '</ul>';
|
1850 |
+
}
|
1851 |
+
|
1852 |
+
}
|
1853 |
+
|
1854 |
+
|
1855 |
+
if ( mif_instagram_type() != 'personal' ) {
|
1856 |
+
if ( isset( $mif_insta_accounts['0']->id ) ) {
|
1857 |
+
$mif_insta_account = $mif_insta_accounts['0']->id;
|
1858 |
+
}
|
1859 |
+
|
1860 |
+
if ( $mif_insta_accounts ) {
|
1861 |
+
foreach ( $mif_insta_accounts as $mif_insta_single_account ) {
|
1862 |
+
$mif_users_id_options .= '<option value="' . $mif_insta_single_account->id . '" data-icon="' . $mif_insta_single_account->profile_picture_url . '">' . $mif_insta_single_account->username . '</option>';
|
1863 |
+
}
|
1864 |
+
} else {
|
1865 |
+
$mif_users_id_options = '<option value="" disabled selected>' . __( 'No accounts found, Please connect your Instagram account with plugin first', 'easy-facebook-likebox' ) . '</option>';
|
1866 |
+
}
|
1867 |
+
|
1868 |
+
}
|
1869 |
+
|
1870 |
+
return array(
|
1871 |
+
$efbl_all_pages_html,
|
1872 |
+
$efbl_ap_class,
|
1873 |
+
$mif_users_id_options,
|
1874 |
+
$mif_insta_account
|
1875 |
+
);
|
1876 |
+
}
|
1877 |
+
|
1878 |
+
public function mif_remove_access_token()
|
1879 |
+
{
|
1880 |
+
/*
|
1881 |
+
* Getting the Plugin main object.
|
1882 |
+
*/
|
1883 |
+
$Feed_Them_All = new Feed_Them_All();
|
1884 |
+
/*
|
1885 |
+
* Getting the FTA Plugin settings.
|
1886 |
+
*/
|
1887 |
+
$fta_settings = $Feed_Them_All->fta_get_settings();
|
1888 |
+
if ( wp_verify_nonce( $_POST['mif_nonce'], 'mif-ajax-nonce' ) ) {
|
1889 |
+
|
1890 |
+
if ( current_user_can( 'editor' ) || current_user_can( 'administrator' ) ) {
|
1891 |
+
unset( $fta_settings['plugins']['instagram']['instagram_connected_account'] );
|
1892 |
+
$fta_settings['plugins']['instagram']['selected_type'] = 'business';
|
1893 |
+
/*
|
1894 |
+
* Updating the settings back into DB
|
1895 |
+
*/
|
1896 |
+
$delted_data = update_option( 'fta_settings', $fta_settings );
|
1897 |
+
}
|
1898 |
+
|
1899 |
+
}
|
1900 |
+
/*
|
1901 |
+
* If status is successfully changed
|
1902 |
+
*/
|
1903 |
+
|
1904 |
+
if ( isset( $delted_data ) ) {
|
1905 |
+
/*
|
1906 |
+
* Sending back the success message
|
1907 |
+
*/
|
1908 |
+
echo wp_send_json_success( __( 'Deleted', $Feed_Them_All->fta_slug ) ) ;
|
1909 |
+
die;
|
1910 |
+
} else {
|
1911 |
+
/*
|
1912 |
+
* Sending back the error message
|
1913 |
+
*/
|
1914 |
+
echo wp_send_json_error( __( 'Something Went Wrong! Please try again.', $Feed_Them_All->fta_slug ) ) ;
|
1915 |
+
die;
|
1916 |
+
}
|
1917 |
+
|
1918 |
+
}
|
1919 |
+
|
1920 |
+
}
|
1921 |
+
/* MIF_Admin Class ends here. */
|
1922 |
+
$MIF_Admin = new MIF_Admin();
|
1923 |
+
}
|
my-instagram-feed/assets/css/mif_admin_style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@font-face{font-family:"Material Icons";font-style:normal;font-weight:400;src:url(../fonts/material-icons.woff2) format("woff2")}.material-icons{font-family:"Material Icons";font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs a:hover,.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs a{-webkit-transition:all ease-in-out 1s;-moz-transition:all ease-in-out 1s;-o-transition:all ease-in-out 1s;transition:all ease-in-out 1s}.mif-auth-app-noti{float:left;width:98%;border-left:6px solid #80c7a7;padding:10px 60px 10px 10px;position:relative}.mif-auth-app-noti .material-icons{position:absolute;right:10px;top:10px;cursor:pointer}.mif_wrap{float:left;clear:both;position:relative;width:98%;overflow:hidden;background-color:#fff;margin-top:40px}.mif_wrap blockquote{background-color:#26a69a;color:#fff;padding:15px;font-size:13px;border-left:5px solid #6fc2ba;margin:0;float:left}.mif_wrap blockquote.error{background-color:#ed6d62;border-color:#d05d53}.mif_wrap a,.mif_wrap .btn{text-transform:capitalize}.mif_wrap .btn:focus{color:#fff}.mif_wrap .modal{width:30%;top:25% !important}.mif_wrap .modal .mif-close-modal{position:absolute;right:10px;top:10px}.mif_wrap .modal .mif-modal-content{float:none;margin:0 auto;display:table;text-align:center}.mif_wrap .modal .mif-modal-content p{font-size:15px;line-height:1.8}.mif_wrap .modal .mif-modal-content .mif-lock-icon .material-icons{color:#26a69a;font-size:50px}.mif_wrap .modal .mif-modal-content input[type=email]::placeholder{color:#444}.mif_wrap .modal .mif-modal-content .btn{border-radius:0}.mif_wrap .mif_wrap_inner{float:left;width:100%;clear:both;position:relative}.mif_wrap .mif_wrap_inner .mif_loader_wrap{position:absolute;z-index:9;background-color:#f9f9f9;width:100%;height:100%}.mif_wrap .mif_wrap_inner .mif_loader_wrap .fa{position:absolute;top:42%;left:46%;font-size:50px;color:#26a69a;text-align:center}.mif_wrap .mif_wrap_inner .mif_tabs_header{background-color:#25a69a;color:#fff;padding:5px 0;height:56px;float:left;width:100%}.mif_wrap .mif_wrap_inner .mif_tabs_header .mif_tabs_right{float:right;margin-right:20px;margin-top:12px}.mif_wrap .mif_wrap_inner .mif_tabs_header .mif_tabs_right a{color:#fff;font-size:17px}.mif_wrap .mif_wrap_inner .mif_tabs_header .mif_design_tab{display:table;text-align:center;line-height:48px;height:48px;padding:0;margin:0;text-transform:uppercase;color:#fff;padding:0 24px;font-size:14px}.mif_wrap .mif_wrap_inner .mif_tabs_header .mif_design_tab .material-icons{display:table-cell;vertical-align:middle;float:none;width:100%}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs{background-color:transparent;float:left;width:auto;margin-left:17px;padding-right:17px}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs .indicator{background-color:#1bf1e9;margin-bottom:0}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs a{color:#fff;display:inline-block;float:left;padding:0 18px}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs a:hover{opacity:.8}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs a span{text-transform:capitalize}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs a .material-icons{vertical-align:middle;margin-right:5px}.mif_wrap .mif_wrap_inner #mif-help .mif_faqs_wrap h5,.mif_wrap .mif_wrap_inner #mif-help .mif_more_help_wrap h5{font-size:31px;border-bottom:1px solid #e0e0e0;padding-bottom:20px}.mif_wrap .mif_wrap_inner #mif-help .mif_faqs_wrap h4,.mif_wrap .mif_wrap_inner #mif-help .mif_more_help_wrap h4{font-size:22px}.mif_wrap .mif_wrap_inner #mif-help .mif_more_help_wrap h5{padding-top:20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder{padding:15px;float:left;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_tab_c{width:100%;display:inline-block}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_tab_c .mif_auth_notice{background:rgba(241,241,12,.4392156863);padding:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_tab_c .mif_auth_notice a{color:#000;text-decoration:underline}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .row.auth-row{margin-bottom:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .efbl_all_pages{padding:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .efbl_all_pages .collection.with-header{margin-bottom:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder{width:18%;display:inline-block;vertical-align:top}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder .card{padding:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder .card-image{background-color:#26a69a}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder .card-image .mif_confused_img{height:auto;width:auto;margin:0 auto}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder .card-content{padding:16px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder .card-content .card-title{border-bottom:1px solid #9e9e9e;margin:0 0 10px;padding:0 0 10px 0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder .card-content .btn{margin:0 auto;display:table;margin-top:15px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap{float:left;width:100%;margin-bottom:30px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .form_fields{float:left;margin-right:25px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .efbl-red-notice{margin:20px 0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif-shortcode-block{float:left;background-color:#26a69a;color:#fff;padding:15px;font-size:14px;margin-top:0;margin-bottom:20px;border-color:#6fc2ba}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap h5{margin-top:0;margin-bottom:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap h5,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap p{float:left;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_copy_shortcode{float:left;border-radius:0;box-shadow:none;height:auto;background-color:#25a69aad;padding:6px 20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_copy_shortcode i{margin:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .select-wrapper.mif_skin_id .select-dropdown,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .select-wrapper.mif_cache_duration .select-dropdown,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .select-wrapper.mif_multiple_users .select-dropdown{color:#9e9e9e}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .select-wrapper.mif_multiple_users li.disabled input[type=checkbox]:disabled,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .select-wrapper.mif_multiple_users li.disabled label{opacity:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .select-wrapper.mif_multiple_users label{top:-15px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .input-field.col label{left:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_username_field,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_hashtag_field{float:left;clear:both;width:100%;display:none}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_fields{float:left;clear:both;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_shortocode_genrator{float:left;width:100%;margin-top:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_generated_shortcode{float:left;width:100%;clear:both;margin-top:10px;display:none}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .collapsible{float:left;width:100%;margin-top:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .collapsible .collapsible-header{position:relative}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .collapsible .mif-pro-badge{position:absolute;right:30px;padding:8px 16px;line-height:normal;height:auto;top:10px;font-weight:bold}.mif_wrap .mif_wrap_inner .mif_tab_c_holder #mif-skins .mif_skin_head_wrap{float:left;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder #mif-skins .mif_create_skin{height:auto;padding:5px 25px 5px 20px;text-transform:capitalize}.mif_wrap .mif_wrap_inner .mif_tab_c_holder #mif-skins .mif_show_all_skins{margin-bottom:10px;text-transform:capitalize;height:auto;padding:5px 15px 5px 15px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder #mif-skins #mif_new_skin_details #mif_skin_feat_img{width:77.8%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder #mif-skins #mif_new_skin_details .btn.waves-input-wrapper{height:auto;padding:5px 20px 5px 20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder #mif-skins #mif_new_skin_details .btn.create_new_skin_fb_wrap.waves-input-wrapper{padding:3px 23px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_new_skin{display:none;padding:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins{padding-left:0;margin-top:20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin{display:inline-block;margin-right:15px;margin-bottom:15px;padding:10px;margin-top:0;width:24%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .card-title{font-size:20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .skin_free_full{position:absolute;width:100%;height:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .skin_free_full:focus{box-shadow:none}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_redirect,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_delete,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_redirect_free,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_delete_free{width:42%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_redirect span,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_delete span,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_redirect_free span,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_delete_free span{float:none;margin:0 auto;display:table}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_redirect .material-icons,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_delete .material-icons,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_redirect_free .material-icons,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_delete_free .material-icons{position:absolute;right:10px;top:2px;font-size:15px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin_free{background:#f7f5f2;opacity:.955}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin:nth-child(4n+4){margin-right:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .card-image img{height:150px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .card-content{border-bottom:1px solid #baa5a5;padding:20px 0 5px 0;float:left;width:100%;margin-bottom:15px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .selected_layout{padding:6px;float:left;width:100%;background:#27aae4;color:#fff;text-align:center;font-weight:bold;text-transform:capitalize;margin-bottom:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .mif_cta_holder{float:left;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .mif_cta_holder .mif_copy_skin_id{float:left;width:100%;margin-top:20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .mif_cta_holder a:hover,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .mif_cta_holder a:focus{color:#fff}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_create_skin{float:left;margin:20px 0;color:#fff}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_create_skin:hover{color:#fff}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_create_skin #mif_new_skin_details #mif_skin_feat_img_btn{width:auto;margin-left:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap{margin-left:9px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap h5{border-bottom:1px solid #e5e5e5;padding-bottom:20px;margin-bottom:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap p{font-size:15px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap blockquote{padding-top:10px;padding-bottom:10px;font-weight:600;border-left:5px solid #26a69a}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap .collapsible .mif_detail_head{font-size:15px;font-weight:bold}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap .collapsible .collapsible-body{padding:1.5rem}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap .collapsible .collapsible-body p{margin:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .input-field{margin-bottom:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_auth_form{display:none;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder.mif_no_user .collection{border:none}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder{float:left;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder h5{margin-bottom:20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .collection-item .badge{color:#fff;padding:5px 10px;height:auto;margin-bottom:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .collection-item.mif_is_primary .mif_make_primary{display:none}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .mif_user_meta{float:left}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .mif_user_meta img.circle{width:50px;height:50px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .mif_users_auth_actions{float:right;margin-top:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .mif_users_auth_actions .secondary-content{position:relative;margin-top:2px;float:left;font-size:18px;top:0;right:0;margin-left:5px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .mif_users_auth_actions .secondary-content .material-icons{font-size:30px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_auth_btn_st{padding:12px 20px 12px 12px;height:auto;line-height:2.5;float:left;text-transform:capitalize;margin-bottom:20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_auth_btn_st img{height:30px;margin-right:10px;float:left;margin-top:4px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_auth_btn_st:hover,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_auth_btn_st:active{color:#fff}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_show_token_form{display:none;margin-bottom:20px;float:right;background-color:#1b97f3}.mif_wrap .mif_noti_holder{position:relative;display:none}.mif_wrap .mif_noti_holder .mif_arrow{position:absolute;left:32%;top:-2px;width:15%}.mif_wrap .mif_noti_holder .tap-target-wrapper.open{left:auto;position:absolute;right:-238px;top:-100px;color:#fff}.mif_wrap .mif_noti_holder .tap-target-content{width:440px;height:400px;top:10px;right:auto;bottom:0;left:60px;padding:40px;vertical-align:bottom}.mif_wrap .mif_noti_holder .tap-target{background-color:rgba(237,109,98,.9)}.mif_wrap .mif_noti_holder.mif_green_noti .mif_arrow{display:none}.mif_wrap .mif_noti_holder.mif_green_noti .tap-target{background-color:rgba(38,166,154,.9)}.mif_wrap .mif_noti_holder.mif_green_noti .tap-target .tap-target-content p{font-size:15px}#toast-container{top:auto !important;right:auto !important;bottom:0;left:50%;color:#7fc6a6 !important}#toast-container .toast{background-color:#26a69a;padding:15px 60px;font-size:18px}.material-tooltip{padding:10px 20px}.btn:hover,.btn-large:hover{color:#fff}.disabled{pointer-events:none;cursor:default}.toplevel_page_mif.wp-has-submenu ul li:last-child{display:none}.mif_wrap.fta_empty_at #mif-general .auth-row{margin:0}.mif-confirm-modal.modal{width:30%}.mif-confirm-modal .mif-modal-content{float:none;margin:0 auto;display:table;text-align:center;padding-top:0}.mif-confirm-modal .mif-modal-content p{font-size:13px;line-height:1.8;border-bottom:1px solid #ccc;padding-bottom:12px}.mif-confirm-modal .mif-modal-content .mif-lock-icon .material-icons{color:#ed6d62;font-size:60px}.mif-confirm-modal .mif-modal-content .btn{font-size:13px;padding:10px 25px 10px 10px;height:auto;text-transform:capitalize}.mif-confirm-modal .mif-modal-content .btn img{height:31px;margin-right:5px}.mif-confirm-modal .mif-modal-content .btn{padding:10px 20px;height:auto;width:auto;line-height:normal;font-size:15px;border-radius:0;margin-right:30px}.mif-confirm-modal .mif-modal-content .mif_skin_delete{background:#ed6d62}/*# sourceMappingURL=mif_admin_style.css.map */
|
1 |
+
@font-face{font-family:"Material Icons";font-style:normal;font-weight:400;src:url(../fonts/material-icons.woff2) format("woff2")}.material-icons{font-family:"Material Icons";font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs a:hover,.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs a{-webkit-transition:all ease-in-out 1s;-moz-transition:all ease-in-out 1s;-o-transition:all ease-in-out 1s;transition:all ease-in-out 1s}.mif-auth-app-noti{float:left;width:98%;border-left:6px solid #80c7a7;padding:10px 60px 10px 10px;position:relative}.mif-auth-app-noti .material-icons{position:absolute;right:10px;top:10px;cursor:pointer}.mif_wrap{float:left;clear:both;position:relative;width:98%;overflow:hidden;background-color:#fff;margin-top:40px}.mif_wrap blockquote{background-color:#26a69a;color:#fff;padding:15px;font-size:13px;border-left:5px solid #6fc2ba;margin:0;float:left}.mif_wrap blockquote.error{background-color:#ed6d62;border-color:#d05d53}.mif_wrap a,.mif_wrap .btn{text-transform:capitalize}.mif_wrap .btn:focus{color:#fff}.mif_wrap .modal{width:30%;top:25% !important}.mif_wrap .modal .mif-close-modal{position:absolute;right:10px;top:10px}.mif_wrap .modal .mif-modal-content{float:none;margin:0 auto;display:table;text-align:center}.mif_wrap .modal .mif-modal-content p{font-size:15px;line-height:1.8}.mif_wrap .modal .mif-modal-content .mif-lock-icon .material-icons{color:#26a69a;font-size:50px}.mif_wrap .modal .mif-modal-content input[type=email]::placeholder{color:#444}.mif_wrap .modal .mif-modal-content .btn{border-radius:0}.mif_wrap .mif-authentication-modal{width:33%}.mif_wrap .mif-authentication-modal .mif-auth-btn-holder{display:block;padding:5px 0;position:relative}.mif_wrap .mif-authentication-modal .mif-auth-btn-holder label{padding:0 10px 0 28px}.mif_wrap .mif-authentication-modal .mif-auth-btn-holder .mif_info_link{position:absolute;top:7px}.mif_wrap .mif-authentication-modal .mif-auth-btn-holder .mif_info_link .material-icons{font-size:18px}.mif_wrap .mif-authentication-modal .mif-auth-btn-holder .mif_info_link:focus{outline:none;box-shadow:none;color:#25a69a}.mif_wrap .mif-authentication-modal .mif-auth-btn-holder .mif_auth_info_holder{display:none;background:#eee;padding:5px 10px;border-radius:5px}.mif_wrap .mif-authentication-modal .mif-auth-btn-holder .mif_auth_info_holder p{color:#444;font-size:12px}.mif_wrap .mif-authentication-modal .mif-auth-modal-btn{margin-top:10px}.mif_wrap .mif_wrap_inner{float:left;width:100%;clear:both;position:relative}.mif_wrap .mif_wrap_inner .mif_loader_wrap{position:absolute;z-index:9;background-color:#f9f9f9;width:100%;height:100%}.mif_wrap .mif_wrap_inner .mif_loader_wrap .fa{position:absolute;top:42%;left:46%;font-size:50px;color:#26a69a;text-align:center}.mif_wrap .mif_wrap_inner .mif_tabs_header{background-color:#25a69a;color:#fff;padding:5px 0;height:56px;float:left;width:100%}.mif_wrap .mif_wrap_inner .mif_tabs_header .mif_tabs_right{float:right;margin-right:20px;margin-top:12px}.mif_wrap .mif_wrap_inner .mif_tabs_header .mif_tabs_right a{color:#fff;font-size:17px}.mif_wrap .mif_wrap_inner .mif_tabs_header .mif_design_tab{display:table;text-align:center;line-height:48px;height:48px;padding:0;margin:0;text-transform:uppercase;color:#fff;padding:0 24px;font-size:14px}.mif_wrap .mif_wrap_inner .mif_tabs_header .mif_design_tab .material-icons{display:table-cell;vertical-align:middle;float:none;width:100%}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs{background-color:transparent;float:left;width:auto;margin-left:17px;padding-right:17px}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs .indicator{background-color:#1bf1e9;margin-bottom:0}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs a{color:#fff;display:inline-block;float:left;padding:0 18px}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs a:hover{opacity:.8}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs a span{text-transform:capitalize}.mif_wrap .mif_wrap_inner .mif_tabs_header #mif_tabs a .material-icons{vertical-align:middle;margin-right:5px}.mif_wrap .mif_wrap_inner #mif-help .mif_faqs_wrap h5,.mif_wrap .mif_wrap_inner #mif-help .mif_more_help_wrap h5{font-size:31px;border-bottom:1px solid #e0e0e0;padding-bottom:20px}.mif_wrap .mif_wrap_inner #mif-help .mif_faqs_wrap h4,.mif_wrap .mif_wrap_inner #mif-help .mif_more_help_wrap h4{font-size:22px}.mif_wrap .mif_wrap_inner #mif-help .mif_more_help_wrap h5{padding-top:20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder{padding:15px;float:left;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_tab_c{width:100%;display:inline-block}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_tab_c .mif_auth_notice{background:rgba(241,241,12,.4392156863);padding:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_tab_c .mif_auth_notice a{color:#000;text-decoration:underline}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .row.auth-row{margin-bottom:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_switch_type_btn{float:left;clear:both;padding:1px 11px;height:auto;font-size:13px;margin-top:15px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .efbl_all_pages{padding:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .efbl_all_pages .collection.with-header{margin-bottom:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder{width:18%;display:inline-block;vertical-align:top}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder .card{padding:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder .card-image{background-color:#26a69a}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder .card-image .mif_confused_img{height:auto;width:auto;margin:0 auto}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder .card-content{padding:16px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder .card-content .card-title{border-bottom:1px solid #9e9e9e;margin:0 0 10px;padding:0 0 10px 0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_support_holder .card-content .btn{margin:0 auto;display:table;margin-top:15px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap{float:left;width:100%;margin-bottom:30px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .form_fields{float:left;margin-right:25px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .efbl-red-notice{margin:20px 0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif-shortcode-block{float:left;background-color:#26a69a;color:#fff;padding:15px;font-size:14px;margin-top:0;margin-bottom:20px;border-color:#6fc2ba}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap h5{margin-top:0;margin-bottom:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap h5,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap p{float:left;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_copy_shortcode{float:left;border-radius:0;box-shadow:none;height:auto;background-color:#25a69aad;padding:6px 20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_copy_shortcode i{margin:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .select-wrapper.mif_skin_id .select-dropdown,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .select-wrapper.mif_cache_duration .select-dropdown,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .select-wrapper.mif_multiple_users .select-dropdown{color:#9e9e9e}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .select-wrapper.mif_multiple_users li.disabled input[type=checkbox]:disabled,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .select-wrapper.mif_multiple_users li.disabled label{opacity:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .select-wrapper.mif_multiple_users label{top:-15px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .input-field.col label{left:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_username_field,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_hashtag_field{float:left;clear:both;width:100%;display:none}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_fields{float:left;clear:both;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_shortocode_genrator{float:left;width:100%;margin-top:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_shortocode_genrator_wrap .mif_generated_shortcode{float:left;width:100%;clear:both;margin-top:10px;display:none}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .collapsible{float:left;width:100%;margin-top:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .collapsible .collapsible-header{position:relative}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .collapsible .mif-pro-badge{position:absolute;right:30px;padding:8px 16px;line-height:normal;height:auto;top:10px;font-weight:bold}.mif_wrap .mif_wrap_inner .mif_tab_c_holder #mif-skins .mif_skin_head_wrap{float:left;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder #mif-skins .mif_create_skin{height:auto;padding:5px 25px 5px 20px;text-transform:capitalize}.mif_wrap .mif_wrap_inner .mif_tab_c_holder #mif-skins .mif_show_all_skins{margin-bottom:10px;text-transform:capitalize;height:auto;padding:5px 15px 5px 15px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder #mif-skins #mif_new_skin_details #mif_skin_feat_img{width:77.8%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder #mif-skins #mif_new_skin_details .btn.waves-input-wrapper{height:auto;padding:5px 20px 5px 20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder #mif-skins #mif_new_skin_details .btn.create_new_skin_fb_wrap.waves-input-wrapper{padding:3px 23px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_new_skin{display:none;padding:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins{padding-left:0;margin-top:20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin{display:inline-block;margin-right:15px;margin-bottom:15px;padding:10px;margin-top:0;width:24%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .card-title{font-size:20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .skin_free_full{position:absolute;width:100%;height:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .skin_free_full:focus{box-shadow:none}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_redirect,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_delete,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_redirect_free,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_delete_free{width:42%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_redirect span,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_delete span,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_redirect_free span,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_delete_free span{float:none;margin:0 auto;display:table}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_redirect .material-icons,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_delete .material-icons,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_redirect_free .material-icons,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin .mif_skin_delete_free .material-icons{position:absolute;right:10px;top:2px;font-size:15px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin_free{background:#f7f5f2;opacity:.955}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_single_skin:nth-child(4n+4){margin-right:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .card-image img{height:150px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .card-content{border-bottom:1px solid #baa5a5;padding:20px 0 5px 0;float:left;width:100%;margin-bottom:15px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .selected_layout{padding:6px;float:left;width:100%;background:#27aae4;color:#fff;text-align:center;font-weight:bold;text-transform:capitalize;margin-bottom:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .mif_cta_holder{float:left;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .mif_cta_holder .mif_copy_skin_id{float:left;width:100%;margin-top:20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .mif_cta_holder a:hover,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .card .mif_cta_holder a:focus{color:#fff}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_create_skin{float:left;margin:20px 0;color:#fff}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_create_skin:hover{color:#fff}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif_create_skin #mif_new_skin_details #mif_skin_feat_img_btn{width:auto;margin-left:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap{margin-left:9px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap h5{border-bottom:1px solid #e5e5e5;padding-bottom:20px;margin-bottom:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap p{font-size:15px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap blockquote{padding-top:10px;padding-bottom:10px;font-weight:600;border-left:5px solid #26a69a}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap .collapsible .mif_detail_head{font-size:15px;font-weight:bold}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap .collapsible .collapsible-body{padding:1.5rem}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_skins .mif-shortcode_wrap .collapsible .collapsible-body p{margin:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .input-field{margin-bottom:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_auth_form{display:none;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder.mif_no_user .collection{border:none}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder{float:left;width:100%}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder h5{margin-bottom:20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .collection-item .badge{color:#fff;padding:5px 10px;height:auto;margin-bottom:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .collection-item.mif_is_primary .mif_make_primary{display:none}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .mif_user_meta{float:left}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .mif_user_meta img.circle{width:50px;height:50px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .mif_users_auth_actions{float:right;margin-top:10px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .mif_users_auth_actions .secondary-content{position:relative;margin-top:2px;float:left;font-size:18px;top:0;right:0;margin-left:5px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_all_users_holder .mif_users_auth_actions .secondary-content .material-icons{font-size:30px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_auth_btn_st{padding:12px 20px 12px 12px;height:auto;line-height:2.5;float:left;text-transform:capitalize;margin-bottom:20px}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_auth_btn_st img{height:40px;margin-right:10px;float:left;margin-top:0}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_auth_btn_st:hover,.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_auth_btn_st:active{color:#fff}.mif_wrap .mif_wrap_inner .mif_tab_c_holder .mif_show_token_form{display:none;margin-bottom:20px;float:right;background-color:#1b97f3}.mif_wrap .mif_noti_holder{position:relative;display:none}.mif_wrap .mif_noti_holder .mif_arrow{position:absolute;left:32%;top:-2px;width:15%}.mif_wrap .mif_noti_holder .tap-target-wrapper.open{left:auto;position:absolute;right:-238px;top:-100px;color:#fff}.mif_wrap .mif_noti_holder .tap-target-content{width:440px;height:400px;top:10px;right:auto;bottom:0;left:60px;padding:40px;vertical-align:bottom}.mif_wrap .mif_noti_holder .tap-target{background-color:rgba(237,109,98,.9)}.mif_wrap .mif_noti_holder.mif_green_noti .mif_arrow{display:none}.mif_wrap .mif_noti_holder.mif_green_noti .tap-target{background-color:rgba(38,166,154,.9)}.mif_wrap .mif_noti_holder.mif_green_noti .tap-target .tap-target-content p{font-size:15px}#toast-container{top:auto !important;right:auto !important;bottom:0;left:50%;color:#7fc6a6 !important}#toast-container .toast{background-color:#26a69a;padding:15px 60px;font-size:18px}.material-tooltip{padding:10px 20px}.btn:hover,.btn-large:hover{color:#fff}.disabled{pointer-events:none;cursor:default}.toplevel_page_mif.wp-has-submenu ul li:last-child{display:none}.mif_wrap.fta_empty_at #mif-general .auth-row{margin:0}.mif-confirm-modal.modal{width:30%}.mif-confirm-modal .mif-modal-content{float:none;margin:0 auto;display:table;text-align:center;padding-top:0}.mif-confirm-modal .mif-modal-content p{font-size:13px;line-height:1.8;border-bottom:1px solid #ccc;padding-bottom:12px}.mif-confirm-modal .mif-modal-content .mif-lock-icon .material-icons{color:#ed6d62;font-size:60px}.mif-confirm-modal .mif-modal-content .btn{font-size:13px;padding:10px 25px 10px 10px;height:auto;text-transform:capitalize}.mif-confirm-modal .mif-modal-content .btn img{height:31px;margin-right:5px}.mif-confirm-modal .mif-modal-content .btn{padding:10px 20px;height:auto;width:auto;line-height:normal;font-size:15px;border-radius:0;margin-right:30px}.mif-confirm-modal .mif-modal-content .mif_skin_delete{background:#ed6d62}#mif-remove-at .mif-revoke-access-steps{display:none;background:#eee;padding:8px 10px;margin-top:10px;border-radius:5px}#mif-remove-at .mif-revoke-access-steps p{border:none;margin-bottom:0;padding-bottom:0}#mif-remove-at .mif-revoke-access-steps ol{color:#867979}/*# sourceMappingURL=mif_admin_style.css.map */
|
my-instagram-feed/assets/css/mif_admin_style.css.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sourceRoot":"","sources":["../scss/mif_admin_style.scss"],"names":[],"mappings":"AAEA,WACE,6BACA,kBACA,gBACA,uDAGF,gBACE,6BACA,mBACA,kBACA,eACA,cACA,sBACA,oBACA,qBACA,mBACA,iBACA,cACA,qCACA,mCAIF,0JACE,mCACA,iCACA,8BAEA,mBACI,iGACA,mCACC,qDAGP,
|
1 |
+
{"version":3,"sourceRoot":"","sources":["../scss/mif_admin_style.scss"],"names":[],"mappings":"AAEA,WACE,6BACA,kBACA,gBACA,uDAGF,gBACE,6BACA,mBACA,kBACA,eACA,cACA,sBACA,oBACA,qBACA,mBACA,iBACA,cACA,qCACA,mCAIF,0JACE,mCACA,iCACA,8BAEA,mBACI,iGACA,mCACC,qDAGP,UAiGM,WACA,WACA,kBACA,UACA,gBACA,sBACF,gBArGJ,qBACI,yBACA,WACA,aACA,eACA,8BACA,SACI,WAER,2BACI,yBACA,qBAEJ,2BACK,0BAKH,gCAEA,8CACE,kCACI,kBACA,WACA,SAGJ,oCACI,WACA,cACA,cACA,kBAEA,qEAEA,mEACI,cACC,eAEL,8EACA,yCAEF,gBAKJ,oCACI,UAEA,yDACI,cACH,cACA,kBAEA,+DACI,sBAGJ,wEACC,kBACA,QACC,wFACA,eAGD,8EACA,aACC,gBACA,cAGF,+EACC,aAEA,gBACA,iBACA,kBAEA,iFACI,WACA,eAON,wDACE,gBAYP,0BACM,WACA,WACA,WACA,kBACJ,2CACI,kBACA,UACA,yBACA,WACA,YACA,+CACK,kBACH,QACA,SACA,eACA,cACA,kBAGP,2CACI,yBACC,WACA,cACA,YACA,WACA,WAEA,2DACH,YACG,kBACA,gBACC,6DACA,WACA,eAGL,2DACC,cACG,kBACA,iBACA,YACA,UACA,SACA,yBACA,WACI,eACJ,eAEA,2EACO,mBACH,sBACA,WACA,WAGL,qDACM,6BACH,WACA,WACA,iBACA,mBAED,gEACA,yCAEC,uDACC,WACG,qBACH,WACI,eACJ,6DACoB,WAEpB,4DACA,0BAEA,uEACC,sBACA,iBASP,iHACI,eACA,gCACA,oBAEJ,iHACC,eAKD,2DACC,iBAKH,4CACC,mCACA,uDACO,WACP,qBAEC,wEACA,wCACA,aACC,0EACA,WACG,0BAIN,0DACA,gBAEC,iEACI,WACA,WACA,iBACA,YACA,eACA,gBAEL,4DACA,UAEC,oFACA,gBAKD,gEACK,UACD,qBACA,mBAEC,sEACI,UAEJ,4EACI,yBAEH,8FACC,YACA,WACA,cAGF,8EACI,aAEA,0FACI,gCACN,gBACD,mBAEG,mFACI,cACN,cACA,gBAMH,0EAEI,WACA,WACA,mBACA,uFACI,WACH,kBAID,2FACH,cAGG,+FACI,WACH,yBACA,WACA,aACA,eACA,aACI,mBACJ,qBAEC,6EACC,aACI,gBAEL,yJACK,WACL,WAEA,8FACI,WACJ,gBACA,gBACA,YACA,2BACA,iBAEA,yGAIA,mXACI,cASF,gSAEF,6HAID,iGACA,OAED,2LACI,WACH,WACA,WACA,aAGD,sFACC,WACA,WACA,WAGD,mGACI,WACH,WACA,gBAED,mGACI,WACH,WACA,WACA,gBACA,aAIP,yDACI,WACD,WACA,gBACA,+FACC,wEACQ,kBACN,WACA,iBACA,mBACA,YACA,SACA,iBAKL,2EACA,WACA,WAEA,wEACC,YACG,0BACI,0BAER,2EACA,mBACG,0BACA,YACA,0BAIF,gGACO,YAEJ,sGACC,YACD,0BAEA,8HACA,iBAML,0DACA,aACA,UAKA,2DACI,eACI,gBAEJ,4EACI,qBACH,kBACA,mBACA,aACA,aACA,UAED,wFACI,eAGF,4FACD,kBACA,WACA,YACC,kGACI,gBAIJ,kYACC,UACA,sZACA,WACA,cACA,cAEA,kcACC,kBACA,WACA,QACI,eAMR,iFACF,mBACG,aAED,4FACA,eAKE,iFACA,aAID,+EACE,gCACA,qBACA,WACD,WACI,mBAEL,kFACA,YACA,WACA,WACA,mBACA,WACA,kBACA,iBACA,0BACA,mBAEA,iFACI,WACH,WAEA,mGACI,WACH,WACA,gBAED,kLACA,WAKN,4EAEC,WACA,cACA,WAEA,kFACC,WAKA,yHAGI,WACA,cASN,+EACK,gBAIA,kFACI,gCACH,oBACA,gBAED,iFACA,eAEA,0FACI,iBACH,oBACA,gBACA,8BAGA,6GACA,eACA,iBAEA,8GACK,eAEJ,gHACI,SAQZ,yDACA,mBAEA,mFAIA,sGACA,kEACC,sBACA,wFACA,qJAGA,iIACA,+MACC,sHACC,6GACI,kBACI,eACJ,WACA,eACA,MACA,QACI,gBAEJ,4IAIP,6DACI,4BACA,YACA,gBACA,WACA,0BACA,mBACH,iEACO,YACP,kBACA,WACA,aAEC,uIACD,WAGD,sIAMD,2BACI,kBACA,aAEA,sCACG,kBACH,SACA,SACA,UAGD,oDACI,UACH,kBACA,aACA,WACI,WAGL,+CACO,YACL,aACA,SACA,WACA,SACA,UACA,aACA,sBAGF,uCACI,qCAKP,kEACA,2FAGE,2FAMJ,iBACE,oBACA,sBACI,SACA,SACJ,yBACC,wBACK,yBACF,kBACA,eAGN,kBACE,kBAMF,4BACK,WAEL,UACG,oBACA,eAEH,gEACA,8CACC,SAED,mCAEA,sCACY,WACA,cACA,cACA,kBACA,cAEA,wHAEA,qEACH,cACS,eAGN,2CAEA,eACF,4BACN,YACA,0BACI,2DACJ,iBAKH,2CACG,kBACA,YACA,WACA,mBACA,eACI,gBACJ,kBAEH,uDACG,mBAMH,wCACC,aACA,gBACG,iBACA,gBACA,kBAEA,0CACI,YACH,gBACA,iBAED,2CACI","file":"mif_admin_style.css"}
|
my-instagram-feed/assets/css/mif_fancy_popup.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mif_full_top{float:left;width:100%;clear:both}.mif_full_top .mif_header_title{margin-top:0 !important}.mif_full_img img{height:auto !important;width:100%}.mif_full_top .mif_caption{padding-left:0;padding-bottom:5px}.mif_full_layout .mejs-video,.mif_full_layout .wp-video{width:100% !important}.mif_single.mif_masonary_layout{padding:0 !important;margin:0 !important}.mif_wrap .mif_masonary_main .mif-masonry-sizer,.mif_wrap .mif_masonary_main .mif_single.mif_masonary_layout{width:calc(94% / 4)}.mif_wrap .mif_masonary_main .mif-gutter-sizer{width:10px}.mif_wrap .mif_masonary_main .mif_single.mif_masonary_layout{margin-bottom:10px !important}.mif_masonary_main:after{content:"";display:block;clear:both}.mif_masonary_layout{float:left}.mif_masonary_layout img{display:block;max-width:100%}.mif_masonary_layout video::-webkit-media-controls{position:static !important}.mif_masonary_layout .mif_likes,.mif_masonary_layout .mif_coments{-moz-transition:all ease-in .5s !important;-ms-transition:all ease-in .5s !important;-o-transition:all ease-in .5s !important;-webkit-transition:all ease-in .5s !important;transition:all ease-in .5s !important}.mif_masonary_layout:hover .mif_likes,.mif_masonary_layout:hover .mif_coments{opacity:0;-moz-transition:all ease-in .5s !important;-ms-transition:all ease-in .5s !important;-o-transition:all ease-in .5s !important;-webkit-transition:all ease-in .5s !important;transition:all ease-in .5s !important}.mif_masonary_layout .mif_fulls,.mif_carousel_layout .mif_fulls{opacity:0;visibility:hidden;position:absolute;width:100%;height:100%}.mif_feeds_holder{float:left;width:100%;clear:both}@media only screen and (max-width: 768px){.mif_grid_left,.mif_grid_right,.mif_grid_layout{width:100% !important;margin-bottom:5px}}.grayscale{-webkit-filter:grayscale(1);filter:grayscale(1)}.sepia{-webkit-filter:sepia(1);filter:sepia(1)}.saturate{-webkit-filter:saturate(8);filter:saturate(8)}.hue{-webkit-filter:hue-rotate(90deg);filter:hue-rotate(90deg)}.invert{-webkit-filter:invert(0.8);filter:invert(0.8)}.brightness{-webkit-filter:brightness(3);filter:brightness(3)}.contrast{-webkit-filter:contrast(4);filter:contrast(4)}.animate_filter{-webkit-animation:filter-animation 5s infinite}@-webkit-keyframes filter-animation{0%{-webkit-filter:sepia(0) grayscale(2)}50%{-webkit-filter:sepia(1) grayscale(8)}100%{-webkit-filter:sepia(0) grayscale(2)}}.mif_wrap.mif_ver_free .mif_grid_layout .mif_content_holder{top:50%;transform:translateY(-50%)}.mif_error{padding:10px;background:#ed6d62;color:#fff;font-size:14px}.fancybox-container .fancybox-content{padding:0 !important;margin:30px 0 !important}.fancybox-container .post{width:70%;overflow:auto;background:#000}.fancybox-container .post img,.fancybox-container .post video{max-width:100%;margin:0 auto;float:none;display:table}.fancybox-container .caption{cursor:auto;width:400px;position:relative;overflow:auto;padding:15px 10px;padding-bottom:0}.fancybox-container .caption .efbl_popup_caption_inner{position:absolute;top:0;right:0;overflow:auto;width:100%;min-height:200px}.fancybox-container .caption .efbl_popup_caption_inner_wraper{padding:20px 10px;float:left;width:100%}.mif_wrap .mif_grid_layout .mif_feed_popup_pro{float:left;width:100%;height:100%}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-nav button{position:absolute;top:0;bottom:0;width:40px;background:rgba(0,0,0,0);left:-9px}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-nav button:focus{outline:none}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-nav button .icon{position:absolute;outline:none;width:30px;height:30px;top:50%;background:#869791;color:#fff;margin:-15px 0 5px 0;padding:0;font-size:18px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;filter:Alpha(Opacity=50);opacity:.5;box-shadow:0 0 1px 0 rgba(255,255,255,.8);-moz-box-shadow:0 0 1px 0 rgba(255,255,255,.8);-webkit-box-shadow:0 0 1px 0 rgba(255,255,255,.8)}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-nav button .icon:hover{background:#000;opacity:1}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-nav button .icon:before{margin-top:6px;display:block}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-nav button.owl-next{right:9px;left:auto}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-prev,.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-next{opacity:0 !important}.mif_wrap .mif_carousel_main.owl-carousel:hover .owl-prev{opacity:1 !important}.mif_wrap .mif_carousel_main.owl-carousel:hover .owl-next{opacity:1 !important}.fancybox-container .main-pop{display:flex}.fancybox-container .efbl_author_info{float:left;width:100%}.fancybox-container .efbl_auth_logo{float:left;margin-right:5px}.fancybox-container .efbl_auth_logo img{float:left;width:62px;margin-top:-8px}.fancybox-container .efbl_name_date{float:left}.fancybox-container .efbl_name_date .efbl_author_name{margin:0;font-size:15px}.fancybox-container .efbl_name_date .efbl_author_name a{color:#ed6d62;font-weight:bold}.fancybox-container .efbl_story_time{margin:0;font-size:11px;color:#9197a3}.fancybox-container .efbl_popup_caption{float:left;width:100%;font-size:15px;color:#444;margin:10px 0}.fancybox-container .efbl-likes-popup-holder{max-width:52% !important;width:32%;padding:10px !important;border-radius:3px;transform:translateY(-50px);transition:all .33s}body .fancybox-container .fancybox-close-small{color:#888;font-weight:300;text-align:center;transition:background .25s}body .fancybox-container .fancybox-close-small:hover{color:#555;background:#eee}.mif_main-pop,.mif_replies_modal{display:flex}.mif_main-pop .mif_post,.mif_replies_modal .mif_post{width:70%;overflow:auto;background:#000}.mif_main-pop .mif_post img,.mif_replies_modal .mif_post img{max-width:100%;margin:0 auto;float:none;display:table;width:100%}.mif_main-pop .mif_popup_caption,.mif_replies_modal .mif_popup_caption{cursor:auto;width:400px;padding:15px 10px;padding-bottom:0;position:relative;overflow:auto}.mif_main-pop .mif_popup_caption .mif_popup_caption_inner,.mif_replies_modal .mif_popup_caption .mif_popup_caption_inner{position:absolute;top:0;right:0;overflow:auto;width:100%;min-height:200px}.mif_main-pop .mif_popup_caption .mif_popup_caption_inner .mif_popup_caption_inner_wraper,.mif_replies_modal .mif_popup_caption .mif_popup_caption_inner .mif_popup_caption_inner_wraper{padding:15px 10px}.mif_main-pop .mif_popup_caption .mif_author_info .mif_auth_logo,.mif_replies_modal .mif_popup_caption .mif_author_info .mif_auth_logo{float:left;margin-right:15px}.mif_main-pop .mif_popup_caption .mif_author_info .mif_auth_logo img,.mif_replies_modal .mif_popup_caption .mif_author_info .mif_auth_logo img{float:left;width:60px;margin-top:-8px;border-radius:50%}.mif_main-pop .mif_popup_caption .mif_author_info .mif_name_date,.mif_replies_modal .mif_popup_caption .mif_author_info .mif_name_date{float:left}.mif_main-pop .mif_popup_caption .mif_author_info .mif_name_date .mif_author_name,.mif_replies_modal .mif_popup_caption .mif_author_info .mif_name_date .mif_author_name{margin:0;font-size:15px}.mif_main-pop .mif_popup_caption .mif_author_info .mif_name_date .mif_author_name a,.mif_replies_modal .mif_popup_caption .mif_author_info .mif_name_date .mif_author_name a{color:#ed6d62;font-weight:bold;text-decoration:none}.mif_main-pop .mif_popup_caption .mif_author_info .mif_name_date .mif_story_time,.mif_replies_modal .mif_popup_caption .mif_author_info .mif_name_date .mif_story_time{margin:0;font-size:11px;margin-top:-5px;color:#9197a3}.mif_main-pop .mif_popup_text,.mif_replies_modal .mif_popup_text{float:left;clear:both;font-size:15px;color:#444;margin:10px 0}.mif_main-pop .mif_popup_meta_holder,.mif_replies_modal .mif_popup_meta_holder{float:left;width:100%}.mif_main-pop .mif_popup_meta_like_share,.mif_replies_modal .mif_popup_meta_like_share{float:left;width:100%;text-align:left;margin-top:10px;background:#f6f7f9;border-radius:18px;padding:6px 10px}.mif_main-pop .mif_popup_meta_like_share .mif_popup_likes_holder,.mif_replies_modal .mif_popup_meta_like_share .mif_popup_likes_holder{float:left;padding-right:20px}.mif_main-pop .mif_popup_meta_like_share .mif_popup_likes_holder img,.mif_replies_modal .mif_popup_meta_like_share .mif_popup_likes_holder img{width:30px;float:left;margin-top:5px}.mif_main-pop .mif_popup_meta_like_share .mif_popup_likes_holder span,.mif_replies_modal .mif_popup_meta_like_share .mif_popup_likes_holder span{float:left}.mif_main-pop .mif_popup_comments_holder,.mif_replies_modal .mif_popup_comments_holder{float:left;color:#4b4f52}.mif_main-pop .mif_popup_comments_holder i,.mif_replies_modal .mif_popup_comments_holder i{font-size:15px}.mif_main-pop .mif_popup_comments_holder span,.mif_replies_modal .mif_popup_comments_holder span{font-size:18px}.mif_main-pop .mif_popup_meta_right,.mif_replies_modal .mif_popup_meta_right{float:right}.mif_main-pop .mif_popup_meta_right a,.mif_replies_modal .mif_popup_meta_right a{font-size:14px;color:#4b4f52;text-decoration:none;transition:all ease-in-out .5s}.mif_main-pop .mif_popup_meta_right a:hover,.mif_replies_modal .mif_popup_meta_right a:hover{color:#0073aa;transition:all ease-in-out .5s}.mif_main-pop .mif_popup_all_comments,.mif_replies_modal .mif_popup_all_comments{float:left;width:100%;margin-top:10px;overflow:auto}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder.show,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder.show{opacity:1;transform:translateX(0%)}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder{transform:translateX(-100%);transition:transform .5s,opacity 2s;opacity:0;float:left;width:100%;margin-bottom:20px}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder a.mif_comment_icon,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder a.mif_comment_icon{float:left;width:10%}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder a.mif_comment_icon .icon-esf-comment,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder a.mif_comment_icon .icon-esf-comment{color:#fff;background:#444;padding:5px 6px 3px 5px;border-radius:50%;font-size:16px}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder a.mif_comment_icon .mif_comment_time_popup,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder a.mif_comment_icon .mif_comment_time_popup{font-size:12px;margin-top:-5px;float:left;color:#4b4f52}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder .mif_comment_msg,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder .mif_comment_msg{float:left;overflow-wrap:break-word;font-size:14px;color:#4b4f52;width:90%;background-color:#f2f3f5;border-radius:18px;padding:8px 10px}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder .mif_comment_msg .mif_commenter,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder .mif_comment_msg .mif_commenter{color:#385898;font-weight:bold;margin-right:10px;text-decoration:none;transition:all ease-in-out .5s}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder .mif_comment_msg .mif_commenter:hover,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder .mif_comment_msg .mif_commenter:hover{color:#4b4f52;transition:all ease-in-out .5s}.mif_main-pop .mif_popup_all_comments .mif_comment_meta,.mif_replies_modal .mif_popup_all_comments .mif_comment_meta{margin-left:13%;float:left;font-size:12px;color:#4b4f52;margin-top:2px}.mif_main-pop .mif_popup_all_comments .mif_comment_likes_count,.mif_main-pop .mif_popup_all_comments .mif_comment_reply_count,.mif_main-pop .mif_popup_all_comments .mif_comment_time,.mif_replies_modal .mif_popup_all_comments .mif_comment_likes_count,.mif_replies_modal .mif_popup_all_comments .mif_comment_reply_count,.mif_replies_modal .mif_popup_all_comments .mif_comment_time{margin-right:10px}.mif_main-pop .mif_popup_all_comments .mif_comment_likes_count .icon-esf-heart,.mif_main-pop .mif_popup_all_comments .mif_comment_reply_count .icon-esf-heart,.mif_main-pop .mif_popup_all_comments .mif_comment_time .icon-esf-heart,.mif_replies_modal .mif_popup_all_comments .mif_comment_likes_count .icon-esf-heart,.mif_replies_modal .mif_popup_all_comments .mif_comment_reply_count .icon-esf-heart,.mif_replies_modal .mif_popup_all_comments .mif_comment_time .icon-esf-heart{font-size:10px;margin-right:3px}.mif_main-pop .mif_popup_all_comments .mif_comment_likes_count .icon-esf-heart .mif_popup_c,.mif_main-pop .mif_popup_all_comments .mif_comment_reply_count .icon-esf-heart .mif_popup_c,.mif_main-pop .mif_popup_all_comments .mif_comment_time .icon-esf-heart .mif_popup_c,.mif_replies_modal .mif_popup_all_comments .mif_comment_likes_count .icon-esf-heart .mif_popup_c,.mif_replies_modal .mif_popup_all_comments .mif_comment_reply_count .icon-esf-heart .mif_popup_c,.mif_replies_modal .mif_popup_all_comments .mif_comment_time .icon-esf-heart .mif_popup_c{font-size:12px}.fancybox-container .fotorama__html .carousel-item{display:block !important}.fancybox-container .mif_replies_modal{max-width:500px;cursor:auto;max-height:400px;overflow:auto;padding:10px !important}.fancybox-container .mif_replies_modal .mif_popup_all_comments{margin-top:0}.fancybox-container .mif_replies_modal .mif_popup_all_comments h4{margin-top:0;margin-bottom:15px;border-bottom:1px solid rgba(0,0,0,.1);padding-bottom:15px;font-weight:400}.fotorama__nav--thumbs .fotorama__nav__frame:last-child{padding-right:2px !important}.fotorama__nav--thumbs .fotorama__nav__frame:first-child{padding-left:2px !important}@media(min-width: 768px){.mif_main-pop .mif_post .mif-popup-carousel-container{min-width:700px}}@media(max-width: 768px){.mif_main-pop{display:block}.mif_main-pop .mif_post,.mif_main-pop .mif_popup_caption{width:100%;padding:0}.mif_main-pop .mif_popup_caption .mif_popup_caption_inner{position:relative}.mif_main-pop .mif_popup_caption .mif_author_info .mif_auth_logo img{width:50px}.mif_main-pop .mif_popup_meta_like_share .mif_popup_likes_holder img{margin-top:5px}.mif_main-pop .mif_popup_meta_like_share .mif_popup_likes_holder span{margin-top:0}}/*# sourceMappingURL=mif_fancy_popup.css.map */
|
1 |
+
.mif_full_top{float:left;width:100%;clear:both}.mif_full_top .mif_header_title{margin-top:0 !important}.mif_full_img img{height:auto !important;width:100%}.mif_full_top .mif_caption{padding-left:0;padding-bottom:5px}.mif_full_layout .mejs-video,.mif_full_layout .wp-video{width:100% !important}.mif_single.mif_masonary_layout{padding:0 !important;margin:0 !important}.mif_wrap .mif_masonary_main .mif-masonry-sizer,.mif_wrap .mif_masonary_main .mif_single.mif_masonary_layout{width:calc(94% / 4)}.mif_wrap .mif_masonary_main .mif-gutter-sizer{width:10px}.mif_wrap .mif_masonary_main .mif_single.mif_masonary_layout{margin-bottom:10px !important}.mif_masonary_main:after{content:"";display:block;clear:both}.mif_masonary_layout{float:left}.mif_masonary_layout img{display:block;max-width:100%}.mif_masonary_layout video::-webkit-media-controls{position:static !important}.mif_masonary_layout .mif_likes,.mif_masonary_layout .mif_coments{-moz-transition:all ease-in .5s !important;-ms-transition:all ease-in .5s !important;-o-transition:all ease-in .5s !important;-webkit-transition:all ease-in .5s !important;transition:all ease-in .5s !important}.mif_masonary_layout:hover .mif_likes,.mif_masonary_layout:hover .mif_coments{opacity:0;-moz-transition:all ease-in .5s !important;-ms-transition:all ease-in .5s !important;-o-transition:all ease-in .5s !important;-webkit-transition:all ease-in .5s !important;transition:all ease-in .5s !important}.mif_masonary_layout .mif_fulls,.mif_carousel_layout .mif_fulls{opacity:0;visibility:hidden;position:absolute;width:100%;height:100%}.mif_feeds_holder{float:left;width:100%;clear:both}@media only screen and (max-width: 768px){.mif_grid_left,.mif_grid_right,.mif_grid_layout{width:100% !important;margin-bottom:5px}}.grayscale{-webkit-filter:grayscale(1);filter:grayscale(1)}.sepia{-webkit-filter:sepia(1);filter:sepia(1)}.saturate{-webkit-filter:saturate(8);filter:saturate(8)}.hue{-webkit-filter:hue-rotate(90deg);filter:hue-rotate(90deg)}.invert{-webkit-filter:invert(0.8);filter:invert(0.8)}.brightness{-webkit-filter:brightness(3);filter:brightness(3)}.contrast{-webkit-filter:contrast(4);filter:contrast(4)}.animate_filter{-webkit-animation:filter-animation 5s infinite}@-webkit-keyframes filter-animation{0%{-webkit-filter:sepia(0) grayscale(2)}50%{-webkit-filter:sepia(1) grayscale(8)}100%{-webkit-filter:sepia(0) grayscale(2)}}.mif_wrap.mif_ver_free .mif_grid_layout .mif_content_holder{top:50%;transform:translateY(-50%)}.mif_error{padding:10px;background:#ed6d62;color:#fff;font-size:14px}.fancybox-container .fancybox-content{padding:0 !important;margin:30px 0 !important}.fancybox-container .post{width:70%;overflow:auto;background:#000}.fancybox-container .post img,.fancybox-container .post video{max-width:100%;margin:0 auto;float:none;display:table}.fancybox-container .caption{cursor:auto;width:400px;position:relative;overflow:auto;padding:15px 10px;padding-bottom:0}.fancybox-container .caption .efbl_popup_caption_inner{position:absolute;top:0;right:0;overflow:auto;width:100%;min-height:200px}.fancybox-container .caption .efbl_popup_caption_inner_wraper{padding:20px 10px;float:left;width:100%}.mif_wrap .mif_grid_layout .mif_feed_popup_pro{float:left;width:100%;height:100%}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-nav button{position:absolute;top:0;bottom:0;width:40px;background:rgba(0,0,0,0);left:-9px}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-nav button:focus{outline:none}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-nav button .icon{position:absolute;outline:none;width:30px;height:30px;top:50%;background:#869791;color:#fff;margin:-15px 0 5px 0;padding:0;font-size:18px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;filter:Alpha(Opacity=50);opacity:.5;box-shadow:0 0 1px 0 rgba(255,255,255,.8);-moz-box-shadow:0 0 1px 0 rgba(255,255,255,.8);-webkit-box-shadow:0 0 1px 0 rgba(255,255,255,.8)}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-nav button .icon:hover{background:#000;opacity:1}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-nav button .icon:before{margin-top:6px;display:block}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-nav button.owl-next{right:9px;left:auto}.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-prev,.mif_wrap .mif_feeds_holder.mif_carousel_main .owl-next{opacity:0 !important}.mif_wrap .mif_carousel_main.owl-carousel:hover .owl-prev{opacity:1 !important}.mif_wrap .mif_carousel_main.owl-carousel:hover .owl-next{opacity:1 !important}.fancybox-container .main-pop{display:flex}.fancybox-container .efbl_author_info{float:left;width:100%}.fancybox-container .efbl_auth_logo{float:left;margin-right:5px}.fancybox-container .efbl_auth_logo img{float:left;width:62px;margin-top:-8px}.fancybox-container .efbl_name_date{float:left}.fancybox-container .efbl_name_date .efbl_author_name{margin:0;font-size:15px}.fancybox-container .efbl_name_date .efbl_author_name a{color:#ed6d62;font-weight:bold}.fancybox-container .efbl_story_time{margin:0;font-size:11px;color:#9197a3}.fancybox-container .efbl_popup_caption{float:left;width:100%;font-size:15px;color:#444;margin:10px 0}.fancybox-container .efbl-likes-popup-holder{max-width:52% !important;width:32%;padding:10px !important;border-radius:3px;transform:translateY(-50px);transition:all .33s}body .fancybox-container .fancybox-close-small{color:#888;font-weight:300;text-align:center;transition:background .25s}body .fancybox-container .fancybox-close-small:hover{color:#555;background:#eee}.mif_main-pop,.mif_replies_modal{display:flex}.mif_main-pop .mif_post,.mif_replies_modal .mif_post{width:70%;overflow:auto;background:#000}.mif_main-pop .mif_post img,.mif_replies_modal .mif_post img{max-width:100%;margin:0 auto;float:none;display:table;width:100%}.mif_main-pop .mif_popup_caption,.mif_replies_modal .mif_popup_caption{cursor:auto;width:400px;padding:15px 10px;padding-bottom:0;position:relative;overflow:auto}.mif_main-pop .mif_popup_caption .mif_popup_caption_inner,.mif_replies_modal .mif_popup_caption .mif_popup_caption_inner{position:absolute;top:0;right:0;overflow:auto;width:100%;min-height:200px}.mif_main-pop .mif_popup_caption .mif_popup_caption_inner .mif_popup_caption_inner_wraper,.mif_replies_modal .mif_popup_caption .mif_popup_caption_inner .mif_popup_caption_inner_wraper{padding:15px 10px}.mif_main-pop .mif_popup_caption .mif_author_info .mif_auth_logo,.mif_replies_modal .mif_popup_caption .mif_author_info .mif_auth_logo{float:left;margin-right:15px}.mif_main-pop .mif_popup_caption .mif_author_info .mif_auth_logo img,.mif_replies_modal .mif_popup_caption .mif_author_info .mif_auth_logo img{float:left;width:60px;margin-top:-8px;border-radius:50%}.mif_main-pop .mif_popup_caption .mif_author_info .mif_name_date,.mif_replies_modal .mif_popup_caption .mif_author_info .mif_name_date{float:left}.mif_main-pop .mif_popup_caption .mif_author_info .mif_name_date .mif_author_name,.mif_replies_modal .mif_popup_caption .mif_author_info .mif_name_date .mif_author_name{margin:0;font-size:15px}.mif_main-pop .mif_popup_caption .mif_author_info .mif_name_date .mif_author_name a,.mif_replies_modal .mif_popup_caption .mif_author_info .mif_name_date .mif_author_name a{color:#ed6d62;font-weight:bold;text-decoration:none}.mif_main-pop .mif_popup_caption .mif_author_info .mif_name_date .mif_story_time,.mif_replies_modal .mif_popup_caption .mif_author_info .mif_name_date .mif_story_time{margin:0;font-size:11px;margin-top:-5px;color:#9197a3}.mif_main-pop .mif_popup_text,.mif_replies_modal .mif_popup_text{float:left;clear:both;font-size:15px;color:#444;margin:10px 0}.mif_main-pop .mif_popup_meta_holder,.mif_replies_modal .mif_popup_meta_holder{float:left;width:100%}.mif_main-pop .mif_popup_meta_like_share,.mif_replies_modal .mif_popup_meta_like_share{float:left;width:100%;text-align:left;margin-top:10px;background:#f6f7f9;border-radius:18px;padding:6px 10px}.mif_main-pop .mif_popup_meta_like_share .mif_popup_likes_holder,.mif_replies_modal .mif_popup_meta_like_share .mif_popup_likes_holder{float:left;padding-right:20px}.mif_main-pop .mif_popup_meta_like_share .mif_popup_likes_holder img,.mif_replies_modal .mif_popup_meta_like_share .mif_popup_likes_holder img{width:30px;float:left;margin-top:5px}.mif_main-pop .mif_popup_meta_like_share .mif_popup_likes_holder span,.mif_replies_modal .mif_popup_meta_like_share .mif_popup_likes_holder span{float:left}.mif_main-pop .mif_popup_comments_holder,.mif_replies_modal .mif_popup_comments_holder{float:left;color:#4b4f52}.mif_main-pop .mif_popup_comments_holder i,.mif_replies_modal .mif_popup_comments_holder i{font-size:15px}.mif_main-pop .mif_popup_comments_holder span,.mif_replies_modal .mif_popup_comments_holder span{font-size:18px}.mif_main-pop .mif_popup_meta_right,.mif_replies_modal .mif_popup_meta_right{float:right}.mif_main-pop .mif_popup_meta_right a,.mif_replies_modal .mif_popup_meta_right a{font-size:14px;color:#4b4f52;text-decoration:none;transition:all ease-in-out .5s}.mif_main-pop .mif_popup_meta_right a:hover,.mif_replies_modal .mif_popup_meta_right a:hover{color:#0073aa;transition:all ease-in-out .5s}.mif_main-pop .mif_popup_all_comments,.mif_replies_modal .mif_popup_all_comments{float:left;width:100%;margin-top:10px;overflow:auto}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder.show,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder.show{opacity:1;transform:translateX(0%)}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder{transform:translateX(-100%);transition:transform .5s,opacity 2s;opacity:0;float:left;width:100%;margin-bottom:20px}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder a.mif_comment_icon,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder a.mif_comment_icon{float:left;width:10%}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder a.mif_comment_icon .icon-esf-comment,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder a.mif_comment_icon .icon-esf-comment{color:#fff;background:#444;padding:5px 6px 3px 5px;border-radius:50%;font-size:16px}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder a.mif_comment_icon .mif_comment_time_popup,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder a.mif_comment_icon .mif_comment_time_popup{font-size:12px;margin-top:-5px;float:left;color:#4b4f52}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder .mif_comment_msg,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder .mif_comment_msg{float:left;overflow-wrap:break-word;font-size:14px;color:#4b4f52;width:90%;background-color:#f2f3f5;border-radius:18px;padding:8px 10px}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder .mif_comment_msg .mif_commenter,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder .mif_comment_msg .mif_commenter{color:#385898;font-weight:bold;margin-right:10px;text-decoration:none;transition:all ease-in-out .5s}.mif_main-pop .mif_popup_all_comments .mif_popup_comment_holder .mif_comment_msg .mif_commenter:hover,.mif_replies_modal .mif_popup_all_comments .mif_popup_comment_holder .mif_comment_msg .mif_commenter:hover{color:#4b4f52;transition:all ease-in-out .5s}.mif_main-pop .mif_popup_all_comments .mif_comment_meta,.mif_replies_modal .mif_popup_all_comments .mif_comment_meta{margin-left:13%;float:left;font-size:12px;color:#4b4f52;margin-top:2px}.mif_main-pop .mif_popup_all_comments .mif_comment_likes_count,.mif_main-pop .mif_popup_all_comments .mif_comment_reply_count,.mif_main-pop .mif_popup_all_comments .mif_comment_time,.mif_replies_modal .mif_popup_all_comments .mif_comment_likes_count,.mif_replies_modal .mif_popup_all_comments .mif_comment_reply_count,.mif_replies_modal .mif_popup_all_comments .mif_comment_time{margin-right:10px}.mif_main-pop .mif_popup_all_comments .mif_comment_likes_count .icon-esf-heart,.mif_main-pop .mif_popup_all_comments .mif_comment_reply_count .icon-esf-heart,.mif_main-pop .mif_popup_all_comments .mif_comment_time .icon-esf-heart,.mif_replies_modal .mif_popup_all_comments .mif_comment_likes_count .icon-esf-heart,.mif_replies_modal .mif_popup_all_comments .mif_comment_reply_count .icon-esf-heart,.mif_replies_modal .mif_popup_all_comments .mif_comment_time .icon-esf-heart{font-size:10px;margin-right:3px}.mif_main-pop .mif_popup_all_comments .mif_comment_likes_count .icon-esf-heart .mif_popup_c,.mif_main-pop .mif_popup_all_comments .mif_comment_reply_count .icon-esf-heart .mif_popup_c,.mif_main-pop .mif_popup_all_comments .mif_comment_time .icon-esf-heart .mif_popup_c,.mif_replies_modal .mif_popup_all_comments .mif_comment_likes_count .icon-esf-heart .mif_popup_c,.mif_replies_modal .mif_popup_all_comments .mif_comment_reply_count .icon-esf-heart .mif_popup_c,.mif_replies_modal .mif_popup_all_comments .mif_comment_time .icon-esf-heart .mif_popup_c{font-size:12px}.fancybox-container .fotorama__html .carousel-item{display:block !important}.fancybox-container .mif_replies_modal{max-width:500px;cursor:auto;max-height:400px;overflow:auto;padding:10px !important}.fancybox-container .mif_replies_modal .mif_popup_all_comments{margin-top:0}.fancybox-container .mif_replies_modal .mif_popup_all_comments h4{margin-top:0;margin-bottom:15px;border-bottom:1px solid rgba(0,0,0,.1);padding-bottom:15px;font-weight:400}.fotorama__nav--thumbs .fotorama__nav__frame:last-child{padding-right:2px !important}.fotorama__nav--thumbs .fotorama__nav__frame:first-child{padding-left:2px !important}@media(min-width: 768px){.mif_main-pop .mif_post .mif-popup-carousel-container{min-width:700px}}@media(max-width: 768px){.mif_main-pop{display:block}.mif_main-pop .mif_post,.mif_main-pop .mif_popup_caption{width:100%;padding:0}.mif_main-pop .mif_popup_caption .mif_popup_caption_inner{position:relative}.mif_main-pop .mif_popup_caption .mif_author_info .mif_auth_logo img{width:50px}.mif_main-pop .mif_popup_meta_like_share .mif_popup_likes_holder img{margin-top:5px}.mif_main-pop .mif_popup_meta_like_share .mif_popup_likes_holder span{margin-top:0}}.mif_popup_main .fotorama__html video{width:100% !important;height:auto !important}.mif_popup_main.mif-instagram-type-personal .mif_author_info a{text-decoration:none}.mif_popup_main.mif-instagram-type-personal .mif_author_info a .mif_overlay{border-radius:50%;position:relative;background:rgba(0,0,0,.7);height:40px;width:40px;padding:7px;margin-top:-3px}.mif_popup_main.mif-instagram-type-personal .mif_author_info a .mif_overlay .icon{color:#fff;float:none;margin:0 auto;display:table;margin-top:3px}/*# sourceMappingURL=mif_fancy_popup.css.map */
|
my-instagram-feed/assets/css/mif_fancy_popup.css.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sourceRoot":"","sources":["../scss/mif_fancy_popup.scss"],"names":[],"mappings":"AAMA,cAIE,WAEA,WAEA,WAIF,gCAIE,wBAIF,kBAGC,uBACA,WAKD,2BAIE,eAEA,mBAIF,wDAIM,sBAQN,yEAII,6GACE,oBAEF,+CACA,WAEA,6DACA,8BAKJ,yBACE,WACA,cACA,WAIF,qBACE,WAGF,yBACE,cACA,eAIF,mDAIE,2BAMF,kEAIK,2CAED,0CAEA,yCAEA,8CAEA,sCAIJ,8EAEI,UAEC,2CAED,0CAEA,yCAEA,8CAEA,sCAIJ,gEAII,UAEA,kBAEA,kBAEA,WAEA,YAMJ,kBAIM,WAEF,WAEA,WAMJ,0CAEI,gDAEI,sBAEJ,mBAMJ,WACE,4BACA,oBAEF,OACG,wBACD,gBAEF,UACG,2BACD,mBAEF,KACA,iCACE,yBAEF,QACE,2BACA,mBAEF,YACG,6BACD,qBAEF,UACG,2BACD,mBAEF,gBACE,+CAGF,oCACE,GACE,qCAGF,IACE,qCAGF,KACE,sCAGJ,+FACA,wBACI,mBACA,WACA,eAEJ,oFACA,kEACA,2FACI,WACA,cACJ,qDACM,kBACF,cACA,kBACA,iBACJ,uDACM,kBACF,MACA,QACA,cACA,WACA,iBAEJ,8DACI,kBACA,WACA,WAEJ,+CACM,WACF,WACA,YAGJ,8DACQ,kBACA,MACJ,SACA,WACA,yBACA,UAEJ,oEACI,aAEJ,oEACI,kBACI,aACJ,WACA,YACA,QACA,mBACA,WACA,qBACA,UACA,eACA,2BACA,wBACA,mBACA,yBACA,WACA,0CACA,+CACA,kDAEJ,0EACI,gBACA,UAEJ,2EACI,eACA,cAEJ,uEACM,UACF,UAGJ,qIACA,+EACA,+EAGA,2CACA,4DACA,gEACA,8EACA,+CACA,8EACA,uFACA,2EACA,sGACA,0KAEA,uHACA,qDACI,WACA,gBAEJ,iCACI,aACD,qDACE,UACI,cACL,gBACE,6DACI,eACF,cACA,WACA,cACA,WAGL,uEAcC,YACA,YACA,kBACA,iBACA,kBACA,cAjBD,yHACI,kBACA,MACH,QACI,cACJ,WACE,iBAEE,yLACA,kBAUA,uIACM,WACA,kBAEA,+IACE,WACA,WACA,gBACA,kBAGV,uIACE,WACE,yKACI,SACF,eACE,6KACE,cACA,iBACI,qBAGV,uKACI,SACF,eACA,gBACA,cAMV,iEACE,WACA,WACA,eACA,WACA,cAEF,+EACA,WACE,WAGF,uFACI,WACF,WACA,gBACA,gBACG,mBACH,mBACA,iBAEA,uIACI,WACH,mBACC,+IACM,WACH,WACE,eAEL,iJAEA,WAIJ,uFACI,WACN,cACM,2FACI,eAEJ,iGACI,eAGR,6EACI,YAEE,iFACE,eACA,cACA,qBACA,+BAED,6FACI,cACA,+BAGX,iFACI,WACF,WACI,gBACJ,cACA,+IACE,UACJ,yBAGI,qIACE,4BACN,oCACA,UACI,WACA,WACA,mBACE,2KACI,WACC,UACD,+MACA,WACA,gBACA,wBACA,kBACA,eAEA,2NACE,eACA,gBACA,WACI,cAIV,uKACI,WACF,yBACA,eACA,cACA,UACA,yBACA,mBACA,iBAEE,qMACI,cACA,iBACA,kBACA,qBACA,+BACA,iNACE,cACA,+BAKZ,qHACK,gBACD,WACA,eACA,cACA,eAEJ,2XACE,kBACE,2dACA,eACA,iBAEE,yiBACA,eAMZ,mDACM,yBAEN,uCAEI,gBACE,YACF,iBACA,cACI,wBACN,+DACF,aAEM,kEACI,aACN,mBACA,uCACA,oBACA,gBAIJ,wDACI,6BAEJ,yDACQ,4BAER,yBACK,sDACD,iBAGJ,yBACI,cACQ,cAER,yDACI,WACI,UAER,0DAEQ,kBAER,qEACI,WAEJ,qEACI,eAEJ,sEACI","file":"mif_fancy_popup.css"}
|
1 |
+
{"version":3,"sourceRoot":"","sources":["../scss/mif_fancy_popup.scss"],"names":[],"mappings":"AAMA,cAIE,WAEA,WAEA,WAIF,gCAIE,wBAIF,kBAGC,uBACA,WAKD,2BAIE,eAEA,mBAIF,wDAIM,sBAQN,yEAII,6GACE,oBAEF,+CACA,WAEA,6DACA,8BAKJ,yBACE,WACA,cACA,WAIF,qBACE,WAGF,yBACE,cACA,eAIF,mDAIE,2BAMF,kEAIK,2CAED,0CAEA,yCAEA,8CAEA,sCAIJ,8EAEI,UAEC,2CAED,0CAEA,yCAEA,8CAEA,sCAIJ,gEAII,UAEA,kBAEA,kBAEA,WAEA,YAMJ,kBAIM,WAEF,WAEA,WAMJ,0CAEI,gDAEI,sBAEJ,mBAMJ,WACE,4BACA,oBAEF,OACG,wBACD,gBAEF,UACG,2BACD,mBAEF,KACA,iCACE,yBAEF,QACE,2BACA,mBAEF,YACG,6BACD,qBAEF,UACG,2BACD,mBAEF,gBACE,+CAGF,oCACE,GACE,qCAGF,IACE,qCAGF,KACE,sCAGJ,+FACA,wBACI,mBACA,WACA,eAEJ,oFACA,kEACA,2FACI,WACA,cACJ,qDACM,kBACF,cACA,kBACA,iBACJ,uDACM,kBACF,MACA,QACA,cACA,WACA,iBAEJ,8DACI,kBACA,WACA,WAEJ,+CACM,WACF,WACA,YAGJ,8DACQ,kBACA,MACJ,SACA,WACA,yBACA,UAEJ,oEACI,aAEJ,oEACI,kBACI,aACJ,WACA,YACA,QACA,mBACA,WACA,qBACA,UACA,eACA,2BACA,wBACA,mBACA,yBACA,WACA,0CACA,+CACA,kDAEJ,0EACI,gBACA,UAEJ,2EACI,eACA,cAEJ,uEACM,UACF,UAGJ,qIACA,+EACA,+EAGA,2CACA,4DACA,gEACA,8EACA,+CACA,8EACA,uFACA,2EACA,sGACA,0KAEA,uHACA,qDACI,WACA,gBAEJ,iCACI,aACD,qDACE,UACI,cACL,gBACE,6DACI,eACF,cACA,WACA,cACA,WAGL,uEAcC,YACA,YACA,kBACA,iBACA,kBACA,cAjBD,yHACI,kBACA,MACH,QACI,cACJ,WACE,iBAEE,yLACA,kBAUA,uIACM,WACA,kBAEA,+IACE,WACA,WACA,gBACA,kBAGV,uIACE,WACE,yKACI,SACF,eACE,6KACE,cACA,iBACI,qBAGV,uKACI,SACF,eACA,gBACA,cAMV,iEACE,WACA,WACA,eACA,WACA,cAEF,+EACA,WACE,WAGF,uFACI,WACF,WACA,gBACA,gBACG,mBACH,mBACA,iBAEA,uIACI,WACH,mBACC,+IACM,WACH,WACE,eAEL,iJAEA,WAIJ,uFACI,WACN,cACM,2FACI,eAEJ,iGACI,eAGR,6EACI,YAEE,iFACE,eACA,cACA,qBACA,+BAED,6FACI,cACA,+BAGX,iFACI,WACF,WACI,gBACJ,cACA,+IACE,UACJ,yBAGI,qIACE,4BACN,oCACA,UACI,WACA,WACA,mBACE,2KACI,WACC,UACD,+MACA,WACA,gBACA,wBACA,kBACA,eAEA,2NACE,eACA,gBACA,WACI,cAIV,uKACI,WACF,yBACA,eACA,cACA,UACA,yBACA,mBACA,iBAEE,qMACI,cACA,iBACA,kBACA,qBACA,+BACA,iNACE,cACA,+BAKZ,qHACK,gBACD,WACA,eACA,cACA,eAEJ,2XACE,kBACE,2dACA,eACA,iBAEE,yiBACA,eAMZ,mDACM,yBAEN,uCAEI,gBACE,YACF,iBACA,cACI,wBACN,+DACF,aAEM,kEACI,aACN,mBACA,uCACA,oBACA,gBAIJ,wDACI,6BAEJ,yDACQ,4BAER,yBACK,sDACD,iBAGJ,yBACI,cACQ,cAER,yDACI,WACI,UAER,0DAEQ,kBAER,qEACI,WAEJ,qEACI,eAEJ,sEACI,cAIN,sCACE,sBACA,uBAOA,+DACI,qBAEA,4EACI,kBACA,kBACA,0BACA,YACA,WACA,YACA,gBAEA,kFACA,WACA,WACA,cACA,cACA","file":"mif_fancy_popup.css"}
|
my-instagram-feed/assets/css/mif_style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mif_wrap{float:left;width:100%;padding-bottom:20px}.mif_wrap .mif_feeds_holder .mif_grid_layout{background-size:cover;background-position:center center;background-repeat:no-repeat;height:317px;margin:5px}.mif_wrap .mif_feeds_holder .mif_grid_layout img{display:none}.mif_wrap .feed_type_video .video_icon{position:absolute;top:50%;transform:translate(0px, -50%);margin-left:auto;margin-right:auto;left:0;right:0;background-position:0 -39px;height:80px;width:80px}.mif_wrap .mif_carousel_icon{display:none;right:10px;top:10px;position:absolute;font-size:18px;color:#fff}.mif_wrap .feed_type_carousel_album .mif_carousel_icon{display:block}.mif_wrap .mif_default_layout,.mif_wrap .mif_full_layout{width:100%;height:auto;cursor:auto;border-color:#ccc;border-bottom-width:1px;border-style:solid;border-top:0;border-left:0;border-right:0;padding:30px 0}.mif_wrap .mif_grid_left_img img,.mif_wrap .mif_grid_left_img .mejs-video{max-width:100%}@media only screen and (min-width: 786px){.mif_wrap .mif_grid_left_img img,.mif_wrap .mif_grid_left_img .mejs-video{-moz-transition:all .3s;-webkit-transition:all .3s;transition:all .3s}}@media only screen and (min-width: 786px){.mif_wrap .mif_grid_left_img:hover img,.mif_wrap .mif_grid_left_img:hover .mejs-video{-moz-transform:scale(1.1);-webkit-transform:scale(1.1);transform:scale(1.1);-moz-transition:all .3s;-webkit-transition:all .3s;transition:all .3s}}.mif_wrap .mif_grid_left_img:hover .mif_content_holder{opacity:1;visibility:visible}.mif_wrap .mif_grid_left{float:left;width:49%}.mif_wrap .mif_grid_layout .mif_likes,.mif_wrap .mif_grid_layout .mif_coments,.mif_wrap .mif_full_layout .mif_likes,.mif_wrap .mif_full_layout .mif_coments{float:left;position:static;margin:0;display:inline-block;clear:initial}.mif_wrap .mif_grid_layout .mif_coments{margin-left:10px}.mif_wrap .mif_grid_right{float:right;width:49%}.mif_wrap .mif_grid_right .mif_content_holder,.mif_wrap .mif_full_top .mif_content_holder{float:left;opacity:1;visibility:visible;width:100%;position:static;height:auto}.mif_wrap .mif_grid_right .mif_caption,.mif_wrap .mif_full_top .mif_caption{position:relative;background-color:transparent;color:#000;text-align:left}.mif_wrap .mif_grid_right .mif_icons_holder{position:relative;width:100%;float:left}.mif_wrap .mif_grid_left_img,.mif_wrap .mif_full_img{float:left;clear:both;width:100%;position:relative;cursor:pointer;overflow:hidden}@media only screen and (min-width: 786px){.mif_wrap .mif_grid_left_img,.mif_wrap .mif_full_img{-moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s}}.mif_wrap .mif_open-popup-link{position:absolute;width:100%;height:100%;z-index:999999999999999999}.mif_wrap .mif_fulls .mif_feed_popup{position:absolute;width:100%;height:100%}.mif_wrap .mif_fulls .icon{height:100%;top:0 !important}.mif_wrap .mif_fulls .icon::before{position:absolute;top:50%;left:0;right:0;margin:0 auto;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.mif_wrap .mif_grid_layout .mif_fulls .icon::before{position:relative}.mif_wrap .mif_grid_layout .mif_feed_popup_free{font-size:35px;color:#fff;text-decoration:none}.mif_wrap .mif_grid_layout .mif_feed_popup_free:hover{text-decoration:none !important;box-shadow:none}.mif_wrap .mif_grid_layout .mif_overlay .icon,.mif_wrap .mif_carousel_layout .mif_overlay .icon{position:absolute;right:0;left:0;top:50%;transform:translateY(-50%);text-align:center;font-size:35px;color:#fff}.mif_wrap .mif_grid_layout .mif_fulls a{float:left;position:relative;height:auto;width:auto;display:inline-block}.mif_wrap .mif_grid_left_img:hover .mif_fulls,.mif_wrap .mif_full_img:hover .mif_fulls,.mif_wrap .mif_masonary_layout:hover .mif_fulls,.mif_wrap .mif_carousel_layout:hover .mif_fulls{opacity:1;visibility:visible;cursor:pointer;float:left;width:100%;margin:0;height:100%;background-color:rgba(0,0,0,.3);z-index:999;top:0}@media only screen and (min-width: 786px){.mif_wrap .mif_grid_left_img:hover .mif_fulls,.mif_wrap .mif_full_img:hover .mif_fulls,.mif_wrap .mif_masonary_layout:hover .mif_fulls,.mif_wrap .mif_carousel_layout:hover .mif_fulls{-moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s}}.mif_wrap .mif_full_img:hover .mif_fulls{height:99%}.mif_wrap .mif_grid_left_img .mif_fulls .icon,.mif_wrap .mif_full_img .mif_fulls .icon,.mif_wrap .mif_masonary_layout .mif_fulls .icon,.mif_wrap .mif_carousel_layout .mif_fulls .icon{font-size:35px}.mif_wrap .mif_grid_left_img:hover .mif_fulls .icon,.mif_wrap .mif_full_img:hover .mif_fulls .icon,.mif_wrap .mif_masonary_layout:hover .mif_fulls .icon,.mif_wrap .mif_carousel_layout:hover .mif_fulls .icon{float:none;margin:0 auto;position:absolute;left:0;right:0;top:50%;z-index:9999999999;margin:0 auto;text-align:center;font-size:35px;color:#fff;font-weight:normal;transition:all .5s ease-in;-o-transition:all .5s ease-in;-ms-transition:all .5s ease-in;-moz-transition:all .5s ease-in;-webkit-transition:all .5s ease-in}.mif_wrap .mif_full_layout .mif_lnc_holder{float:left;width:auto;clear:both;height:auto;float:left}.mif_wrap .mif_grid_right .mif_header,.mif_wrap .mif_full_top .mif_header{padding-left:0;border:none !important;padding:0;margin:0}.mif_wrap .mif_grid_right .mif_head_img_holder,.mif_wrap .mif_full_top .mif_head_img_holder{margin-top:0 !important}.mif_wrap .mif_head_img_holder .mif_nodp{background-color:#000;padding:10px;color:#fff;border-radius:4px}.mif_wrap .mif_grid_right .mif_header_title,.mif_wrap .mif_full_top .mif_header_title{font-size:14px;margin-top:0 !important;font-weight:normal}.mif_wrap .mif_grid_right .mif_header_img,.mif_wrap .mif_full_top .mif_header_img{width:40px;border-radius:0}.mif_wrap .mif_header_time{float:left}.mif_wrap .mif_header_time p{float:left;clear:both;margin-left:10px;font-size:11px;color:initial;margin-top:0}.mif_wrap .mif_grid_b_bar{float:left;width:100%;clear:both}.mif_wrap .mif_external_holder{float:right}.mif_wrap .mif_external_holder a{float:left;box-shadow:none;text-decoration:none;margin-left:10px}.mif_wrap .mif_external_holder a:hover{-moz-transition:all ease-in .3s;-ms-transition:all ease-in .3s;-o-transition:all ease-in .3s;-webkit-transition:all ease-in .3s;transition:all ease-in .3s}.mif_wrap .mif_links_container{position:relative;background:#333;padding:10px;right:0;width:auto;float:right;clear:both}.mif_wrap .mif_links_container .icon,.mif_wrap .mif_links_container .icon{float:left;display:inline-block;color:#fff;margin-right:9px;margin-left:9px}.mif_wrap .mif_links_container a{float:left;margin:0}.mif_wrap .mif_grid_layout .mif_links_container,.mif_wrap .mif_masonary_layout .mif_links_container{position:absolute;bottom:0;width:100%;text-align:center;opacity:0;visibility:hidden;transition:all 1s ease-in;-o-transition:all 1s ease-in;-ms-transition:all 1s ease-in;-moz-transition:all 1s ease-in;-webkit-transition:all 1s ease-in;height:30px}.mif_wrap .mif_grid_layout .mif_links_container a,.mif_wrap .mif_masonary_layout .mif_links_container a{width:33%;box-shadow:none;font-size:12px}.mif_single{float:left;display:inline-block;position:relative;border:none}.mif_single .mif_header a{width:auto !important}.mif_single .mif_header .mif_header_time{margin-left:5px !important}.mif_single .mif_header .mif_header_time p{margin-left:0 !important}.mif_header a{float:left;width:8%;clear:both;border:0;text-decoration:none;box-shadow:none}.mif_header_main{padding:10px}.mif_header{float:left;width:100%;clear:both;padding:10px;border-color:#ccc;border-style:solid;border-bottom-width:1px;border-top-width:0;border-bottom-width:0;border-left-width:0;border-right-width:0;padding-left:0}.mif_header .mif_inner_wrap{float:left;margin:0 auto;display:table}.mif_hash_overlay{background-color:#000;border-radius:50%;padding:10px 18px 10px 18px;width:50px;height:50px}.mif_hash_overlay .icon{line-height:1.8;color:#fff}.mif_header_img{float:left;width:60px;border-radius:0;display:inline-block}.mif_header_title{margin-right:10px;float:left;clear:right;display:inline-block;margin-top:0;margin-bottom:0}.mif_posts,.mif_followers{float:left;margin-right:10px;font-size:14px;color:#000}.mif_posts .icon,.mif_followers .icon{margin-right:5px}.mif_bio{float:left;clear:both;margin-top:0;margin-bottom:0;font-size:16px;color:#000}.mif_single img{height:auto;width:100%}.mif_single video{width:100%;z-index:999;margin-bottom:0}.mif_single{FLOAT:left;WIDTH:100%;text-decoration:none;position:relative;overflow:hidden}@media only screen and (min-width: 786px){.mif_single{-moz-transition:all ease-in .3s;-ms-transition:all ease-in .3s;-o-transition:all ease-in .3s;-webkit-transition:all ease-in .3s;transition:all ease-in .3s}}.mif_default_layout .mif_fulls,.mif_full_layout .mif_fulls{visibility:hidden;position:absolute;opacity:0;width:100%;height:100%;top:0;margin-left:0}@media only screen and (min-width: 786px){.mif_default_layout .mif_fulls,.mif_full_layout .mif_fulls{transition:all .5s ease-in;-o-transition:all .5s ease-in;-ms-transition:all .5s ease-in;-moz-transition:all .5s ease-in;-webkit-transition:all .5s ease-in}}.mif_default_layout .mif_likes,.mif_default_layout .mif_coments{position:relative;float:left;clear:none;background-color:#6f7d7e;color:#fff;margin-top:10px;top:0;margin-left:0}.mif_default_layout .mif_likes p,.mif_default_layout .mif_coments p,.mif_full_layout .mif_likes p,.mif_full_layout .mif_coments p{color:#fff}.mif_default_layout .mif_lnc_holder{float:left;width:auto}.loading .sk-fading-circle{width:24px;height:15px;position:relative;float:left;margin-top:3px;margin-right:5px}.loading .sk-fading-circle .sk-circle{width:100%;height:100%;position:absolute;left:0;top:0}.loading .sk-fading-circle .sk-circle:after{content:"";display:block;margin:0 auto;width:15%;height:15%;background-color:#fff;border-radius:100%;-webkit-animation:sk-circleFadeDelay 1.2s infinite ease-in-out both;animation:sk-circleFadeDelay 1.2s infinite ease-in-out both}.loading .sk-fading-circle .sk-circle2{-webkit-transform:rotate(30deg);-ms-transform:rotate(30deg);transform:rotate(30deg)}.loading .loading .sk-fading-circle .sk-circle3{-webkit-transform:rotate(60deg);-ms-transform:rotate(60deg);transform:rotate(60deg)}.loading .sk-fading-circle .sk-circle4{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.loading .sk-fading-circle .sk-circle5{-webkit-transform:rotate(120deg);-ms-transform:rotate(120deg);transform:rotate(120deg)}.loading .sk-fading-circle .sk-circle6{-webkit-transform:rotate(150deg);-ms-transform:rotate(150deg);transform:rotate(150deg)}.loading .sk-fading-circle .sk-circle7{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.loading .sk-fading-circle .sk-circle8{-webkit-transform:rotate(210deg);-ms-transform:rotate(210deg);transform:rotate(210deg)}.sk-fading-circle .sk-circle9{-webkit-transform:rotate(240deg);-ms-transform:rotate(240deg);transform:rotate(240deg)}.loading .sk-fading-circle .sk-circle10{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.loading .sk-fading-circle .sk-circle11{-webkit-transform:rotate(300deg);-ms-transform:rotate(300deg);transform:rotate(300deg)}.loading .sk-fading-circle .sk-circle12{-webkit-transform:rotate(330deg);-ms-transform:rotate(330deg);transform:rotate(330deg)}.loading .sk-fading-circle .sk-circle2:after{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.loading .sk-fading-circle .sk-circle3:after{-webkit-animation-delay:-1s;animation-delay:-1s}.loading .sk-fading-circle .sk-circle4:after{-webkit-animation-delay:-0.9s;animation-delay:-0.9s}.loading .sk-fading-circle .sk-circle5:after{-webkit-animation-delay:-0.8s;animation-delay:-0.8s}.loading .sk-fading-circle .sk-circle6:after{-webkit-animation-delay:-0.7s;animation-delay:-0.7s}.loading .sk-fading-circle .sk-circle7:after{-webkit-animation-delay:-0.6s;animation-delay:-0.6s}.loading .sk-fading-circle .sk-circle8:after{-webkit-animation-delay:-0.5s;animation-delay:-0.5s}.loading .sk-fading-circle .sk-circle9:after{-webkit-animation-delay:-0.4s;animation-delay:-0.4s}.loading .sk-fading-circle .sk-circle10:after{-webkit-animation-delay:-0.3s;animation-delay:-0.3s}.loading .sk-fading-circle .sk-circle11:after{-webkit-animation-delay:-0.2s;animation-delay:-0.2s}.loading .sk-fading-circle .sk-circle12:after{-webkit-animation-delay:-0.1s;animation-delay:-0.1s}@-webkit-keyframes sk-circleFadeDelay{0%,39%,100%{opacity:0}40%{opacity:1}}@keyframes sk-circleFadeDelay{0%,39%,100%{opacity:0}40%{opacity:1}}.mif_load_feeds.loading{padding-right:30px;padding-left:10px;-moz-transition:all ease-in .3s;-ms-transition:all ease-in .3s;-o-transition:all ease-in .3s;-webkit-transition:all ease-in .3s;transition:all ease-in .3s}.mif_load_feeds,.mif_follow_btn{display:-moz-inline-stack;display:inline-block;vertical-align:top;zoom:1;padding:9px 20px;margin:5px auto 0 auto;background:#333;color:#eee;border:none;color:#fff;text-decoration:none;font-size:13px;line-height:1.5;-moz-transition:all ease-in .3s;-ms-transition:all ease-in .3s;-o-transition:all ease-in .3s;-webkit-transition:all ease-in .3s;transition:all ease-in .3s;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mif_load_feeds:hover,.mif_follow_btn:hover{opacity:.8;color:#fff;-moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s}.mif_load_btns{float:none;margin:0 auto;display:table;padding-top:20px}.mif_follow_btn{background:#517fa4;color:#fff !important;margin-left:10px;text-decoration:none !important;padding-bottom:5px}.mif_follow_btn .icon,.mif_follow_btn .icon{float:left;margin-right:7px;font-size:15px}.mif_like_holder p{margin-bottom:0;float:left;font-size:12px;margin-right:10px;color:#fff}.mif_likes_main{margin:0 auto;top:50%;position:relative;display:table}.mif_default_layout .mif_content_holder,.mif_default_layout .mif_overlay{opacity:0;visibility:hidden;position:absolute;bottom:0;width:100%;height:100%}@media only screen and (min-width: 786px){.mif_default_layout .mif_content_holder,.mif_default_layout .mif_overlay{-webkit-transition:all .3s ease-in;-moz-transition:all .3s ease-in;transition:all .3s ease-in}}.mif_default_layout:hover .mif_overlay,.mif_header a:hover .mif_overlay{opacity:1;visibility:visible;background-color:rgba(0,0,0,.3);width:100%;height:100%;position:absolute}@media only screen and (min-width: 786px){.mif_default_layout:hover .mif_overlay,.mif_header a:hover .mif_overlay{-moz-transition:all ease-in .3s;-ms-transition:all ease-in .3s;-o-transition:all ease-in .3s;-webkit-transition:all ease-in .3s;transition:all ease-in 1s}}.mif_grid_layout .mif_overlay{opacity:0;visibility:hidden}.mif_grid_layout:hover .mif_overlay{opacity:1;visibility:visible;background-color:rgba(0,0,0,.3);width:100%;height:100%;position:absolute}@media only screen and (min-width: 786px){.mif_grid_layout:hover .mif_overlay{-moz-transition:all ease-in .2s;-ms-transition:all ease-in .2s;-o-transition:all ease-in .2s;-webkit-transition:all ease-in .2s;transition:all ease-in .2s}}.mif_external,.mif_fulls{float:left;background-color:#000}.mif_icons_holder{position:absolute;left:0;right:0;margin-left:auto;margin-right:auto;width:30%;top:78%;z-index:999999999}.mif_lnc_holder{float:left;width:100%;clear:both;height:auto;moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s}.mif_likes,.mif_coments{top:10px;margin-left:10px;position:absolute;color:#fff;width:auto;padding:5px 10px;float:left;clear:both;height:auto;-moz-transition:all ease-in 1s;-ms-transition:all ease-in 1s;-o-transition:all ease-in 1s;-webkit-transition:all ease-in 1s;transition:all ease-in 1s}.mif_grid_layout:hover .mif_likes,.mif_grid_layout:hover .mif_coments{opacity:0;-moz-transition:all ease-in 1s;-ms-transition:all ease-in 1s;-o-transition:all ease-in 1s;-webkit-transition:all ease-in 1s;transition:all ease-in 1s}.mif_grid_left_img:hover .mif_fulls,.mif_full_img:hover .mif_fulls{position:absolute}.mif_grid_layout:hover .mif_caption{animation-name:slideDown;-webkit-animation-name:slideDown;animation-duration:1s;-webkit-animation-duration:1s;animation-timing-function:ease-in;-webkit-animation-timing-function:ease-in;visibility:visible !important;-webkit-transition:all .5s ease-in;-moz-transition:all .5s ease-in;transition:all 1s ease-in}.mif_grid_layout:hover .mif_external{animation-name:slideLeft;-webkit-animation-name:slideLeft;animation-duration:.7s;-webkit-animation-duration:.7s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important}.mif_grid_layout:hover .mif_fulls{animation-name:SlideRight;-webkit-animation-name:SlideRight;animation-duration:.7s;-webkit-animation-duration:.7s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important}.mif_grid_layout:hover .mif_links_container,.mif_masonary_layout:hover .mif_links_container{animation-name:fadeIn;-webkit-animation-name:fadeIn;animation-duration:.5s;-webkit-animation-duration:.5s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important;opacity:1 !important}.mif_masonary_layout:hover .mif_links_container{z-index:9999999}.mif_external .icon,.mif_fulls .icon{color:#f8e9b2}.mif_coments{right:0;width:auto;margin:0;padding-right:20px}.mif_likes .icon,.mif_coments .icon{float:left;margin-top:5px;font-size:14px;color:#fff;margin-right:5px}.mif_likes p,.mif_coments p{margin:0;float:left;font-size:15px}.mif_head_img_holder{float:left;position:relative}.mif_header_data{float:left;width:90%}.mif_caption{background-color:#000;height:auto;color:#fff;transition:all 2s ease-in;-o-transition:all 2s ease-in;-ms-transition:all 2s ease-in;-moz-transition:all 2s ease-in;-webkit-transition:all 1s ease-in}.mif_head_img_holder .mif_overlay{border-radius:0;position:absolute;opacity:0;width:100%;height:100%;transition:all .5s ease-in;-o-transition:all .5s ease-in;-ms-transition:all .5s ease-in;-moz-transition:all .5s ease-in;-webkit-transition:all .5s ease-in}.mif_header a:hover .mif_overlay{background-color:rgba(0,0,0,.8);transition:all .5s ease-in;-o-transition:all .5s ease-in;-ms-transition:all .5s ease-in;-moz-transition:all .5s ease-in;-webkit-transition:all .5s ease-in}.mif_head_img_holder .mif_overlay .icon{float:none;margin:0 auto;display:table;margin-top:16px;color:#fff}.mif_caption p{font-size:12px;margin-bottom:0}#mif_load_btn{cursor:pointer}.mif_grid_layout .mif_lnc_holder{position:absolute;z-index:9}.mif_grid_layout .mif_lnc_holder .mif_likes,.mif_grid_layout .mif_lnc_holder .mif_coments{background-color:#000;padding:5px 10px;margin:0}.mif_grid_layout .mif_lnc_holder .mif_likes .icon,.mif_grid_layout .mif_lnc_holder .mif_likes p,.mif_grid_layout .mif_lnc_holder .mif_coments .icon,.mif_grid_layout .mif_lnc_holder .mif_coments p{color:#fff}.mif_grid_layout:hover{cursor:pointer}.mif_grid_layout .mif_lnc_holder .mif_coments{float:right}.mif_grid_layout .mif_content_holder{position:absolute;right:0;left:0;top:50%;transform:translateY(-50%);text-align:center;opacity:0;visibility:hidden}@media only screen and (min-width: 786px){.mif_grid_layout .mif_content_holder{transition:all 2s ease-in;-o-transition:all 2s ease-in;-ms-transition:all 2s ease-in;-moz-transition:all 2s ease-in;-webkit-transition:all 1s ease-in}}.mif_grid_layout .mif_content_holder .mif_caption p{color:#fff}.mif_grid_layout:hover .mif_content_holder{opacity:1;visibility:visible;transition:all .8s ease-in;-o-transition:all .8s ease-in;-ms-transition:all .8s ease-in;-moz-transition:all .8s ease-in;-webkit-transition:all .8s ease-in}.mif_grid_layout .mif_icons_holder{margin:0 auto;float:none;position:relative;margin-top:5px;text-align:center;display:table;height:auto;width:auto}.mif_grid_layout .mif_icons_holder a{float:left}.mif_grid_layout .mif_fulls{opacity:1;visibility:visible;margin-left:8px}.mif_grid_layout .mif_content_holder{top:50%;transform:translate(-50%, -50%);width:auto;left:50%;right:auto}.mif_wrap.mif_ver_pro a.mif_feed_popup_free_hide{display:none !important}/*# sourceMappingURL=mif_style.css.map */
|
1 |
+
.mif_wrap{width:100%;padding-bottom:20px}.mif_wrap .mif_feeds_holder .mif_grid_layout{background-size:cover;background-position:center center;background-repeat:no-repeat;height:317px;margin:5px}.mif_wrap .mif_feeds_holder .mif_grid_layout img{display:none}.mif_wrap .feed_type_video .video_icon{position:absolute;top:50%;transform:translate(0px, -50%);margin-left:auto;margin-right:auto;left:0;right:0;background-position:0 -39px;height:80px;width:80px}.mif_wrap .mif_carousel_icon{display:none;right:10px;top:10px;position:absolute;font-size:18px;color:#fff}.mif_wrap .feed_type_carousel_album .mif_carousel_icon{display:block}.mif_wrap .mif_default_layout,.mif_wrap .mif_full_layout{width:100%;height:auto;cursor:auto;border-color:#ccc;border-bottom-width:1px;border-style:solid;border-top:0;border-left:0;border-right:0;padding:30px 0}.mif_wrap .mif_grid_left_img img,.mif_wrap .mif_grid_left_img .mejs-video{max-width:100%}@media only screen and (min-width: 786px){.mif_wrap .mif_grid_left_img img,.mif_wrap .mif_grid_left_img .mejs-video{-moz-transition:all .3s;-webkit-transition:all .3s;transition:all .3s}}@media only screen and (min-width: 786px){.mif_wrap .mif_grid_left_img:hover img,.mif_wrap .mif_grid_left_img:hover .mejs-video{-moz-transform:scale(1.1);-webkit-transform:scale(1.1);transform:scale(1.1);-moz-transition:all .3s;-webkit-transition:all .3s;transition:all .3s}}.mif_wrap .mif_grid_left_img:hover .mif_content_holder{opacity:1;visibility:visible}.mif_wrap .mif_grid_left{float:left;width:49%}.mif_wrap .mif_grid_layout .mif_likes,.mif_wrap .mif_grid_layout .mif_coments,.mif_wrap .mif_full_layout .mif_likes,.mif_wrap .mif_full_layout .mif_coments{float:left;position:static;margin:0;display:inline-block;clear:initial}.mif_wrap .mif_grid_layout .mif_coments{margin-left:10px}.mif_wrap .mif_grid_right{float:right;width:49%}.mif_wrap .mif_grid_right .mif_content_holder,.mif_wrap .mif_full_top .mif_content_holder{float:left;opacity:1;visibility:visible;width:100%;position:static;height:auto}.mif_wrap .mif_grid_right .mif_caption,.mif_wrap .mif_full_top .mif_caption{position:relative;background-color:transparent;color:#000;text-align:left}.mif_wrap .mif_grid_right .mif_icons_holder{position:relative;width:100%;float:left}.mif_wrap .mif_grid_left_img,.mif_wrap .mif_full_img{float:left;clear:both;width:100%;position:relative;cursor:pointer;overflow:hidden}@media only screen and (min-width: 786px){.mif_wrap .mif_grid_left_img,.mif_wrap .mif_full_img{-moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s}}.mif_wrap .mif_open-popup-link{position:absolute;width:100%;height:100%;z-index:999999999999999999}.mif_wrap .mif_fulls .mif_feed_popup{position:absolute;width:100%;height:100%}.mif_wrap .mif_fulls .icon{height:100%;top:0 !important}.mif_wrap .mif_fulls .icon::before{position:absolute;top:50%;left:0;right:0;margin:0 auto;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.mif_wrap .mif_grid_layout .mif_fulls .icon::before{position:relative}.mif_wrap .mif_grid_layout .mif_feed_popup_free{font-size:35px;color:#fff;text-decoration:none}.mif_wrap .mif_grid_layout .mif_feed_popup_free:hover{text-decoration:none !important;box-shadow:none}.mif_wrap .mif_grid_layout .mif_overlay .icon,.mif_wrap .mif_carousel_layout .mif_overlay .icon{position:absolute;right:0;left:0;top:50%;transform:translateY(-50%);text-align:center;font-size:35px;color:#fff}.mif_wrap .mif_grid_layout .mif_fulls a{float:left;position:relative;height:auto;width:auto;display:inline-block}.mif_wrap .mif_grid_left_img:hover .mif_fulls,.mif_wrap .mif_full_img:hover .mif_fulls,.mif_wrap .mif_masonary_layout:hover .mif_fulls,.mif_wrap .mif_carousel_layout:hover .mif_fulls{opacity:1;visibility:visible;cursor:pointer;float:left;width:100%;margin:0;height:100%;background-color:rgba(0,0,0,.3);z-index:999;top:0}@media only screen and (min-width: 786px){.mif_wrap .mif_grid_left_img:hover .mif_fulls,.mif_wrap .mif_full_img:hover .mif_fulls,.mif_wrap .mif_masonary_layout:hover .mif_fulls,.mif_wrap .mif_carousel_layout:hover .mif_fulls{-moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s}}.mif_wrap .mif_full_img:hover .mif_fulls{height:99%}.mif_wrap .mif_grid_left_img .mif_fulls .icon,.mif_wrap .mif_full_img .mif_fulls .icon,.mif_wrap .mif_masonary_layout .mif_fulls .icon,.mif_wrap .mif_carousel_layout .mif_fulls .icon{font-size:35px}.mif_wrap .mif_grid_left_img:hover .mif_fulls .icon,.mif_wrap .mif_full_img:hover .mif_fulls .icon,.mif_wrap .mif_masonary_layout:hover .mif_fulls .icon,.mif_wrap .mif_carousel_layout:hover .mif_fulls .icon{float:none;margin:0 auto;position:absolute;left:0;right:0;top:50%;z-index:9999999999;margin:0 auto;text-align:center;font-size:35px;color:#fff;font-weight:normal;transition:all .5s ease-in;-o-transition:all .5s ease-in;-ms-transition:all .5s ease-in;-moz-transition:all .5s ease-in;-webkit-transition:all .5s ease-in}.mif_wrap .mif_full_layout .mif_lnc_holder{float:left;width:auto;clear:both;height:auto;float:left}.mif_wrap .mif_grid_right .mif_header,.mif_wrap .mif_full_top .mif_header{padding-left:0;border:none !important;padding:0;margin:0}.mif_wrap .mif_grid_right .mif_head_img_holder,.mif_wrap .mif_full_top .mif_head_img_holder{margin-top:0 !important}.mif_wrap .mif_head_img_holder .mif_nodp{background-color:rgba(0,0,0,.8);padding:10px 10px 5px;color:#fff;border-radius:4px}.mif_wrap .mif_grid_right .mif_header_title,.mif_wrap .mif_full_top .mif_header_title{font-size:14px;margin-top:0 !important;font-weight:normal;margin-bottom:0}.mif_wrap .mif_grid_right .mif_header_img,.mif_wrap .mif_full_top .mif_header_img{width:40px;border-radius:0}.mif_wrap .mif_header_time{float:left}.mif_wrap .mif_header_time p{float:left;clear:both;margin-left:10px;font-size:11px;color:initial;margin-top:0}.mif_wrap .mif_grid_b_bar{float:left;width:100%;clear:both}.mif_wrap .mif_external_holder{float:right}.mif_wrap .mif_external_holder a{float:left;box-shadow:none;text-decoration:none;margin-left:10px}.mif_wrap .mif_external_holder a:hover{-moz-transition:all ease-in .3s;-ms-transition:all ease-in .3s;-o-transition:all ease-in .3s;-webkit-transition:all ease-in .3s;transition:all ease-in .3s}.mif_wrap .mif_links_container{position:relative;background:#333;padding:10px;right:0;width:auto;float:right;clear:both}.mif_wrap .mif_links_container .icon,.mif_wrap .mif_links_container .icon{float:left;display:inline-block;color:#fff;margin-right:9px;margin-left:9px}.mif_wrap .mif_links_container a{float:left;margin:0}.mif_wrap .mif_grid_layout .mif_links_container,.mif_wrap .mif_masonary_layout .mif_links_container{position:absolute;bottom:0;width:100%;text-align:center;opacity:0;visibility:hidden;transition:all 1s ease-in;-o-transition:all 1s ease-in;-ms-transition:all 1s ease-in;-moz-transition:all 1s ease-in;-webkit-transition:all 1s ease-in;height:30px}.mif_wrap .mif_grid_layout .mif_links_container a,.mif_wrap .mif_masonary_layout .mif_links_container a{width:33%;box-shadow:none;font-size:12px}.mif_single{float:left;display:inline-block;position:relative;border:none}.mif_single .mif_header a{width:auto !important}.mif_single .mif_header .mif_header_time{margin-left:5px !important}.mif_single .mif_header .mif_header_time p{margin-left:0 !important}.mif_header a{float:left;width:8%;clear:both;border:0;text-decoration:none;box-shadow:none}.mif_header_main{padding:10px}.mif_header{float:left;width:100%;clear:both;padding:10px;border-color:#ccc;border-style:solid;border-bottom-width:1px;border-top-width:0;border-bottom-width:0;border-left-width:0;border-right-width:0;padding-left:0}.mif_header .mif_inner_wrap{float:left;margin:0 auto;display:table}.mif_hash_overlay{background-color:#000;border-radius:50%;padding:10px 18px 10px 18px;width:50px;height:50px}.mif_hash_overlay .icon{line-height:1.8;color:#fff}.mif_header_img{float:left;width:60px;border-radius:0;display:inline-block}.mif_header_title{margin-right:10px;float:left;clear:right;display:inline-block;margin-top:0;margin-bottom:0}.mif_posts,.mif_followers{float:left;margin-right:10px;font-size:14px;color:#000}.mif_posts .icon,.mif_followers .icon{margin-right:5px}.mif_bio{float:left;clear:both;margin-top:0;margin-bottom:0;font-size:16px;color:#000}.mif_single img{height:auto;width:100%}.mif_single video{width:100%;z-index:999;margin-bottom:0}.mif_single{FLOAT:left;WIDTH:100%;text-decoration:none;position:relative;overflow:hidden}@media only screen and (min-width: 786px){.mif_single{-moz-transition:all ease-in .3s;-ms-transition:all ease-in .3s;-o-transition:all ease-in .3s;-webkit-transition:all ease-in .3s;transition:all ease-in .3s}}.mif_default_layout .mif_fulls,.mif_full_layout .mif_fulls{visibility:hidden;position:absolute;opacity:0;width:100%;height:100%;top:0;margin-left:0}@media only screen and (min-width: 786px){.mif_default_layout .mif_fulls,.mif_full_layout .mif_fulls{transition:all .5s ease-in;-o-transition:all .5s ease-in;-ms-transition:all .5s ease-in;-moz-transition:all .5s ease-in;-webkit-transition:all .5s ease-in}}.mif_default_layout .mif_likes,.mif_default_layout .mif_coments{position:relative;float:left;clear:none;background-color:#6f7d7e;color:#fff;margin-top:10px;top:0;margin-left:0}.mif_default_layout .mif_likes p,.mif_default_layout .mif_coments p,.mif_full_layout .mif_likes p,.mif_full_layout .mif_coments p{color:#fff}.mif_default_layout .mif_lnc_holder{float:left;width:auto}.loading .sk-fading-circle{width:24px;height:15px;position:relative;float:left;margin-top:3px;margin-right:5px}.loading .sk-fading-circle .sk-circle{width:100%;height:100%;position:absolute;left:0;top:0}.loading .sk-fading-circle .sk-circle:after{content:"";display:block;margin:0 auto;width:15%;height:15%;background-color:#fff;border-radius:100%;-webkit-animation:sk-circleFadeDelay 1.2s infinite ease-in-out both;animation:sk-circleFadeDelay 1.2s infinite ease-in-out both}.loading .sk-fading-circle .sk-circle2{-webkit-transform:rotate(30deg);-ms-transform:rotate(30deg);transform:rotate(30deg)}.loading .loading .sk-fading-circle .sk-circle3{-webkit-transform:rotate(60deg);-ms-transform:rotate(60deg);transform:rotate(60deg)}.loading .sk-fading-circle .sk-circle4{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.loading .sk-fading-circle .sk-circle5{-webkit-transform:rotate(120deg);-ms-transform:rotate(120deg);transform:rotate(120deg)}.loading .sk-fading-circle .sk-circle6{-webkit-transform:rotate(150deg);-ms-transform:rotate(150deg);transform:rotate(150deg)}.loading .sk-fading-circle .sk-circle7{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.loading .sk-fading-circle .sk-circle8{-webkit-transform:rotate(210deg);-ms-transform:rotate(210deg);transform:rotate(210deg)}.sk-fading-circle .sk-circle9{-webkit-transform:rotate(240deg);-ms-transform:rotate(240deg);transform:rotate(240deg)}.loading .sk-fading-circle .sk-circle10{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.loading .sk-fading-circle .sk-circle11{-webkit-transform:rotate(300deg);-ms-transform:rotate(300deg);transform:rotate(300deg)}.loading .sk-fading-circle .sk-circle12{-webkit-transform:rotate(330deg);-ms-transform:rotate(330deg);transform:rotate(330deg)}.loading .sk-fading-circle .sk-circle2:after{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.loading .sk-fading-circle .sk-circle3:after{-webkit-animation-delay:-1s;animation-delay:-1s}.loading .sk-fading-circle .sk-circle4:after{-webkit-animation-delay:-0.9s;animation-delay:-0.9s}.loading .sk-fading-circle .sk-circle5:after{-webkit-animation-delay:-0.8s;animation-delay:-0.8s}.loading .sk-fading-circle .sk-circle6:after{-webkit-animation-delay:-0.7s;animation-delay:-0.7s}.loading .sk-fading-circle .sk-circle7:after{-webkit-animation-delay:-0.6s;animation-delay:-0.6s}.loading .sk-fading-circle .sk-circle8:after{-webkit-animation-delay:-0.5s;animation-delay:-0.5s}.loading .sk-fading-circle .sk-circle9:after{-webkit-animation-delay:-0.4s;animation-delay:-0.4s}.loading .sk-fading-circle .sk-circle10:after{-webkit-animation-delay:-0.3s;animation-delay:-0.3s}.loading .sk-fading-circle .sk-circle11:after{-webkit-animation-delay:-0.2s;animation-delay:-0.2s}.loading .sk-fading-circle .sk-circle12:after{-webkit-animation-delay:-0.1s;animation-delay:-0.1s}@-webkit-keyframes sk-circleFadeDelay{0%,39%,100%{opacity:0}40%{opacity:1}}@keyframes sk-circleFadeDelay{0%,39%,100%{opacity:0}40%{opacity:1}}.mif_load_feeds.loading{padding-right:30px;padding-left:10px;-moz-transition:all ease-in .3s;-ms-transition:all ease-in .3s;-o-transition:all ease-in .3s;-webkit-transition:all ease-in .3s;transition:all ease-in .3s}.mif_load_feeds,.mif_follow_btn{display:-moz-inline-stack;display:inline-block;vertical-align:top;zoom:1;padding:9px 20px;margin:5px auto 0 auto;background:#333;color:#eee;border:none;color:#fff;text-decoration:none;font-size:13px;line-height:1.5;-moz-transition:all ease-in .3s;-ms-transition:all ease-in .3s;-o-transition:all ease-in .3s;-webkit-transition:all ease-in .3s;transition:all ease-in .3s;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mif_load_feeds:hover,.mif_follow_btn:hover{opacity:.8;color:#fff;-moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s}.mif_load_btns{float:none;margin:0 auto;display:table;padding-top:20px}.mif_follow_btn{background:#517fa4;color:#fff !important;margin-left:10px;text-decoration:none !important;padding-bottom:5px}.mif_follow_btn .icon,.mif_follow_btn .icon{float:left;margin-right:7px;font-size:15px}.mif_like_holder p{margin-bottom:0;float:left;font-size:12px;margin-right:10px;color:#fff}.mif_likes_main{margin:0 auto;top:50%;position:relative;display:table}.mif_default_layout .mif_content_holder,.mif_default_layout .mif_overlay{opacity:0;visibility:hidden;position:absolute;bottom:0;width:100%;height:100%}@media only screen and (min-width: 786px){.mif_default_layout .mif_content_holder,.mif_default_layout .mif_overlay{-webkit-transition:all .3s ease-in;-moz-transition:all .3s ease-in;transition:all .3s ease-in}}.mif_default_layout:hover .mif_overlay,.mif_header a:hover .mif_overlay{opacity:1;visibility:visible;background-color:rgba(0,0,0,.3);width:100%;height:100%;position:absolute}@media only screen and (min-width: 786px){.mif_default_layout:hover .mif_overlay,.mif_header a:hover .mif_overlay{-moz-transition:all ease-in .3s;-ms-transition:all ease-in .3s;-o-transition:all ease-in .3s;-webkit-transition:all ease-in .3s;transition:all ease-in 1s}}.mif_grid_layout .mif_overlay{opacity:0;visibility:hidden}.mif_grid_layout:hover .mif_overlay{opacity:1;visibility:visible;background-color:rgba(0,0,0,.3);width:100%;height:100%;position:absolute}@media only screen and (min-width: 786px){.mif_grid_layout:hover .mif_overlay{-moz-transition:all ease-in .2s;-ms-transition:all ease-in .2s;-o-transition:all ease-in .2s;-webkit-transition:all ease-in .2s;transition:all ease-in .2s}}.mif_external,.mif_fulls{float:left;background-color:#000}.mif_icons_holder{position:absolute;left:0;right:0;margin-left:auto;margin-right:auto;width:30%;top:78%;z-index:999999999}.mif_lnc_holder{float:left;width:100%;clear:both;height:auto;moz-transition:all ease-in .5s;-ms-transition:all ease-in .5s;-o-transition:all ease-in .5s;-webkit-transition:all ease-in .5s;transition:all ease-in .5s}.mif_likes,.mif_coments{top:10px;margin-left:10px;position:absolute;color:#fff;width:auto;padding:5px 10px;float:left;clear:both;height:auto;-moz-transition:all ease-in 1s;-ms-transition:all ease-in 1s;-o-transition:all ease-in 1s;-webkit-transition:all ease-in 1s;transition:all ease-in 1s}.mif_grid_layout:hover .mif_likes,.mif_grid_layout:hover .mif_coments{opacity:0;-moz-transition:all ease-in 1s;-ms-transition:all ease-in 1s;-o-transition:all ease-in 1s;-webkit-transition:all ease-in 1s;transition:all ease-in 1s}.mif_grid_left_img:hover .mif_fulls,.mif_full_img:hover .mif_fulls{position:absolute}.mif_grid_layout:hover .mif_caption{animation-name:slideDown;-webkit-animation-name:slideDown;animation-duration:1s;-webkit-animation-duration:1s;animation-timing-function:ease-in;-webkit-animation-timing-function:ease-in;visibility:visible !important;-webkit-transition:all .5s ease-in;-moz-transition:all .5s ease-in;transition:all 1s ease-in}.mif_grid_layout:hover .mif_external{animation-name:slideLeft;-webkit-animation-name:slideLeft;animation-duration:.7s;-webkit-animation-duration:.7s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important}.mif_grid_layout:hover .mif_fulls{animation-name:SlideRight;-webkit-animation-name:SlideRight;animation-duration:.7s;-webkit-animation-duration:.7s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important}.mif_grid_layout:hover .mif_links_container,.mif_masonary_layout:hover .mif_links_container{animation-name:fadeIn;-webkit-animation-name:fadeIn;animation-duration:.5s;-webkit-animation-duration:.5s;animation-timing-function:ease-in-out;-webkit-animation-timing-function:ease-in-out;visibility:visible !important;opacity:1 !important}.mif_masonary_layout:hover .mif_links_container{z-index:9999999}.mif_external .icon,.mif_fulls .icon{color:#f8e9b2}.mif_coments{right:0;width:auto;margin:0;padding-right:20px}.mif_likes .icon,.mif_coments .icon{float:left;margin-top:5px;font-size:14px;color:#fff;margin-right:5px}.mif_likes p,.mif_coments p{margin:0;float:left;font-size:15px}.mif_head_img_holder{float:left;position:relative}.mif_header_data{float:left;width:90%}.mif_caption{background-color:#000;height:auto;color:#fff;transition:all 2s ease-in;-o-transition:all 2s ease-in;-ms-transition:all 2s ease-in;-moz-transition:all 2s ease-in;-webkit-transition:all 1s ease-in}.mif_head_img_holder .mif_overlay{border-radius:0;position:absolute;opacity:0;width:100%;height:100%;transition:all .5s ease-in;-o-transition:all .5s ease-in;-ms-transition:all .5s ease-in;-moz-transition:all .5s ease-in;-webkit-transition:all .5s ease-in}.mif_header a:hover .mif_overlay{background-color:rgba(0,0,0,.8);transition:all .5s ease-in;-o-transition:all .5s ease-in;-ms-transition:all .5s ease-in;-moz-transition:all .5s ease-in;-webkit-transition:all .5s ease-in}.mif_head_img_holder .mif_overlay .icon{float:none;margin:0 auto;display:table;margin-top:16px;color:#fff}.mif_caption p{font-size:12px;margin-bottom:0}#mif_load_btn{cursor:pointer}.mif_grid_layout .mif_lnc_holder{position:absolute;z-index:9}.mif_grid_layout .mif_lnc_holder .mif_likes,.mif_grid_layout .mif_lnc_holder .mif_coments{background-color:#000;padding:5px 10px;margin:0}.mif_grid_layout .mif_lnc_holder .mif_likes .icon,.mif_grid_layout .mif_lnc_holder .mif_likes p,.mif_grid_layout .mif_lnc_holder .mif_coments .icon,.mif_grid_layout .mif_lnc_holder .mif_coments p{color:#fff}.mif_grid_layout:hover{cursor:pointer}.mif_grid_layout .mif_lnc_holder .mif_coments{float:right}.mif_grid_layout .mif_content_holder{position:absolute;right:0;left:0;top:50%;transform:translateY(-50%);text-align:center;opacity:0;visibility:hidden}@media only screen and (min-width: 786px){.mif_grid_layout .mif_content_holder{transition:all 2s ease-in;-o-transition:all 2s ease-in;-ms-transition:all 2s ease-in;-moz-transition:all 2s ease-in;-webkit-transition:all 1s ease-in}}.mif_grid_layout .mif_content_holder .mif_caption p{color:#fff}.mif_grid_layout:hover .mif_content_holder{opacity:1;visibility:visible;transition:all .8s ease-in;-o-transition:all .8s ease-in;-ms-transition:all .8s ease-in;-moz-transition:all .8s ease-in;-webkit-transition:all .8s ease-in}.mif_grid_layout .mif_icons_holder{margin:0 auto;float:none;position:relative;margin-top:5px;text-align:center;display:table;height:auto;width:auto}.mif_grid_layout .mif_icons_holder a{float:left}.mif_grid_layout .mif_fulls{opacity:1;visibility:visible;margin-left:8px}.mif_grid_layout .mif_content_holder{top:50%;transform:translate(-50%, -50%);width:auto;left:50%;right:auto}.mif_wrap.mif_ver_pro a.mif_feed_popup_free_hide{display:none !important}.mif_popup_main .mif_post video{width:auto !important;height:auto !important}.mif_wrap.mif-instagram-type-personal .mif_dp_wrap .mif_overlay{position:relative;opacity:1;background:rgba(0,0,0,.7);height:40px;width:40px;padding:7px}.mif_wrap.mif-instagram-type-personal .mif_dp_wrap .mif_overlay .icon{margin-top:0}.mif_wrap.mif-instagram-type-personal .mif_header_data .mif_header_title{margin-top:10px;margin-bottom:0}.mif_wrap.mif-instagram-type-personal .mif_header_data .mif_posts{margin-top:10px;margin-left:10px}/*# sourceMappingURL=mif_style.css.map */
|
my-instagram-feed/assets/css/mif_style.css.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sourceRoot":"","sources":["../scss/mif_style.scss"],"names":[],"mappings":"AAAA,UAEE,WACA,
|
1 |
+
{"version":3,"sourceRoot":"","sources":["../scss/mif_style.scss"],"names":[],"mappings":"AAAA,UAEE,WACA,oBACG,6CACM,sBACD,kCACA,4BACA,aACA,WACA,iDACA,aAGR,uCAEM,kBACJ,QACE,+BACA,iBACA,kBACA,OACA,QACF,4BACE,YACA,WAEN,6BACE,aACI,WACF,SACA,kBACA,eACA,WAEJ,uDACE,cAGD,yDAEC,WACE,YACA,YACA,kBACA,wBACA,mBACA,aACA,cACA,eACA,eAEJ,0EAEE,eACF,0CAHA,0EAIE,wBACA,2BACA,oBAKA,0CAFF,sFAGE,0BACA,6BACA,qBACE,wBACF,2BACA,oBAGF,uDACE,UACA,mBAEF,yBAEE,WACM,UAER,4JAEI,WACA,gBACA,SACA,qBACA,cAEJ,wCAEM,iBAEN,0BAEE,YACK,UAEP,0FAEG,WACC,UACA,mBACA,WACF,gBACF,YAEA,4EAEE,kBACE,6BACA,WACA,gBAEJ,4CAEM,kBACF,WACA,WAEJ,qDAEE,WACA,WACA,WACA,kBACA,eACI,gBACA,0CARN,qDASK,gCACC,+BACA,8BACA,mCACA,4BAGN,+BACE,kBACE,WACA,YACA,2BAEJ,qCACM,kBACF,WACA,YAEJ,2BACE,YACE,iBAEJ,mCACE,kBACA,QACA,OACA,QACA,cACA,mCACA,gCACA,8BACA,2BAEF,sEACA,gDACQ,0BACI,qBACF,sFACN,gBAEJ,gGACE,kBACE,QACA,OACA,QACA,2BACA,kBACA,0BAEJ,mDACI,kBACA,YACA,WACA,qBACJ,uLAEE,UACA,mBACA,eACI,WACF,WACA,SACA,YACE,gCAQA,YACJ,MARG,0CAVL,uLAWK,gCACC,+BACA,8BACA,mCACA,4BAKN,yCACE,WAEF,uLACE,eAEF,+MAEM,WACF,cACA,kBACA,OACA,QACA,QACF,mBACE,cACA,kBACC,eACD,WACA,mBACF,2BACE,8BACA,+BACA,gCACA,mCAEJ,2CAEA,WACI,WACA,WACA,YACA,WAEJ,0EAEE,eACE,uBACH,UACG,SAEJ,4FAEE,wBAEF,yCAEC,gCACG,sBACA,WACA,kBAEJ,sFAEM,eACF,wBACF,mBACA,gBAEF,kFAEM,WACF,gBAEJ,2BAEM,WAEN,6BAEM,WACF,WACA,iBACA,eACA,cACI,aAER,0BAEE,WACE,WACA,WAEJ,+BAEM,YAEN,iCAEM,WACJ,gBACA,qBACI,iBACH,uCACA,gCACD,+BACA,8BACA,mCACA,2BAGF,+BAEI,kBACA,gBACA,aACA,QACA,WACA,YACA,WAEJ,0EAEM,WACF,qBACE,WACF,iBACA,gBAEJ,iCAEM,WACA,SAEN,oGACA,kBACE,SACE,WACA,kBACA,UACA,kBACA,0BACA,6BACA,8BACA,+BACA,kCACA,YACE,wGACD,UACC,gBACA,eAIN,YAEM,WACF,qBACA,kBACA,YAGE,0BAEA,sBAGA,yCACE,2BAEA,2CACI,yBAKZ,cAEM,WACI,SACN,WACA,SACF,qBACI,gBAEN,iBAEE,aAEF,YAEE,WACE,WACA,WACD,aACD,kBACA,mBACA,wBACE,mBACA,sBACA,oBACA,qBACA,eACE,4BACI,WACF,cACA,cAGR,kBAEM,sBACF,kBACC,4BACI,WACL,YAEJ,wBAEE,gBACA,WAEF,gBAEE,WACE,WACA,gBACA,qBAEJ,kBAEI,kBACA,WACF,YACE,qBACA,aACA,gBAEJ,0BAEI,WACA,kBACA,eACA,WAEJ,sCAEM,iBAEN,SAEI,WACA,WACI,aACJ,gBACA,eACA,WAEJ,gBAEI,YACA,WAEJ,kBAEI,WACE,YACJ,gBAEF,YAEG,WACC,WACD,qBACD,kBACE,gBACA,0CAPJ,YAQA,gCACE,+BACA,8BACA,mCACA,4BAGF,2DAEI,kBACA,kBACA,UACA,WACA,YAQA,MACA,cARA,0CAPJ,2DAQI,2BACA,8BACA,+BACA,gCACA,oCAKJ,gEAEI,kBACA,WACA,WACF,yBACE,WACF,gBACA,MACA,cAEF,kIAEE,WAEF,oCAEM,WACF,WAEJ,2BACO,WACH,YACA,kBACA,WACA,eACA,iBAEJ,sCACE,WACA,YACA,kBACA,OACA,MAEF,4CACE,WACA,cACA,cACA,UACA,WACA,sBACA,mBACA,oEACQ,4DAEV,uCACE,gCACI,4BACI,wBAEV,gDACE,gCACI,4BACI,wBAEV,uCACE,gCACI,4BACI,wBAEV,uCACE,iCACI,6BACI,yBAEV,uCACE,iCACI,6BACI,yBAEV,uCACE,iCACI,6BACI,yBAEV,uCACE,iCACI,6BACI,yBAEV,8BACE,iCACI,6BACI,yBAEV,wCACE,iCACI,6BACI,yBAEV,wCACE,iCACI,6BACI,yBAEV,wCACE,iCACI,6BACI,yBAEV,6CACE,8BACQ,sBAEV,6CACE,4BACQ,oBAEV,6CACE,8BACQ,sBAEV,6CACE,8BACQ,sBAEV,6CACE,8BACQ,sBAEV,6CACE,8BACQ,sBAEV,6CACE,8BACQ,sBAEV,6CACE,8BACQ,sBAEV,8CACE,8BACQ,sBAEV,8CACE,8BACQ,sBAEV,8CACE,8BACQ,sBAEV,sCACE,sBACA,eAEF,8BACE,sBACA,eAEF,wBAEE,mBACA,kBACI,gCACF,+BACA,8BACA,mCACA,2BAEJ,gCAEM,0BACF,qBACA,mBACA,OACG,iBACH,uBACA,gBACA,WACA,YACA,WACA,qBACA,eACA,gBACJ,gCACE,+BACA,8BACA,mCACA,2BACE,8BACA,2BACA,sBAEJ,4CAEE,WACA,WACA,gCACA,+BACA,8BACA,mCACA,2BAEF,eAEM,WACF,cACA,cACA,iBAEJ,gBAEI,mBACA,sBACA,iBACA,gCACA,mBAEJ,4CAEI,WACA,iBACA,eAEJ,mBAEQ,gBACJ,WACA,eACA,kBACF,WAEF,gBAGI,cAEA,QACA,kBACA,cAEJ,yEAEE,UACA,kBACI,kBACF,SACF,WACA,YACC,0CARH,yEASM,mCACF,gCACA,4BAGJ,wEAEE,UACA,mBACA,gCAQA,WACA,YACI,kBATJ,0CALF,wEAME,gCACA,+BACA,8BACA,mCACA,2BAMF,8BAEE,UACA,kBAEF,oCAEE,UACA,mBACA,gCAQA,WACA,YACI,kBATJ,0CALF,oCAME,gCACA,+BACA,8BACA,mCACA,4BAMF,yBAEG,WACG,sBAEN,kBAEE,kBACE,OACA,QACA,iBACA,kBACA,UACE,QACJ,kBAEF,gBAEM,WACF,WACA,WACA,YACF,+BACE,+BACA,8BACA,mCACA,2BAEJ,wBAEM,SACF,iBACA,kBAEA,WACA,WACA,iBAEA,WACA,WACA,YACE,+BACF,8BACA,6BACA,kCACA,0BAEJ,sEAEK,UACC,+BACF,8BACA,6BACA,kCACA,0BAEJ,mEAEE,kBAEF,oCAEE,yBACA,iCACA,sBACA,8BACA,kCACA,0CACA,8BACI,mCACF,gCACA,0BAEJ,qCAEI,yBACF,iCACA,uBACA,+BACA,sCACA,8CACA,8BAEF,kCAEE,0BACA,kCACA,uBACA,+BACA,sCACA,8CACA,8BAEA,4FAEF,sBACE,8BACA,uBACA,+BACA,sCACA,8CACA,8BACA,qBAEF,gEACA,qCAEI,cAEH,aAEK,QACF,WACA,SACA,mBAEJ,oCAEM,WACF,eACA,eACA,WACA,iBAEJ,4BAEM,SACF,WACH,eAED,qBAEM,WACF,kBAEJ,iBAEE,WACI,UAEN,aAEI,sBACA,YACA,WACA,0BACA,6BACA,8BACA,+BACA,kCAEJ,kCAEG,gBACI,kBACH,UACE,WACF,YACA,2BACA,8BACA,+BACA,gCACA,mCAEJ,iCAEM,gCACA,2BACF,8BACA,+BACA,gCACA,mCAEJ,wCAEM,WACF,cACA,cACA,gBACA,WAEJ,eAEM,eACF,gBAEJ,cAEE,eAGF,iCAEM,kBACA,UACA,0FACE,sBACA,iBACA,SACE,oMACE,WAIZ,uBAEE,eAEF,8CAEM,YAEN,qCAEE,kBACE,QACA,OACA,QACA,2BACF,kBACA,UACA,kBACA,0CAVF,qCAWM,0BACF,6BACA,8BACA,+BACA,mCAGJ,oDAEE,WAEF,2CAEE,UACA,mBACI,2BACF,8BACA,+BACA,gCACA,mCAEJ,mCAEG,cACC,WACA,kBACA,eACA,kBACA,cACA,YACE,WAEN,qCAEM,WAEN,4BAEI,UACA,mBACA,gBAEJ,qCACG,QACE,gCACD,WACA,SACA,WAEJ,iDACE,wBAGF,gCACE,sBACA,uBAOI,gEACI,kBACF,UACA,0BACA,YACA,WACA,YAEE,sEACI,aAMR,yEACE,gBACD,gBAED,kEACE,gBACA","file":"mif_style.css"}
|
my-instagram-feed/assets/images/insta-logo.png
CHANGED
Binary file
|
my-instagram-feed/assets/js/mif-admin.js
CHANGED
@@ -537,4 +537,85 @@ function MIFremoveURLParameter(url, parameter) {
|
|
537 |
}
|
538 |
}
|
539 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
540 |
});
|
537 |
}
|
538 |
}
|
539 |
|
540 |
+
jQuery(".mif-authentication-modal .mif_info_link").click(function(event){ event.preventDefault(); jQuery(this).next().slideToggle();});
|
541 |
+
|
542 |
+
jQuery('input[type=radio][name=mif_login_type]').change(function() {
|
543 |
+
|
544 |
+
jQuery('.mif-authentication-modal .mif-auth-modal-btn').attr('href', jQuery(this).data('url'));
|
545 |
+
|
546 |
+
});
|
547 |
+
|
548 |
+
jQuery('#mif-remove-at .mif_delete_at_confirmed').click(function(event) {
|
549 |
+
|
550 |
+
event.preventDefault();
|
551 |
+
|
552 |
+
jQuery(this).next('.mif-revoke-access-steps').slideToggle();
|
553 |
+
|
554 |
+
Materialize.Toast.removeAll();
|
555 |
+
|
556 |
+
Materialize.toast('Deleting', 40000);
|
557 |
+
|
558 |
+
var data = { action:'mif_remove_access_token',
|
559 |
+
mif_nonce : mif.nonce
|
560 |
+
}
|
561 |
+
|
562 |
+
jQuery.ajax({
|
563 |
+
|
564 |
+
url : mif.ajax_url,
|
565 |
+
type: "post",
|
566 |
+
data: data,
|
567 |
+
dataType: "json",
|
568 |
+
success: function(response ) {
|
569 |
+
|
570 |
+
Materialize.Toast.removeAll();
|
571 |
+
|
572 |
+
if (response.success) {
|
573 |
+
|
574 |
+
Materialize.toast(response.data, 4000);
|
575 |
+
jQuery(".efbl_all_pages").slideUp("slow").remove();
|
576 |
+
jQuery(".fta_noti_holder").fadeIn("slow");
|
577 |
+
}
|
578 |
+
else{
|
579 |
+
Materialize.toast(response.data, 4000);
|
580 |
+
}
|
581 |
+
}});
|
582 |
+
|
583 |
+
});
|
584 |
+
|
585 |
+
jQuery('.mif_switch_type_btn').click(function(event) {
|
586 |
+
|
587 |
+
event.preventDefault();
|
588 |
+
|
589 |
+
Materialize.Toast.removeAll();
|
590 |
+
|
591 |
+
Materialize.toast('Switching', 40000);
|
592 |
+
|
593 |
+
var data = { action:'mif_switch_api_type',
|
594 |
+
switch_to : jQuery(this).data('switch-to'),
|
595 |
+
mif_nonce : mif.nonce
|
596 |
+
}
|
597 |
+
|
598 |
+
jQuery.ajax({
|
599 |
+
|
600 |
+
url : mif.ajax_url,
|
601 |
+
type: "post",
|
602 |
+
data: data,
|
603 |
+
dataType: "json",
|
604 |
+
success: function(response ) {
|
605 |
+
|
606 |
+
Materialize.Toast.removeAll();
|
607 |
+
|
608 |
+
if (response.success) {
|
609 |
+
Materialize.toast(response.data, 4000);
|
610 |
+
setTimeout(function(){
|
611 |
+
location.reload();
|
612 |
+
}, 500);
|
613 |
+
}
|
614 |
+
else{
|
615 |
+
Materialize.toast(response.data, 4000);
|
616 |
+
}
|
617 |
+
}});
|
618 |
+
|
619 |
+
});
|
620 |
+
|
621 |
});
|
my-instagram-feed/assets/scss/mif_admin_style.scss
CHANGED
@@ -36,6 +36,7 @@
|
|
36 |
}
|
37 |
}
|
38 |
.mif_wrap{
|
|
|
39 |
blockquote{
|
40 |
background-color: #26a69a;
|
41 |
color: #fff;
|
@@ -83,7 +84,53 @@ a,.btn{
|
|
83 |
}
|
84 |
}
|
85 |
}
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
float: left;
|
89 |
clear: both;
|
@@ -215,6 +262,14 @@ a,.btn{
|
|
215 |
.row.auth-row{
|
216 |
margin-bottom: 0;
|
217 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
.efbl_all_pages{
|
219 |
padding:0;
|
220 |
|
@@ -593,16 +648,18 @@ a,.btn{
|
|
593 |
text-transform: capitalize;
|
594 |
margin-bottom: 20px;
|
595 |
img {
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
}
|
601 |
&:hover, &:active{
|
602 |
color:#fff;}
|
603 |
}
|
|
|
604 |
.mif_show_token_form { display:none; margin-bottom:20px; float:right; background-color: #1b97f3;}
|
605 |
}
|
|
|
606 |
|
607 |
}
|
608 |
|
@@ -722,4 +779,25 @@ a,.btn{
|
|
722 |
.mif-modal-content .mif_skin_delete{
|
723 |
background: #ed6d62;
|
724 |
}
|
725 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
}
|
38 |
.mif_wrap{
|
39 |
+
|
40 |
blockquote{
|
41 |
background-color: #26a69a;
|
42 |
color: #fff;
|
84 |
}
|
85 |
}
|
86 |
}
|
87 |
+
|
88 |
+
.mif-authentication-modal{
|
89 |
+
width: 33%;
|
90 |
+
|
91 |
+
.mif-auth-btn-holder{
|
92 |
+
display: block;
|
93 |
+
padding: 5px 0;
|
94 |
+
position: relative;
|
95 |
+
|
96 |
+
label{
|
97 |
+
padding: 0 10px 0 28px;
|
98 |
+
}
|
99 |
+
|
100 |
+
.mif_info_link{
|
101 |
+
position: absolute;
|
102 |
+
top: 7px;
|
103 |
+
.material-icons{
|
104 |
+
font-size: 18px;
|
105 |
+
}
|
106 |
+
|
107 |
+
&:focus{
|
108 |
+
outline: none;
|
109 |
+
box-shadow: none;
|
110 |
+
color: #25a69a;
|
111 |
+
}
|
112 |
+
}
|
113 |
+
.mif_auth_info_holder{
|
114 |
+
display:none;
|
115 |
+
|
116 |
+
background: #eee;
|
117 |
+
padding: 5px 10px;
|
118 |
+
border-radius: 5px;
|
119 |
+
|
120 |
+
p{
|
121 |
+
color: #444;
|
122 |
+
font-size:12px;
|
123 |
+
}
|
124 |
+
}
|
125 |
+
|
126 |
+
}
|
127 |
+
|
128 |
+
|
129 |
+
.mif-auth-modal-btn{
|
130 |
+
margin-top: 10px;
|
131 |
+
}
|
132 |
+
}
|
133 |
+
|
134 |
|
135 |
float: left;
|
136 |
clear: both;
|
262 |
.row.auth-row{
|
263 |
margin-bottom: 0;
|
264 |
}
|
265 |
+
.mif_switch_type_btn{
|
266 |
+
float: left;
|
267 |
+
clear: both;
|
268 |
+
padding: 1px 11px;
|
269 |
+
height: auto;
|
270 |
+
font-size: 13px;
|
271 |
+
margin-top: 15px;
|
272 |
+
}
|
273 |
.efbl_all_pages{
|
274 |
padding:0;
|
275 |
|
648 |
text-transform: capitalize;
|
649 |
margin-bottom: 20px;
|
650 |
img {
|
651 |
+
height: 40px;
|
652 |
+
margin-right: 10px;
|
653 |
+
float: left;
|
654 |
+
margin-top: 0px;
|
655 |
}
|
656 |
&:hover, &:active{
|
657 |
color:#fff;}
|
658 |
}
|
659 |
+
|
660 |
.mif_show_token_form { display:none; margin-bottom:20px; float:right; background-color: #1b97f3;}
|
661 |
}
|
662 |
+
|
663 |
|
664 |
}
|
665 |
|
779 |
.mif-modal-content .mif_skin_delete{
|
780 |
background: #ed6d62;
|
781 |
}
|
782 |
+
}
|
783 |
+
|
784 |
+
#mif-remove-at{
|
785 |
+
|
786 |
+
.mif-revoke-access-steps{
|
787 |
+
display:none;
|
788 |
+
background: #eee;
|
789 |
+
padding: 8px 10px;
|
790 |
+
margin-top: 10px;
|
791 |
+
border-radius: 5px;
|
792 |
+
|
793 |
+
p{
|
794 |
+
border: none;
|
795 |
+
margin-bottom: 0;
|
796 |
+
padding-bottom: 0;
|
797 |
+
}
|
798 |
+
ol{
|
799 |
+
color: #867979;
|
800 |
+
}
|
801 |
+
}
|
802 |
+
|
803 |
+
}
|
my-instagram-feed/assets/scss/mif_fancy_popup.scss
CHANGED
@@ -577,4 +577,37 @@ margin-top: 0;
|
|
577 |
.mif_main-pop .mif_popup_meta_like_share .mif_popup_likes_holder span{
|
578 |
margin-top: 0px;
|
579 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
580 |
}
|
577 |
.mif_main-pop .mif_popup_meta_like_share .mif_popup_likes_holder span{
|
578 |
margin-top: 0px;
|
579 |
}
|
580 |
+
}
|
581 |
+
.mif_popup_main{
|
582 |
+
.fotorama__html video{
|
583 |
+
width:100% !important;
|
584 |
+
height:auto !important;
|
585 |
+
}
|
586 |
+
}
|
587 |
+
.mif_popup_main.mif-instagram-type-personal{
|
588 |
+
|
589 |
+
.mif_author_info{
|
590 |
+
|
591 |
+
a{
|
592 |
+
text-decoration: none;
|
593 |
+
|
594 |
+
.mif_overlay{
|
595 |
+
border-radius: 50%;
|
596 |
+
position: relative;
|
597 |
+
background: rgba(0,0,0,.7);
|
598 |
+
height: 40px;
|
599 |
+
width: 40px;
|
600 |
+
padding: 7px;
|
601 |
+
margin-top: -3px;
|
602 |
+
|
603 |
+
.icon{
|
604 |
+
color: #fff;
|
605 |
+
float: none;
|
606 |
+
margin: 0 auto;
|
607 |
+
display: table;
|
608 |
+
margin-top: 3px;
|
609 |
+
}
|
610 |
+
}
|
611 |
+
}
|
612 |
+
}
|
613 |
}
|
my-instagram-feed/assets/scss/mif_style.scss
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
.mif_wrap
|
2 |
{
|
3 |
-
float:left;
|
4 |
width:100%;
|
5 |
padding-bottom: 20px;
|
6 |
.mif_feeds_holder .mif_grid_layout {
|
@@ -249,8 +248,8 @@ float: left;
|
|
249 |
}
|
250 |
.mif_head_img_holder .mif_nodp
|
251 |
{
|
252 |
-
|
253 |
-
padding: 10px;
|
254 |
color: #fff;
|
255 |
border-radius: 4px;
|
256 |
}
|
@@ -259,6 +258,7 @@ float: left;
|
|
259 |
font-size: 14px;
|
260 |
margin-top: 0px !important;
|
261 |
font-weight: normal;
|
|
|
262 |
}
|
263 |
.mif_grid_right .mif_header_img, .mif_full_top .mif_header_img
|
264 |
{
|
@@ -1052,4 +1052,40 @@ animation-name: fadeIn;
|
|
1052 |
}
|
1053 |
.mif_wrap.mif_ver_pro a.mif_feed_popup_free_hide{
|
1054 |
display:none !important;
|
1055 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
.mif_wrap
|
2 |
{
|
|
|
3 |
width:100%;
|
4 |
padding-bottom: 20px;
|
5 |
.mif_feeds_holder .mif_grid_layout {
|
248 |
}
|
249 |
.mif_head_img_holder .mif_nodp
|
250 |
{
|
251 |
+
background-color: rgba(0,0,0, .8);
|
252 |
+
padding: 10px 10px 5px;
|
253 |
color: #fff;
|
254 |
border-radius: 4px;
|
255 |
}
|
258 |
font-size: 14px;
|
259 |
margin-top: 0px !important;
|
260 |
font-weight: normal;
|
261 |
+
margin-bottom: 0;
|
262 |
}
|
263 |
.mif_grid_right .mif_header_img, .mif_full_top .mif_header_img
|
264 |
{
|
1052 |
}
|
1053 |
.mif_wrap.mif_ver_pro a.mif_feed_popup_free_hide{
|
1054 |
display:none !important;
|
1055 |
+
}
|
1056 |
+
|
1057 |
+
.mif_popup_main .mif_post video{
|
1058 |
+
width:auto !important;
|
1059 |
+
height:auto !important;
|
1060 |
+
}
|
1061 |
+
|
1062 |
+
.mif_wrap.mif-instagram-type-personal{
|
1063 |
+
|
1064 |
+
.mif_dp_wrap{
|
1065 |
+
|
1066 |
+
.mif_overlay{
|
1067 |
+
position: relative;
|
1068 |
+
opacity: 1;
|
1069 |
+
background: rgba(0,0,0, .7);
|
1070 |
+
height: 40px;
|
1071 |
+
width: 40px;
|
1072 |
+
padding: 7px;
|
1073 |
+
|
1074 |
+
.icon{
|
1075 |
+
margin-top: 0;
|
1076 |
+
}
|
1077 |
+
}
|
1078 |
+
}
|
1079 |
+
|
1080 |
+
.mif_header_data{
|
1081 |
+
.mif_header_title{
|
1082 |
+
margin-top: 10px;
|
1083 |
+
margin-bottom: 0;
|
1084 |
+
}
|
1085 |
+
.mif_posts{
|
1086 |
+
margin-top: 10px;
|
1087 |
+
margin-left: 10px;
|
1088 |
+
}
|
1089 |
+
}
|
1090 |
+
|
1091 |
+
}
|
my-instagram-feed/frontend/frontend.php
CHANGED
@@ -46,13 +46,6 @@ if ( !class_exists( 'MIF_Front' ) ) {
|
|
46 |
*/
|
47 |
public function mif_style()
|
48 |
{
|
49 |
-
wp_enqueue_script( 'kit.fontawesome', 'https://kit.fontawesome.com/aab9a11966.js' );
|
50 |
-
/*
|
51 |
-
* If font awesome css files is not enqued already then it will enqueued.
|
52 |
-
*/
|
53 |
-
if ( !wp_style_is( 'font-awesome.min', $list = 'enqueued' ) ) {
|
54 |
-
wp_enqueue_style( 'font-awesome.min', MIF_PLUGIN_URL . 'assets/css/font-awesome.min.css' );
|
55 |
-
}
|
56 |
/*
|
57 |
* Custom CSS file for frontend.
|
58 |
*/
|
@@ -491,23 +484,28 @@ if ( !class_exists( 'MIF_Front' ) ) {
|
|
491 |
*/
|
492 |
$combined_atts = $hashtag . ',' . $feeds_per_page . ',' . $caption_words . ',' . $skin_id . ',' . $cache_seconds . ',' . $user_id;
|
493 |
$fta_settings = $FTA->fta_get_settings();
|
494 |
-
|
|
|
495 |
if ( empty($user_id) ) {
|
496 |
-
$approved_pages = array();
|
497 |
|
498 |
-
if (
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
if ( isset( $
|
504 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
505 |
}
|
|
|
506 |
}
|
507 |
|
508 |
}
|
509 |
-
|
510 |
-
// echo "<pre>"; print_r();exit();
|
511 |
/*
|
512 |
* Getting the array of feeds.
|
513 |
*/
|
@@ -521,58 +519,75 @@ if ( !class_exists( 'MIF_Front' ) ) {
|
|
521 |
$cache_seconds,
|
522 |
$user_id
|
523 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
524 |
/*
|
525 |
* If seelf decoded data has object.
|
526 |
*/
|
527 |
|
528 |
if ( !isset( $self_decoded_data->error ) && empty($self_decoded_data->error) ) {
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
* Converting the string into lowercase to get template file.
|
535 |
-
*/
|
536 |
-
$selected_template = strtolower( $selected_template );
|
537 |
-
// if(!efl_fs()->is_plan( 'instagram_premium', true ) or !efl_fs()->is_plan( 'combo_premium', true )):
|
538 |
-
// $selected_template = 'grid';
|
539 |
-
// endif;
|
540 |
-
$mif_ver = 'free';
|
541 |
-
if ( efl_fs()->is_plan( 'instagram_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
542 |
-
$mif_ver = 'pro';
|
543 |
}
|
544 |
-
|
545 |
-
|
546 |
-
*/
|
547 |
-
$returner .= '<div id="mif_feed_id" data-template="' . $selected_template . '" class="mif_wrap fadeIn ' . $wrapper_class . ' mif_skin_' . $skin_id . ' mif_ver_' . $mif_ver . '">
|
548 |
-
<div class="mif_header mif_header_main">
|
549 |
<div class="mif_inner_wrap">
|
550 |
<a href="https://www.instagram.com/' . $self_decoded_data->username . '" class="mif_dp_wrap" target="_blank" title="@' . $self_decoded_data->username . '">
|
551 |
-
|
552 |
-
|
553 |
-
|
|
|
|
|
|
|
554 |
<i class="icon icon-esf-instagram" aria-hidden="true"></i>
|
555 |
</div>
|
556 |
</div>
|
557 |
</a>
|
558 |
|
559 |
<div class="mif_header_data">
|
560 |
-
<h4 class="mif_header_title">' . $
|
561 |
<div class="mif_posts"><i class="icon icon-esf-picture-o" aria-hidden="true"></i>' . $self_decoded_data->media_count . '</div>';
|
562 |
-
|
563 |
-
$
|
564 |
-
|
|
|
|
|
|
|
|
|
565 |
|
566 |
</div>
|
567 |
</div>';
|
568 |
-
$carousel_class = ' ';
|
569 |
-
$carousel_atts = ' ';
|
570 |
-
$returner .= '<div class="mif_feeds_holder mif_' . $selected_template . '_main ' . $carousel_class . '" ' . $carousel_atts . '>';
|
571 |
-
if ( 'masonary' == $selected_template ) {
|
572 |
-
$returner .= ' <div class="mif-masonry-sizer"></div><div class="mif-gutter-sizer"></div>';
|
573 |
-
}
|
574 |
}
|
575 |
|
|
|
|
|
|
|
|
|
|
|
|
|
576 |
/*
|
577 |
* If comments are enabled for $this skin
|
578 |
*/
|
@@ -767,6 +782,7 @@ if ( !class_exists( 'MIF_Front' ) ) {
|
|
767 |
{
|
768 |
$FTA = new Feed_Them_All();
|
769 |
$fta_settings = $FTA->fta_get_settings();
|
|
|
770 |
$approved_pages = array();
|
771 |
$decoded_data_pag = null;
|
772 |
if ( isset( $fta_settings['plugins']['facebook']['approved_pages'] ) && !empty($fta_settings['plugins']['facebook']['approved_pages']) ) {
|
@@ -791,7 +807,7 @@ if ( !class_exists( 'MIF_Front' ) ) {
|
|
791 |
/*
|
792 |
* Making slug for user posts cache.
|
793 |
*/
|
794 |
-
$mif_user_slug = "mif_user_posts-{$user_id}-{$feeds_per_page}";
|
795 |
/*
|
796 |
* Getting bio cached.
|
797 |
*/
|
@@ -803,30 +819,39 @@ if ( !class_exists( 'MIF_Front' ) ) {
|
|
803 |
/*
|
804 |
* Remote URL of the instagram API with access token and feeds per page attribute
|
805 |
*/
|
|
|
806 |
if ( !$decoded_data || '' == $decoded_data ) {
|
|
|
|
|
807 |
|
808 |
-
if ( $
|
809 |
-
$
|
|
|
810 |
// echo "<pre>"; print_r($remote_url); exit();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
811 |
/*
|
812 |
-
*
|
813 |
*/
|
814 |
-
$decoded_data =
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
*/
|
820 |
-
$decoded_data = (object) array(
|
821 |
-
'pagination' => $decoded_data->paging->next,
|
822 |
-
'data' => $decoded_data->data,
|
823 |
-
);
|
824 |
-
set_transient( $mif_user_slug, $decoded_data, $cache_seconds );
|
825 |
-
}
|
826 |
-
|
827 |
}
|
828 |
|
829 |
}
|
|
|
|
|
|
|
830 |
/*
|
831 |
* Getting the current item and feeds per page numbers and returning the sliced array.
|
832 |
*/
|
@@ -853,6 +878,7 @@ if ( !class_exists( 'MIF_Front' ) ) {
|
|
853 |
);
|
854 |
}
|
855 |
|
|
|
856 |
/*
|
857 |
* Returning it to back.
|
858 |
*/
|
@@ -867,6 +893,7 @@ if ( !class_exists( 'MIF_Front' ) ) {
|
|
867 |
$FTA = new Feed_Them_All();
|
868 |
$fta_settings = $FTA->fta_get_settings();
|
869 |
$approved_pages = array();
|
|
|
870 |
if ( isset( $fta_settings['plugins']['facebook']['approved_pages'] ) && !empty($fta_settings['plugins']['facebook']['approved_pages']) ) {
|
871 |
/*
|
872 |
* Getting saved access token.
|
@@ -885,27 +912,36 @@ if ( !class_exists( 'MIF_Front' ) ) {
|
|
885 |
/*
|
886 |
* Making slug for bio cache.
|
887 |
*/
|
888 |
-
$mif_bio_slug = "
|
889 |
-
// echo "<pre>"; print_r($mif_bio_slug);exit();
|
890 |
/*
|
891 |
* Getting bio cached.
|
892 |
*/
|
893 |
$self_decoded_data = get_transient( $mif_bio_slug );
|
|
|
894 |
/*
|
895 |
* Remote URL of the authenticated user of instagram API with access token
|
896 |
*/
|
897 |
|
898 |
if ( !$self_decoded_data || '' == $self_decoded_data ) {
|
899 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
900 |
/*
|
901 |
* Getting the decoded data of authenticated user from instagram.
|
902 |
*/
|
903 |
$self_decoded_data = $this->mif_get_data( $mif_bio_url );
|
904 |
-
if ( 400
|
905 |
set_transient( $mif_bio_slug, $self_decoded_data, $cache_seconds );
|
906 |
}
|
907 |
}
|
908 |
|
|
|
909 |
/*
|
910 |
* Returning it to back.
|
911 |
*/
|
46 |
*/
|
47 |
public function mif_style()
|
48 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
/*
|
50 |
* Custom CSS file for frontend.
|
51 |
*/
|
484 |
*/
|
485 |
$combined_atts = $hashtag . ',' . $feeds_per_page . ',' . $caption_words . ',' . $skin_id . ',' . $cache_seconds . ',' . $user_id;
|
486 |
$fta_settings = $FTA->fta_get_settings();
|
487 |
+
$mif_instagram_type = mif_instagram_type();
|
488 |
+
$mif_instagram_personal_accounts = mif_instagram_personal_accounts();
|
489 |
if ( empty($user_id) ) {
|
|
|
490 |
|
491 |
+
if ( $mif_instagram_type == 'personal' ) {
|
492 |
+
$user_id = array_key_first( $mif_instagram_personal_accounts );
|
493 |
+
} else {
|
494 |
+
$approved_pages = array();
|
495 |
+
|
496 |
+
if ( isset( $fta_settings['plugins']['facebook']['approved_pages'] ) && !empty($fta_settings['plugins']['facebook']['approved_pages']) ) {
|
497 |
+
/*
|
498 |
+
* Getting saved access token.
|
499 |
+
*/
|
500 |
+
$approved_pages = $fta_settings['plugins']['facebook']['approved_pages'];
|
501 |
+
if ( isset( $approved_pages[array_keys( $approved_pages )['0']]['instagram_accounts']->connected_instagram_account->id ) ) {
|
502 |
+
$user_id = $approved_pages[array_keys( $approved_pages )['0']]['instagram_accounts']->connected_instagram_account->id;
|
503 |
+
}
|
504 |
}
|
505 |
+
|
506 |
}
|
507 |
|
508 |
}
|
|
|
|
|
509 |
/*
|
510 |
* Getting the array of feeds.
|
511 |
*/
|
519 |
$cache_seconds,
|
520 |
$user_id
|
521 |
);
|
522 |
+
// echo "<pre>"; print_r($self_decoded_data);exit();
|
523 |
+
/*
|
524 |
+
* Getting the selected template.
|
525 |
+
*/
|
526 |
+
$selected_template = $mif_values['layout_option'];
|
527 |
+
/*
|
528 |
+
* Converting the string into lowercase to get template file.
|
529 |
+
*/
|
530 |
+
$selected_template = strtolower( $selected_template );
|
531 |
+
// if(!efl_fs()->is_plan( 'instagram_premium', true ) or !efl_fs()->is_plan( 'combo_premium', true )):
|
532 |
+
// $selected_template = 'grid';
|
533 |
+
// endif;
|
534 |
+
$mif_ver = 'free';
|
535 |
+
if ( efl_fs()->is_plan( 'instagram_premium', true ) or efl_fs()->is_plan( 'combo_premium', true ) ) {
|
536 |
+
$mif_ver = 'pro';
|
537 |
+
}
|
538 |
+
if ( !isset( $decoded_data->error ) && !empty($decoded_data->data) ) {
|
539 |
+
/*
|
540 |
+
* Html starts here.
|
541 |
+
*/
|
542 |
+
$returner .= '<div id="mif_feed_id" data-template="' . $selected_template . '" class="mif_wrap mif-instagram-type-' . $mif_instagram_type . ' fadeIn ' . $wrapper_class . ' mif_skin_' . $skin_id . ' mif_ver_' . $mif_ver . '">';
|
543 |
+
}
|
544 |
/*
|
545 |
* If seelf decoded data has object.
|
546 |
*/
|
547 |
|
548 |
if ( !isset( $self_decoded_data->error ) && empty($self_decoded_data->error) ) {
|
549 |
+
|
550 |
+
if ( $mif_instagram_type == 'personal' ) {
|
551 |
+
$mif_self_username = $mif_instagram_personal_accounts[$user_id]['username'];
|
552 |
+
} else {
|
553 |
+
$mif_self_username = $self_decoded_data->name;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
554 |
}
|
555 |
+
|
556 |
+
$returner .= '<div class="mif_header mif_header_main">
|
|
|
|
|
|
|
557 |
<div class="mif_inner_wrap">
|
558 |
<a href="https://www.instagram.com/' . $self_decoded_data->username . '" class="mif_dp_wrap" target="_blank" title="@' . $self_decoded_data->username . '">
|
559 |
+
|
560 |
+
<div class="mif_head_img_holder">';
|
561 |
+
if ( $mif_instagram_type !== 'personal' ) {
|
562 |
+
$returner .= '<img class="mif_header_img" src="' . $self_decoded_data->profile_picture_url . '"/>';
|
563 |
+
}
|
564 |
+
$returner .= '<div class="mif_overlay">
|
565 |
<i class="icon icon-esf-instagram" aria-hidden="true"></i>
|
566 |
</div>
|
567 |
</div>
|
568 |
</a>
|
569 |
|
570 |
<div class="mif_header_data">
|
571 |
+
<h4 class="mif_header_title">' . $mif_self_username . '</h4>
|
572 |
<div class="mif_posts"><i class="icon icon-esf-picture-o" aria-hidden="true"></i>' . $self_decoded_data->media_count . '</div>';
|
573 |
+
|
574 |
+
if ( $mif_instagram_type !== 'personal' ) {
|
575 |
+
$returner .= '<div class="mif_followers"><i class="icon icon-esf-user" aria-hidden="true"></i>' . $self_decoded_data->followers_count . '</div>';
|
576 |
+
$returner .= '<p class="mif_bio">' . $self_decoded_data->biography . '</p>';
|
577 |
+
}
|
578 |
+
|
579 |
+
$returner .= '</div>
|
580 |
|
581 |
</div>
|
582 |
</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
583 |
}
|
584 |
|
585 |
+
$carousel_class = ' ';
|
586 |
+
$carousel_atts = ' ';
|
587 |
+
$returner .= '<div class="mif_feeds_holder mif_' . $selected_template . '_main ' . $carousel_class . '" ' . $carousel_atts . '>';
|
588 |
+
if ( 'masonary' == $selected_template ) {
|
589 |
+
$returner .= ' <div class="mif-masonry-sizer"></div><div class="mif-gutter-sizer"></div>';
|
590 |
+
}
|
591 |
/*
|
592 |
* If comments are enabled for $this skin
|
593 |
*/
|
782 |
{
|
783 |
$FTA = new Feed_Them_All();
|
784 |
$fta_settings = $FTA->fta_get_settings();
|
785 |
+
$mif_instagram_type = mif_instagram_type();
|
786 |
$approved_pages = array();
|
787 |
$decoded_data_pag = null;
|
788 |
if ( isset( $fta_settings['plugins']['facebook']['approved_pages'] ) && !empty($fta_settings['plugins']['facebook']['approved_pages']) ) {
|
807 |
/*
|
808 |
* Making slug for user posts cache.
|
809 |
*/
|
810 |
+
$mif_user_slug = "mif_user_posts-{$user_id}-{$feeds_per_page}-{$mif_instagram_type}";
|
811 |
/*
|
812 |
* Getting bio cached.
|
813 |
*/
|
819 |
/*
|
820 |
* Remote URL of the instagram API with access token and feeds per page attribute
|
821 |
*/
|
822 |
+
|
823 |
if ( !$decoded_data || '' == $decoded_data ) {
|
824 |
+
// if ( $mif_all_feeds > 0 ) {
|
825 |
+
$mif_personal_connected_accounts = $fta_settings['plugins']['instagram']['instagram_connected_account'];
|
826 |
|
827 |
+
if ( mif_instagram_type() == 'personal' && isset( $mif_personal_connected_accounts ) && !empty($mif_personal_connected_accounts) && is_array( $mif_personal_connected_accounts ) ) {
|
828 |
+
$access_token = $mif_personal_connected_accounts[$user_id]['access_token'];
|
829 |
+
$remote_url = "https://graph.instagram.com/{$user_id}/media?fields=media_url,thumbnail_url,caption,id,media_type,timestamp,username,comments_count,like_count,permalink,children{media_url,id,media_type,timestamp,permalink,thumbnail_url}&limit={$feeds_per_page}&access_token=" . $access_token;
|
830 |
// echo "<pre>"; print_r($remote_url); exit();
|
831 |
+
} else {
|
832 |
+
$remote_url = "https://graph.facebook.com/v4.0/{$user_id}/media?fields=thumbnail_url,children{permalink,thumbnail_url,media_url,media_type},media_type,caption,comments_count,id,ig_id,like_count,is_comment_enabled,media_url,owner,permalink,shortcode,timestamp,username,comments{id,hidden,like_count,media,text,timestamp,user,username,replies{hidden,id,like_count,media,text,timestamp,user,username}}&limit=" . $feeds_per_page . "&access_token=" . $access_token;
|
833 |
+
}
|
834 |
+
|
835 |
+
/*
|
836 |
+
* Getting the decoded data from instagram.
|
837 |
+
*/
|
838 |
+
$decoded_data = $this->mif_get_data( $remote_url );
|
839 |
+
|
840 |
+
if ( !isset( $decoded_data->error ) && !empty($decoded_data->data) ) {
|
841 |
/*
|
842 |
+
* Returning back the sliced array.
|
843 |
*/
|
844 |
+
$decoded_data = (object) array(
|
845 |
+
'pagination' => $decoded_data->paging->next,
|
846 |
+
'data' => $decoded_data->data,
|
847 |
+
);
|
848 |
+
set_transient( $mif_user_slug, $decoded_data, $cache_seconds );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
849 |
}
|
850 |
|
851 |
}
|
852 |
+
|
853 |
+
// }
|
854 |
+
// echo "<pre>"; print_r($decoded_data); exit();
|
855 |
/*
|
856 |
* Getting the current item and feeds per page numbers and returning the sliced array.
|
857 |
*/
|
878 |
);
|
879 |
}
|
880 |
|
881 |
+
// echo "<pre>"; print_r($decoded_data);exit();
|
882 |
/*
|
883 |
* Returning it to back.
|
884 |
*/
|
893 |
$FTA = new Feed_Them_All();
|
894 |
$fta_settings = $FTA->fta_get_settings();
|
895 |
$approved_pages = array();
|
896 |
+
$mif_instagram_type = mif_instagram_type();
|
897 |
if ( isset( $fta_settings['plugins']['facebook']['approved_pages'] ) && !empty($fta_settings['plugins']['facebook']['approved_pages']) ) {
|
898 |
/*
|
899 |
* Getting saved access token.
|
912 |
/*
|
913 |
* Making slug for bio cache.
|
914 |
*/
|
915 |
+
$mif_bio_slug = "mif_user_bio_{$mif_instagram_type}-{$user_id}";
|
|
|
916 |
/*
|
917 |
* Getting bio cached.
|
918 |
*/
|
919 |
$self_decoded_data = get_transient( $mif_bio_slug );
|
920 |
+
// echo "<pre>"; print_r($self_decoded_data);exit();
|
921 |
/*
|
922 |
* Remote URL of the authenticated user of instagram API with access token
|
923 |
*/
|
924 |
|
925 |
if ( !$self_decoded_data || '' == $self_decoded_data ) {
|
926 |
+
$mif_personal_connected_accounts = $fta_settings['plugins']['instagram']['instagram_connected_account'];
|
927 |
+
|
928 |
+
if ( mif_instagram_type() == 'personal' && isset( $mif_personal_connected_accounts ) && !empty($mif_personal_connected_accounts) && is_array( $mif_personal_connected_accounts ) ) {
|
929 |
+
$access_token = $mif_personal_connected_accounts[$user_id]['access_token'];
|
930 |
+
$mif_bio_url = "https://graph.instagram.com/me?fields=id,username,media_count,account_type&access_token=" . $access_token;
|
931 |
+
} else {
|
932 |
+
$mif_bio_url = "https://graph.facebook.com/v4.0/{$user_id}/?fields=biography,followers_count,follows_count,id,ig_id,media_count,name,profile_picture_url,username,website&access_token=" . $access_token;
|
933 |
+
}
|
934 |
+
|
935 |
/*
|
936 |
* Getting the decoded data of authenticated user from instagram.
|
937 |
*/
|
938 |
$self_decoded_data = $this->mif_get_data( $mif_bio_url );
|
939 |
+
if ( 400 !== $self_decoded_data->meta->code && !isset( $self_decoded_data->error ) ) {
|
940 |
set_transient( $mif_bio_slug, $self_decoded_data, $cache_seconds );
|
941 |
}
|
942 |
}
|
943 |
|
944 |
+
// echo "<pre>"; print_r($self_decoded_data);exit();
|
945 |
/*
|
946 |
* Returning it to back.
|
947 |
*/
|
my-instagram-feed/includes/mif-global-functions.php
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Stop execution if someone tried to get file directly.
|
4 |
+
*/
|
5 |
+
if ( !defined( 'ABSPATH' ) ) {
|
6 |
+
exit;
|
7 |
+
}
|
8 |
+
|
9 |
+
/*
|
10 |
+
* Returns the Instagram API type to get data
|
11 |
+
*/
|
12 |
+
if(!function_exists('mif_instagram_type')):
|
13 |
+
|
14 |
+
function mif_instagram_type(){
|
15 |
+
|
16 |
+
$mif_personal_connected_accounts = 'personal';
|
17 |
+
|
18 |
+
/*
|
19 |
+
* Getting the Plugin main object.
|
20 |
+
*/
|
21 |
+
$Feed_Them_All = new Feed_Them_All();
|
22 |
+
|
23 |
+
/*
|
24 |
+
* Getting the FTA Plugin settings.
|
25 |
+
*/
|
26 |
+
$fta_settings = $Feed_Them_All->fta_get_settings();
|
27 |
+
|
28 |
+
if(isset($fta_settings['plugins']['instagram']['selected_type'])){
|
29 |
+
$mif_personal_connected_accounts = $fta_settings['plugins']['instagram']['selected_type'];
|
30 |
+
}else{
|
31 |
+
|
32 |
+
if( isset($fta_settings['plugins']['facebook']['approved_pages']) && !empty($fta_settings['plugins']['facebook']['approved_pages']) ){
|
33 |
+
$mif_has_business_insta = false;
|
34 |
+
|
35 |
+
$approved_pages = $fta_settings['plugins']['facebook']['approved_pages'];
|
36 |
+
|
37 |
+
if($approved_pages)
|
38 |
+
foreach ($approved_pages as $key => $approved_page):
|
39 |
+
if( array_key_exists('instagram_connected_account', $approved_page) ) $mif_has_business_insta = true;
|
40 |
+
endforeach;
|
41 |
+
|
42 |
+
if($mif_has_business_insta){
|
43 |
+
$mif_personal_connected_accounts = 'business';
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
+
}
|
48 |
+
|
49 |
+
return $mif_personal_connected_accounts;
|
50 |
+
}
|
51 |
+
|
52 |
+
endif;
|
53 |
+
|
54 |
+
/*
|
55 |
+
* Returns the personal Instagram accounts
|
56 |
+
*/
|
57 |
+
if(!function_exists('mif_instagram_personal_accounts')):
|
58 |
+
|
59 |
+
function mif_instagram_personal_accounts(){
|
60 |
+
|
61 |
+
$mif_personal_connected_accounts = '';
|
62 |
+
|
63 |
+
/*
|
64 |
+
* Getting the Plugin main object.
|
65 |
+
*/
|
66 |
+
$Feed_Them_All = new Feed_Them_All();
|
67 |
+
|
68 |
+
/*
|
69 |
+
* Getting the FTA Plugin settings.
|
70 |
+
*/
|
71 |
+
$fta_settings = $Feed_Them_All->fta_get_settings();
|
72 |
+
|
73 |
+
if( isset($fta_settings['plugins']['instagram']['instagram_connected_account']) && !empty($fta_settings['plugins']['instagram']['instagram_connected_account']) ){
|
74 |
+
$mif_personal_connected_accounts = $fta_settings['plugins']['instagram']['instagram_connected_account'];
|
75 |
+
}
|
76 |
+
|
77 |
+
return $mif_personal_connected_accounts;
|
78 |
+
}
|
79 |
+
endif;
|
my-instagram-feed/includes/mif-skins.php
CHANGED
@@ -1,678 +1,678 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
/*
|
4 |
* Stop execution if someone tried to get file directly.
|
5 |
-
*/
|
6 |
-
if ( !defined( 'ABSPATH' ) ) {
|
7 |
-
exit;
|
8 |
-
}
|
9 |
-
//======================================================================
|
10 |
-
// Main class of all FTA Skins
|
11 |
-
//======================================================================
|
12 |
-
|
13 |
-
if ( !class_exists( 'MIF_SKINS' ) ) {
|
14 |
-
class MIF_SKINS
|
15 |
-
{
|
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 |
-
/* Action hook fires on admin load. */
|
24 |
-
add_action( 'init', array( $this, 'mif_skins_register' ), 20 );
|
25 |
-
$this->mif_skins();
|
26 |
/*
|
27 |
* Gets all Skins.
|
28 |
-
*/
|
29 |
-
$this->mif_default_skins();
|
30 |
-
}
|
31 |
-
|
32 |
-
/* __construct Method ends here. */
|
33 |
/*
|
34 |
* Register skins posttype.
|
35 |
-
*/
|
36 |
-
public function mif_skins_register()
|
37 |
-
{
|
38 |
-
$FTA = new Feed_Them_All();
|
39 |
-
$fta_settings = $FTA->fta_get_settings();
|
40 |
-
// echo "<pre>"; print_r();exit();
|
41 |
-
/* Arguments for custom post type of skins. */
|
42 |
-
$args = array(
|
43 |
-
'public' => true,
|
44 |
-
'label' => __( 'MIF Skins', $FTA->plug_slug ),
|
45 |
-
'show_in_menu' => false,
|
46 |
-
'exclude_from_search' => true,
|
47 |
-
'has_archive' => false,
|
48 |
-
'hierarchical' => true,
|
49 |
-
'menu_position' => null,
|
50 |
-
);
|
51 |
-
/* register_post_type() registers a custom post type in wp. */
|
52 |
-
register_post_type( 'mif_skins', $args );
|
53 |
-
}
|
54 |
-
|
55 |
-
/* mif_skins_register Method ends here. */
|
56 |
/*
|
57 |
* Register Default skins.
|
58 |
-
*/
|
59 |
-
public function mif_default_skins()
|
60 |
-
{
|
61 |
-
$FTA = new Feed_Them_All();
|
62 |
-
$fta_settings = $FTA->fta_get_settings();
|
63 |
-
// echo "<pre>"; print_r($fta_settings);exit();
|
64 |
-
|
65 |
-
if ( !isset( $fta_settings['plugins']['instagram']['default_skin_id'] ) && empty($fta_settings['plugins']['instagram']['default_skin_id']) ) {
|
66 |
-
/* Arguments for default skin. */
|
67 |
-
$mif_new_skins = array(
|
68 |
-
'post_title' => __( "Skin - Grid", $FTA->plug_slug ),
|
69 |
-
'post_content' => __( "This is the demo skin created by Easy Social Feed plugin automatically with default values. You can edit it and change the look & feel of your Feeds.", $FTA->plug_slug ),
|
70 |
-
'post_type' => 'mif_skins',
|
71 |
-
'post_status' => 'publish',
|
72 |
-
'post_author' => get_current_user_id(),
|
73 |
-
);
|
74 |
-
$mif_new_skins = apply_filters( 'mif_default_skin', $mif_new_skins );
|
75 |
-
$skin_id = wp_insert_post( $mif_new_skins );
|
76 |
-
$fta_settings['plugins']['instagram']['default_skin_id'] = $skin_id;
|
77 |
-
update_option( 'fta_settings', $fta_settings );
|
78 |
-
if ( isset( $skin_id ) ) {
|
79 |
-
/* saving values.*/
|
80 |
-
update_option( 'mif_skin_' . $skin_id, $this->mif_skin_grid_values() );
|
81 |
-
}
|
82 |
-
}
|
83 |
-
|
84 |
-
|
85 |
-
if ( !isset( $fta_settings['plugins']['instagram']['default_page_id'] ) && empty($fta_settings['plugins']['instagram']['default_page_id']) ) {
|
86 |
-
$skin_id = $fta_settings['plugins']['instagram']['default_skin_id'];
|
87 |
-
$user_id = null;
|
88 |
/*
|
89 |
* Getting approved pages.
|
90 |
-
*/
|
91 |
-
$approved_pages = array();
|
92 |
-
if ( isset( $fta_settings['plugins']['facebook']['approved_pages'] ) && !empty($fta_settings['plugins']['facebook']['approved_pages']) ) {
|
93 |
-
$approved_pages = $fta_settings['plugins']['facebook']['approved_pages'];
|
94 |
-
}
|
95 |
-
|
96 |
-
if ( $approved_pages ) {
|
97 |
-
reset( $approved_pages );
|
98 |
-
$id = key( $approved_pages );
|
99 |
-
$user_id = $approved_pages[$id]->instagram_accounts->connected_instagram_account->id;
|
100 |
-
}
|
101 |
-
|
102 |
/*
|
103 |
* $data array contains the data of demo page.
|
104 |
-
*/
|
105 |
-
$mif_default_page = array(
|
106 |
-
'post_title' => __( "Instagram Demo - Customizer", $FTA->plug_slug ),
|
107 |
-
'post_content' => __( "[my-instagram-feed user_id='{$user_id}' skin_id='{$skin_id}'] <br> This is a mif demo page created by plugin automatically. Please don't delete to make the plugin work properly.", $FTA->plug_slug ),
|
108 |
-
'post_type' => 'page',
|
109 |
-
'post_status' => '
|
110 |
-
);
|
111 |
-
$mif_default_page = apply_filters( 'mif_default_page', $mif_default_page );
|
112 |
-
$page_id = wp_insert_post( $mif_default_page );
|
113 |
-
$fta_settings['plugins']['instagram']['default_page_id'] = $page_id;
|
114 |
-
update_option( 'fta_settings', $fta_settings );
|
115 |
-
}
|
116 |
-
|
117 |
-
}
|
118 |
-
|
119 |
-
/* mif_default_skins Method ends here. */
|
120 |
/*
|
121 |
* xo_accounts will get the all accounts.
|
122 |
* Returns accounts object.
|
123 |
-
*/
|
124 |
-
public function mif_skins()
|
125 |
-
{
|
126 |
-
$FTA = new Feed_Them_All();
|
127 |
-
$fta_settings = $FTA->fta_get_settings();
|
128 |
/*
|
129 |
* Arguments for WP_Query().
|
130 |
-
*/
|
131 |
-
$fta_skins = array(
|
132 |
-
'posts_per_page' => 1000,
|
133 |
-
'post_type' => 'mif_skins',
|
134 |
-
'post_status' => array( 'publish', 'draft', 'pending' ),
|
135 |
-
);
|
136 |
/*
|
137 |
* Quering all active xOptins.
|
138 |
* WP_Query() object of wp will be used.
|
139 |
-
*/
|
140 |
-
$fta_skins = new WP_Query( $fta_skins );
|
141 |
-
/* If any fta_skins are in database. */
|
142 |
-
|
143 |
-
if ( $fta_skins->have_posts() ) {
|
144 |
-
/* Declaring an empty array. */
|
145 |
-
$fta_skins_holder = array();
|
146 |
-
/* Looping mif_skins to get all records. */
|
147 |
-
while ( $fta_skins->have_posts() ) {
|
148 |
-
/* Making it post. */
|
149 |
-
$fta_skins->the_post();
|
150 |
-
/* Getting the ID. */
|
151 |
-
$id = get_the_ID();
|
152 |
-
$design_arr = null;
|
153 |
-
$design_arr = get_option( 'mif_skin_' . $id, false );
|
154 |
-
$selected_layout = $design_arr['layout_option'];
|
155 |
-
// echo "<pre>"; print_r($design_arr);exit();
|
156 |
-
$title = get_the_title();
|
157 |
-
if ( empty($title) ) {
|
158 |
-
$title = __( 'Skin', $FTA->plug_slug );
|
159 |
-
}
|
160 |
-
/* Making an array of skins. */
|
161 |
-
$fta_skins_holder[$id] = array(
|
162 |
-
'ID' => $id,
|
163 |
-
'title' => $title,
|
164 |
-
'description' => get_the_content(),
|
165 |
-
);
|
166 |
-
if ( !isset( $selected_layout ) or empty($selected_layout) ) {
|
167 |
-
$selected_layout = 'grid';
|
168 |
-
}
|
169 |
-
$default_func_name = 'mif_skin_' . $selected_layout . '_values';
|
170 |
-
$defaults = $this->{$default_func_name}();
|
171 |
-
/* If there is no data in live preview section of xOptin setting the default data. */
|
172 |
-
$fta_skins_holder[$id]['design'] = wp_parse_args( $design_arr, $defaults );
|
173 |
-
}
|
174 |
-
// Loop ends here.
|
175 |
-
/* Reseting the current query. */
|
176 |
-
wp_reset_postdata();
|
177 |
-
} else {
|
178 |
-
return __( 'No skins found.', $FTA->plug_slug );
|
179 |
-
}
|
180 |
-
|
181 |
-
/* Globalising array to access anywhere. */
|
182 |
-
$GLOBALS['mif_skins'] = $fta_skins_holder;
|
183 |
-
// echo "<pre>";
|
184 |
-
// print_r($mif_skins_holder);exit;
|
185 |
-
}
|
186 |
-
|
187 |
-
/* xo_Skins Method ends here. */
|
188 |
/*
|
189 |
* fta_skin_default_values will have default design values of skins.
|
190 |
-
*/
|
191 |
-
public function mif_skin_grid_values()
|
192 |
-
{
|
193 |
-
$default_val_arr = array(
|
194 |
-
'header_background_color' => '#fff',
|
195 |
-
'btnbordercolor-hover' => '#000',
|
196 |
-
'header_text_color' => '#000',
|
197 |
-
'feed_time_text_color' => '#000',
|
198 |
-
'feed_cta_text_color' => '#000',
|
199 |
-
'number_of_cols' => 3,
|
200 |
-
'feed_cta_text_hover_color' => '#000',
|
201 |
-
'popup_icon_color' => '#fff',
|
202 |
-
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
203 |
-
'layout_option' => 'grid',
|
204 |
-
'title_size' => '16',
|
205 |
-
'metadata_size' => '16',
|
206 |
-
'bio_size' => '14',
|
207 |
-
'show_comments' => false,
|
208 |
-
'show_likes' => false,
|
209 |
-
'show_header' => false,
|
210 |
-
'show_feed_external_link' => true,
|
211 |
-
'feed_image_filter_amount' => 0.1,
|
212 |
-
'show_dp' => true,
|
213 |
-
'header_round_dp' => true,
|
214 |
-
'header_dp_hover_color' => 'rgba(0,0,0,0.5)',
|
215 |
-
'header_dp_hover_icon_color' => '#fff',
|
216 |
-
'header_border_color' => '#ccc',
|
217 |
-
'header_border_style' => 'none',
|
218 |
-
'header_border_top' => '0',
|
219 |
-
'header_border_bottom' => '1',
|
220 |
-
'header_border_left' => '0',
|
221 |
-
'header_border_right' => '0',
|
222 |
-
'header_padding_top' => '10',
|
223 |
-
'header_padding_bottom' => '10',
|
224 |
-
'header_padding_left' => '10',
|
225 |
-
'header_padding_right' => '10',
|
226 |
-
'feed_image_filter' => 'none',
|
227 |
-
'header_align' => 'left',
|
228 |
-
'feed_margin_top' => 5,
|
229 |
-
'feed_margin_bottom' => 5,
|
230 |
-
'feed_margin_left' => 5,
|
231 |
-
'feed_margin_right' => 5,
|
232 |
-
'show_feed_open_popup_icon' => true,
|
233 |
-
'popup_icon_color' => '#fff',
|
234 |
-
'show_no_of_feeds' => true,
|
235 |
-
'show_no_of_followers' => true,
|
236 |
-
'show_bio' => true,
|
237 |
-
'show_follow_btn' => true,
|
238 |
-
'show_load_more_btn' => true,
|
239 |
-
'load_more_background_color' => '#333',
|
240 |
-
'load_more_color' => '#fff',
|
241 |
-
'load_more_hover_background_color' => '#5c5c5c',
|
242 |
-
'load_more_hover_color' => '#fff',
|
243 |
-
'follow_btn_background_color' => '#517fa4',
|
244 |
-
'follow_btn_color' => '#fff',
|
245 |
-
'follow_btn_hover_background_color' => '#4477a0',
|
246 |
-
'follow_btn_hover_color' => '#fff',
|
247 |
-
'popup_sidebar_bg' => '#fff',
|
248 |
-
'popup_sidebar_color' => '#000',
|
249 |
-
'popup_show_header' => true,
|
250 |
-
'popup_show_header_logo' => true,
|
251 |
-
'popup_header_title_color' => '#ed6d62',
|
252 |
-
'popup_post_time_color' => '#9197a3',
|
253 |
-
'popup_show_caption' => true,
|
254 |
-
'popup_show_meta' => true,
|
255 |
-
'popup_meta_bg_color' => '#f6f7f9',
|
256 |
-
'popup_meta_color' => '#000',
|
257 |
-
'popup_show_reactions_counter' => true,
|
258 |
-
'popup_show_comments_counter' => true,
|
259 |
-
'popup_show_view_fb_link' => true,
|
260 |
-
'popup_show_comments' => true,
|
261 |
-
'popup_comments_bg_color' => '#f2f3f5',
|
262 |
-
'popup_comments_color' => '#4b4f52',
|
263 |
-
'popup_close_icon_bg_color' => 'transparent',
|
264 |
-
'popup_close_icon_color' => '#888',
|
265 |
-
'popup_close_icon_bg_hover_color' => '#eee',
|
266 |
-
'popup_close_icon_hover_color' => '#000',
|
267 |
-
'popup_show_close_icon' => true,
|
268 |
-
);
|
269 |
/*
|
270 |
* Filters to add more default values
|
271 |
-
*/
|
272 |
-
$default_val_arr = apply_filters( 'mif_grid_layout_defaults', $default_val_arr );
|
273 |
-
return $default_val_arr;
|
274 |
-
}
|
275 |
-
|
276 |
-
/* mif_skin_default_values Method ends here. */
|
277 |
/*
|
278 |
* fta_skin_default_values will have default design values of skins.
|
279 |
-
*/
|
280 |
-
public function mif_skin_masonary_values()
|
281 |
-
{
|
282 |
-
$default_val_arr = array(
|
283 |
-
'header_background_color' => '#fff',
|
284 |
-
'gutter_width' => 10,
|
285 |
-
'btnbordercolor-hover' => '#000',
|
286 |
-
'header_text_color' => '#000',
|
287 |
-
'feed_time_text_color' => '#000',
|
288 |
-
'feed_cta_text_color' => '#000',
|
289 |
-
'number_of_cols' => 4,
|
290 |
-
'feed_cta_text_hover_color' => '#000',
|
291 |
-
'popup_icon_color' => '#fff',
|
292 |
-
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
293 |
-
'layout_option' => 'masonary',
|
294 |
-
'title_size' => '16',
|
295 |
-
'metadata_size' => '16',
|
296 |
-
'bio_size' => '14',
|
297 |
-
'show_comments' => false,
|
298 |
-
'show_likes' => false,
|
299 |
-
'show_header' => false,
|
300 |
-
'show_feed_external_link' => true,
|
301 |
-
'feed_image_filter_amount' => 0.1,
|
302 |
-
'show_dp' => true,
|
303 |
-
'header_round_dp' => true,
|
304 |
-
'header_dp_hover_color' => 'rgba(0,0,0,0.5)',
|
305 |
-
'header_dp_hover_icon_color' => '#fff',
|
306 |
-
'header_border_color' => '#ccc',
|
307 |
-
'header_border_style' => 'none',
|
308 |
-
'header_border_top' => '0',
|
309 |
-
'header_border_bottom' => '1',
|
310 |
-
'header_border_left' => '0',
|
311 |
-
'header_border_right' => '0',
|
312 |
-
'header_padding_top' => '10',
|
313 |
-
'header_padding_bottom' => '10',
|
314 |
-
'header_padding_left' => '10',
|
315 |
-
'header_padding_right' => '10',
|
316 |
-
'feed_image_filter' => 'none',
|
317 |
-
'header_align' => 'left',
|
318 |
-
'feed_margin_top' => 5,
|
319 |
-
'feed_margin_bottom' => 5,
|
320 |
-
'feed_margin_left' => 5,
|
321 |
-
'feed_margin_right' => 5,
|
322 |
-
'show_feed_open_popup_icon' => true,
|
323 |
-
'popup_icon_color' => '#fff',
|
324 |
-
'show_no_of_feeds' => true,
|
325 |
-
'show_no_of_followers' => true,
|
326 |
-
'show_bio' => true,
|
327 |
-
'show_follow_btn' => true,
|
328 |
-
'show_load_more_btn' => true,
|
329 |
-
'load_more_background_color' => '#333',
|
330 |
-
'load_more_color' => '#fff',
|
331 |
-
'load_more_hover_background_color' => '#5c5c5c',
|
332 |
-
'load_more_hover_color' => '#fff',
|
333 |
-
'follow_btn_background_color' => '#517fa4',
|
334 |
-
'follow_btn_color' => '#fff',
|
335 |
-
'follow_btn_hover_background_color' => '#4477a0',
|
336 |
-
'follow_btn_hover_color' => '#fff',
|
337 |
-
'popup_sidebar_bg' => '#fff',
|
338 |
-
'popup_sidebar_color' => '#000',
|
339 |
-
'popup_show_header' => true,
|
340 |
-
'popup_show_header_logo' => true,
|
341 |
-
'popup_header_title_color' => '#ed6d62',
|
342 |
-
'popup_post_time_color' => '#9197a3',
|
343 |
-
'popup_show_caption' => true,
|
344 |
-
'popup_show_meta' => true,
|
345 |
-
'popup_meta_bg_color' => '#f6f7f9',
|
346 |
-
'popup_meta_color' => '#000',
|
347 |
-
'popup_show_reactions_counter' => true,
|
348 |
-
'popup_show_comments_counter' => true,
|
349 |
-
'popup_show_view_fb_link' => true,
|
350 |
-
'popup_show_comments' => true,
|
351 |
-
'popup_comments_bg_color' => '#f2f3f5',
|
352 |
-
'popup_comments_color' => '#4b4f52',
|
353 |
-
'popup_close_icon_bg_color' => 'transparent',
|
354 |
-
'popup_close_icon_color' => '#888',
|
355 |
-
'popup_close_icon_bg_hover_color' => '#eee',
|
356 |
-
'popup_close_icon_hover_color' => '#000',
|
357 |
-
'popup_show_close_icon' => true,
|
358 |
-
);
|
359 |
-
return $default_val_arr;
|
360 |
-
}
|
361 |
-
|
362 |
-
/* mif_skin_default_values Method ends here. */
|
363 |
/*
|
364 |
* fta_skin_default_values will have default design values of skins.
|
365 |
-
*/
|
366 |
-
public function mif_skin_carousel_values()
|
367 |
-
{
|
368 |
-
$default_val_arr = array(
|
369 |
-
'header_background_color' => '#fff',
|
370 |
-
'loop' => true,
|
371 |
-
'autoplay' => true,
|
372 |
-
'show_load_more_btn' => true,
|
373 |
-
'show_next_prev_icon' => true,
|
374 |
-
'show_nav' => true,
|
375 |
-
'nav_color' => '#D6D6D6',
|
376 |
-
'nav_active_color' => '#869791',
|
377 |
-
'gutter_width' => 0,
|
378 |
-
'btnbordercolor-hover' => '#000',
|
379 |
-
'header_text_color' => '#000',
|
380 |
-
'feed_time_text_color' => '#000',
|
381 |
-
'feed_cta_text_color' => '#000',
|
382 |
-
'number_of_cols' => 3,
|
383 |
-
'feed_cta_text_hover_color' => '#000',
|
384 |
-
'popup_icon_color' => '#fff',
|
385 |
-
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
386 |
-
'layout_option' => 'carousel',
|
387 |
-
'title_size' => '16',
|
388 |
-
'metadata_size' => '16',
|
389 |
-
'bio_size' => '14',
|
390 |
-
'show_header' => false,
|
391 |
-
'show_feed_external_link' => true,
|
392 |
-
'feed_image_filter_amount' => 0.1,
|
393 |
-
'show_dp' => true,
|
394 |
-
'header_round_dp' => true,
|
395 |
-
'header_dp_hover_color' => 'rgba(0,0,0,0.5)',
|
396 |
-
'header_dp_hover_icon_color' => '#fff',
|
397 |
-
'header_border_color' => '#ccc',
|
398 |
-
'header_border_style' => 'none',
|
399 |
-
'header_border_top' => '0',
|
400 |
-
'header_border_bottom' => '1',
|
401 |
-
'header_border_left' => '0',
|
402 |
-
'header_border_right' => '0',
|
403 |
-
'header_padding_top' => '10',
|
404 |
-
'header_padding_bottom' => '10',
|
405 |
-
'header_padding_left' => '10',
|
406 |
-
'header_padding_right' => '10',
|
407 |
-
'feed_image_filter' => 'none',
|
408 |
-
'header_align' => 'left',
|
409 |
-
'feed_margin_top' => 5,
|
410 |
-
'feed_margin_bottom' => 5,
|
411 |
-
'feed_margin_left' => 5,
|
412 |
-
'feed_margin_right' => 5,
|
413 |
-
'show_next_prev_icon' => true,
|
414 |
-
'show_feed_open_popup_icon' => true,
|
415 |
-
'popup_icon_color' => '#fff',
|
416 |
-
'show_no_of_feeds' => true,
|
417 |
-
'show_no_of_followers' => true,
|
418 |
-
'show_bio' => true,
|
419 |
-
'show_follow_btn' => true,
|
420 |
-
'show_load_more_btn' => true,
|
421 |
-
'load_more_background_color' => '#333',
|
422 |
-
'load_more_color' => '#fff',
|
423 |
-
'load_more_hover_background_color' => '#5c5c5c',
|
424 |
-
'load_more_hover_color' => '#fff',
|
425 |
-
'follow_btn_background_color' => '#517fa4',
|
426 |
-
'follow_btn_color' => '#fff',
|
427 |
-
'follow_btn_hover_background_color' => '#4477a0',
|
428 |
-
'follow_btn_hover_color' => '#fff',
|
429 |
-
'popup_sidebar_bg' => '#fff',
|
430 |
-
'popup_sidebar_color' => '#000',
|
431 |
-
'popup_show_header' => true,
|
432 |
-
'popup_show_header_logo' => true,
|
433 |
-
'popup_header_title_color' => '#ed6d62',
|
434 |
-
'popup_post_time_color' => '#9197a3',
|
435 |
-
'popup_show_caption' => true,
|
436 |
-
'popup_show_meta' => true,
|
437 |
-
'popup_meta_bg_color' => '#f6f7f9',
|
438 |
-
'popup_meta_color' => '#000',
|
439 |
-
'popup_show_reactions_counter' => true,
|
440 |
-
'popup_show_comments_counter' => true,
|
441 |
-
'popup_show_view_fb_link' => true,
|
442 |
-
'popup_show_comments' => true,
|
443 |
-
'popup_comments_bg_color' => '#f2f3f5',
|
444 |
-
'popup_comments_color' => '#4b4f52',
|
445 |
-
'popup_close_icon_bg_color' => 'transparent',
|
446 |
-
'popup_close_icon_color' => '#888',
|
447 |
-
'popup_close_icon_bg_hover_color' => '#eee',
|
448 |
-
'popup_close_icon_hover_color' => '#000',
|
449 |
-
'popup_show_close_icon' => true,
|
450 |
-
);
|
451 |
-
return $default_val_arr;
|
452 |
-
}
|
453 |
-
|
454 |
-
/* mif_skin_default_values Method ends here. */
|
455 |
/*
|
456 |
* fta_skin_default_values will have default design values of skins.
|
457 |
-
*/
|
458 |
-
public function mif_skin_half_width_values()
|
459 |
-
{
|
460 |
-
$default_val_arr = array(
|
461 |
-
'background_color' => '#fff',
|
462 |
-
'header_background_color' => '#fff',
|
463 |
-
'btnbordercolor-hover' => '#000',
|
464 |
-
'header_text_color' => '#000',
|
465 |
-
'feed_time_text_color' => '#000',
|
466 |
-
'feed_cta_text_color' => '#000',
|
467 |
-
'number_of_cols' => 3,
|
468 |
-
'feed_cta_text_hover_color' => '#000',
|
469 |
-
'popup_icon_color' => '#fff',
|
470 |
-
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
471 |
-
'layout_option' => 'half_width',
|
472 |
-
'title_size' => '16',
|
473 |
-
'metadata_size' => '16',
|
474 |
-
'bio_size' => '14',
|
475 |
-
'show_comments' => true,
|
476 |
-
'show_likes' => false,
|
477 |
-
'show_header' => false,
|
478 |
-
'show_feed_external_link' => true,
|
479 |
-
'feed_image_filter_amount' => 0.1,
|
480 |
-
'show_dp' => true,
|
481 |
-
'header_round_dp' => true,
|
482 |
-
'header_dp_hover_color' => 'rgba(0,0,0,0.5)',
|
483 |
-
'header_dp_hover_icon_color' => '#fff',
|
484 |
-
'header_border_color' => '#ccc',
|
485 |
-
'header_border_style' => 'none',
|
486 |
-
'header_border_top' => '0',
|
487 |
-
'header_border_bottom' => '1',
|
488 |
-
'header_border_left' => '0',
|
489 |
-
'header_border_right' => '0',
|
490 |
-
'header_padding_top' => '10',
|
491 |
-
'header_padding_bottom' => '10',
|
492 |
-
'header_padding_left' => '10',
|
493 |
-
'header_padding_right' => '10',
|
494 |
-
'feed_image_filter' => 'none',
|
495 |
-
'feed_background_color' => 'transparent',
|
496 |
-
'feed_padding_top_bottom' => 10,
|
497 |
-
'feed_padding_top' => 10,
|
498 |
-
'feed_padding_bottom' => 10,
|
499 |
-
'feed_padding_left' => 0,
|
500 |
-
'feed_padding_right' => 0,
|
501 |
-
'feed_padding_right_left' => 0,
|
502 |
-
'header_align' => 'left',
|
503 |
-
'feed_seprator_color' => '#ccc',
|
504 |
-
'feed_border_size' => '1',
|
505 |
-
'feed_border_style' => 'solid',
|
506 |
-
'feed_margin_top' => 5,
|
507 |
-
'feed_margin_bottom' => 5,
|
508 |
-
'feed_margin_left' => 0,
|
509 |
-
'feed_margin_right' => 0,
|
510 |
-
'show_feed_caption' => true,
|
511 |
-
'feed_external_color' => '#fff',
|
512 |
-
'show_feed_cta' => true,
|
513 |
-
'feed_cta_text_color' => '#000',
|
514 |
-
'feed_cta_text_hover_color' => '#000',
|
515 |
-
'feed_time_text_color' => '#000',
|
516 |
-
'feed_show_likes' => true,
|
517 |
-
'feed_likes_bg_color' => '#333',
|
518 |
-
'feed_likes_color' => '#fff',
|
519 |
-
'feed_comments_bg_color' => '#333',
|
520 |
-
'feed_comments_color' => '#fff',
|
521 |
-
'feed_seprator_color' => '#ccc',
|
522 |
-
'show_feed_open_popup_icon' => true,
|
523 |
-
'caption_color' => '#000',
|
524 |
-
'popup_icon_color' => '#fff',
|
525 |
-
'show_no_of_feeds' => true,
|
526 |
-
'show_no_of_followers' => true,
|
527 |
-
'show_bio' => true,
|
528 |
-
'show_follow_btn' => true,
|
529 |
-
'show_load_more_btn' => true,
|
530 |
-
'load_more_background_color' => '#333',
|
531 |
-
'load_more_color' => '#fff',
|
532 |
-
'load_more_hover_background_color' => '#5c5c5c',
|
533 |
-
'load_more_hover_color' => '#fff',
|
534 |
-
'follow_btn_background_color' => '#517fa4',
|
535 |
-
'follow_btn_color' => '#fff',
|
536 |
-
'follow_btn_hover_background_color' => '#4477a0',
|
537 |
-
'follow_btn_hover_color' => '#fff',
|
538 |
-
'popup_sidebar_bg' => '#fff',
|
539 |
-
'popup_sidebar_color' => '#000',
|
540 |
-
'popup_show_header' => true,
|
541 |
-
'popup_show_header_logo' => true,
|
542 |
-
'popup_header_title_color' => '#ed6d62',
|
543 |
-
'popup_post_time_color' => '#9197a3',
|
544 |
-
'popup_show_caption' => true,
|
545 |
-
'popup_show_meta' => true,
|
546 |
-
'popup_meta_bg_color' => '#f6f7f9',
|
547 |
-
'popup_meta_color' => '#000',
|
548 |
-
'popup_show_reactions_counter' => true,
|
549 |
-
'popup_show_comments_counter' => true,
|
550 |
-
'popup_show_view_fb_link' => true,
|
551 |
-
'popup_show_comments' => true,
|
552 |
-
'popup_comments_bg_color' => '#f2f3f5',
|
553 |
-
'popup_comments_color' => '#4b4f52',
|
554 |
-
'popup_close_icon_bg_color' => 'transparent',
|
555 |
-
'popup_close_icon_color' => '#888',
|
556 |
-
'popup_close_icon_bg_hover_color' => '#eee',
|
557 |
-
'popup_close_icon_hover_color' => '#000',
|
558 |
-
'popup_show_close_icon' => true,
|
559 |
-
);
|
560 |
-
return $default_val_arr;
|
561 |
-
}
|
562 |
-
|
563 |
-
/* mif_skin_default_values Method ends here. */
|
564 |
/*
|
565 |
* fta_skin_default_values will have default design values of skins.
|
566 |
-
*/
|
567 |
-
public function mif_skin_full_width_values()
|
568 |
-
{
|
569 |
-
$default_val_arr = array(
|
570 |
-
'background_color' => '#fff',
|
571 |
-
'header_background_color' => '#fff',
|
572 |
-
'btnbordercolor-hover' => '#000',
|
573 |
-
'header_text_color' => '#000',
|
574 |
-
'feed_time_text_color' => '#000',
|
575 |
-
'feed_cta_text_color' => '#000',
|
576 |
-
'number_of_cols' => 3,
|
577 |
-
'feed_cta_text_hover_color' => '#000',
|
578 |
-
'popup_icon_color' => '#fff',
|
579 |
-
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
580 |
-
'layout_option' => 'full_width',
|
581 |
-
'title_size' => '16',
|
582 |
-
'metadata_size' => '16',
|
583 |
-
'bio_size' => '14',
|
584 |
-
'show_comments' => true,
|
585 |
-
'show_likes' => true,
|
586 |
-
'show_header' => false,
|
587 |
-
'show_feed_external_link' => true,
|
588 |
-
'feed_image_filter_amount' => 0.1,
|
589 |
-
'show_dp' => true,
|
590 |
-
'header_round_dp' => true,
|
591 |
-
'header_dp_hover_color' => 'rgba(0,0,0,0.5)',
|
592 |
-
'header_dp_hover_icon_color' => '#fff',
|
593 |
-
'header_border_color' => '#ccc',
|
594 |
-
'header_border_style' => 'none',
|
595 |
-
'header_border_top' => '0',
|
596 |
-
'header_border_bottom' => '1',
|
597 |
-
'header_border_left' => '0',
|
598 |
-
'header_border_right' => '0',
|
599 |
-
'header_padding_top' => '10',
|
600 |
-
'header_padding_bottom' => '10',
|
601 |
-
'header_padding_left' => '10',
|
602 |
-
'header_padding_right' => '10',
|
603 |
-
'feed_image_filter' => 'none',
|
604 |
-
'feed_background_color' => 'transparent',
|
605 |
-
'feed_padding_top_bottom' => 10,
|
606 |
-
'feed_padding_top' => 10,
|
607 |
-
'feed_padding_bottom' => 10,
|
608 |
-
'feed_padding_left' => 0,
|
609 |
-
'feed_padding_right' => 0,
|
610 |
-
'feed_padding_right_left' => 0,
|
611 |
-
'header_align' => 'left',
|
612 |
-
'feed_seprator_color' => '#ccc',
|
613 |
-
'feed_border_size' => '1',
|
614 |
-
'feed_border_style' => 'solid',
|
615 |
-
'feed_margin_top' => 5,
|
616 |
-
'feed_margin_bottom' => 5,
|
617 |
-
'feed_margin_left' => 0,
|
618 |
-
'feed_margin_right' => 0,
|
619 |
-
'show_feed_caption' => true,
|
620 |
-
'feed_external_color' => '#fff',
|
621 |
-
'show_feed_cta' => true,
|
622 |
-
'feed_cta_text_color' => '#000',
|
623 |
-
'feed_cta_text_hover_color' => '#000',
|
624 |
-
'feed_time_text_color' => '#000',
|
625 |
-
'feed_show_likes' => true,
|
626 |
-
'feed_likes_bg_color' => '#333',
|
627 |
-
'feed_likes_color' => '#fff',
|
628 |
-
'feed_comments_bg_color' => '#333',
|
629 |
-
'feed_comments_color' => '#fff',
|
630 |
-
'feed_seprator_color' => '#ccc',
|
631 |
-
'show_feed_open_popup_icon' => true,
|
632 |
-
'caption_color' => '#000',
|
633 |
-
'popup_icon_color' => '#fff',
|
634 |
-
'show_no_of_feeds' => true,
|
635 |
-
'show_no_of_followers' => true,
|
636 |
-
'show_bio' => true,
|
637 |
-
'show_follow_btn' => true,
|
638 |
-
'show_load_more_btn' => true,
|
639 |
-
'load_more_background_color' => '#333',
|
640 |
-
'load_more_color' => '#fff',
|
641 |
-
'load_more_hover_background_color' => '#5c5c5c',
|
642 |
-
'load_more_hover_color' => '#fff',
|
643 |
-
'follow_btn_background_color' => '#517fa4',
|
644 |
-
'follow_btn_color' => '#fff',
|
645 |
-
'follow_btn_hover_background_color' => '#4477a0',
|
646 |
-
'follow_btn_hover_color' => '#fff',
|
647 |
-
'popup_sidebar_bg' => '#fff',
|
648 |
-
'popup_sidebar_color' => '#000',
|
649 |
-
'popup_show_header' => true,
|
650 |
-
'popup_show_header_logo' => true,
|
651 |
-
'popup_header_title_color' => '#ed6d62',
|
652 |
-
'popup_post_time_color' => '#9197a3',
|
653 |
-
'popup_show_caption' => true,
|
654 |
-
'popup_show_meta' => true,
|
655 |
-
'popup_meta_bg_color' => '#f6f7f9',
|
656 |
-
'popup_meta_color' => '#000',
|
657 |
-
'popup_show_reactions_counter' => true,
|
658 |
-
'popup_show_comments_counter' => true,
|
659 |
-
'popup_show_view_fb_link' => true,
|
660 |
-
'popup_show_comments' => true,
|
661 |
-
'popup_comments_bg_color' => '#f2f3f5',
|
662 |
-
'popup_comments_color' => '#4b4f52',
|
663 |
-
'popup_close_icon_bg_color' => 'transparent',
|
664 |
-
'popup_close_icon_color' => '#888',
|
665 |
-
'popup_close_icon_bg_hover_color' => '#eee',
|
666 |
-
'popup_close_icon_hover_color' => '#000',
|
667 |
-
'popup_show_close_icon' => true,
|
668 |
-
);
|
669 |
-
return $default_val_arr;
|
670 |
-
}
|
671 |
-
|
672 |
-
}
|
673 |
-
/* Class ends here. */
|
674 |
/*
|
675 |
* Globalising class to get functionality on other files.
|
676 |
-
*/
|
677 |
-
$GLOBALS['MIF_SKINS'] = new MIF_SKINS();
|
678 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
/*
|
4 |
* Stop execution if someone tried to get file directly.
|
5 |
+
*/
|
6 |
+
if ( !defined( 'ABSPATH' ) ) {
|
7 |
+
exit;
|
8 |
+
}
|
9 |
+
//======================================================================
|
10 |
+
// Main class of all FTA Skins
|
11 |
+
//======================================================================
|
12 |
+
|
13 |
+
if ( !class_exists( 'MIF_SKINS' ) ) {
|
14 |
+
class MIF_SKINS
|
15 |
+
{
|
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 |
+
/* Action hook fires on admin load. */
|
24 |
+
add_action( 'init', array( $this, 'mif_skins_register' ), 20 );
|
25 |
+
$this->mif_skins();
|
26 |
/*
|
27 |
* Gets all Skins.
|
28 |
+
*/
|
29 |
+
$this->mif_default_skins();
|
30 |
+
}
|
31 |
+
|
32 |
+
/* __construct Method ends here. */
|
33 |
/*
|
34 |
* Register skins posttype.
|
35 |
+
*/
|
36 |
+
public function mif_skins_register()
|
37 |
+
{
|
38 |
+
$FTA = new Feed_Them_All();
|
39 |
+
$fta_settings = $FTA->fta_get_settings();
|
40 |
+
// echo "<pre>"; print_r();exit();
|
41 |
+
/* Arguments for custom post type of skins. */
|
42 |
+
$args = array(
|
43 |
+
'public' => true,
|
44 |
+
'label' => __( 'MIF Skins', $FTA->plug_slug ),
|
45 |
+
'show_in_menu' => false,
|
46 |
+
'exclude_from_search' => true,
|
47 |
+
'has_archive' => false,
|
48 |
+
'hierarchical' => true,
|
49 |
+
'menu_position' => null,
|
50 |
+
);
|
51 |
+
/* register_post_type() registers a custom post type in wp. */
|
52 |
+
register_post_type( 'mif_skins', $args );
|
53 |
+
}
|
54 |
+
|
55 |
+
/* mif_skins_register Method ends here. */
|
56 |
/*
|
57 |
* Register Default skins.
|
58 |
+
*/
|
59 |
+
public function mif_default_skins()
|
60 |
+
{
|
61 |
+
$FTA = new Feed_Them_All();
|
62 |
+
$fta_settings = $FTA->fta_get_settings();
|
63 |
+
// echo "<pre>"; print_r($fta_settings);exit();
|
64 |
+
|
65 |
+
if ( !isset( $fta_settings['plugins']['instagram']['default_skin_id'] ) && empty($fta_settings['plugins']['instagram']['default_skin_id']) ) {
|
66 |
+
/* Arguments for default skin. */
|
67 |
+
$mif_new_skins = array(
|
68 |
+
'post_title' => __( "Skin - Grid", $FTA->plug_slug ),
|
69 |
+
'post_content' => __( "This is the demo skin created by Easy Social Feed plugin automatically with default values. You can edit it and change the look & feel of your Feeds.", $FTA->plug_slug ),
|
70 |
+
'post_type' => 'mif_skins',
|
71 |
+
'post_status' => 'publish',
|
72 |
+
'post_author' => get_current_user_id(),
|
73 |
+
);
|
74 |
+
$mif_new_skins = apply_filters( 'mif_default_skin', $mif_new_skins );
|
75 |
+
$skin_id = wp_insert_post( $mif_new_skins );
|
76 |
+
$fta_settings['plugins']['instagram']['default_skin_id'] = $skin_id;
|
77 |
+
update_option( 'fta_settings', $fta_settings );
|
78 |
+
if ( isset( $skin_id ) ) {
|
79 |
+
/* saving values.*/
|
80 |
+
update_option( 'mif_skin_' . $skin_id, $this->mif_skin_grid_values() );
|
81 |
+
}
|
82 |
+
}
|
83 |
+
|
84 |
+
|
85 |
+
if ( !isset( $fta_settings['plugins']['instagram']['default_page_id'] ) && empty($fta_settings['plugins']['instagram']['default_page_id']) ) {
|
86 |
+
$skin_id = $fta_settings['plugins']['instagram']['default_skin_id'];
|
87 |
+
$user_id = null;
|
88 |
/*
|
89 |
* Getting approved pages.
|
90 |
+
*/
|
91 |
+
$approved_pages = array();
|
92 |
+
if ( isset( $fta_settings['plugins']['facebook']['approved_pages'] ) && !empty($fta_settings['plugins']['facebook']['approved_pages']) ) {
|
93 |
+
$approved_pages = $fta_settings['plugins']['facebook']['approved_pages'];
|
94 |
+
}
|
95 |
+
|
96 |
+
if ( $approved_pages ) {
|
97 |
+
reset( $approved_pages );
|
98 |
+
$id = key( $approved_pages );
|
99 |
+
$user_id = $approved_pages[$id]->instagram_accounts->connected_instagram_account->id;
|
100 |
+
}
|
101 |
+
|
102 |
/*
|
103 |
* $data array contains the data of demo page.
|
104 |
+
*/
|
105 |
+
$mif_default_page = array(
|
106 |
+
'post_title' => __( "Instagram Demo - Customizer", $FTA->plug_slug ),
|
107 |
+
'post_content' => __( "[my-instagram-feed user_id='{$user_id}' skin_id='{$skin_id}'] <br> This is a mif demo page created by plugin automatically. Please don't delete to make the plugin work properly.", $FTA->plug_slug ),
|
108 |
+
'post_type' => 'page',
|
109 |
+
'post_status' => 'private',
|
110 |
+
);
|
111 |
+
$mif_default_page = apply_filters( 'mif_default_page', $mif_default_page );
|
112 |
+
$page_id = wp_insert_post( $mif_default_page );
|
113 |
+
$fta_settings['plugins']['instagram']['default_page_id'] = $page_id;
|
114 |
+
update_option( 'fta_settings', $fta_settings );
|
115 |
+
}
|
116 |
+
|
117 |
+
}
|
118 |
+
|
119 |
+
/* mif_default_skins Method ends here. */
|
120 |
/*
|
121 |
* xo_accounts will get the all accounts.
|
122 |
* Returns accounts object.
|
123 |
+
*/
|
124 |
+
public function mif_skins()
|
125 |
+
{
|
126 |
+
$FTA = new Feed_Them_All();
|
127 |
+
$fta_settings = $FTA->fta_get_settings();
|
128 |
/*
|
129 |
* Arguments for WP_Query().
|
130 |
+
*/
|
131 |
+
$fta_skins = array(
|
132 |
+
'posts_per_page' => 1000,
|
133 |
+
'post_type' => 'mif_skins',
|
134 |
+
'post_status' => array( 'publish', 'draft', 'pending' ),
|
135 |
+
);
|
136 |
/*
|
137 |
* Quering all active xOptins.
|
138 |
* WP_Query() object of wp will be used.
|
139 |
+
*/
|
140 |
+
$fta_skins = new WP_Query( $fta_skins );
|
141 |
+
/* If any fta_skins are in database. */
|
142 |
+
|
143 |
+
if ( $fta_skins->have_posts() ) {
|
144 |
+
/* Declaring an empty array. */
|
145 |
+
$fta_skins_holder = array();
|
146 |
+
/* Looping mif_skins to get all records. */
|
147 |
+
while ( $fta_skins->have_posts() ) {
|
148 |
+
/* Making it post. */
|
149 |
+
$fta_skins->the_post();
|
150 |
+
/* Getting the ID. */
|
151 |
+
$id = get_the_ID();
|
152 |
+
$design_arr = null;
|
153 |
+
$design_arr = get_option( 'mif_skin_' . $id, false );
|
154 |
+
$selected_layout = $design_arr['layout_option'];
|
155 |
+
// echo "<pre>"; print_r($design_arr);exit();
|
156 |
+
$title = get_the_title();
|
157 |
+
if ( empty($title) ) {
|
158 |
+
$title = __( 'Skin', $FTA->plug_slug );
|
159 |
+
}
|
160 |
+
/* Making an array of skins. */
|
161 |
+
$fta_skins_holder[$id] = array(
|
162 |
+
'ID' => $id,
|
163 |
+
'title' => $title,
|
164 |
+
'description' => get_the_content(),
|
165 |
+
);
|
166 |
+
if ( !isset( $selected_layout ) or empty($selected_layout) ) {
|
167 |
+
$selected_layout = 'grid';
|
168 |
+
}
|
169 |
+
$default_func_name = 'mif_skin_' . $selected_layout . '_values';
|
170 |
+
$defaults = $this->{$default_func_name}();
|
171 |
+
/* If there is no data in live preview section of xOptin setting the default data. */
|
172 |
+
$fta_skins_holder[$id]['design'] = wp_parse_args( $design_arr, $defaults );
|
173 |
+
}
|
174 |
+
// Loop ends here.
|
175 |
+
/* Reseting the current query. */
|
176 |
+
wp_reset_postdata();
|
177 |
+
} else {
|
178 |
+
return __( 'No skins found.', $FTA->plug_slug );
|
179 |
+
}
|
180 |
+
|
181 |
+
/* Globalising array to access anywhere. */
|
182 |
+
$GLOBALS['mif_skins'] = $fta_skins_holder;
|
183 |
+
// echo "<pre>";
|
184 |
+
// print_r($mif_skins_holder);exit;
|
185 |
+
}
|
186 |
+
|
187 |
+
/* xo_Skins Method ends here. */
|
188 |
/*
|
189 |
* fta_skin_default_values will have default design values of skins.
|
190 |
+
*/
|
191 |
+
public function mif_skin_grid_values()
|
192 |
+
{
|
193 |
+
$default_val_arr = array(
|
194 |
+
'header_background_color' => '#fff',
|
195 |
+
'btnbordercolor-hover' => '#000',
|
196 |
+
'header_text_color' => '#000',
|
197 |
+
'feed_time_text_color' => '#000',
|
198 |
+
'feed_cta_text_color' => '#000',
|
199 |
+
'number_of_cols' => 3,
|
200 |
+
'feed_cta_text_hover_color' => '#000',
|
201 |
+
'popup_icon_color' => '#fff',
|
202 |
+
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
203 |
+
'layout_option' => 'grid',
|
204 |
+
'title_size' => '16',
|
205 |
+
'metadata_size' => '16',
|
206 |
+
'bio_size' => '14',
|
207 |
+
'show_comments' => false,
|
208 |
+
'show_likes' => false,
|
209 |
+
'show_header' => false,
|
210 |
+
'show_feed_external_link' => true,
|
211 |
+
'feed_image_filter_amount' => 0.1,
|
212 |
+
'show_dp' => true,
|
213 |
+
'header_round_dp' => true,
|
214 |
+
'header_dp_hover_color' => 'rgba(0,0,0,0.5)',
|
215 |
+
'header_dp_hover_icon_color' => '#fff',
|
216 |
+
'header_border_color' => '#ccc',
|
217 |
+
'header_border_style' => 'none',
|
218 |
+
'header_border_top' => '0',
|
219 |
+
'header_border_bottom' => '1',
|
220 |
+
'header_border_left' => '0',
|
221 |
+
'header_border_right' => '0',
|
222 |
+
'header_padding_top' => '10',
|
223 |
+
'header_padding_bottom' => '10',
|
224 |
+
'header_padding_left' => '10',
|
225 |
+
'header_padding_right' => '10',
|
226 |
+
'feed_image_filter' => 'none',
|
227 |
+
'header_align' => 'left',
|
228 |
+
'feed_margin_top' => 5,
|
229 |
+
'feed_margin_bottom' => 5,
|
230 |
+
'feed_margin_left' => 5,
|
231 |
+
'feed_margin_right' => 5,
|
232 |
+
'show_feed_open_popup_icon' => true,
|
233 |
+
'popup_icon_color' => '#fff',
|
234 |
+
'show_no_of_feeds' => true,
|
235 |
+
'show_no_of_followers' => true,
|
236 |
+
'show_bio' => true,
|
237 |
+
'show_follow_btn' => true,
|
238 |
+
'show_load_more_btn' => true,
|
239 |
+
'load_more_background_color' => '#333',
|
240 |
+
'load_more_color' => '#fff',
|
241 |
+
'load_more_hover_background_color' => '#5c5c5c',
|
242 |
+
'load_more_hover_color' => '#fff',
|
243 |
+
'follow_btn_background_color' => '#517fa4',
|
244 |
+
'follow_btn_color' => '#fff',
|
245 |
+
'follow_btn_hover_background_color' => '#4477a0',
|
246 |
+
'follow_btn_hover_color' => '#fff',
|
247 |
+
'popup_sidebar_bg' => '#fff',
|
248 |
+
'popup_sidebar_color' => '#000',
|
249 |
+
'popup_show_header' => true,
|
250 |
+
'popup_show_header_logo' => true,
|
251 |
+
'popup_header_title_color' => '#ed6d62',
|
252 |
+
'popup_post_time_color' => '#9197a3',
|
253 |
+
'popup_show_caption' => true,
|
254 |
+
'popup_show_meta' => true,
|
255 |
+
'popup_meta_bg_color' => '#f6f7f9',
|
256 |
+
'popup_meta_color' => '#000',
|
257 |
+
'popup_show_reactions_counter' => true,
|
258 |
+
'popup_show_comments_counter' => true,
|
259 |
+
'popup_show_view_fb_link' => true,
|
260 |
+
'popup_show_comments' => true,
|
261 |
+
'popup_comments_bg_color' => '#f2f3f5',
|
262 |
+
'popup_comments_color' => '#4b4f52',
|
263 |
+
'popup_close_icon_bg_color' => 'transparent',
|
264 |
+
'popup_close_icon_color' => '#888',
|
265 |
+
'popup_close_icon_bg_hover_color' => '#eee',
|
266 |
+
'popup_close_icon_hover_color' => '#000',
|
267 |
+
'popup_show_close_icon' => true,
|
268 |
+
);
|
269 |
/*
|
270 |
* Filters to add more default values
|
271 |
+
*/
|
272 |
+
$default_val_arr = apply_filters( 'mif_grid_layout_defaults', $default_val_arr );
|
273 |
+
return $default_val_arr;
|
274 |
+
}
|
275 |
+
|
276 |
+
/* mif_skin_default_values Method ends here. */
|
277 |
/*
|
278 |
* fta_skin_default_values will have default design values of skins.
|
279 |
+
*/
|
280 |
+
public function mif_skin_masonary_values()
|
281 |
+
{
|
282 |
+
$default_val_arr = array(
|
283 |
+
'header_background_color' => '#fff',
|
284 |
+
'gutter_width' => 10,
|
285 |
+
'btnbordercolor-hover' => '#000',
|
286 |
+
'header_text_color' => '#000',
|
287 |
+
'feed_time_text_color' => '#000',
|
288 |
+
'feed_cta_text_color' => '#000',
|
289 |
+
'number_of_cols' => 4,
|
290 |
+
'feed_cta_text_hover_color' => '#000',
|
291 |
+
'popup_icon_color' => '#fff',
|
292 |
+
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
293 |
+
'layout_option' => 'masonary',
|
294 |
+
'title_size' => '16',
|
295 |
+
'metadata_size' => '16',
|
296 |
+
'bio_size' => '14',
|
297 |
+
'show_comments' => false,
|
298 |
+
'show_likes' => false,
|
299 |
+
'show_header' => false,
|
300 |
+
'show_feed_external_link' => true,
|
301 |
+
'feed_image_filter_amount' => 0.1,
|
302 |
+
'show_dp' => true,
|
303 |
+
'header_round_dp' => true,
|
304 |
+
'header_dp_hover_color' => 'rgba(0,0,0,0.5)',
|
305 |
+
'header_dp_hover_icon_color' => '#fff',
|
306 |
+
'header_border_color' => '#ccc',
|
307 |
+
'header_border_style' => 'none',
|
308 |
+
'header_border_top' => '0',
|
309 |
+
'header_border_bottom' => '1',
|
310 |
+
'header_border_left' => '0',
|
311 |
+
'header_border_right' => '0',
|
312 |
+
'header_padding_top' => '10',
|
313 |
+
'header_padding_bottom' => '10',
|
314 |
+
'header_padding_left' => '10',
|
315 |
+
'header_padding_right' => '10',
|
316 |
+
'feed_image_filter' => 'none',
|
317 |
+
'header_align' => 'left',
|
318 |
+
'feed_margin_top' => 5,
|
319 |
+
'feed_margin_bottom' => 5,
|
320 |
+
'feed_margin_left' => 5,
|
321 |
+
'feed_margin_right' => 5,
|
322 |
+
'show_feed_open_popup_icon' => true,
|
323 |
+
'popup_icon_color' => '#fff',
|
324 |
+
'show_no_of_feeds' => true,
|
325 |
+
'show_no_of_followers' => true,
|
326 |
+
'show_bio' => true,
|
327 |
+
'show_follow_btn' => true,
|
328 |
+
'show_load_more_btn' => true,
|
329 |
+
'load_more_background_color' => '#333',
|
330 |
+
'load_more_color' => '#fff',
|
331 |
+
'load_more_hover_background_color' => '#5c5c5c',
|
332 |
+
'load_more_hover_color' => '#fff',
|
333 |
+
'follow_btn_background_color' => '#517fa4',
|
334 |
+
'follow_btn_color' => '#fff',
|
335 |
+
'follow_btn_hover_background_color' => '#4477a0',
|
336 |
+
'follow_btn_hover_color' => '#fff',
|
337 |
+
'popup_sidebar_bg' => '#fff',
|
338 |
+
'popup_sidebar_color' => '#000',
|
339 |
+
'popup_show_header' => true,
|
340 |
+
'popup_show_header_logo' => true,
|
341 |
+
'popup_header_title_color' => '#ed6d62',
|
342 |
+
'popup_post_time_color' => '#9197a3',
|
343 |
+
'popup_show_caption' => true,
|
344 |
+
'popup_show_meta' => true,
|
345 |
+
'popup_meta_bg_color' => '#f6f7f9',
|
346 |
+
'popup_meta_color' => '#000',
|
347 |
+
'popup_show_reactions_counter' => true,
|
348 |
+
'popup_show_comments_counter' => true,
|
349 |
+
'popup_show_view_fb_link' => true,
|
350 |
+
'popup_show_comments' => true,
|
351 |
+
'popup_comments_bg_color' => '#f2f3f5',
|
352 |
+
'popup_comments_color' => '#4b4f52',
|
353 |
+
'popup_close_icon_bg_color' => 'transparent',
|
354 |
+
'popup_close_icon_color' => '#888',
|
355 |
+
'popup_close_icon_bg_hover_color' => '#eee',
|
356 |
+
'popup_close_icon_hover_color' => '#000',
|
357 |
+
'popup_show_close_icon' => true,
|
358 |
+
);
|
359 |
+
return $default_val_arr;
|
360 |
+
}
|
361 |
+
|
362 |
+
/* mif_skin_default_values Method ends here. */
|
363 |
/*
|
364 |
* fta_skin_default_values will have default design values of skins.
|
365 |
+
*/
|
366 |
+
public function mif_skin_carousel_values()
|
367 |
+
{
|
368 |
+
$default_val_arr = array(
|
369 |
+
'header_background_color' => '#fff',
|
370 |
+
'loop' => true,
|
371 |
+
'autoplay' => true,
|
372 |
+
'show_load_more_btn' => true,
|
373 |
+
'show_next_prev_icon' => true,
|
374 |
+
'show_nav' => true,
|
375 |
+
'nav_color' => '#D6D6D6',
|
376 |
+
'nav_active_color' => '#869791',
|
377 |
+
'gutter_width' => 0,
|
378 |
+
'btnbordercolor-hover' => '#000',
|
379 |
+
'header_text_color' => '#000',
|
380 |
+
'feed_time_text_color' => '#000',
|
381 |
+
'feed_cta_text_color' => '#000',
|
382 |
+
'number_of_cols' => 3,
|
383 |
+
'feed_cta_text_hover_color' => '#000',
|
384 |
+
'popup_icon_color' => '#fff',
|
385 |
+
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
386 |
+
'layout_option' => 'carousel',
|
387 |
+
'title_size' => '16',
|
388 |
+
'metadata_size' => '16',
|
389 |
+
'bio_size' => '14',
|
390 |
+
'show_header' => false,
|
391 |
+
'show_feed_external_link' => true,
|
392 |
+
'feed_image_filter_amount' => 0.1,
|
393 |
+
'show_dp' => true,
|
394 |
+
'header_round_dp' => true,
|
395 |
+
'header_dp_hover_color' => 'rgba(0,0,0,0.5)',
|
396 |
+
'header_dp_hover_icon_color' => '#fff',
|
397 |
+
'header_border_color' => '#ccc',
|
398 |
+
'header_border_style' => 'none',
|
399 |
+
'header_border_top' => '0',
|
400 |
+
'header_border_bottom' => '1',
|
401 |
+
'header_border_left' => '0',
|
402 |
+
'header_border_right' => '0',
|
403 |
+
'header_padding_top' => '10',
|
404 |
+
'header_padding_bottom' => '10',
|
405 |
+
'header_padding_left' => '10',
|
406 |
+
'header_padding_right' => '10',
|
407 |
+
'feed_image_filter' => 'none',
|
408 |
+
'header_align' => 'left',
|
409 |
+
'feed_margin_top' => 5,
|
410 |
+
'feed_margin_bottom' => 5,
|
411 |
+
'feed_margin_left' => 5,
|
412 |
+
'feed_margin_right' => 5,
|
413 |
+
'show_next_prev_icon' => true,
|
414 |
+
'show_feed_open_popup_icon' => true,
|
415 |
+
'popup_icon_color' => '#fff',
|
416 |
+
'show_no_of_feeds' => true,
|
417 |
+
'show_no_of_followers' => true,
|
418 |
+
'show_bio' => true,
|
419 |
+
'show_follow_btn' => true,
|
420 |
+
'show_load_more_btn' => true,
|
421 |
+
'load_more_background_color' => '#333',
|
422 |
+
'load_more_color' => '#fff',
|
423 |
+
'load_more_hover_background_color' => '#5c5c5c',
|
424 |
+
'load_more_hover_color' => '#fff',
|
425 |
+
'follow_btn_background_color' => '#517fa4',
|
426 |
+
'follow_btn_color' => '#fff',
|
427 |
+
'follow_btn_hover_background_color' => '#4477a0',
|
428 |
+
'follow_btn_hover_color' => '#fff',
|
429 |
+
'popup_sidebar_bg' => '#fff',
|
430 |
+
'popup_sidebar_color' => '#000',
|
431 |
+
'popup_show_header' => true,
|
432 |
+
'popup_show_header_logo' => true,
|
433 |
+
'popup_header_title_color' => '#ed6d62',
|
434 |
+
'popup_post_time_color' => '#9197a3',
|
435 |
+
'popup_show_caption' => true,
|
436 |
+
'popup_show_meta' => true,
|
437 |
+
'popup_meta_bg_color' => '#f6f7f9',
|
438 |
+
'popup_meta_color' => '#000',
|
439 |
+
'popup_show_reactions_counter' => true,
|
440 |
+
'popup_show_comments_counter' => true,
|
441 |
+
'popup_show_view_fb_link' => true,
|
442 |
+
'popup_show_comments' => true,
|
443 |
+
'popup_comments_bg_color' => '#f2f3f5',
|
444 |
+
'popup_comments_color' => '#4b4f52',
|
445 |
+
'popup_close_icon_bg_color' => 'transparent',
|
446 |
+
'popup_close_icon_color' => '#888',
|
447 |
+
'popup_close_icon_bg_hover_color' => '#eee',
|
448 |
+
'popup_close_icon_hover_color' => '#000',
|
449 |
+
'popup_show_close_icon' => true,
|
450 |
+
);
|
451 |
+
return $default_val_arr;
|
452 |
+
}
|
453 |
+
|
454 |
+
/* mif_skin_default_values Method ends here. */
|
455 |
/*
|
456 |
* fta_skin_default_values will have default design values of skins.
|
457 |
+
*/
|
458 |
+
public function mif_skin_half_width_values()
|
459 |
+
{
|
460 |
+
$default_val_arr = array(
|
461 |
+
'background_color' => '#fff',
|
462 |
+
'header_background_color' => '#fff',
|
463 |
+
'btnbordercolor-hover' => '#000',
|
464 |
+
'header_text_color' => '#000',
|
465 |
+
'feed_time_text_color' => '#000',
|
466 |
+
'feed_cta_text_color' => '#000',
|
467 |
+
'number_of_cols' => 3,
|
468 |
+
'feed_cta_text_hover_color' => '#000',
|
469 |
+
'popup_icon_color' => '#fff',
|
470 |
+
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
471 |
+
'layout_option' => 'half_width',
|
472 |
+
'title_size' => '16',
|
473 |
+
'metadata_size' => '16',
|
474 |
+
'bio_size' => '14',
|
475 |
+
'show_comments' => true,
|
476 |
+
'show_likes' => false,
|
477 |
+
'show_header' => false,
|
478 |
+
'show_feed_external_link' => true,
|
479 |
+
'feed_image_filter_amount' => 0.1,
|
480 |
+
'show_dp' => true,
|
481 |
+
'header_round_dp' => true,
|
482 |
+
'header_dp_hover_color' => 'rgba(0,0,0,0.5)',
|
483 |
+
'header_dp_hover_icon_color' => '#fff',
|
484 |
+
'header_border_color' => '#ccc',
|
485 |
+
'header_border_style' => 'none',
|
486 |
+
'header_border_top' => '0',
|
487 |
+
'header_border_bottom' => '1',
|
488 |
+
'header_border_left' => '0',
|
489 |
+
'header_border_right' => '0',
|
490 |
+
'header_padding_top' => '10',
|
491 |
+
'header_padding_bottom' => '10',
|
492 |
+
'header_padding_left' => '10',
|
493 |
+
'header_padding_right' => '10',
|
494 |
+
'feed_image_filter' => 'none',
|
495 |
+
'feed_background_color' => 'transparent',
|
496 |
+
'feed_padding_top_bottom' => 10,
|
497 |
+
'feed_padding_top' => 10,
|
498 |
+
'feed_padding_bottom' => 10,
|
499 |
+
'feed_padding_left' => 0,
|
500 |
+
'feed_padding_right' => 0,
|
501 |
+
'feed_padding_right_left' => 0,
|
502 |
+
'header_align' => 'left',
|
503 |
+
'feed_seprator_color' => '#ccc',
|
504 |
+
'feed_border_size' => '1',
|
505 |
+
'feed_border_style' => 'solid',
|
506 |
+
'feed_margin_top' => 5,
|
507 |
+
'feed_margin_bottom' => 5,
|
508 |
+
'feed_margin_left' => 0,
|
509 |
+
'feed_margin_right' => 0,
|
510 |
+
'show_feed_caption' => true,
|
511 |
+
'feed_external_color' => '#fff',
|
512 |
+
'show_feed_cta' => true,
|
513 |
+
'feed_cta_text_color' => '#000',
|
514 |
+
'feed_cta_text_hover_color' => '#000',
|
515 |
+
'feed_time_text_color' => '#000',
|
516 |
+
'feed_show_likes' => true,
|
517 |
+
'feed_likes_bg_color' => '#333',
|
518 |
+
'feed_likes_color' => '#fff',
|
519 |
+
'feed_comments_bg_color' => '#333',
|
520 |
+
'feed_comments_color' => '#fff',
|
521 |
+
'feed_seprator_color' => '#ccc',
|
522 |
+
'show_feed_open_popup_icon' => true,
|
523 |
+
'caption_color' => '#000',
|
524 |
+
'popup_icon_color' => '#fff',
|
525 |
+
'show_no_of_feeds' => true,
|
526 |
+
'show_no_of_followers' => true,
|
527 |
+
'show_bio' => true,
|
528 |
+
'show_follow_btn' => true,
|
529 |
+
'show_load_more_btn' => true,
|
530 |
+
'load_more_background_color' => '#333',
|
531 |
+
'load_more_color' => '#fff',
|
532 |
+
'load_more_hover_background_color' => '#5c5c5c',
|
533 |
+
'load_more_hover_color' => '#fff',
|
534 |
+
'follow_btn_background_color' => '#517fa4',
|
535 |
+
'follow_btn_color' => '#fff',
|
536 |
+
'follow_btn_hover_background_color' => '#4477a0',
|
537 |
+
'follow_btn_hover_color' => '#fff',
|
538 |
+
'popup_sidebar_bg' => '#fff',
|
539 |
+
'popup_sidebar_color' => '#000',
|
540 |
+
'popup_show_header' => true,
|
541 |
+
'popup_show_header_logo' => true,
|
542 |
+
'popup_header_title_color' => '#ed6d62',
|
543 |
+
'popup_post_time_color' => '#9197a3',
|
544 |
+
'popup_show_caption' => true,
|
545 |
+
'popup_show_meta' => true,
|
546 |
+
'popup_meta_bg_color' => '#f6f7f9',
|
547 |
+
'popup_meta_color' => '#000',
|
548 |
+
'popup_show_reactions_counter' => true,
|
549 |
+
'popup_show_comments_counter' => true,
|
550 |
+
'popup_show_view_fb_link' => true,
|
551 |
+
'popup_show_comments' => true,
|
552 |
+
'popup_comments_bg_color' => '#f2f3f5',
|
553 |
+
'popup_comments_color' => '#4b4f52',
|
554 |
+
'popup_close_icon_bg_color' => 'transparent',
|
555 |
+
'popup_close_icon_color' => '#888',
|
556 |
+
'popup_close_icon_bg_hover_color' => '#eee',
|
557 |
+
'popup_close_icon_hover_color' => '#000',
|
558 |
+
'popup_show_close_icon' => true,
|
559 |
+
);
|
560 |
+
return $default_val_arr;
|
561 |
+
}
|
562 |
+
|
563 |
+
/* mif_skin_default_values Method ends here. */
|
564 |
/*
|
565 |
* fta_skin_default_values will have default design values of skins.
|
566 |
+
*/
|
567 |
+
public function mif_skin_full_width_values()
|
568 |
+
{
|
569 |
+
$default_val_arr = array(
|
570 |
+
'background_color' => '#fff',
|
571 |
+
'header_background_color' => '#fff',
|
572 |
+
'btnbordercolor-hover' => '#000',
|
573 |
+
'header_text_color' => '#000',
|
574 |
+
'feed_time_text_color' => '#000',
|
575 |
+
'feed_cta_text_color' => '#000',
|
576 |
+
'number_of_cols' => 3,
|
577 |
+
'feed_cta_text_hover_color' => '#000',
|
578 |
+
'popup_icon_color' => '#fff',
|
579 |
+
'feed_hover_bg_color' => 'rgba(0,0,0,0.5)',
|
580 |
+
'layout_option' => 'full_width',
|
581 |
+
'title_size' => '16',
|
582 |
+
'metadata_size' => '16',
|
583 |
+
'bio_size' => '14',
|
584 |
+
'show_comments' => true,
|
585 |
+
'show_likes' => true,
|
586 |
+
'show_header' => false,
|
587 |
+
'show_feed_external_link' => true,
|
588 |
+
'feed_image_filter_amount' => 0.1,
|
589 |
+
'show_dp' => true,
|
590 |
+
'header_round_dp' => true,
|
591 |
+
'header_dp_hover_color' => 'rgba(0,0,0,0.5)',
|
592 |
+
'header_dp_hover_icon_color' => '#fff',
|
593 |
+
'header_border_color' => '#ccc',
|
594 |
+
'header_border_style' => 'none',
|
595 |
+
'header_border_top' => '0',
|
596 |
+
'header_border_bottom' => '1',
|
597 |
+
'header_border_left' => '0',
|
598 |
+
'header_border_right' => '0',
|
599 |
+
'header_padding_top' => '10',
|
600 |
+
'header_padding_bottom' => '10',
|
601 |
+
'header_padding_left' => '10',
|
602 |
+
'header_padding_right' => '10',
|
603 |
+
'feed_image_filter' => 'none',
|
604 |
+
'feed_background_color' => 'transparent',
|
605 |
+
'feed_padding_top_bottom' => 10,
|
606 |
+
'feed_padding_top' => 10,
|
607 |
+
'feed_padding_bottom' => 10,
|
608 |
+
'feed_padding_left' => 0,
|
609 |
+
'feed_padding_right' => 0,
|
610 |
+
'feed_padding_right_left' => 0,
|
611 |
+
'header_align' => 'left',
|
612 |
+
'feed_seprator_color' => '#ccc',
|
613 |
+
'feed_border_size' => '1',
|
614 |
+
'feed_border_style' => 'solid',
|
615 |
+
'feed_margin_top' => 5,
|
616 |
+
'feed_margin_bottom' => 5,
|
617 |
+
'feed_margin_left' => 0,
|
618 |
+
'feed_margin_right' => 0,
|
619 |
+
'show_feed_caption' => true,
|
620 |
+
'feed_external_color' => '#fff',
|
621 |
+
'show_feed_cta' => true,
|
622 |
+
'feed_cta_text_color' => '#000',
|
623 |
+
'feed_cta_text_hover_color' => '#000',
|
624 |
+
'feed_time_text_color' => '#000',
|
625 |
+
'feed_show_likes' => true,
|
626 |
+
'feed_likes_bg_color' => '#333',
|
627 |
+
'feed_likes_color' => '#fff',
|
628 |
+
'feed_comments_bg_color' => '#333',
|
629 |
+
'feed_comments_color' => '#fff',
|
630 |
+
'feed_seprator_color' => '#ccc',
|
631 |
+
'show_feed_open_popup_icon' => true,
|
632 |
+
'caption_color' => '#000',
|
633 |
+
'popup_icon_color' => '#fff',
|
634 |
+
'show_no_of_feeds' => true,
|
635 |
+
'show_no_of_followers' => true,
|
636 |
+
'show_bio' => true,
|
637 |
+
'show_follow_btn' => true,
|
638 |
+
'show_load_more_btn' => true,
|
639 |
+
'load_more_background_color' => '#333',
|
640 |
+
'load_more_color' => '#fff',
|
641 |
+
'load_more_hover_background_color' => '#5c5c5c',
|
642 |
+
'load_more_hover_color' => '#fff',
|
643 |
+
'follow_btn_background_color' => '#517fa4',
|
644 |
+
'follow_btn_color' => '#fff',
|
645 |
+
'follow_btn_hover_background_color' => '#4477a0',
|
646 |
+
'follow_btn_hover_color' => '#fff',
|
647 |
+
'popup_sidebar_bg' => '#fff',
|
648 |
+
'popup_sidebar_color' => '#000',
|
649 |
+
'popup_show_header' => true,
|
650 |
+
'popup_show_header_logo' => true,
|
651 |
+
'popup_header_title_color' => '#ed6d62',
|
652 |
+
'popup_post_time_color' => '#9197a3',
|
653 |
+
'popup_show_caption' => true,
|
654 |
+
'popup_show_meta' => true,
|
655 |
+
'popup_meta_bg_color' => '#f6f7f9',
|
656 |
+
'popup_meta_color' => '#000',
|
657 |
+
'popup_show_reactions_counter' => true,
|
658 |
+
'popup_show_comments_counter' => true,
|
659 |
+
'popup_show_view_fb_link' => true,
|
660 |
+
'popup_show_comments' => true,
|
661 |
+
'popup_comments_bg_color' => '#f2f3f5',
|
662 |
+
'popup_comments_color' => '#4b4f52',
|
663 |
+
'popup_close_icon_bg_color' => 'transparent',
|
664 |
+
'popup_close_icon_color' => '#888',
|
665 |
+
'popup_close_icon_bg_hover_color' => '#eee',
|
666 |
+
'popup_close_icon_hover_color' => '#000',
|
667 |
+
'popup_show_close_icon' => true,
|
668 |
+
);
|
669 |
+
return $default_val_arr;
|
670 |
+
}
|
671 |
+
|
672 |
+
}
|
673 |
+
/* Class ends here. */
|
674 |
/*
|
675 |
* Globalising class to get functionality on other files.
|
676 |
+
*/
|
677 |
+
$GLOBALS['MIF_SKINS'] = new MIF_SKINS();
|
678 |
+
}
|
my-instagram-feed/my-instagram-feed.php
CHANGED
@@ -18,6 +18,8 @@
|
|
18 |
define( 'MIF_PLUGIN_FILE', FTA_PLUGIN_FILE . '/my-instagram-feed/' );
|
19 |
}
|
20 |
|
|
|
|
|
21 |
/*
|
22 |
* Includes mif-skins.php file which have all Instagram feeds skins.
|
23 |
*/
|
18 |
define( 'MIF_PLUGIN_FILE', FTA_PLUGIN_FILE . '/my-instagram-feed/' );
|
19 |
}
|
20 |
|
21 |
+
include MIF_PLUGIN_DIR . 'includes/mif-global-functions.php';
|
22 |
+
|
23 |
/*
|
24 |
* Includes mif-skins.php file which have all Instagram feeds skins.
|
25 |
*/
|