Version Description
- New: The plugin code has been completely refactored to improve performance and maintainability. If you experience any issues with this update then please open a support ticket here so that we can address it right away. Thank you!
- New: Integrations with popular GDPR cookie consent solutions added: Cookie Notice by dFactory, GDPR Cookie Consent by WebToffee, Cookiebot by Cybot A/S, Complianz by Really Simple Plugins, and Borlabs Cookie by Borlabs. See the GDPR setting in the following location for more information: Facebook Feed > Customize > Misc > GDPR.
- Note: The minimum supported PHP version has been increased to PHP version 5.6. If you are using a lower version then a notice will be displayed with a button to revert back to the previous version.
Download this release
Release Info
Developer | smashballoon |
Plugin | Custom Facebook Feed |
Version | 2.18 |
Comparing to | |
See all releases |
Code changes from version 2.17.1 to 2.18
- README.txt +12 -4
- admin/addon-functions.php +5 -3
- admin/admin-functions.php +5396 -0
- {css → admin/assets/css}/admin-notifications.css +0 -0
- {css → admin/assets/css}/cff-admin-style.css +69 -1
- {img → admin/assets/img}/about/api-error.png +0 -0
- {img → admin/assets/img}/about/icon-full.svg +0 -0
- {img → admin/assets/img}/about/icon-none.svg +0 -0
- {img → admin/assets/img}/about/icon-partial.svg +0 -0
- {img → admin/assets/img}/about/plugin-fb.png +0 -0
- {img → admin/assets/img}/about/plugin-if.png +0 -0
- {img → admin/assets/img}/about/plugin-mi.png +0 -0
- {img → admin/assets/img}/about/plugin-om.png +0 -0
- {img → admin/assets/img}/about/plugin-rp.png +0 -0
- {img → admin/assets/img}/about/plugin-seo.png +0 -0
- {img → admin/assets/img}/about/plugin-smtp.png +0 -0
- {img → admin/assets/img}/about/plugin-tw.jpg +0 -0
- {img → admin/assets/img}/about/plugin-wpforms.png +0 -0
- {img → admin/assets/img}/about/plugin-yt.png +0 -0
- {img → admin/assets/img}/about/steps.png +0 -0
- {img → admin/assets/img}/about/team.jpg +0 -0
- {img → admin/assets/img}/balloon-120.png +0 -0
- {img → admin/assets/img}/cff-icon.png +0 -0
- {img → admin/assets/img}/cff-oembed.png +0 -0
- {img → admin/assets/img}/fb-icon.png +0 -0
- {img → admin/assets/img}/group-app.png +0 -0
- {img → admin/assets/img}/layout-full.png +0 -0
- {img → admin/assets/img}/layout-half.png +0 -0
- {img → admin/assets/img}/layout-thumb.png +0 -0
- {img → admin/assets/img}/post-style.png +0 -0
- {img → admin/assets/img}/pro.png +0 -0
- {img → admin/assets/img}/sw-screenshot.png +0 -0
- {js → admin/assets/js}/admin-notifications.js +0 -0
- {js → admin/assets/js}/cff-admin-scripts.js +26 -4
- admin/enqueu-script.php +75 -0
- {css → assets/css}/cff-blocks.css +0 -0
- {css → assets/css}/cff-style.css +24 -1
- assets/css/cff-style.min.css +1 -0
- {css → assets/css}/font-awesome.min.css +0 -0
- {fonts → assets/fonts}/FontAwesome.otf +0 -0
- {fonts → assets/fonts}/fontawesome-webfont.eot +0 -0
- {fonts → assets/fonts}/fontawesome-webfont.svg +0 -0
- {fonts → assets/fonts}/fontawesome-webfont.ttf +0 -0
- {fonts → assets/fonts}/fontawesome-webfont.woff +0 -0
- {fonts → assets/fonts}/fontawesome-webfont.woff2 +0 -0
- {img → assets/img}/cff-avatar.png +0 -0
- assets/img/placeholder.png +0 -0
- {img → assets/img}/smashballoon-tiny.png +0 -0
- {js → assets/js}/cff-blocks.js +0 -0
- {js → assets/js}/cff-scripts.js +157 -3
- {js → assets/js}/cff-scripts.min.js +1 -1
- {js → assets/js}/jquery.matchHeight-min.js +0 -0
- composer.json +8 -0
- css/cff-style.min.css +0 -1
- custom-facebook-feed-admin.php +0 -4919
README.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: smashballoon
|
3 |
Tags: Facebook, Facebook feed, Facebook posts, Facebook group, Facebook page
|
4 |
Requires at least: 3.0
|
5 |
-
Requires PHP: 5.
|
6 |
Tested up to: 5.6
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -12,7 +12,7 @@ Formerly "Custom Facebook Feed". Display completely customizable Facebook feeds
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
Display Facebook posts on your WordPress site. **Completely customizable**, **responsive
|
16 |
|
17 |
*"The perfect Facebook plugin with amazing support! What else do you want? Get it!"* - [JoeJeffries](http://wordpress.org/support/topic/you-dont-already-have-this?facebook)
|
18 |
|
@@ -36,6 +36,9 @@ By default the Facebook feed will adopt the styles of your WordPress theme, but
|
|
36 |
**SEO Friendly**
|
37 |
The Facebook feed content is crawlable by search engines adding SEO value to your site, while other Facebook plugins embed the feed using iframes which are not crawlable.
|
38 |
|
|
|
|
|
|
|
39 |
**Responsive and Mobile Optimized**
|
40 |
Facebook feed layouts look great on any screen size and in any container width.
|
41 |
|
@@ -259,8 +262,13 @@ The most common reason for this is that an add-on or extension you have installe
|
|
259 |
9. It's super easy to display your Facebook feed in any page or post
|
260 |
|
261 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
262 |
= 2.17.1 =
|
263 |
-
* Tweak: Added shortcode options for the "Before Date" and "After Date" settings, so that a custom text string can be displayed before and after the post date.
|
264 |
* Tweak: Minor frontend CSS improvements.
|
265 |
* Tweak: Added support for improved notices on the plugin settings page.
|
266 |
* Fix: Fixed an issue with the Facebook Like Box widget displaying an error if the width was set to a fractional pixel.
|
2 |
Contributors: smashballoon
|
3 |
Tags: Facebook, Facebook feed, Facebook posts, Facebook group, Facebook page
|
4 |
Requires at least: 3.0
|
5 |
+
Requires PHP: 5.6
|
6 |
Tested up to: 5.6
|
7 |
+
Stable tag: 2.18
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
Display Facebook posts on your WordPress site. **Completely customizable**, **responsive**, **search engine crawlable**, and **GDPR compliant** Facebook feeds. Display **unlimited Facebook feeds** from your **Facebook page** or **Facebook Group**, and completely match the look and feel of your site with tons of customization options! Automatically powers any Facebook oEmbeds on your site.
|
16 |
|
17 |
*"The perfect Facebook plugin with amazing support! What else do you want? Get it!"* - [JoeJeffries](http://wordpress.org/support/topic/you-dont-already-have-this?facebook)
|
18 |
|
36 |
**SEO Friendly**
|
37 |
The Facebook feed content is crawlable by search engines adding SEO value to your site, while other Facebook plugins embed the feed using iframes which are not crawlable.
|
38 |
|
39 |
+
**GDPR Compliant**
|
40 |
+
Automatically integrates with many of the popular GDPR cookie consent plugins and includes a 1-click easy GDPR setting.
|
41 |
+
|
42 |
**Responsive and Mobile Optimized**
|
43 |
Facebook feed layouts look great on any screen size and in any container width.
|
44 |
|
262 |
9. It's super easy to display your Facebook feed in any page or post
|
263 |
|
264 |
== Changelog ==
|
265 |
+
= 2.18 =
|
266 |
+
* New: The plugin code has been completely refactored to improve performance and maintainability. If you experience any issues with this update then please open a support ticket [here](https://wordpress.org/support/plugin/custom-facebook-feed/) so that we can address it right away. Thank you!
|
267 |
+
* New: Integrations with popular GDPR cookie consent solutions added: Cookie Notice by dFactory, GDPR Cookie Consent by WebToffee, Cookiebot by Cybot A/S, Complianz by Really Simple Plugins, and Borlabs Cookie by Borlabs. See the GDPR setting in the following location for more information: Facebook Feed > Customize > Misc > GDPR.
|
268 |
+
* Note: The minimum supported PHP version has been increased to PHP version 5.6. If you are using a lower version then a notice will be displayed with a button to revert back to the previous version.
|
269 |
+
|
270 |
= 2.17.1 =
|
271 |
+
* Tweak: Added shortcode options for the "Before Date" and "After Date" settings, so that a custom text string can be displayed before and after the Facebook post date.
|
272 |
* Tweak: Minor frontend CSS improvements.
|
273 |
* Tweak: Added support for improved notices on the plugin settings page.
|
274 |
* Fix: Fixed an issue with the Facebook Like Box widget displaying an error if the width was set to a fractional pixel.
|
admin/addon-functions.php
CHANGED
@@ -122,13 +122,13 @@ function cff_install_addon() {
|
|
122 |
* We do not need any extra credentials if we have gotten this far, so let's install the plugin.
|
123 |
*/
|
124 |
|
125 |
-
require_once CFF_PLUGIN_DIR . 'admin/class-install-skin.php';
|
126 |
|
127 |
// Do not allow WordPress to search/download translations, as this will break JS output.
|
128 |
remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
|
129 |
|
130 |
// Create the plugin upgrader with our custom skin.
|
131 |
-
$installer = new
|
132 |
|
133 |
// Error check.
|
134 |
if ( ! method_exists( $installer, 'install' ) || empty( $_POST['plugin'] ) ) {
|
@@ -173,4 +173,6 @@ function cff_install_addon() {
|
|
173 |
|
174 |
wp_send_json_error( $error );
|
175 |
}
|
176 |
-
|
|
|
|
122 |
* We do not need any extra credentials if we have gotten this far, so let's install the plugin.
|
123 |
*/
|
124 |
|
125 |
+
#require_once CFF_PLUGIN_DIR . 'admin/class-install-skin.php';
|
126 |
|
127 |
// Do not allow WordPress to search/download translations, as this will break JS output.
|
128 |
remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
|
129 |
|
130 |
// Create the plugin upgrader with our custom skin.
|
131 |
+
$installer = new CustomFacebookFeed\Helpers\PluginSilentUpgrader( new CustomFacebookFeed\Admin\CFF_Install_Skin() );
|
132 |
|
133 |
// Error check.
|
134 |
if ( ! method_exists( $installer, 'install' ) || empty( $_POST['plugin'] ) ) {
|
173 |
|
174 |
wp_send_json_error( $error );
|
175 |
}
|
176 |
+
|
177 |
+
|
178 |
+
add_action( 'wp_ajax_cff_install_addon', 'cff_install_addon' );
|
admin/admin-functions.php
ADDED
@@ -0,0 +1,5396 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
use CustomFacebookFeed\CFF_Utils;
|
3 |
+
use CustomFacebookFeed\CFF_Oembed;
|
4 |
+
use CustomFacebookFeed\CFF_GDPR_Integrations;
|
5 |
+
|
6 |
+
//Create Style page
|
7 |
+
function cff_style_page() {
|
8 |
+
//Declare variables for fields
|
9 |
+
$style_hidden_field_name = 'cff_style_submit_hidden';
|
10 |
+
$style_general_hidden_field_name = 'cff_style_general_submit_hidden';
|
11 |
+
$style_post_layout_hidden_field_name = 'cff_style_post_layout_submit_hidden';
|
12 |
+
$style_typography_hidden_field_name = 'cff_style_typography_submit_hidden';
|
13 |
+
$style_misc_hidden_field_name = 'cff_style_misc_submit_hidden';
|
14 |
+
$style_custom_text_hidden_field_name = 'cff_style_custom_text_submit_hidden';
|
15 |
+
|
16 |
+
//Defaults need to be here on the Settings page so that they're saved when the initial settings are saved
|
17 |
+
$defaults = array(
|
18 |
+
//Post types
|
19 |
+
'cff_show_links_type' => true,
|
20 |
+
'cff_show_event_type' => true,
|
21 |
+
'cff_show_video_type' => true,
|
22 |
+
'cff_show_photos_type' => true,
|
23 |
+
'cff_show_status_type' => true,
|
24 |
+
//Layout
|
25 |
+
'cff_preset_layout' => 'thumb',
|
26 |
+
//Include
|
27 |
+
'cff_show_text' => true,
|
28 |
+
'cff_show_desc' => true,
|
29 |
+
'cff_show_shared_links' => true,
|
30 |
+
'cff_show_date' => true,
|
31 |
+
'cff_show_media' => true,
|
32 |
+
'cff_show_media_link' => true,
|
33 |
+
'cff_show_event_title' => true,
|
34 |
+
'cff_show_event_details' => true,
|
35 |
+
'cff_show_meta' => true,
|
36 |
+
'cff_show_link' => true,
|
37 |
+
'cff_show_like_box' => true,
|
38 |
+
//Post Style
|
39 |
+
'cff_post_style' => '',
|
40 |
+
'cff_post_bg_color' => '',
|
41 |
+
'cff_post_rounded' => '0',
|
42 |
+
'cff_box_shadow' => false,
|
43 |
+
//Typography
|
44 |
+
'cff_title_format' => 'p',
|
45 |
+
'cff_title_size' => 'inherit',
|
46 |
+
'cff_title_weight' => 'inherit',
|
47 |
+
'cff_title_color' => '',
|
48 |
+
'cff_posttext_link_color' => '',
|
49 |
+
'cff_body_size' => '12',
|
50 |
+
'cff_body_weight' => 'inherit',
|
51 |
+
'cff_body_color' => '',
|
52 |
+
'cff_link_title_format' => 'p',
|
53 |
+
'cff_link_title_size' => 'inherit',
|
54 |
+
'cff_link_url_size' => '12',
|
55 |
+
'cff_link_desc_size' => 'inherit',
|
56 |
+
'cff_link_desc_color' => '',
|
57 |
+
'cff_link_title_color' => '',
|
58 |
+
'cff_link_url_color' => '',
|
59 |
+
'cff_link_bg_color' => '',
|
60 |
+
'cff_link_border_color' => '',
|
61 |
+
'cff_disable_link_box' => '',
|
62 |
+
//Event title
|
63 |
+
'cff_event_title_format' => 'p',
|
64 |
+
'cff_event_title_size' => 'inherit',
|
65 |
+
'cff_event_title_weight' => 'inherit',
|
66 |
+
'cff_event_title_color' => '',
|
67 |
+
//Event date
|
68 |
+
'cff_event_date_size' => 'inherit',
|
69 |
+
'cff_event_date_weight' => 'inherit',
|
70 |
+
'cff_event_date_color' => '',
|
71 |
+
'cff_event_date_position' => 'below',
|
72 |
+
'cff_event_date_formatting' => '1',
|
73 |
+
'cff_event_date_custom' => '',
|
74 |
+
//Event details
|
75 |
+
'cff_event_details_size' => 'inherit',
|
76 |
+
'cff_event_details_weight' => 'inherit',
|
77 |
+
'cff_event_details_color' => '',
|
78 |
+
'cff_event_link_color' => '',
|
79 |
+
//Date
|
80 |
+
'cff_date_position' => 'author',
|
81 |
+
'cff_date_size' => 'inherit',
|
82 |
+
'cff_date_weight' => 'inherit',
|
83 |
+
'cff_date_color' => '',
|
84 |
+
'cff_date_formatting' => '1',
|
85 |
+
'cff_date_custom' => '',
|
86 |
+
'cff_date_before' => '',
|
87 |
+
'cff_date_after' => '',
|
88 |
+
'cff_timezone' => 'America/Chicago',
|
89 |
+
|
90 |
+
//Link to Facebook
|
91 |
+
'cff_link_size' => 'inherit',
|
92 |
+
'cff_link_weight' => 'inherit',
|
93 |
+
'cff_link_color' => '',
|
94 |
+
'cff_facebook_link_text' => 'View on Facebook',
|
95 |
+
'cff_view_link_text' => 'View Link',
|
96 |
+
'cff_link_to_timeline' => false,
|
97 |
+
//Meta
|
98 |
+
'cff_icon_style' => 'light',
|
99 |
+
'cff_meta_text_color' => '',
|
100 |
+
'cff_meta_bg_color' => '',
|
101 |
+
'cff_nocomments_text' => 'No comments yet',
|
102 |
+
'cff_hide_comments' => '',
|
103 |
+
//Misc
|
104 |
+
'cff_feed_width' => '100%',
|
105 |
+
'cff_feed_width_resp' => false,
|
106 |
+
'cff_feed_height' => '',
|
107 |
+
'cff_feed_padding' => '',
|
108 |
+
'cff_like_box_position' => 'bottom',
|
109 |
+
'cff_like_box_outside' => false,
|
110 |
+
'cff_likebox_width' => '',
|
111 |
+
'cff_likebox_height' => '',
|
112 |
+
'cff_like_box_faces' => false,
|
113 |
+
'cff_like_box_border' => false,
|
114 |
+
'cff_like_box_cover' => true,
|
115 |
+
'cff_like_box_small_header' => false,
|
116 |
+
'cff_like_box_hide_cta' => false,
|
117 |
+
|
118 |
+
'cff_bg_color' => '',
|
119 |
+
'cff_likebox_bg_color' => '',
|
120 |
+
'cff_like_box_text_color' => 'blue',
|
121 |
+
'cff_video_height' => '',
|
122 |
+
'cff_show_author' => true,
|
123 |
+
'cff_class' => '',
|
124 |
+
'cff_open_links' => true,
|
125 |
+
'cff_cron' => 'unset',
|
126 |
+
'cff_request_method' => 'auto',
|
127 |
+
'cff_disable_styles' => false,
|
128 |
+
'cff_format_issue' => false,
|
129 |
+
'cff_restricted_page' => false,
|
130 |
+
'cff_cols' => 1,
|
131 |
+
'cff_cols_mobile' => 1,
|
132 |
+
|
133 |
+
//New
|
134 |
+
'gdpr' => 'auto',
|
135 |
+
'cff_custom_css' => '',
|
136 |
+
'cff_custom_js' => '',
|
137 |
+
'cff_title_link' => false,
|
138 |
+
'cff_post_tags' => true,
|
139 |
+
'cff_link_hashtags' => true,
|
140 |
+
'cff_event_title_link' => true,
|
141 |
+
'cff_video_action' => 'post',
|
142 |
+
'cff_app_id' => '',
|
143 |
+
'cff_show_credit' => '',
|
144 |
+
'cff_font_source' => '',
|
145 |
+
'cff_minify' => false,
|
146 |
+
'disable_admin_notice' => false,
|
147 |
+
'cff_sep_color' => '',
|
148 |
+
'cff_sep_size' => '1',
|
149 |
+
|
150 |
+
//Feed Header
|
151 |
+
'cff_show_header' => '',
|
152 |
+
'cff_header_type' => '',
|
153 |
+
'cff_header_cover' => true,
|
154 |
+
'cff_header_name' => true,
|
155 |
+
'cff_header_bio' => true,
|
156 |
+
'cff_header_outside' => false,
|
157 |
+
'cff_header_cover_height' => '300',
|
158 |
+
'cff_header_text' => 'Facebook Posts',
|
159 |
+
'cff_header_bg_color' => '',
|
160 |
+
'cff_header_padding' => '',
|
161 |
+
'cff_header_text_size' => '',
|
162 |
+
'cff_header_text_weight' => '',
|
163 |
+
'cff_header_text_color' => '',
|
164 |
+
'cff_header_icon' => '',
|
165 |
+
'cff_header_icon_color' => '',
|
166 |
+
'cff_header_icon_size' => '28',
|
167 |
+
|
168 |
+
//Author
|
169 |
+
'cff_author_size' => 'inherit',
|
170 |
+
'cff_author_color' => '',
|
171 |
+
|
172 |
+
//Translate - general
|
173 |
+
'cff_see_more_text' => 'See More',
|
174 |
+
'cff_see_less_text' => 'See Less',
|
175 |
+
'cff_facebook_link_text' => 'View on Facebook',
|
176 |
+
'cff_facebook_share_text' => 'Share',
|
177 |
+
'cff_show_facebook_link' => true,
|
178 |
+
'cff_show_facebook_share' => true,
|
179 |
+
|
180 |
+
'cff_translate_photos_text' => 'photos',
|
181 |
+
'cff_translate_photo_text' => 'Photo',
|
182 |
+
'cff_translate_video_text' => 'Video',
|
183 |
+
|
184 |
+
'cff_translate_learn_more_text' => 'Learn More',
|
185 |
+
'cff_translate_shop_now_text' => 'Shop Now',
|
186 |
+
'cff_translate_message_page_text' => 'Message Page',
|
187 |
+
|
188 |
+
//Translate - date
|
189 |
+
'cff_translate_second' => 'second',
|
190 |
+
'cff_translate_seconds' => 'seconds',
|
191 |
+
'cff_translate_minute' => 'minute',
|
192 |
+
'cff_translate_minutes' => 'minutes',
|
193 |
+
'cff_translate_hour' => 'hour',
|
194 |
+
'cff_translate_hours' => 'hours',
|
195 |
+
'cff_translate_day' => 'day',
|
196 |
+
'cff_translate_days' => 'days',
|
197 |
+
'cff_translate_week' => 'week',
|
198 |
+
'cff_translate_weeks' => 'weeks',
|
199 |
+
'cff_translate_month' => 'month',
|
200 |
+
'cff_translate_months' => 'months',
|
201 |
+
'cff_translate_year' => 'year',
|
202 |
+
'cff_translate_years' => 'years',
|
203 |
+
'cff_translate_ago' => 'ago',
|
204 |
+
|
205 |
+
// email
|
206 |
+
'enable_email_report' => 'on',
|
207 |
+
'email_notification' => 'monday',
|
208 |
+
'email_notification_addresses' => get_option( 'admin_email' )
|
209 |
+
);
|
210 |
+
//Save layout option in an array
|
211 |
+
$options = wp_parse_args(get_option('cff_style_settings'), $defaults);
|
212 |
+
add_option( 'cff_style_settings', $options );
|
213 |
+
|
214 |
+
//Set the page variables
|
215 |
+
//Post types
|
216 |
+
$cff_show_links_type = $options[ 'cff_show_links_type' ];
|
217 |
+
$cff_show_event_type = $options[ 'cff_show_event_type' ];
|
218 |
+
$cff_show_video_type = $options[ 'cff_show_video_type' ];
|
219 |
+
$cff_show_photos_type = $options[ 'cff_show_photos_type' ];
|
220 |
+
$cff_show_status_type = $options[ 'cff_show_status_type' ];
|
221 |
+
//Layout
|
222 |
+
$cff_preset_layout = $options[ 'cff_preset_layout' ];
|
223 |
+
//Include
|
224 |
+
$cff_show_text = $options[ 'cff_show_text' ];
|
225 |
+
$cff_show_desc = $options[ 'cff_show_desc' ];
|
226 |
+
$cff_show_shared_links = $options[ 'cff_show_shared_links' ];
|
227 |
+
$cff_show_date = $options[ 'cff_show_date' ];
|
228 |
+
$cff_show_media = $options[ 'cff_show_media' ];
|
229 |
+
$cff_show_media_link = $options[ 'cff_show_media_link' ];
|
230 |
+
$cff_show_event_title = $options[ 'cff_show_event_title' ];
|
231 |
+
$cff_show_event_details = $options[ 'cff_show_event_details' ];
|
232 |
+
$cff_show_meta = $options[ 'cff_show_meta' ];
|
233 |
+
$cff_show_link = $options[ 'cff_show_link' ];
|
234 |
+
$cff_show_like_box = $options[ 'cff_show_like_box' ];
|
235 |
+
//Post Style
|
236 |
+
$cff_post_style = $options[ 'cff_post_style' ];
|
237 |
+
$cff_post_bg_color = $options[ 'cff_post_bg_color' ];
|
238 |
+
$cff_post_rounded = $options[ 'cff_post_rounded' ];
|
239 |
+
$cff_box_shadow = $options[ 'cff_box_shadow' ];
|
240 |
+
|
241 |
+
//Typography
|
242 |
+
$cff_see_more_text = $options[ 'cff_see_more_text' ];
|
243 |
+
$cff_see_less_text = $options[ 'cff_see_less_text' ];
|
244 |
+
$cff_title_format = $options[ 'cff_title_format' ];
|
245 |
+
$cff_title_size = $options[ 'cff_title_size' ];
|
246 |
+
$cff_title_weight = $options[ 'cff_title_weight' ];
|
247 |
+
$cff_title_color = $options[ 'cff_title_color' ];
|
248 |
+
$cff_posttext_link_color = $options[ 'cff_posttext_link_color' ];
|
249 |
+
$cff_body_size = $options[ 'cff_body_size' ];
|
250 |
+
$cff_body_weight = $options[ 'cff_body_weight' ];
|
251 |
+
$cff_body_color = $options[ 'cff_body_color' ];
|
252 |
+
$cff_link_title_format = $options[ 'cff_link_title_format' ];
|
253 |
+
$cff_link_title_size = $options[ 'cff_link_title_size' ];
|
254 |
+
$cff_link_url_size = $options[ 'cff_link_url_size' ];
|
255 |
+
$cff_link_desc_size = $options[ 'cff_link_desc_size' ];
|
256 |
+
$cff_link_desc_color = $options[ 'cff_link_desc_color' ];
|
257 |
+
$cff_link_title_color = $options[ 'cff_link_title_color' ];
|
258 |
+
$cff_link_url_color = $options[ 'cff_link_url_color' ];
|
259 |
+
$cff_link_bg_color = $options[ 'cff_link_bg_color' ];
|
260 |
+
$cff_link_border_color = $options[ 'cff_link_border_color' ];
|
261 |
+
$cff_disable_link_box = $options[ 'cff_disable_link_box' ];
|
262 |
+
|
263 |
+
//Event title
|
264 |
+
$cff_event_title_format = $options[ 'cff_event_title_format' ];
|
265 |
+
$cff_event_title_size = $options[ 'cff_event_title_size' ];
|
266 |
+
$cff_event_title_weight = $options[ 'cff_event_title_weight' ];
|
267 |
+
$cff_event_title_color = $options[ 'cff_event_title_color' ];
|
268 |
+
//Event date
|
269 |
+
$cff_event_date_size = $options[ 'cff_event_date_size' ];
|
270 |
+
$cff_event_date_weight = $options[ 'cff_event_date_weight' ];
|
271 |
+
$cff_event_date_color = $options[ 'cff_event_date_color' ];
|
272 |
+
$cff_event_date_position = $options[ 'cff_event_date_position' ];
|
273 |
+
$cff_event_date_formatting = $options[ 'cff_event_date_formatting' ];
|
274 |
+
$cff_event_date_custom = $options[ 'cff_event_date_custom' ];
|
275 |
+
//Event details
|
276 |
+
$cff_event_details_size = $options[ 'cff_event_details_size' ];
|
277 |
+
$cff_event_details_weight = $options[ 'cff_event_details_weight' ];
|
278 |
+
$cff_event_details_color = $options[ 'cff_event_details_color' ];
|
279 |
+
$cff_event_link_color = $options[ 'cff_event_link_color' ];
|
280 |
+
//Date
|
281 |
+
$cff_date_position = $options[ 'cff_date_position' ];
|
282 |
+
$cff_date_size = $options[ 'cff_date_size' ];
|
283 |
+
$cff_date_weight = $options[ 'cff_date_weight' ];
|
284 |
+
$cff_date_color = $options[ 'cff_date_color' ];
|
285 |
+
$cff_date_formatting = $options[ 'cff_date_formatting' ];
|
286 |
+
$cff_date_custom = $options[ 'cff_date_custom' ];
|
287 |
+
$cff_date_before = $options[ 'cff_date_before' ];
|
288 |
+
$cff_date_after = $options[ 'cff_date_after' ];
|
289 |
+
$cff_timezone = $options[ 'cff_timezone' ];
|
290 |
+
|
291 |
+
//Date translate
|
292 |
+
$cff_translate_second = $options[ 'cff_translate_second' ];
|
293 |
+
$cff_translate_seconds = $options[ 'cff_translate_seconds' ];
|
294 |
+
$cff_translate_minute = $options[ 'cff_translate_minute' ];
|
295 |
+
$cff_translate_minutes = $options[ 'cff_translate_minutes' ];
|
296 |
+
$cff_translate_hour = $options[ 'cff_translate_hour' ];
|
297 |
+
$cff_translate_hours = $options[ 'cff_translate_hours' ];
|
298 |
+
$cff_translate_day = $options[ 'cff_translate_day' ];
|
299 |
+
$cff_translate_days = $options[ 'cff_translate_days' ];
|
300 |
+
$cff_translate_week = $options[ 'cff_translate_week' ];
|
301 |
+
$cff_translate_weeks = $options[ 'cff_translate_weeks' ];
|
302 |
+
$cff_translate_month = $options[ 'cff_translate_month' ];
|
303 |
+
$cff_translate_months = $options[ 'cff_translate_months' ];
|
304 |
+
$cff_translate_year = $options[ 'cff_translate_year' ];
|
305 |
+
$cff_translate_years = $options[ 'cff_translate_years' ];
|
306 |
+
$cff_translate_ago = $options[ 'cff_translate_ago' ];
|
307 |
+
//Photos translate
|
308 |
+
$cff_translate_photos_text = $options[ 'cff_translate_photos_text' ];
|
309 |
+
$cff_translate_photo_text = $options[ 'cff_translate_photo_text' ];
|
310 |
+
$cff_translate_video_text = $options[ 'cff_translate_video_text' ];
|
311 |
+
|
312 |
+
$cff_translate_learn_more_text = $options[ 'cff_translate_learn_more_text' ];
|
313 |
+
$cff_translate_shop_now_text = $options[ 'cff_translate_shop_now_text' ];
|
314 |
+
$cff_translate_message_page_text = $options[ 'cff_translate_message_page_text' ];
|
315 |
+
|
316 |
+
//View on Facebook link
|
317 |
+
$cff_link_size = $options[ 'cff_link_size' ];
|
318 |
+
$cff_link_weight = $options[ 'cff_link_weight' ];
|
319 |
+
$cff_link_color = $options[ 'cff_link_color' ];
|
320 |
+
$cff_facebook_link_text = $options[ 'cff_facebook_link_text' ];
|
321 |
+
$cff_view_link_text = $options[ 'cff_view_link_text' ];
|
322 |
+
$cff_link_to_timeline = $options[ 'cff_link_to_timeline' ];
|
323 |
+
$cff_facebook_share_text = $options[ 'cff_facebook_share_text' ];
|
324 |
+
$cff_show_facebook_link = $options[ 'cff_show_facebook_link' ];
|
325 |
+
$cff_show_facebook_share = $options[ 'cff_show_facebook_share' ];
|
326 |
+
//Meta
|
327 |
+
$cff_icon_style = $options[ 'cff_icon_style' ];
|
328 |
+
$cff_meta_text_color = $options[ 'cff_meta_text_color' ];
|
329 |
+
$cff_meta_bg_color = $options[ 'cff_meta_bg_color' ];
|
330 |
+
$cff_nocomments_text = $options[ 'cff_nocomments_text' ];
|
331 |
+
$cff_hide_comments = $options[ 'cff_hide_comments' ];
|
332 |
+
//Misc
|
333 |
+
$cff_feed_width = $options[ 'cff_feed_width' ];
|
334 |
+
$cff_feed_width_resp = $options[ 'cff_feed_width_resp' ];
|
335 |
+
$cff_feed_height = $options[ 'cff_feed_height' ];
|
336 |
+
$cff_feed_padding = $options[ 'cff_feed_padding' ];
|
337 |
+
$cff_like_box_position = $options[ 'cff_like_box_position' ];
|
338 |
+
$cff_like_box_outside = $options[ 'cff_like_box_outside' ];
|
339 |
+
$cff_likebox_width = $options[ 'cff_likebox_width' ];
|
340 |
+
$cff_likebox_height = $options[ 'cff_likebox_height' ];
|
341 |
+
$cff_like_box_faces = $options[ 'cff_like_box_faces' ];
|
342 |
+
$cff_like_box_border = $options[ 'cff_like_box_border' ];
|
343 |
+
$cff_like_box_cover = $options[ 'cff_like_box_cover' ];
|
344 |
+
$cff_like_box_small_header = $options[ 'cff_like_box_small_header' ];
|
345 |
+
$cff_like_box_hide_cta = $options[ 'cff_like_box_hide_cta' ];
|
346 |
+
|
347 |
+
|
348 |
+
$cff_show_media = $options[ 'cff_show_media' ];
|
349 |
+
$cff_bg_color = $options[ 'cff_bg_color' ];
|
350 |
+
$cff_likebox_bg_color = $options[ 'cff_likebox_bg_color' ];
|
351 |
+
$cff_like_box_text_color = $options[ 'cff_like_box_text_color' ];
|
352 |
+
$cff_video_height = $options[ 'cff_video_height' ];
|
353 |
+
$cff_show_author = $options[ 'cff_show_author' ];
|
354 |
+
$cff_class = $options[ 'cff_class' ];
|
355 |
+
$cff_open_links = $options[ 'cff_open_links' ];
|
356 |
+
$cff_app_id = $options[ 'cff_app_id' ];
|
357 |
+
$cff_show_credit = $options[ 'cff_show_credit' ];
|
358 |
+
$cff_font_source = $options[ 'cff_font_source' ];
|
359 |
+
$cff_preserve_settings = 'cff_preserve_settings';
|
360 |
+
$cff_preserve_settings_val = get_option( $cff_preserve_settings );
|
361 |
+
$cff_cron = $options[ 'cff_cron' ];
|
362 |
+
$cff_request_method = $options[ 'cff_request_method' ];
|
363 |
+
$cff_disable_styles = $options[ 'cff_disable_styles' ];
|
364 |
+
$cff_format_issue = $options[ 'cff_format_issue' ];
|
365 |
+
$cff_restricted_page = $options[ 'cff_restricted_page' ];
|
366 |
+
$cff_minify = $options[ 'cff_minify' ];
|
367 |
+
$cff_cols = $options[ 'cff_cols' ];
|
368 |
+
$cff_cols_mobile = $options[ 'cff_cols_mobile' ];
|
369 |
+
$cff_disable_admin_notice = $options[ 'disable_admin_notice' ];
|
370 |
+
$cff_enable_email_report = $options[ 'enable_email_report' ];
|
371 |
+
$cff_email_notification = $options[ 'email_notification' ];
|
372 |
+
$cff_email_notification_addresses = $options[ 'email_notification_addresses' ];
|
373 |
+
|
374 |
+
//Page Header
|
375 |
+
$cff_show_header = $options[ 'cff_show_header' ];
|
376 |
+
$cff_header_type = $options[ 'cff_header_type' ];
|
377 |
+
$cff_header_cover = $options[ 'cff_header_cover' ];
|
378 |
+
$cff_header_name = $options[ 'cff_header_name' ];
|
379 |
+
$cff_header_bio = $options[ 'cff_header_bio' ];
|
380 |
+
$cff_header_cover_height = $options[ 'cff_header_cover_height' ];
|
381 |
+
$cff_header_outside = $options[ 'cff_header_outside' ];
|
382 |
+
$cff_header_text = $options[ 'cff_header_text' ];
|
383 |
+
$cff_header_bg_color = $options[ 'cff_header_bg_color' ];
|
384 |
+
$cff_header_padding = $options[ 'cff_header_padding' ];
|
385 |
+
$cff_header_text_size = $options[ 'cff_header_text_size' ];
|
386 |
+
$cff_header_text_weight = $options[ 'cff_header_text_weight' ];
|
387 |
+
$cff_header_text_color = $options[ 'cff_header_text_color' ];
|
388 |
+
$cff_header_icon = $options[ 'cff_header_icon' ];
|
389 |
+
$cff_header_icon_color = $options[ 'cff_header_icon_color' ];
|
390 |
+
$cff_header_icon_size = $options[ 'cff_header_icon_size' ];
|
391 |
+
|
392 |
+
//Author
|
393 |
+
$cff_author_size = $options[ 'cff_author_size' ];
|
394 |
+
$cff_author_color = $options[ 'cff_author_color' ];
|
395 |
+
|
396 |
+
$gdpr = $options[ 'gdpr' ];
|
397 |
+
//New
|
398 |
+
$cff_custom_css = $options[ 'cff_custom_css' ];
|
399 |
+
$cff_custom_js = $options[ 'cff_custom_js' ];
|
400 |
+
$cff_title_link = $options[ 'cff_title_link' ];
|
401 |
+
$cff_post_tags = $options[ 'cff_post_tags' ];
|
402 |
+
$cff_link_hashtags = $options[ 'cff_link_hashtags' ];
|
403 |
+
$cff_event_title_link = $options[ 'cff_event_title_link' ];
|
404 |
+
$cff_video_action = $options[ 'cff_video_action' ];
|
405 |
+
$cff_sep_color = $options[ 'cff_sep_color' ];
|
406 |
+
$cff_sep_size = $options[ 'cff_sep_size' ];
|
407 |
+
|
408 |
+
// Texts lengths
|
409 |
+
$cff_title_length = 'cff_title_length';
|
410 |
+
$cff_body_length = 'cff_body_length';
|
411 |
+
// Read in existing option value from database
|
412 |
+
$cff_title_length_val = get_option( $cff_title_length, '400' );
|
413 |
+
$cff_body_length_val = get_option( $cff_body_length, '200' );
|
414 |
+
|
415 |
+
//Ajax
|
416 |
+
$cff_ajax = 'cff_ajax';
|
417 |
+
$cff_ajax_val = get_option( $cff_ajax );
|
418 |
+
|
419 |
+
|
420 |
+
//Check nonce before saving data
|
421 |
+
if ( ! isset( $_POST['cff_customize_nonce'] ) || ! wp_verify_nonce( $_POST['cff_customize_nonce'], 'cff_saving_customize' ) ) {
|
422 |
+
//Nonce did not verify
|
423 |
+
} else {
|
424 |
+
// See if the user has posted us some information. If they did, this hidden field will be set to 'Y'.
|
425 |
+
if( isset($_POST[ $style_hidden_field_name ]) && $_POST[ $style_hidden_field_name ] == 'Y' ) {
|
426 |
+
//Update the General options
|
427 |
+
if( isset($_POST[ $style_general_hidden_field_name ]) && $_POST[ $style_general_hidden_field_name ] == 'Y' ) {
|
428 |
+
//General
|
429 |
+
if (isset($_POST[ 'cff_feed_width' ]) ) $cff_feed_width = sanitize_text_field( $_POST[ 'cff_feed_width' ] );
|
430 |
+
(isset($_POST[ 'cff_feed_width_resp' ]) ) ? $cff_feed_width_resp = sanitize_text_field( $_POST[ 'cff_feed_width_resp' ] ) : $cff_feed_width_resp = '';
|
431 |
+
if (isset($_POST[ 'cff_feed_height' ]) ) $cff_feed_height = sanitize_text_field( $_POST[ 'cff_feed_height' ] );
|
432 |
+
if (isset($_POST[ 'cff_feed_padding' ]) ) $cff_feed_padding = sanitize_text_field( $_POST[ 'cff_feed_padding' ] );
|
433 |
+
if (isset($_POST[ 'cff_bg_color' ]) ) $cff_bg_color = sanitize_text_field( $_POST[ 'cff_bg_color' ] );
|
434 |
+
if (isset($_POST[ 'cff_class' ]) ) $cff_class = sanitize_text_field( $_POST[ 'cff_class' ] );
|
435 |
+
if (isset($_POST[ 'cff_cols' ])) $cff_cols = sanitize_text_field( $_POST[ 'cff_cols' ] );
|
436 |
+
if (isset($_POST[ 'cff_cols_mobile' ])) $cff_cols_mobile = sanitize_text_field( $_POST[ 'cff_cols_mobile' ] );
|
437 |
+
|
438 |
+
//Page Header
|
439 |
+
(isset($_POST[ 'cff_show_header' ])) ? $cff_show_header = sanitize_text_field( $_POST[ 'cff_show_header' ] ) : $cff_show_header = '';
|
440 |
+
(isset($_POST[ 'cff_header_type' ])) ? $cff_header_type = $_POST[ 'cff_header_type' ] : $cff_header_type = '';
|
441 |
+
(isset($_POST[ 'cff_header_cover' ])) ? $cff_header_cover = $_POST[ 'cff_header_cover' ] : $cff_header_cover = '';
|
442 |
+
(isset($_POST[ 'cff_header_name' ])) ? $cff_header_name = $_POST[ 'cff_header_name' ] : $cff_header_name = '';
|
443 |
+
(isset($_POST[ 'cff_header_bio' ])) ? $cff_header_bio = $_POST[ 'cff_header_bio' ] : $cff_header_bio = '';
|
444 |
+
(isset($_POST[ 'cff_header_cover_height' ])) ? $cff_header_cover_height = $_POST[ 'cff_header_cover_height' ] : $cff_header_cover_height = '';
|
445 |
+
(isset($_POST[ 'cff_header_outside' ])) ? $cff_header_outside = sanitize_text_field( $_POST[ 'cff_header_outside' ] ) : $cff_header_outside = '';
|
446 |
+
if (isset($_POST[ 'cff_header_text' ])) $cff_header_text = sanitize_text_field( $_POST[ 'cff_header_text' ] );
|
447 |
+
if (isset($_POST[ 'cff_header_bg_color' ])) $cff_header_bg_color = sanitize_text_field( $_POST[ 'cff_header_bg_color' ] );
|
448 |
+
if (isset($_POST[ 'cff_header_padding' ])) $cff_header_padding = sanitize_text_field( $_POST[ 'cff_header_padding' ] );
|
449 |
+
if (isset($_POST[ 'cff_header_text_size' ])) $cff_header_text_size = sanitize_text_field( $_POST[ 'cff_header_text_size' ] );
|
450 |
+
if (isset($_POST[ 'cff_header_text_weight' ])) $cff_header_text_weight = sanitize_text_field( $_POST[ 'cff_header_text_weight' ] );
|
451 |
+
if (isset($_POST[ 'cff_header_text_color' ])) $cff_header_text_color = sanitize_text_field( $_POST[ 'cff_header_text_color' ] );
|
452 |
+
if (isset($_POST[ 'cff_header_icon' ])) $cff_header_icon = sanitize_text_field( $_POST[ 'cff_header_icon' ] );
|
453 |
+
if (isset($_POST[ 'cff_header_icon_color' ])) $cff_header_icon_color = sanitize_text_field( $_POST[ 'cff_header_icon_color' ] );
|
454 |
+
if (isset($_POST[ 'cff_header_icon_size' ])) $cff_header_icon_size = sanitize_text_field( $_POST[ 'cff_header_icon_size' ] );
|
455 |
+
|
456 |
+
//Like Box
|
457 |
+
(isset($_POST[ 'cff_show_like_box' ])) ? $cff_show_like_box = sanitize_text_field( $_POST[ 'cff_show_like_box' ] ) : $cff_show_like_box = '';
|
458 |
+
if (isset($_POST[ 'cff_like_box_position' ])) $cff_like_box_position = sanitize_text_field( $_POST[ 'cff_like_box_position' ] );
|
459 |
+
(isset($_POST[ 'cff_like_box_outside' ])) ? $cff_like_box_outside = sanitize_text_field( $_POST[ 'cff_like_box_outside' ] ) : $cff_like_box_outside = '';
|
460 |
+
if (isset($_POST[ 'cff_likebox_bg_color' ])) $cff_likebox_bg_color = sanitize_text_field( $_POST[ 'cff_likebox_bg_color' ] );
|
461 |
+
if (isset($_POST[ 'cff_like_box_text_color' ])) $cff_like_box_text_color = sanitize_text_field( $_POST[ 'cff_like_box_text_color' ] );
|
462 |
+
if (isset($_POST[ 'cff_likebox_width' ])) $cff_likebox_width = sanitize_text_field( $_POST[ 'cff_likebox_width' ] );
|
463 |
+
if (isset($_POST[ 'cff_likebox_height' ])) $cff_likebox_height = sanitize_text_field( $_POST[ 'cff_likebox_height' ] );
|
464 |
+
(isset($_POST[ 'cff_like_box_faces' ])) ? $cff_like_box_faces = sanitize_text_field( $_POST[ 'cff_like_box_faces' ] ) : $cff_like_box_faces = '';
|
465 |
+
(isset($_POST[ 'cff_like_box_border' ])) ? $cff_like_box_border = sanitize_text_field( $_POST[ 'cff_like_box_border' ] ) : $cff_like_box_border = '';
|
466 |
+
(isset($_POST[ 'cff_like_box_cover' ])) ? $cff_like_box_cover = sanitize_text_field( $_POST[ 'cff_like_box_cover' ] ) : $cff_like_box_cover = '';
|
467 |
+
(isset($_POST[ 'cff_like_box_small_header' ])) ? $cff_like_box_small_header = sanitize_text_field( $_POST[ 'cff_like_box_small_header' ] ) : $cff_like_box_small_header = '';
|
468 |
+
(isset($_POST[ 'cff_like_box_hide_cta' ])) ? $cff_like_box_hide_cta = sanitize_text_field( $_POST[ 'cff_like_box_hide_cta' ] ) : $cff_like_box_hide_cta = '';
|
469 |
+
|
470 |
+
//Post types
|
471 |
+
if (isset($_POST[ 'cff_show_links_type' ]) ) $cff_show_links_type = sanitize_text_field( $_POST[ 'cff_show_links_type' ] );
|
472 |
+
if (isset($_POST[ 'cff_show_event_type' ]) ) $cff_show_event_type = sanitize_text_field( $_POST[ 'cff_show_event_type' ] );
|
473 |
+
if (isset($_POST[ 'cff_show_video_type' ]) ) $cff_show_video_type = sanitize_text_field( $_POST[ 'cff_show_video_type' ] );
|
474 |
+
if (isset($_POST[ 'cff_show_photos_type' ]) ) $cff_show_photos_type = sanitize_text_field( $_POST[ 'cff_show_photos_type' ] );
|
475 |
+
if (isset($_POST[ 'cff_show_status_type' ]) ) $cff_show_status_type = sanitize_text_field( $_POST[ 'cff_show_status_type' ] );
|
476 |
+
//General
|
477 |
+
$options[ 'cff_feed_width' ] = $cff_feed_width;
|
478 |
+
$options[ 'cff_feed_width_resp' ] = $cff_feed_width_resp;
|
479 |
+
$options[ 'cff_feed_height' ] = $cff_feed_height;
|
480 |
+
$options[ 'cff_feed_padding' ] = $cff_feed_padding;
|
481 |
+
$options[ 'cff_bg_color' ] = $cff_bg_color;
|
482 |
+
$options[ 'cff_class' ] = $cff_class;
|
483 |
+
$options[ 'cff_cols' ] = $cff_cols;
|
484 |
+
$options[ 'cff_cols_mobile' ] = $cff_cols_mobile;
|
485 |
+
|
486 |
+
//Page Header
|
487 |
+
$options[ 'cff_show_header' ] = $cff_show_header;
|
488 |
+
$options[ 'cff_header_type' ] = $cff_header_type;
|
489 |
+
$options[ 'cff_header_cover' ] = $cff_header_cover;
|
490 |
+
$options[ 'cff_header_name' ] = $cff_header_name;
|
491 |
+
$options[ 'cff_header_bio' ] = $cff_header_bio;
|
492 |
+
$options[ 'cff_header_cover_height' ] = $cff_header_cover_height;
|
493 |
+
$options[ 'cff_header_outside' ] = $cff_header_outside;
|
494 |
+
$options[ 'cff_header_text' ] = $cff_header_text;
|
495 |
+
$options[ 'cff_header_bg_color' ] = $cff_header_bg_color;
|
496 |
+
$options[ 'cff_header_padding' ] = $cff_header_padding;
|
497 |
+
$options[ 'cff_header_text_size' ] = $cff_header_text_size;
|
498 |
+
$options[ 'cff_header_text_weight' ] = $cff_header_text_weight;
|
499 |
+
$options[ 'cff_header_text_color' ] = $cff_header_text_color;
|
500 |
+
$options[ 'cff_header_icon' ] = $cff_header_icon;
|
501 |
+
$options[ 'cff_header_icon_color' ] = $cff_header_icon_color;
|
502 |
+
$options[ 'cff_header_icon_size' ] = $cff_header_icon_size;
|
503 |
+
|
504 |
+
//Misc
|
505 |
+
$options[ 'cff_show_like_box' ] = $cff_show_like_box;
|
506 |
+
$options[ 'cff_like_box_position' ] = $cff_like_box_position;
|
507 |
+
$options[ 'cff_like_box_outside' ] = $cff_like_box_outside;
|
508 |
+
$options[ 'cff_likebox_bg_color' ] = $cff_likebox_bg_color;
|
509 |
+
$options[ 'cff_like_box_text_color' ] = $cff_like_box_text_color;
|
510 |
+
$options[ 'cff_likebox_width' ] = $cff_likebox_width;
|
511 |
+
$options[ 'cff_likebox_height' ] = $cff_likebox_height;
|
512 |
+
$options[ 'cff_like_box_faces' ] = $cff_like_box_faces;
|
513 |
+
$options[ 'cff_like_box_border' ] = $cff_like_box_border;
|
514 |
+
$options[ 'cff_like_box_cover' ] = $cff_like_box_cover;
|
515 |
+
$options[ 'cff_like_box_small_header' ] = $cff_like_box_small_header;
|
516 |
+
$options[ 'cff_like_box_hide_cta' ] = $cff_like_box_hide_cta;
|
517 |
+
|
518 |
+
//Post types
|
519 |
+
$options[ 'cff_show_links_type' ] = $cff_show_links_type;
|
520 |
+
$options[ 'cff_show_event_type' ] = $cff_show_event_type;
|
521 |
+
$options[ 'cff_show_video_type' ] = $cff_show_video_type;
|
522 |
+
$options[ 'cff_show_photos_type' ] = $cff_show_photos_type;
|
523 |
+
$options[ 'cff_show_status_type' ] = $cff_show_status_type;
|
524 |
+
}
|
525 |
+
//Update the Post Layout options
|
526 |
+
if( isset($_POST[ $style_post_layout_hidden_field_name ]) && $_POST[ $style_post_layout_hidden_field_name ] == 'Y' ) {
|
527 |
+
//Layout
|
528 |
+
if (isset($_POST[ 'cff_preset_layout' ]) ) $cff_preset_layout = sanitize_text_field( $_POST[ 'cff_preset_layout' ] );
|
529 |
+
//Include
|
530 |
+
(isset($_POST[ 'cff_show_author' ]) ) ? $cff_show_author = sanitize_text_field( $_POST[ 'cff_show_author' ] ) : $cff_show_author = '';
|
531 |
+
(isset($_POST[ 'cff_show_text' ]) ) ? $cff_show_text = sanitize_text_field( $_POST[ 'cff_show_text' ] ) : $cff_show_text = '';
|
532 |
+
(isset($_POST[ 'cff_show_desc' ]) ) ? $cff_show_desc = sanitize_text_field( $_POST[ 'cff_show_desc' ] ) : $cff_show_desc = '';
|
533 |
+
(isset($_POST[ 'cff_show_shared_links' ]) ) ? $cff_show_shared_links = sanitize_text_field( $_POST[ 'cff_show_shared_links' ] ) : $cff_show_shared_links = '';
|
534 |
+
(isset($_POST[ 'cff_show_date' ]) ) ? $cff_show_date = sanitize_text_field( $_POST[ 'cff_show_date' ] ) : $cff_show_date = '';
|
535 |
+
(isset($_POST[ 'cff_show_media' ]) ) ? $cff_show_media = sanitize_text_field( $_POST[ 'cff_show_media' ] ) : $cff_show_media = '';
|
536 |
+
(isset($_POST[ 'cff_show_media_link' ]) ) ? $cff_show_media_link = sanitize_text_field( $_POST[ 'cff_show_media_link' ] ) : $cff_show_media_link = '';
|
537 |
+
(isset($_POST[ 'cff_show_event_title' ]) ) ? $cff_show_event_title = sanitize_text_field( $_POST[ 'cff_show_event_title' ] ) : $cff_show_event_title = '';
|
538 |
+
(isset($_POST[ 'cff_show_event_details' ]) ) ? $cff_show_event_details = sanitize_text_field( $_POST[ 'cff_show_event_details' ] ) : $cff_show_event_details = '';
|
539 |
+
(isset($_POST[ 'cff_show_meta' ]) ) ? $cff_show_meta = sanitize_text_field( $_POST[ 'cff_show_meta' ] ) : $cff_show_meta = '';
|
540 |
+
(isset($_POST[ 'cff_show_link' ]) ) ? $cff_show_link = sanitize_text_field( $_POST[ 'cff_show_link' ] ) : $cff_show_link = '';
|
541 |
+
|
542 |
+
//Layout
|
543 |
+
$options[ 'cff_preset_layout' ] = $cff_preset_layout;
|
544 |
+
//Include
|
545 |
+
$options[ 'cff_show_author' ] = $cff_show_author;
|
546 |
+
$options[ 'cff_show_text' ] = $cff_show_text;
|
547 |
+
$options[ 'cff_show_desc' ] = $cff_show_desc;
|
548 |
+
$options[ 'cff_show_shared_links' ] = $cff_show_shared_links;
|
549 |
+
$options[ 'cff_show_date' ] = $cff_show_date;
|
550 |
+
$options[ 'cff_show_media' ] = $cff_show_media;
|
551 |
+
$options[ 'cff_show_media_link' ] = $cff_show_media_link;
|
552 |
+
$options[ 'cff_show_event_title' ] = $cff_show_event_title;
|
553 |
+
$options[ 'cff_show_event_details' ] = $cff_show_event_details;
|
554 |
+
$options[ 'cff_show_meta' ] = $cff_show_meta;
|
555 |
+
$options[ 'cff_show_link' ] = $cff_show_link;
|
556 |
+
|
557 |
+
}
|
558 |
+
//Update the Typography options
|
559 |
+
if( isset($_POST[ $style_typography_hidden_field_name ]) && $_POST[ $style_typography_hidden_field_name ] == 'Y' ) {
|
560 |
+
//Character limits
|
561 |
+
if (isset($_POST[ 'cff_title_length' ]) ) $cff_title_length_val = sanitize_text_field( $_POST[ $cff_title_length ] );
|
562 |
+
if (isset($_POST[ 'cff_body_length' ]) ) $cff_body_length_val = sanitize_text_field( $_POST[ $cff_body_length ] );
|
563 |
+
|
564 |
+
//Post Style
|
565 |
+
if (isset($_POST[ 'cff_post_style' ]) ) $cff_post_style = $_POST[ 'cff_post_style' ];
|
566 |
+
(isset($_POST[ 'cff_post_bg_color' ]) ) ? $cff_post_bg_color = $_POST[ 'cff_post_bg_color' ] : $cff_post_bg_color = '';
|
567 |
+
(isset($_POST[ 'cff_post_rounded' ]) ) ? $cff_post_rounded = $_POST[ 'cff_post_rounded' ] : $cff_post_rounded = '';
|
568 |
+
if (isset($_POST[ 'cff_sep_color' ])) $cff_sep_color = $_POST[ 'cff_sep_color' ];
|
569 |
+
if (isset($_POST[ 'cff_sep_size' ])) $cff_sep_size = $_POST[ 'cff_sep_size' ];
|
570 |
+
(isset($_POST[ 'cff_box_shadow' ]) ) ? $cff_box_shadow = $_POST[ 'cff_box_shadow' ] : $cff_box_shadow = '';
|
571 |
+
|
572 |
+
//Author
|
573 |
+
if (isset($_POST[ 'cff_author_size' ])) $cff_author_size = sanitize_text_field( $_POST[ 'cff_author_size' ] );
|
574 |
+
if (isset($_POST[ 'cff_author_color' ])) $cff_author_color = sanitize_text_field( $_POST[ 'cff_author_color' ] );
|
575 |
+
|
576 |
+
//Typography
|
577 |
+
if (isset($_POST[ 'cff_title_format' ]) ) $cff_title_format = sanitize_text_field( $_POST[ 'cff_title_format' ] );
|
578 |
+
if (isset($_POST[ 'cff_title_size' ]) ) $cff_title_size = sanitize_text_field( $_POST[ 'cff_title_size' ] );
|
579 |
+
if (isset($_POST[ 'cff_title_weight' ]) ) $cff_title_weight = sanitize_text_field( $_POST[ 'cff_title_weight' ] );
|
580 |
+
if (isset($_POST[ 'cff_title_color' ]) ) $cff_title_color = sanitize_text_field( $_POST[ 'cff_title_color' ] );
|
581 |
+
if (isset($_POST[ 'cff_posttext_link_color' ]) ) $cff_posttext_link_color = sanitize_text_field( $_POST[ 'cff_posttext_link_color' ] );
|
582 |
+
|
583 |
+
(isset($_POST[ 'cff_title_link' ]) ) ? $cff_title_link = sanitize_text_field( $_POST[ 'cff_title_link' ] ) : $cff_title_link = '';
|
584 |
+
(isset($_POST[ 'cff_post_tags' ]) ) ? $cff_post_tags = sanitize_text_field( $_POST[ 'cff_post_tags' ] ) : $cff_post_tags = '';
|
585 |
+
(isset($_POST[ 'cff_link_hashtags' ]) ) ? $cff_link_hashtags = sanitize_text_field( $_POST[ 'cff_link_hashtags' ] ) : $cff_link_hashtags = '';
|
586 |
+
|
587 |
+
$cff_body_size = $_POST[ 'cff_body_size' ];
|
588 |
+
if (isset($_POST[ 'cff_body_weight' ]) ) $cff_body_weight = sanitize_text_field( $_POST[ 'cff_body_weight' ] );
|
589 |
+
if (isset($_POST[ 'cff_body_color' ]) ) $cff_body_color = sanitize_text_field( $_POST[ 'cff_body_color' ] );
|
590 |
+
if (isset($_POST[ 'cff_link_title_format' ]) ) $cff_link_title_format = sanitize_text_field( $_POST[ 'cff_link_title_format' ] );
|
591 |
+
if (isset($_POST[ 'cff_link_title_size' ]) ) $cff_link_title_size = $_POST[ 'cff_link_title_size' ];
|
592 |
+
if (isset($_POST[ 'cff_link_url_size' ]) ) $cff_link_url_size = $_POST[ 'cff_link_url_size' ];
|
593 |
+
if (isset($_POST[ 'cff_link_desc_size' ]) ) $cff_link_desc_size = $_POST[ 'cff_link_desc_size' ];
|
594 |
+
if (isset($_POST[ 'cff_link_desc_color' ]) ) $cff_link_desc_color = $_POST[ 'cff_link_desc_color' ];
|
595 |
+
if (isset($_POST[ 'cff_link_title_color' ]) ) $cff_link_title_color = $_POST[ 'cff_link_title_color' ];
|
596 |
+
if (isset($_POST[ 'cff_link_url_color' ]) ) $cff_link_url_color = $_POST[ 'cff_link_url_color' ];
|
597 |
+
if (isset($_POST[ 'cff_link_bg_color' ]) ) $cff_link_bg_color = $_POST[ 'cff_link_bg_color' ];
|
598 |
+
if (isset($_POST[ 'cff_link_border_color' ]) ) $cff_link_border_color = $_POST[ 'cff_link_border_color' ];
|
599 |
+
(isset($_POST[ 'cff_disable_link_box' ])) ? $cff_disable_link_box = $_POST[ 'cff_disable_link_box' ] : $cff_disable_link_box = '';
|
600 |
+
|
601 |
+
|
602 |
+
//Event title
|
603 |
+
if (isset($_POST[ 'cff_event_title_format' ]) ) $cff_event_title_format = sanitize_text_field( $_POST[ 'cff_event_title_format' ] );
|
604 |
+
if (isset($_POST[ 'cff_event_title_size' ]) ) $cff_event_title_size = sanitize_text_field( $_POST[ 'cff_event_title_size' ] );
|
605 |
+
if (isset($_POST[ 'cff_event_title_weight' ]) ) $cff_event_title_weight = sanitize_text_field( $_POST[ 'cff_event_title_weight' ] );
|
606 |
+
if (isset($_POST[ 'cff_event_title_color' ]) ) $cff_event_title_color = sanitize_text_field( $_POST[ 'cff_event_title_color' ] );
|
607 |
+
(isset($_POST[ 'cff_event_title_link' ]) ) ? $cff_event_title_link = sanitize_text_field( $_POST[ 'cff_event_title_link' ] ) : $cff_event_title_link = '';
|
608 |
+
//Event date
|
609 |
+
if (isset($_POST[ 'cff_event_date_size' ]) ) $cff_event_date_size = sanitize_text_field( $_POST[ 'cff_event_date_size' ] );
|
610 |
+
if (isset($_POST[ 'cff_event_date_weight' ]) ) $cff_event_date_weight = sanitize_text_field( $_POST[ 'cff_event_date_weight' ] );
|
611 |
+
if (isset($_POST[ 'cff_event_date_color' ]) ) $cff_event_date_color = sanitize_text_field( $_POST[ 'cff_event_date_color' ] );
|
612 |
+
if (isset($_POST[ 'cff_event_date_position' ]) ) $cff_event_date_position = sanitize_text_field( $_POST[ 'cff_event_date_position' ] );
|
613 |
+
if (isset($_POST[ 'cff_event_date_formatting' ]) ) $cff_event_date_formatting = sanitize_text_field( $_POST[ 'cff_event_date_formatting' ] );
|
614 |
+
if (isset($_POST[ 'cff_event_date_custom' ]) ) $cff_event_date_custom = sanitize_text_field( $_POST[ 'cff_event_date_custom' ] );
|
615 |
+
//Event details
|
616 |
+
if (isset($_POST[ 'cff_event_details_size' ]) ) $cff_event_details_size = sanitize_text_field( $_POST[ 'cff_event_details_size' ] );
|
617 |
+
if (isset($_POST[ 'cff_event_details_weight' ]) ) $cff_event_details_weight = sanitize_text_field( $_POST[ 'cff_event_details_weight' ] );
|
618 |
+
if (isset($_POST[ 'cff_event_details_color' ]) ) $cff_event_details_color = sanitize_text_field( $_POST[ 'cff_event_details_color' ] );
|
619 |
+
if (isset($_POST[ 'cff_event_link_color' ]) ) $cff_event_link_color = sanitize_text_field( $_POST[ 'cff_event_link_color' ] );
|
620 |
+
//Date
|
621 |
+
if (isset($_POST[ 'cff_date_position' ]) ) $cff_date_position = sanitize_text_field( $_POST[ 'cff_date_position' ] );
|
622 |
+
if (isset($_POST[ 'cff_date_size' ]) ) $cff_date_size = sanitize_text_field( $_POST[ 'cff_date_size' ] );
|
623 |
+
if (isset($_POST[ 'cff_date_weight' ]) ) $cff_date_weight = sanitize_text_field( $_POST[ 'cff_date_weight' ] );
|
624 |
+
if (isset($_POST[ 'cff_date_color' ]) ) $cff_date_color = sanitize_text_field( $_POST[ 'cff_date_color' ] );
|
625 |
+
if (isset($_POST[ 'cff_date_formatting' ]) ) $cff_date_formatting = sanitize_text_field( $_POST[ 'cff_date_formatting' ] );
|
626 |
+
if (isset($_POST[ 'cff_date_custom' ]) ) $cff_date_custom = sanitize_text_field( $_POST[ 'cff_date_custom' ] );
|
627 |
+
if (isset($_POST[ 'cff_date_before' ]) ) $cff_date_before = sanitize_text_field( $_POST[ 'cff_date_before' ] );
|
628 |
+
if (isset($_POST[ 'cff_date_after' ]) ) $cff_date_after = sanitize_text_field( $_POST[ 'cff_date_after' ] );
|
629 |
+
if (isset($_POST[ 'cff_timezone' ]) ) $cff_timezone = sanitize_text_field( $_POST[ 'cff_timezone' ] );
|
630 |
+
|
631 |
+
//Date translate
|
632 |
+
if (isset($_POST[ 'cff_translate_second' ]) ) $cff_translate_second = sanitize_text_field( $_POST[ 'cff_translate_second' ] );
|
633 |
+
if (isset($_POST[ 'cff_translate_seconds' ]) ) $cff_translate_seconds = sanitize_text_field( $_POST[ 'cff_translate_seconds' ] );
|
634 |
+
if (isset($_POST[ 'cff_translate_minute' ]) ) $cff_translate_minute = sanitize_text_field( $_POST[ 'cff_translate_minute' ] );
|
635 |
+
if (isset($_POST[ 'cff_translate_minutes' ]) ) $cff_translate_minutes = sanitize_text_field( $_POST[ 'cff_translate_minutes' ] );
|
636 |
+
if (isset($_POST[ 'cff_translate_hour' ]) ) $cff_translate_hour = sanitize_text_field( $_POST[ 'cff_translate_hour' ] );
|
637 |
+
if (isset($_POST[ 'cff_translate_hours' ]) ) $cff_translate_hours = sanitize_text_field( $_POST[ 'cff_translate_hours' ] );
|
638 |
+
if (isset($_POST[ 'cff_translate_day' ]) ) $cff_translate_day = sanitize_text_field( $_POST[ 'cff_translate_day' ] );
|
639 |
+
if (isset($_POST[ 'cff_translate_days' ]) ) $cff_translate_days = sanitize_text_field( $_POST[ 'cff_translate_days' ] );
|
640 |
+
if (isset($_POST[ 'cff_translate_week' ]) ) $cff_translate_week = sanitize_text_field( $_POST[ 'cff_translate_week' ] );
|
641 |
+
if (isset($_POST[ 'cff_translate_weeks' ]) ) $cff_translate_weeks = sanitize_text_field( $_POST[ 'cff_translate_weeks' ] );
|
642 |
+
if (isset($_POST[ 'cff_translate_month' ]) ) $cff_translate_month = sanitize_text_field( $_POST[ 'cff_translate_month' ] );
|
643 |
+
if (isset($_POST[ 'cff_translate_months' ]) ) $cff_translate_months = sanitize_text_field( $_POST[ 'cff_translate_months' ] );
|
644 |
+
if (isset($_POST[ 'cff_translate_year' ]) ) $cff_translate_year = sanitize_text_field( $_POST[ 'cff_translate_year' ] );
|
645 |
+
if (isset($_POST[ 'cff_translate_years' ]) ) $cff_translate_years = sanitize_text_field( $_POST[ 'cff_translate_years' ] );
|
646 |
+
if (isset($_POST[ 'cff_translate_ago' ]) ) $cff_translate_ago = sanitize_text_field( $_POST[ 'cff_translate_ago' ] );
|
647 |
+
|
648 |
+
//Meta
|
649 |
+
if (isset($_POST[ 'cff_icon_style' ])) $cff_icon_style = sanitize_text_field( $_POST[ 'cff_icon_style' ] );
|
650 |
+
if (isset($_POST[ 'cff_meta_text_color' ])) $cff_meta_text_color = sanitize_text_field( $_POST[ 'cff_meta_text_color' ] );
|
651 |
+
if (isset($_POST[ 'cff_meta_bg_color' ])) $cff_meta_bg_color = sanitize_text_field( $_POST[ 'cff_meta_bg_color' ] );
|
652 |
+
if (isset($_POST[ 'cff_nocomments_text' ])) $cff_nocomments_text = sanitize_text_field( $_POST[ 'cff_nocomments_text' ] );
|
653 |
+
if (isset($_POST[ 'cff_hide_comments' ])) $cff_hide_comments = sanitize_text_field( $_POST[ 'cff_hide_comments' ] );
|
654 |
+
|
655 |
+
//View on Facebook link
|
656 |
+
if (isset($_POST[ 'cff_link_size' ]) ) $cff_link_size = sanitize_text_field( $_POST[ 'cff_link_size' ] );
|
657 |
+
if (isset($_POST[ 'cff_link_weight' ]) ) $cff_link_weight = sanitize_text_field( $_POST[ 'cff_link_weight' ] );
|
658 |
+
if (isset($_POST[ 'cff_link_color' ]) ) $cff_link_color = sanitize_text_field( $_POST[ 'cff_link_color' ] );
|
659 |
+
if (isset($_POST[ 'cff_facebook_link_text' ]) ) $cff_facebook_link_text = sanitize_text_field( $_POST[ 'cff_facebook_link_text' ] );
|
660 |
+
if (isset($_POST[ 'cff_facebook_share_text' ]) ) $cff_facebook_share_text = sanitize_text_field( $_POST[ 'cff_facebook_share_text' ] );
|
661 |
+
(isset($_POST[ 'cff_show_facebook_link' ]) ) ? $cff_show_facebook_link = sanitize_text_field( $_POST[ 'cff_show_facebook_link' ] ) : $cff_show_facebook_link = '';
|
662 |
+
(isset($_POST[ 'cff_show_facebook_share' ]) ) ? $cff_show_facebook_share = sanitize_text_field( $_POST[ 'cff_show_facebook_share' ] ) : $cff_show_facebook_share = '';
|
663 |
+
if (isset($_POST[ 'cff_view_link_text' ]) ) $cff_view_link_text = sanitize_text_field( $_POST[ 'cff_view_link_text' ] );
|
664 |
+
if (isset($_POST[ 'cff_link_to_timeline' ]) ) $cff_link_to_timeline = sanitize_text_field( $_POST[ 'cff_link_to_timeline' ] );
|
665 |
+
|
666 |
+
//Character limits
|
667 |
+
update_option( $cff_title_length, $cff_title_length_val );
|
668 |
+
update_option( $cff_body_length, $cff_body_length_val );
|
669 |
+
//Author
|
670 |
+
$options[ 'cff_author_size' ] = $cff_author_size;
|
671 |
+
$options[ 'cff_author_color' ] = $cff_author_color;
|
672 |
+
|
673 |
+
//Post Style
|
674 |
+
$options[ 'cff_post_style' ] = $cff_post_style;
|
675 |
+
$options[ 'cff_post_bg_color' ] = $cff_post_bg_color;
|
676 |
+
$options[ 'cff_post_rounded' ] = $cff_post_rounded;
|
677 |
+
$options[ 'cff_sep_color' ] = $cff_sep_color;
|
678 |
+
$options[ 'cff_sep_size' ] = $cff_sep_size;
|
679 |
+
$options[ 'cff_box_shadow' ] = $cff_box_shadow;
|
680 |
+
|
681 |
+
//Typography
|
682 |
+
$options[ 'cff_title_format' ] = $cff_title_format;
|
683 |
+
$options[ 'cff_title_size' ] = $cff_title_size;
|
684 |
+
$options[ 'cff_title_weight' ] = $cff_title_weight;
|
685 |
+
$options[ 'cff_title_color' ] = $cff_title_color;
|
686 |
+
$options[ 'cff_posttext_link_color' ] = $cff_posttext_link_color;
|
687 |
+
$options[ 'cff_title_link' ] = $cff_title_link;
|
688 |
+
$options[ 'cff_post_tags' ] = $cff_post_tags;
|
689 |
+
$options[ 'cff_link_hashtags' ] = $cff_link_hashtags;
|
690 |
+
$options[ 'cff_body_size' ] = $cff_body_size;
|
691 |
+
$options[ 'cff_body_weight' ] = $cff_body_weight;
|
692 |
+
$options[ 'cff_body_color' ] = $cff_body_color;
|
693 |
+
$options[ 'cff_link_title_format' ] = $cff_link_title_format;
|
694 |
+
$options[ 'cff_link_title_size' ] = $cff_link_title_size;
|
695 |
+
$options[ 'cff_link_url_size' ] = $cff_link_url_size;
|
696 |
+
$options[ 'cff_link_desc_size' ] = $cff_link_desc_size;
|
697 |
+
$options[ 'cff_link_desc_color' ] = $cff_link_desc_color;
|
698 |
+
$options[ 'cff_link_title_color' ] = $cff_link_title_color;
|
699 |
+
$options[ 'cff_link_url_color' ] = $cff_link_url_color;
|
700 |
+
$options[ 'cff_link_bg_color' ] = $cff_link_bg_color;
|
701 |
+
$options[ 'cff_link_border_color' ] = $cff_link_border_color;
|
702 |
+
$options[ 'cff_disable_link_box' ] = $cff_disable_link_box;
|
703 |
+
|
704 |
+
//Event title
|
705 |
+
$options[ 'cff_event_title_format' ] = $cff_event_title_format;
|
706 |
+
$options[ 'cff_event_title_size' ] = $cff_event_title_size;
|
707 |
+
$options[ 'cff_event_title_weight' ] = $cff_event_title_weight;
|
708 |
+
$options[ 'cff_event_title_color' ] = $cff_event_title_color;
|
709 |
+
$options[ 'cff_event_title_link' ] = $cff_event_title_link;
|
710 |
+
//Event date
|
711 |
+
$options[ 'cff_event_date_size' ] = $cff_event_date_size;
|
712 |
+
$options[ 'cff_event_date_weight' ] = $cff_event_date_weight;
|
713 |
+
$options[ 'cff_event_date_color' ] = $cff_event_date_color;
|
714 |
+
$options[ 'cff_event_date_position' ] = $cff_event_date_position;
|
715 |
+
$options[ 'cff_event_date_formatting' ] = $cff_event_date_formatting;
|
716 |
+
$options[ 'cff_event_date_custom' ] = $cff_event_date_custom;
|
717 |
+
//Event details
|
718 |
+
$options[ 'cff_event_details_size' ] = $cff_event_details_size;
|
719 |
+
$options[ 'cff_event_details_weight' ] = $cff_event_details_weight;
|
720 |
+
$options[ 'cff_event_details_color' ] = $cff_event_details_color;
|
721 |
+
$options[ 'cff_event_link_color' ] = $cff_event_link_color;
|
722 |
+
//Date
|
723 |
+
$options[ 'cff_date_position' ] = $cff_date_position;
|
724 |
+
$options[ 'cff_date_size' ] = $cff_date_size;
|
725 |
+
$options[ 'cff_date_weight' ] = $cff_date_weight;
|
726 |
+
$options[ 'cff_date_color' ] = $cff_date_color;
|
727 |
+
$options[ 'cff_date_formatting' ] = $cff_date_formatting;
|
728 |
+
$options[ 'cff_date_custom' ] = $cff_date_custom;
|
729 |
+
$options[ 'cff_date_before' ] = $cff_date_before;
|
730 |
+
$options[ 'cff_date_after' ] = $cff_date_after;
|
731 |
+
$options[ 'cff_timezone' ] = $cff_timezone;
|
732 |
+
|
733 |
+
//Date translate
|
734 |
+
$options[ 'cff_translate_second' ] = $cff_translate_second;
|
735 |
+
$options[ 'cff_translate_seconds' ] = $cff_translate_seconds;
|
736 |
+
$options[ 'cff_translate_minute' ] = $cff_translate_minute;
|
737 |
+
$options[ 'cff_translate_minutes' ] = $cff_translate_minutes;
|
738 |
+
$options[ 'cff_translate_hour' ] = $cff_translate_hour;
|
739 |
+
$options[ 'cff_translate_hours' ] = $cff_translate_hours;
|
740 |
+
$options[ 'cff_translate_day' ] = $cff_translate_day;
|
741 |
+
$options[ 'cff_translate_days' ] = $cff_translate_days;
|
742 |
+
$options[ 'cff_translate_week' ] = $cff_translate_week;
|
743 |
+
$options[ 'cff_translate_weeks' ] = $cff_translate_weeks;
|
744 |
+
$options[ 'cff_translate_month' ] = $cff_translate_month;
|
745 |
+
$options[ 'cff_translate_months' ] = $cff_translate_months;
|
746 |
+
$options[ 'cff_translate_year' ] = $cff_translate_year;
|
747 |
+
$options[ 'cff_translate_years' ] = $cff_translate_years;
|
748 |
+
$options[ 'cff_translate_ago' ] = $cff_translate_ago;
|
749 |
+
|
750 |
+
//Meta
|
751 |
+
$options[ 'cff_icon_style' ] = $cff_icon_style;
|
752 |
+
$options[ 'cff_meta_text_color' ] = $cff_meta_text_color;
|
753 |
+
$options[ 'cff_meta_bg_color' ] = $cff_meta_bg_color;
|
754 |
+
$options[ 'cff_nocomments_text' ] = $cff_nocomments_text;
|
755 |
+
$options[ 'cff_hide_comments' ] = $cff_hide_comments;
|
756 |
+
|
757 |
+
//View on Facebook link
|
758 |
+
$options[ 'cff_link_size' ] = $cff_link_size;
|
759 |
+
$options[ 'cff_link_weight' ] = $cff_link_weight;
|
760 |
+
$options[ 'cff_link_color' ] = $cff_link_color;
|
761 |
+
$options[ 'cff_facebook_link_text' ] = $cff_facebook_link_text;
|
762 |
+
$options[ 'cff_facebook_share_text' ] = $cff_facebook_share_text;
|
763 |
+
$options[ 'cff_show_facebook_link' ] = $cff_show_facebook_link;
|
764 |
+
$options[ 'cff_show_facebook_share' ] = $cff_show_facebook_share;
|
765 |
+
$options[ 'cff_view_link_text' ] = $cff_view_link_text;
|
766 |
+
$options[ 'cff_link_to_timeline' ] = $cff_link_to_timeline;
|
767 |
+
}
|
768 |
+
//Update the Misc options
|
769 |
+
if( isset($_POST[ $style_misc_hidden_field_name ]) && $_POST[ $style_misc_hidden_field_name ] == 'Y' ) {
|
770 |
+
if (isset($_POST[ 'gdpr' ])) $gdpr = sanitize_text_field( $_POST[ 'gdpr' ] );
|
771 |
+
//Custom CSS
|
772 |
+
if (isset($_POST[ 'cff_custom_css' ])) $cff_custom_css = $_POST[ 'cff_custom_css' ];
|
773 |
+
if (isset($_POST[ 'cff_custom_js' ])) $cff_custom_js = $_POST[ 'cff_custom_js' ];
|
774 |
+
|
775 |
+
if (isset($_POST[ 'cff_video_height' ])) $cff_video_height = sanitize_text_field( $_POST[ 'cff_video_height' ] );
|
776 |
+
if (isset($_POST[ 'cff_video_action' ])) $cff_video_action = sanitize_text_field( $_POST[ 'cff_video_action' ] );
|
777 |
+
if (isset($_POST[ 'cff_open_links' ])) $cff_open_links = sanitize_text_field( $_POST[ 'cff_open_links' ] );
|
778 |
+
|
779 |
+
(isset($_POST[ $cff_ajax ])) ? $cff_ajax_val = sanitize_text_field( $_POST[ 'cff_ajax' ] ) : $cff_ajax_val = '';
|
780 |
+
if (isset($_POST[ 'cff_app_id' ])) $cff_app_id = sanitize_text_field( $_POST[ 'cff_app_id' ] );
|
781 |
+
(isset($_POST[ 'cff_show_credit' ])) ? $cff_show_credit = sanitize_text_field( $_POST[ 'cff_show_credit' ] ) : $cff_show_credit = '';
|
782 |
+
(isset($_POST[ 'cff_font_source' ])) ? $cff_font_source = sanitize_text_field( $_POST[ 'cff_font_source' ] ) : $cff_font_source = '';
|
783 |
+
(isset($_POST[ $cff_preserve_settings ])) ? $cff_preserve_settings_val = sanitize_text_field( $_POST[ 'cff_preserve_settings' ] ) : $cff_preserve_settings_val = '';
|
784 |
+
if (isset($_POST[ 'cff_cron' ])) $cff_cron = sanitize_text_field( $_POST[ 'cff_cron' ] );
|
785 |
+
if (isset($_POST[ 'cff_request_method' ])) $cff_request_method = sanitize_text_field( $_POST[ 'cff_request_method' ] );
|
786 |
+
(isset($_POST[ 'cff_disable_styles' ])) ? $cff_disable_styles = sanitize_text_field( $_POST[ 'cff_disable_styles' ] ) : $cff_disable_styles = '';
|
787 |
+
(isset($_POST[ 'cff_format_issue' ])) ? $cff_format_issue = sanitize_text_field( $_POST[ 'cff_format_issue' ] ) : $cff_format_issue = '';
|
788 |
+
(isset($_POST[ 'cff_restricted_page' ])) ? $cff_restricted_page = sanitize_text_field( $_POST[ 'cff_restricted_page' ] ) : $cff_restricted_page = '';
|
789 |
+
(isset($_POST[ 'cff_minify' ])) ? $cff_minify = sanitize_text_field( $_POST[ 'cff_minify' ] ) : $cff_minify = '';
|
790 |
+
(isset($_POST[ 'cff_disable_admin_notice' ])) ? $cff_disable_admin_notice = sanitize_text_field( $_POST[ 'cff_disable_admin_notice' ] ) : $cff_disable_admin_notice = '';
|
791 |
+
|
792 |
+
$options[ 'gdpr' ] = $gdpr;
|
793 |
+
//Custom CSS
|
794 |
+
$options[ 'cff_custom_css' ] = $cff_custom_css;
|
795 |
+
$options[ 'cff_custom_js' ] = $cff_custom_js;
|
796 |
+
|
797 |
+
$options[ 'cff_video_height' ] = $cff_video_height;
|
798 |
+
$options[ 'cff_video_action' ] = $cff_video_action;
|
799 |
+
$options[ 'cff_open_links' ] = $cff_open_links;
|
800 |
+
|
801 |
+
update_option( $cff_ajax, $cff_ajax_val );
|
802 |
+
$options[ 'cff_app_id' ] = $cff_app_id;
|
803 |
+
$options[ 'cff_show_credit' ] = $cff_show_credit;
|
804 |
+
$options[ 'cff_font_source' ] = $cff_font_source;
|
805 |
+
update_option( $cff_preserve_settings, $cff_preserve_settings_val );
|
806 |
+
|
807 |
+
$options[ 'cff_cron' ] = $cff_cron;
|
808 |
+
$options[ 'cff_request_method' ] = $cff_request_method;
|
809 |
+
$options[ 'cff_disable_styles' ] = $cff_disable_styles;
|
810 |
+
$options[ 'cff_format_issue' ] = $cff_format_issue;
|
811 |
+
$options[ 'cff_restricted_page' ] = $cff_restricted_page;
|
812 |
+
$options[ 'cff_minify' ] = $cff_minify;
|
813 |
+
$options[ 'disable_admin_notice' ] = $cff_disable_admin_notice;
|
814 |
+
|
815 |
+
if( $cff_cron == 'no' ) wp_clear_scheduled_hook('cff_cron_job');
|
816 |
+
|
817 |
+
//Run cron when Misc settings are saved
|
818 |
+
if( $cff_cron == 'yes' ){
|
819 |
+
//Clear the existing cron event
|
820 |
+
wp_clear_scheduled_hook('cff_cron_job');
|
821 |
+
|
822 |
+
$cff_cache_time = get_option( 'cff_cache_time' );
|
823 |
+
$cff_cache_time_unit = get_option( 'cff_cache_time_unit' );
|
824 |
+
|
825 |
+
//Set the event schedule based on what the caching time is set to
|
826 |
+
$cff_cron_schedule = 'hourly';
|
827 |
+
if( $cff_cache_time_unit == 'hours' && $cff_cache_time > 5 ) $cff_cron_schedule = 'twicedaily';
|
828 |
+
if( $cff_cache_time_unit == 'days' ) $cff_cron_schedule = 'daily';
|
829 |
+
|
830 |
+
wp_schedule_event(time(), $cff_cron_schedule, 'cff_cron_job');
|
831 |
+
}
|
832 |
+
|
833 |
+
isset($_POST[ 'cff_enable_email_report' ]) ? $cff_enable_email_report = $_POST[ 'cff_enable_email_report' ] : $cff_enable_email_report = '';
|
834 |
+
$options['enable_email_report'] = $cff_enable_email_report;
|
835 |
+
isset($_POST[ 'cff_email_notification' ]) ? $cff_email_notification = $_POST[ 'cff_email_notification' ] : $cff_email_notification = '';
|
836 |
+
$original = $options['email_notification'];
|
837 |
+
$options['email_notification'] = $cff_email_notification;
|
838 |
+
isset($_POST[ 'cff_email_notification_addresses' ]) ? $cff_email_notification_addresses = $_POST[ 'cff_email_notification_addresses' ] : $cff_email_notification_addresses = get_option( 'admin_email' );
|
839 |
+
$options['email_notification_addresses'] = $cff_email_notification_addresses;
|
840 |
+
|
841 |
+
if ( $original !== $cff_email_notification && $cff_enable_email_report === 'on' ){
|
842 |
+
//Clear the existing cron event
|
843 |
+
wp_clear_scheduled_hook('cff_feed_issue_email');
|
844 |
+
|
845 |
+
$input = sanitize_text_field($_POST[ 'cff_email_notification' ] );
|
846 |
+
$timestamp = strtotime( 'next ' . $input );
|
847 |
+
|
848 |
+
if ( $timestamp - (3600 * 1) < time() ) {
|
849 |
+
$timestamp = $timestamp + (3600 * 24 * 7);
|
850 |
+
}
|
851 |
+
$six_am_local = $timestamp + CFF_Utils::cff_get_utc_offset() + (6*60*60);
|
852 |
+
|
853 |
+
wp_schedule_event( $six_am_local, 'cffweekly', 'cff_feed_issue_email' );
|
854 |
+
}
|
855 |
+
|
856 |
+
}
|
857 |
+
//Update the Custom Text / Translate options
|
858 |
+
if( isset($_POST[ $style_custom_text_hidden_field_name ]) && $_POST[ $style_custom_text_hidden_field_name ] == 'Y' ) {
|
859 |
+
|
860 |
+
//Translate
|
861 |
+
if (isset($_POST[ 'cff_see_more_text' ])) $cff_see_more_text = sanitize_text_field( $_POST[ 'cff_see_more_text' ] );
|
862 |
+
if (isset($_POST[ 'cff_see_less_text' ])) $cff_see_less_text = sanitize_text_field( $_POST[ 'cff_see_less_text' ] );
|
863 |
+
if (isset($_POST[ 'cff_facebook_link_text' ])) $cff_facebook_link_text = sanitize_text_field( $_POST[ 'cff_facebook_link_text' ] );
|
864 |
+
if (isset($_POST[ 'cff_facebook_share_text' ])) $cff_facebook_share_text = sanitize_text_field( $_POST[ 'cff_facebook_share_text' ] );
|
865 |
+
|
866 |
+
//Social translate
|
867 |
+
if (isset($_POST[ 'cff_translate_photos_text' ])) $cff_translate_photos_text = sanitize_text_field( $_POST[ 'cff_translate_photos_text' ] );
|
868 |
+
if (isset($_POST[ 'cff_translate_photo_text' ])) $cff_translate_photo_text = sanitize_text_field( $_POST[ 'cff_translate_photo_text' ] );
|
869 |
+
if (isset($_POST[ 'cff_translate_video_text' ])) $cff_translate_video_text = sanitize_text_field( $_POST[ 'cff_translate_video_text' ] );
|
870 |
+
|
871 |
+
if (isset($_POST[ 'cff_translate_learn_more_text' ])) $cff_translate_learn_more_text = sanitize_text_field( $_POST[ 'cff_translate_learn_more_text' ] );
|
872 |
+
if (isset($_POST[ 'cff_translate_shop_now_text' ])) $cff_translate_shop_now_text = sanitize_text_field( $_POST[ 'cff_translate_shop_now_text' ] );
|
873 |
+
if (isset($_POST[ 'cff_translate_message_page_text' ])) $cff_translate_message_page_text = sanitize_text_field( $_POST[ 'cff_translate_message_page_text' ] );
|
874 |
+
|
875 |
+
//Date translate
|
876 |
+
if (isset($_POST[ 'cff_translate_second' ])) $cff_translate_second = sanitize_text_field( $_POST[ 'cff_translate_second' ] );
|
877 |
+
if (isset($_POST[ 'cff_translate_seconds' ])) $cff_translate_seconds = sanitize_text_field( $_POST[ 'cff_translate_seconds' ] );
|
878 |
+
if (isset($_POST[ 'cff_translate_minute' ])) $cff_translate_minute = sanitize_text_field( $_POST[ 'cff_translate_minute' ] );
|
879 |
+
if (isset($_POST[ 'cff_translate_minutes' ])) $cff_translate_minutes = sanitize_text_field( $_POST[ 'cff_translate_minutes' ] );
|
880 |
+
if (isset($_POST[ 'cff_translate_hour' ])) $cff_translate_hour = sanitize_text_field( $_POST[ 'cff_translate_hour' ] );
|
881 |
+
if (isset($_POST[ 'cff_translate_hours' ])) $cff_translate_hours = sanitize_text_field( $_POST[ 'cff_translate_hours' ] );
|
882 |
+
if (isset($_POST[ 'cff_translate_day' ])) $cff_translate_day = sanitize_text_field( $_POST[ 'cff_translate_day' ] );
|
883 |
+
if (isset($_POST[ 'cff_translate_days' ])) $cff_translate_days = sanitize_text_field( $_POST[ 'cff_translate_days' ] );
|
884 |
+
if (isset($_POST[ 'cff_translate_week' ])) $cff_translate_week = sanitize_text_field( $_POST[ 'cff_translate_week' ] );
|
885 |
+
if (isset($_POST[ 'cff_translate_weeks' ])) $cff_translate_weeks = sanitize_text_field( $_POST[ 'cff_translate_weeks' ] );
|
886 |
+
if (isset($_POST[ 'cff_translate_month' ])) $cff_translate_month = sanitize_text_field( $_POST[ 'cff_translate_month' ] );
|
887 |
+
if (isset($_POST[ 'cff_translate_months' ])) $cff_translate_months = sanitize_text_field( $_POST[ 'cff_translate_months' ] );
|
888 |
+
if (isset($_POST[ 'cff_translate_year' ])) $cff_translate_year = sanitize_text_field( $_POST[ 'cff_translate_year' ] );
|
889 |
+
if (isset($_POST[ 'cff_translate_years' ])) $cff_translate_years = sanitize_text_field( $_POST[ 'cff_translate_years' ] );
|
890 |
+
if (isset($_POST[ 'cff_translate_ago' ])) $cff_translate_ago = sanitize_text_field( $_POST[ 'cff_translate_ago' ] );
|
891 |
+
|
892 |
+
//Translate
|
893 |
+
$options[ 'cff_see_more_text' ] = $cff_see_more_text;
|
894 |
+
$options[ 'cff_see_less_text' ] = $cff_see_less_text;
|
895 |
+
$options[ 'cff_facebook_link_text' ] = $cff_facebook_link_text;
|
896 |
+
$options[ 'cff_facebook_share_text' ] = $cff_facebook_share_text;
|
897 |
+
|
898 |
+
//Social translate
|
899 |
+
$options[ 'cff_translate_photos_text' ] = $cff_translate_photos_text;
|
900 |
+
$options[ 'cff_translate_photo_text' ] = $cff_translate_photo_text;
|
901 |
+
$options[ 'cff_translate_video_text' ] = $cff_translate_video_text;
|
902 |
+
|
903 |
+
$options[ 'cff_translate_learn_more_text' ] = $cff_translate_learn_more_text;
|
904 |
+
$options[ 'cff_translate_shop_now_text' ] = $cff_translate_shop_now_text;
|
905 |
+
$options[ 'cff_translate_message_page_text' ] = $cff_translate_message_page_text;
|
906 |
+
|
907 |
+
//Date translate
|
908 |
+
$options[ 'cff_translate_second' ] = $cff_translate_second;
|
909 |
+
$options[ 'cff_translate_seconds' ] = $cff_translate_seconds;
|
910 |
+
$options[ 'cff_translate_minute' ] = $cff_translate_minute;
|
911 |
+
$options[ 'cff_translate_minutes' ] = $cff_translate_minutes;
|
912 |
+
$options[ 'cff_translate_hour' ] = $cff_translate_hour;
|
913 |
+
$options[ 'cff_translate_hours' ] = $cff_translate_hours;
|
914 |
+
$options[ 'cff_translate_day' ] = $cff_translate_day;
|
915 |
+
$options[ 'cff_translate_days' ] = $cff_translate_days;
|
916 |
+
$options[ 'cff_translate_week' ] = $cff_translate_week;
|
917 |
+
$options[ 'cff_translate_weeks' ] = $cff_translate_weeks;
|
918 |
+
$options[ 'cff_translate_month' ] = $cff_translate_month;
|
919 |
+
$options[ 'cff_translate_months' ] = $cff_translate_months;
|
920 |
+
$options[ 'cff_translate_year' ] = $cff_translate_year;
|
921 |
+
$options[ 'cff_translate_years' ] = $cff_translate_years;
|
922 |
+
$options[ 'cff_translate_ago' ] = $cff_translate_ago;
|
923 |
+
|
924 |
+
}
|
925 |
+
//Update the array
|
926 |
+
update_option( 'cff_style_settings', $options );
|
927 |
+
// Put an settings updated message on the screen
|
928 |
+
?>
|
929 |
+
<div class="updated"><p><strong><?php _e('Settings saved.', 'custom-facebook-feed' ); ?></strong></p></div>
|
930 |
+
<?php } ?>
|
931 |
+
|
932 |
+
<?php } //End nonce check ?>
|
933 |
+
|
934 |
+
<?php
|
935 |
+
$lite_notice_dismissed = get_transient( 'facebook_feed_dismiss_lite' );
|
936 |
+
|
937 |
+
if ( ! $lite_notice_dismissed ) :
|
938 |
+
?>
|
939 |
+
<div id="cff-notice-bar" style="display:none">
|
940 |
+
<span class="cff-notice-bar-message"><?php _e( 'You\'re using Custom Facebook Feed Lite. To unlock more features consider <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=notices&utm_medium=lite" target="_blank" rel="noopener noreferrer">upgrading to Pro</a>.', 'custom-facebook-feed'); ?></span>
|
941 |
+
<button type="button" class="dismiss" title="<?php _e( 'Dismiss this message.', 'custom-facebook-feed'); ?>" data-page="overview">
|
942 |
+
</button>
|
943 |
+
</div>
|
944 |
+
<?php endif; ?>
|
945 |
+
|
946 |
+
<div id="cff-admin" class="wrap">
|
947 |
+
<div id="header">
|
948 |
+
<h1><?php _e('Custom Facebook Feed', 'custom-facebook-feed'); ?></h1>
|
949 |
+
</div>
|
950 |
+
|
951 |
+
<form name="form1" method="post" action="">
|
952 |
+
<input type="hidden" name="<?php echo $style_hidden_field_name; ?>" value="Y">
|
953 |
+
<?php wp_nonce_field( 'cff_saving_customize', 'cff_customize_nonce' ); ?>
|
954 |
+
|
955 |
+
<?php
|
956 |
+
$cff_active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'general';
|
957 |
+
?>
|
958 |
+
|
959 |
+
<h2 class="nav-tab-wrapper">
|
960 |
+
<a href="?page=cff-top&tab=configuration" class="nav-tab <?php echo $cff_active_tab == 'configuration' ? 'nav-tab-active' : ''; ?>"><?php _e('Configuration'); ?></a>
|
961 |
+
<a href="?page=cff-style" class="nav-tab nav-tab-active"><?php _e('Customize'); ?></a>
|
962 |
+
<a href="?page=cff-top&tab=support" class="nav-tab <?php echo $cff_active_tab == 'support' ? 'nav-tab-active' : ''; ?>"><?php _e('Support'); ?></a>
|
963 |
+
<a href="?page=cff-top&tab=more" class="nav-tab <?php echo $cff_active_tab == 'more' ? 'nav-tab-active' : ''; ?>"><?php _e('More Social Feeds', 'custom-facebook-feed'); ?>
|
964 |
+
<?php
|
965 |
+
$seen_more_plugins_page = get_user_meta(get_current_user_id(), 'seen_more_plugins_page_1', true);
|
966 |
+
if( !$seen_more_plugins_page ) echo '<span class="cff-alert-bubble">1</span>';
|
967 |
+
?>
|
968 |
+
</a>
|
969 |
+
</h2>
|
970 |
+
|
971 |
+
<h2 class="nav-tab-wrapper cff-subtabs">
|
972 |
+
<a href="?page=cff-style&tab=general" class="nav-tab <?php echo $cff_active_tab == 'general' ? 'nav-tab-active' : ''; ?>"><?php _e('General'); ?></a>
|
973 |
+
<a href="?page=cff-style&tab=post_layout" class="nav-tab <?php echo $cff_active_tab == 'post_layout' ? 'nav-tab-active' : ''; ?>"><?php _e('Post Layout'); ?></a>
|
974 |
+
<a href="?page=cff-style&tab=typography" class="nav-tab <?php echo $cff_active_tab == 'typography' ? 'nav-tab-active' : ''; ?>"><?php _e('Style Posts'); ?></a>
|
975 |
+
<a href="?page=cff-style&tab=misc" class="nav-tab <?php echo $cff_active_tab == 'misc' ? 'nav-tab-active' : ''; ?>"><?php _e('Misc'); ?></a>
|
976 |
+
<a href="?page=cff-style&tab=custom_text" class="nav-tab <?php echo $cff_active_tab == 'custom_text' ? 'nav-tab-active' : ''; ?>"><?php _e('Custom Text / Translate'); ?></a>
|
977 |
+
</h2>
|
978 |
+
<?php if( $cff_active_tab == 'general' ) { //Start General tab ?>
|
979 |
+
|
980 |
+
<p class="cff_contents_links" id="general">
|
981 |
+
<span>Jump to: </span>
|
982 |
+
<a href="#general"><?php _e('General', 'custom-facebook-feed'); ?></a>
|
983 |
+
<a href="#header"><?php _e('Header', 'custom-facebook-feed'); ?></a>
|
984 |
+
<a href="#likebox"><?php _e('Like Box', 'custom-facebook-feed'); ?></a>
|
985 |
+
</p>
|
986 |
+
|
987 |
+
<input type="hidden" name="<?php echo $style_general_hidden_field_name; ?>" value="Y">
|
988 |
+
<br />
|
989 |
+
<table class="form-table">
|
990 |
+
<tbody>
|
991 |
+
<h3><?php _e('General', 'custom-facebook-feed'); ?></h3>
|
992 |
+
<tr valign="top">
|
993 |
+
<th class="bump-left" scope="row"><label><?php _e('Feed Width', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> width
|
994 |
+
Eg: width=500px</code></th>
|
995 |
+
<td>
|
996 |
+
<input name="cff_feed_width" id="cff_feed_width" type="text" value="<?php esc_attr_e( $cff_feed_width, 'custom-facebook-feed' ); ?>" size="6" />
|
997 |
+
<i style="color: #666; font-size: 11px;">Eg. 100% or 500px</i>
|
998 |
+
<div id="cff_width_options">
|
999 |
+
<input name="cff_feed_width_resp" type="checkbox" id="cff_feed_width_resp" <?php if($cff_feed_width_resp == true) echo "checked"; ?> /><label for="cff_feed_width_resp"><?php _e('Set to be 100% width on mobile?', 'custom-facebook-feed'); ?></label>
|
1000 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?', 'custom-facebook-feed'); ?></a>
|
1001 |
+
<p class="cff-tooltip cff-more-info"><?php _e("If you set a width on the feed then this will be used on mobile as well as desktop. Check this setting to set the feed width to be 100% on mobile so that it is responsive.", 'custom-facebook-feed'); ?></p>
|
1002 |
+
</div>
|
1003 |
+
</td>
|
1004 |
+
</tr>
|
1005 |
+
<tr valign="top">
|
1006 |
+
<th class="bump-left" scope="row"><label><?php _e('Feed Height', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> height
|
1007 |
+
Eg: height=500px</code></th>
|
1008 |
+
<td>
|
1009 |
+
<input name="cff_feed_height" type="text" value="<?php esc_attr_e( $cff_feed_height, 'custom-facebook-feed' ); ?>" size="6" />
|
1010 |
+
<i style="color: #666; font-size: 11px;">Eg. 500px</i>
|
1011 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1012 |
+
<p class="cff-tooltip cff-more-info"><?php _e("Use this to set a fixed height on the feed. If the feed exceeds this height then a scroll bar will be used. Leave it empty to set no maximum height."); ?></p>
|
1013 |
+
</td>
|
1014 |
+
</tr>
|
1015 |
+
<th class="bump-left" scope="row"><label><?php _e('Feed Padding', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> padding
|
1016 |
+
Eg: padding=20px</code></th>
|
1017 |
+
<td>
|
1018 |
+
<input name="cff_feed_padding" type="text" value="<?php esc_attr_e( $cff_feed_padding, 'custom-facebook-feed' ); ?>" size="6" />
|
1019 |
+
<i style="color: #666; font-size: 11px;">Eg. 20px or 2%</i>
|
1020 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1021 |
+
<p class="cff-tooltip cff-more-info"><?php _e("This is the amount of padding/spacing that goes around the feed. This is particularly useful if you intend to set a background color on the feed."); ?></p>
|
1022 |
+
</td>
|
1023 |
+
</tr>
|
1024 |
+
<tr valign="top">
|
1025 |
+
<th class="bump-left" scope="row"><label><?php _e('Feed Background Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> bgcolor
|
1026 |
+
Eg: bgcolor=FF0000</code></th>
|
1027 |
+
<td>
|
1028 |
+
<input name="cff_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_bg_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
|
1029 |
+
</td>
|
1030 |
+
</tr>
|
1031 |
+
<tr valign="top">
|
1032 |
+
<th class="bump-left" scope="row"><label><?php _e('Add CSS class to feed', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> class
|
1033 |
+
Eg: class=myfeed</code></th>
|
1034 |
+
<td>
|
1035 |
+
<input name="cff_class" type="text" value="<?php esc_attr_e( $cff_class, 'custom-facebook-feed' ); ?>" size="25" />
|
1036 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1037 |
+
<p class="cff-tooltip cff-more-info"><?php _e("You can add your own CSS classes to the feed here. To add multiple classes separate each with a space, Eg. classone classtwo classthree"); ?></p>
|
1038 |
+
</td>
|
1039 |
+
</tr>
|
1040 |
+
|
1041 |
+
<tr valign="top">
|
1042 |
+
<th class="bump-left" scope="row"><label for="cff_cols">Feed Columns</label><code class="cff_shortcode"> cols
|
1043 |
+
Eg: cols=3</code></th>
|
1044 |
+
<td class="cff-short">
|
1045 |
+
<select name="cff_cols" id="cff_cols">
|
1046 |
+
<option value="1" <?php if( $cff_cols == 1 ) { echo 'selected'; } ?>>1</option>
|
1047 |
+
<option value="2" <?php if( $cff_cols == 2 ) { echo 'selected'; } ?>>2</option>
|
1048 |
+
<option value="3" <?php if( $cff_cols == 3 ) { echo 'selected'; } ?>>3</option>
|
1049 |
+
<option value="4" <?php if( $cff_cols == 4 ) { echo 'selected'; } ?>>4</option>
|
1050 |
+
<option value="5" <?php if( $cff_cols == 5 ) { echo 'selected'; } ?>>5</option>
|
1051 |
+
<option value="6" <?php if( $cff_cols == 6 ) { echo 'selected'; } ?>>6</option>
|
1052 |
+
</select>
|
1053 |
+
|
1054 |
+
<br />
|
1055 |
+
<div class="cff-mobile-col-settings" <?php if( intval($cff_cols) > 1 ) echo 'style="display:block;"' ?>>
|
1056 |
+
<div class="cff-row">
|
1057 |
+
<label title="Click for shortcode option">Mobile Columns:</label><code class="cff_shortcode"> colsmobile
|
1058 |
+
Eg: colsmobile=2</code>
|
1059 |
+
<select name="cff_cols_mobile" id="cff_cols_mobile">
|
1060 |
+
<option value="1" <?php if( $cff_cols_mobile == 1 ) { echo 'selected'; } ?>>1</option>
|
1061 |
+
<option value="2" <?php if( $cff_cols_mobile == 2 ) { echo 'selected'; } ?>>2</option>
|
1062 |
+
</select>
|
1063 |
+
</div>
|
1064 |
+
</div>
|
1065 |
+
|
1066 |
+
</td>
|
1067 |
+
</tr>
|
1068 |
+
|
1069 |
+
</tbody>
|
1070 |
+
</table>
|
1071 |
+
|
1072 |
+
<?php submit_button(); ?>
|
1073 |
+
|
1074 |
+
<hr id="types" />
|
1075 |
+
<table class="form-table">
|
1076 |
+
<tbody>
|
1077 |
+
<h3><?php _e('Post Types', 'custom-facebook-feed'); ?></h3>
|
1078 |
+
<tr valign="top">
|
1079 |
+
<th scope="row"><?php _e('Only show these types of posts:', 'custom-facebook-feed'); ?><br />
|
1080 |
+
<i style="color: #666; font-size: 11px;"><a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=types" target="_blank"><?php _e('Upgrade to Pro to enable post types, photos, videos and more', 'custom-facebook-feed'); ?></a></i></th>
|
1081 |
+
<td>
|
1082 |
+
<div>
|
1083 |
+
<input name="cff_show_status_type" type="checkbox" id="cff_show_status_type" disabled checked />
|
1084 |
+
<label for="cff_show_status_type"><?php _e('Statuses', 'custom-facebook-feed'); ?></label>
|
1085 |
+
</div>
|
1086 |
+
<div>
|
1087 |
+
<input type="checkbox" name="cff_show_event_type" id="cff_show_event_type" disabled checked />
|
1088 |
+
<label for="cff_show_event_type"><?php _e('Events', 'custom-facebook-feed'); ?></label>
|
1089 |
+
</div>
|
1090 |
+
<div>
|
1091 |
+
<input type="checkbox" name="cff_show_photos_type" id="cff_show_photos_type" disabled checked />
|
1092 |
+
<label for="cff_show_photos_type"><?php _e('Photos', 'custom-facebook-feed'); ?></label>
|
1093 |
+
</div>
|
1094 |
+
<div>
|
1095 |
+
<input type="checkbox" name="cff_show_video_type" id="cff_show_video_type" disabled checked />
|
1096 |
+
<label for="cff_show_video_type"><?php _e('Videos', 'custom-facebook-feed'); ?></label>
|
1097 |
+
</div>
|
1098 |
+
<div>
|
1099 |
+
<input type="checkbox" name="cff_show_links_type" id="cff_show_links_type" disabled checked />
|
1100 |
+
<label for="cff_show_links_type"><?php _e('Links', 'custom-facebook-feed'); ?></label>
|
1101 |
+
</div>
|
1102 |
+
<div>
|
1103 |
+
<input type="checkbox" name="cff_show_links_type" id="cff_show_links_type" disabled checked />
|
1104 |
+
<label for="cff_show_links_type"><?php _e('Albums', 'custom-facebook-feed'); ?></label>
|
1105 |
+
</div>
|
1106 |
+
</td>
|
1107 |
+
</tr>
|
1108 |
+
</tbody>
|
1109 |
+
</table>
|
1110 |
+
|
1111 |
+
<hr />
|
1112 |
+
|
1113 |
+
<table class="form-table">
|
1114 |
+
<tbody>
|
1115 |
+
<h3><?php _e('Header', 'custom-facebook-feed'); ?></h3>
|
1116 |
+
<tr valign="top">
|
1117 |
+
<th class="bump-left" scope="row"><label><?php _e('Show Feed Header', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> showheader
|
1118 |
+
Eg: showheader=true</code></th>
|
1119 |
+
<td>
|
1120 |
+
<input type="checkbox" name="cff_show_header" id="cff_show_header" <?php if($cff_show_header == true) echo 'checked="checked"' ?> />
|
1121 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is the header?', 'custom-facebook-feed'); ?></a>
|
1122 |
+
<p class="cff-tooltip cff-more-info"><?php _e("The header allows you to display text and an icon at the top of your feed. Customize the text, style, and layout of the header using the settings below.", "custom-facebook-feed"); ?></p>
|
1123 |
+
</td>
|
1124 |
+
</tr>
|
1125 |
+
|
1126 |
+
<tbody>
|
1127 |
+
|
1128 |
+
<tr valign="top" class="cff-header-type">
|
1129 |
+
<th class="bump-left" scope="row"><label><?php _e('Header Type'); ?></label><code class="cff_shortcode"> headertype
|
1130 |
+
Eg: headertype=visual</code></th>
|
1131 |
+
<td>
|
1132 |
+
<select name="cff_header_type" id="cff_header_type" style="width: 100px;">
|
1133 |
+
<option value="text" <?php if($cff_header_type == "text") echo 'selected="selected"' ?> ><?php _e('Text'); ?></option>
|
1134 |
+
<option value="visual" <?php if($cff_header_type == "visual") echo 'selected="selected"' ?> ><?php _e('Visual'); ?></option>
|
1135 |
+
</select>
|
1136 |
+
|
1137 |
+
<div class="cff-header-options">
|
1138 |
+
<table>
|
1139 |
+
<tbody class="cff-facebook-header">
|
1140 |
+
<tr valign="top">
|
1141 |
+
<th class="bump-left" scope="row"><label><?php _e('Facebook Header Elements', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> include exclude
|
1142 |
+
Eg: headerinc=cover,name
|
1143 |
+
Eg: headerexclude=about
|
1144 |
+
|
1145 |
+
Options: cover,name,about</code></th>
|
1146 |
+
<td>
|
1147 |
+
<div>
|
1148 |
+
<input name="cff_header_cover" type="checkbox" id="cff_header_cover" <?php if($cff_header_cover == true) echo "checked"; ?> />
|
1149 |
+
<label for="cff_header_cover">
|
1150 |
+
<?php _e('Cover Photo', 'custom-facebook-feed'); ?>
|
1151 |
+
</label>
|
1152 |
+
</div>
|
1153 |
+
<div>
|
1154 |
+
<input name="cff_header_name" type="checkbox" id="cff_header_name" <?php if($cff_header_name == true) echo "checked"; ?> />
|
1155 |
+
<label for="cff_header_name">
|
1156 |
+
<?php _e('Name and Avatar', 'custom-facebook-feed'); ?>
|
1157 |
+
</label>
|
1158 |
+
</div>
|
1159 |
+
<div>
|
1160 |
+
<input name="cff_header_bio" type="checkbox" id="cff_header_bio" <?php if($cff_header_bio == true) echo "checked"; ?> />
|
1161 |
+
<label for="cff_header_bio">
|
1162 |
+
<?php _e('About Info (bio and likes)', 'custom-facebook-feed'); ?>
|
1163 |
+
</label>
|
1164 |
+
</div>
|
1165 |
+
</td>
|
1166 |
+
</tr>
|
1167 |
+
<tr valign="top">
|
1168 |
+
<th class="bump-left" scope="row"><label><?php _e('Cover Photo Height', 'custom-facebook-feed'); ?></label></th>
|
1169 |
+
<td>
|
1170 |
+
<input style="width:70px" name="cff_header_cover_height" type="text" id="cff_header_cover_height" value="<?php echo $cff_header_cover_height; ?>"/> px
|
1171 |
+
</td>
|
1172 |
+
</tr>
|
1173 |
+
</tbody>
|
1174 |
+
<tbody class="cff-text-header">
|
1175 |
+
<tr>
|
1176 |
+
<th class="bump-left cff-text-header" scope="row"><label><?php _e('Header Text'); ?></label><code class="cff_shortcode"> headertext
|
1177 |
+
Eg: headertext='Facebook Feed'</code></th>
|
1178 |
+
<td>
|
1179 |
+
<input name="cff_header_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_header_text ) ); ?>" size="30" />
|
1180 |
+
</td>
|
1181 |
+
</tr>
|
1182 |
+
<tr valign="top">
|
1183 |
+
<th class="bump-left" scope="row"><label><?php _e('Background Color'); ?></label><code class="cff_shortcode"> headerbg
|
1184 |
+
Eg: headerbg=DDD</code></th>
|
1185 |
+
<td>
|
1186 |
+
<input name="cff_header_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_bg_color) ); ?>" class="cff-colorpicker" />
|
1187 |
+
</td>
|
1188 |
+
</tr>
|
1189 |
+
</tr>
|
1190 |
+
<th class="bump-left" scope="row"><label><?php _e('Padding/Spacing'); ?></label><code class="cff_shortcode"> headerpadding
|
1191 |
+
Eg: headerpadding=20px</code></th>
|
1192 |
+
<td>
|
1193 |
+
<input name="cff_header_padding" type="text" value="<?php esc_attr_e( $cff_header_padding ); ?>" size="6" />
|
1194 |
+
<i style="color: #666; font-size: 11px;">Eg. 20px</i>
|
1195 |
+
</td>
|
1196 |
+
</tr>
|
1197 |
+
<tr>
|
1198 |
+
<th class="bump-left" scope="row"><label><?php _e('Icon Type'); ?></label><code class="cff_shortcode"> headericon
|
1199 |
+
Eg: headericon=facebook</code></th>
|
1200 |
+
<td>
|
1201 |
+
<select name="cff_header_icon" id="cff-header-icon">
|
1202 |
+
<option value="facebook-square" <?php if($cff_header_icon == "facebook-square") echo 'selected="selected"' ?> >Facebook 1</option>
|
1203 |
+
<option value="facebook" <?php if($cff_header_icon == "facebook") echo 'selected="selected"' ?> >Facebook 2</option>
|
1204 |
+
<option value="calendar" <?php if($cff_header_icon == "calendar") echo 'selected="selected"' ?> >Events 1</option>
|
1205 |
+
<option value="calendar-o" <?php if($cff_header_icon == "calendar-o") echo 'selected="selected"' ?> >Events 2</option>
|
1206 |
+
<option value="picture-o" <?php if($cff_header_icon == "picture-o") echo 'selected="selected"' ?> >Photos</option>
|
1207 |
+
<option value="users" <?php if($cff_header_icon == "users") echo 'selected="selected"' ?> >People</option>
|
1208 |
+
<option value="thumbs-o-up" <?php if($cff_header_icon == "thumbs-o-up") echo 'selected="selected"' ?> >Thumbs Up 1</option>
|
1209 |
+
<option value="thumbs-up" <?php if($cff_header_icon == "thumbs-up") echo 'selected="selected"' ?> >Thumbs Up 2</option>
|
1210 |
+
<option value="comment-o" <?php if($cff_header_icon == "comment-o") echo 'selected="selected"' ?> >Speech Bubble 1</option>
|
1211 |
+
<option value="comment" <?php if($cff_header_icon == "comment") echo 'selected="selected"' ?> >Speech Bubble 2</option>
|
1212 |
+
<option value="ticket" <?php if($cff_header_icon == "ticket") echo 'selected="selected"' ?> >Ticket</option>
|
1213 |
+
<option value="list-alt" <?php if($cff_header_icon == "list-alt") echo 'selected="selected"' ?> >News List</option>
|
1214 |
+
<option value="file" <?php if($cff_header_icon == "file") echo 'selected="selected"' ?> >File 1</option>
|
1215 |
+
<option value="file-o" <?php if($cff_header_icon == "file-o") echo 'selected="selected"' ?> >File 2</option>
|
1216 |
+
<option value="file-text" <?php if($cff_header_icon == "file-text") echo 'selected="selected"' ?> >File 3</option>
|
1217 |
+
<option value="file-text-o" <?php if($cff_header_icon == "file-text-o") echo 'selected="selected"' ?> >File 4</option>
|
1218 |
+
<option value="youtube-play" <?php if($cff_header_icon == "youtube-play") echo 'selected="selected"' ?> >Video</option>
|
1219 |
+
<option value="youtube" <?php if($cff_header_icon == "youtube") echo 'selected="selected"' ?> >YouTube</option>
|
1220 |
+
<option value="vimeo-square" <?php if($cff_header_icon == "vimeo-square") echo 'selected="selected"' ?> >Vimeo</option>
|
1221 |
+
</select>
|
1222 |
+
|
1223 |
+
<i id="cff-header-icon-example" class="fa fa-facebook-square"></i>
|
1224 |
+
</td>
|
1225 |
+
</tr>
|
1226 |
+
<tr>
|
1227 |
+
<th class="bump-left" scope="row"><label><?php _e('Icon Color'); ?></label><code class="cff_shortcode"> headericoncolor
|
1228 |
+
Eg: headericoncolor=FFF</code></th>
|
1229 |
+
<td>
|
1230 |
+
<input name="cff_header_icon_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_icon_color) ); ?>" class="cff-colorpicker" />
|
1231 |
+
</td>
|
1232 |
+
</tr>
|
1233 |
+
<tr>
|
1234 |
+
<th class="bump-left" scope="row"><label><?php _e('Icon Size'); ?></label><code class="cff_shortcode"> headericonsize
|
1235 |
+
Eg: headericonsize=28</code></th>
|
1236 |
+
<td>
|
1237 |
+
<select name="cff_header_icon_size" id="cff-header-icon-size" style="width: 80px;">
|
1238 |
+
<option value="10" <?php if($cff_header_icon_size == "10") echo 'selected="selected"' ?> >10px</option>
|
1239 |
+
<option value="11" <?php if($cff_header_icon_size == "11") echo 'selected="selected"' ?> >11px</option>
|
1240 |
+
<option value="12" <?php if($cff_header_icon_size == "12") echo 'selected="selected"' ?> >12px</option>
|
1241 |
+
<option value="13" <?php if($cff_header_icon_size == "13") echo 'selected="selected"' ?> >13px</option>
|
1242 |
+
<option value="14" <?php if($cff_header_icon_size == "14") echo 'selected="selected"' ?> >14px</option>
|
1243 |
+
<option value="16" <?php if($cff_header_icon_size == "16") echo 'selected="selected"' ?> >16px</option>
|
1244 |
+
<option value="18" <?php if($cff_header_icon_size == "18") echo 'selected="selected"' ?> >18px</option>
|
1245 |
+
<option value="20" <?php if($cff_header_icon_size == "20") echo 'selected="selected"' ?> >20px</option>
|
1246 |
+
<option value="24" <?php if($cff_header_icon_size == "24") echo 'selected="selected"' ?> >24px</option>
|
1247 |
+
<option value="28" <?php if($cff_header_icon_size == "28") echo 'selected="selected"' ?> >28px</option>
|
1248 |
+
<option value="32" <?php if($cff_header_icon_size == "32") echo 'selected="selected"' ?> >32px</option>
|
1249 |
+
<option value="36" <?php if($cff_header_icon_size == "36") echo 'selected="selected"' ?> >36px</option>
|
1250 |
+
<option value="42" <?php if($cff_header_icon_size == "42") echo 'selected="selected"' ?> >42px</option>
|
1251 |
+
<option value="48" <?php if($cff_header_icon_size == "48") echo 'selected="selected"' ?> >48px</option>
|
1252 |
+
<option value="54" <?php if($cff_header_icon_size == "54") echo 'selected="selected"' ?> >54px</option>
|
1253 |
+
<option value="60" <?php if($cff_header_icon_size == "60") echo 'selected="selected"' ?> >60px</option>
|
1254 |
+
</select>
|
1255 |
+
</td>
|
1256 |
+
</tr>
|
1257 |
+
</tbody>
|
1258 |
+
</table>
|
1259 |
+
</div>
|
1260 |
+
</td>
|
1261 |
+
</tr>
|
1262 |
+
</tbody>
|
1263 |
+
|
1264 |
+
<tbody class="cff-header-text-styles">
|
1265 |
+
<tr valign="top">
|
1266 |
+
<th class="bump-left" scope="row"><label><?php _e('Display outside scrollable area'); ?></label><code class="cff_shortcode"> headeroutside
|
1267 |
+
Eg: headeroutside=true</code></th>
|
1268 |
+
<td>
|
1269 |
+
<input type="checkbox" name="cff_header_outside" id="cff_header_outside" <?php if($cff_header_outside == true) echo 'checked="checked"' ?> />
|
1270 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1271 |
+
<p class="cff-tooltip cff-more-info"><?php _e("This positions the Header outside of the feed container. It is useful if your feed has a vertical scrollbar as it places it outside of the scrollable area and fixes it at the top."); ?></p>
|
1272 |
+
</td>
|
1273 |
+
</tr>
|
1274 |
+
<tr>
|
1275 |
+
<th class="bump-left" scope="row"><label><?php _e('Text Size'); ?></label><code class="cff_shortcode"> headertextsize
|
1276 |
+
Eg: headertextsize=28</code></th>
|
1277 |
+
<td>
|
1278 |
+
<select name="cff_header_text_size" class="cff-text-size-setting">
|
1279 |
+
<option value="inherit" <?php if($cff_header_text_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
1280 |
+
<option value="10" <?php if($cff_header_text_size == "10") echo 'selected="selected"' ?> >10px</option>
|
1281 |
+
<option value="11" <?php if($cff_header_text_size == "11") echo 'selected="selected"' ?> >11px</option>
|
1282 |
+
<option value="12" <?php if($cff_header_text_size == "12") echo 'selected="selected"' ?> >12px</option>
|
1283 |
+
<option value="13" <?php if($cff_header_text_size == "13") echo 'selected="selected"' ?> >13px</option>
|
1284 |
+
<option value="14" <?php if($cff_header_text_size == "14") echo 'selected="selected"' ?> >14px</option>
|
1285 |
+
<option value="16" <?php if($cff_header_text_size == "16") echo 'selected="selected"' ?> >16px</option>
|
1286 |
+
<option value="18" <?php if($cff_header_text_size == "18") echo 'selected="selected"' ?> >18px</option>
|
1287 |
+
<option value="20" <?php if($cff_header_text_size == "20") echo 'selected="selected"' ?> >20px</option>
|
1288 |
+
<option value="24" <?php if($cff_header_text_size == "24") echo 'selected="selected"' ?> >24px</option>
|
1289 |
+
<option value="28" <?php if($cff_header_text_size == "28") echo 'selected="selected"' ?> >28px</option>
|
1290 |
+
<option value="32" <?php if($cff_header_text_size == "32") echo 'selected="selected"' ?> >32px</option>
|
1291 |
+
<option value="36" <?php if($cff_header_text_size == "36") echo 'selected="selected"' ?> >36px</option>
|
1292 |
+
<option value="42" <?php if($cff_header_text_size == "42") echo 'selected="selected"' ?> >42px</option>
|
1293 |
+
<option value="48" <?php if($cff_header_text_size == "48") echo 'selected="selected"' ?> >48px</option>
|
1294 |
+
<option value="54" <?php if($cff_header_text_size == "54") echo 'selected="selected"' ?> >54px</option>
|
1295 |
+
<option value="60" <?php if($cff_header_text_size == "60") echo 'selected="selected"' ?> >60px</option>
|
1296 |
+
</select>
|
1297 |
+
</td>
|
1298 |
+
</tr>
|
1299 |
+
<tr>
|
1300 |
+
<th class="bump-left" scope="row"><label><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> headertextweight
|
1301 |
+
Eg: headertextweight=bold</code></th>
|
1302 |
+
<td>
|
1303 |
+
<select name="cff_header_text_weight" class="cff-text-size-setting">
|
1304 |
+
<option value="inherit" <?php if($cff_header_text_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
1305 |
+
<option value="normal" <?php if($cff_header_text_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
1306 |
+
<option value="bold" <?php if($cff_header_text_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
1307 |
+
</select>
|
1308 |
+
</td>
|
1309 |
+
</tr>
|
1310 |
+
<tr>
|
1311 |
+
<th class="bump-left" scope="row"><label><?php _e('Text Color'); ?></label><code class="cff_shortcode"> headertextcolor
|
1312 |
+
Eg: headertextcolor=333</code></th>
|
1313 |
+
<td>
|
1314 |
+
<input name="cff_header_text_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_text_color) ); ?>" class="cff-colorpicker" />
|
1315 |
+
</td>
|
1316 |
+
</tr>
|
1317 |
+
<tr id="author"><!-- Quick link --></tr>
|
1318 |
+
</tbody>
|
1319 |
+
</table>
|
1320 |
+
|
1321 |
+
<?php submit_button(); ?>
|
1322 |
+
|
1323 |
+
<hr id="likebox" /><!-- Quick link -->
|
1324 |
+
|
1325 |
+
<h3><?php _e('Like Box / Page Plugin', 'custom-facebook-feed'); ?></h3>
|
1326 |
+
<table class="form-table">
|
1327 |
+
<tbody>
|
1328 |
+
<tr valign="top">
|
1329 |
+
<th class="bump-left" scope="row"><label><?php _e('Show the Like Box', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> include exclude
|
1330 |
+
Eg: include/exclude=likebox</code></th>
|
1331 |
+
<td>
|
1332 |
+
<input type="checkbox" name="cff_show_like_box" id="cff_show_like_box" <?php if($cff_show_like_box == true) echo 'checked="checked"' ?> /> <?php _e('Yes', 'custom-facebook-feed'); ?>
|
1333 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is the Like Box?'); ?></a>
|
1334 |
+
<p class="cff-tooltip cff-more-info"><?php _e("The Like Box is an official Facebook widget that we include at the bottom or top of the feed. It contains information about your Facebook Page and allows users to 'like' it directly on your site."); ?></p>
|
1335 |
+
</td>
|
1336 |
+
</tr>
|
1337 |
+
<tr valign="top">
|
1338 |
+
<th class="bump-left" scope="row"><label><?php _e('Position', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxpos
|
1339 |
+
Eg: likeboxpos=top</code></th>
|
1340 |
+
<td>
|
1341 |
+
<select name="cff_like_box_position">
|
1342 |
+
<option value="bottom" <?php if($cff_like_box_position == "bottom") echo 'selected="selected"' ?> ><?php _e('Bottom of feed', 'custom-facebook-feed'); ?></option>
|
1343 |
+
<option value="top" <?php if($cff_like_box_position == "top") echo 'selected="selected"' ?> ><?php _e('Top of feed', 'custom-facebook-feed'); ?></option>
|
1344 |
+
</select>
|
1345 |
+
</td>
|
1346 |
+
</tr>
|
1347 |
+
<tr valign="top">
|
1348 |
+
<th class="bump-left" scope="row"><label><?php _e('Display outside the scrollable area', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxoutside
|
1349 |
+
Eg: likeboxoutside=true</code></th>
|
1350 |
+
<td>
|
1351 |
+
<input type="checkbox" name="cff_like_box_outside" id="cff_like_box_outside" <?php if($cff_like_box_outside == true) echo 'checked="checked"' ?> />
|
1352 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1353 |
+
<p class="cff-tooltip cff-more-info"><?php _e("This positions the Like Box widget outside of the feed container. It is useful if your feed has a vertical scrollbar as it places it outside of the scrollable area and fixes it at the top or bottom."); ?></p>
|
1354 |
+
</td>
|
1355 |
+
</tr>
|
1356 |
+
|
1357 |
+
<tr valign="top">
|
1358 |
+
<th class="bump-left" scope="row"><label><?php _e('Show faces of fans', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxfaces
|
1359 |
+
Eg: likeboxfaces=true</code></th>
|
1360 |
+
<td>
|
1361 |
+
<input type="checkbox" name="cff_like_box_faces" id="cff_like_box_faces" <?php if($cff_like_box_faces == true) echo 'checked="checked"' ?> />
|
1362 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1363 |
+
<p class="cff-tooltip cff-more-info"><?php _e("This will display thumbnail photos within the Like Box of some of the people who like your page."); ?></p>
|
1364 |
+
</td>
|
1365 |
+
</tr>
|
1366 |
+
<tr valign="top">
|
1367 |
+
<th class="bump-left" scope="row"><label><?php _e('Include the Cover Photo', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxcover
|
1368 |
+
Eg: likeboxcover=true</code></th>
|
1369 |
+
<td>
|
1370 |
+
<input type="checkbox" name="cff_like_box_cover" id="cff_like_box_cover" <?php if($cff_like_box_cover == true) echo 'checked="checked"' ?> />
|
1371 |
+
</td>
|
1372 |
+
</tr>
|
1373 |
+
<tr valign="top">
|
1374 |
+
<th class="bump-left" scope="row"><label><?php _e('Use a small header', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxsmallheader
|
1375 |
+
Eg: likeboxsmallheader=true</code></th>
|
1376 |
+
<td>
|
1377 |
+
<input type="checkbox" name="cff_like_box_small_header" id="cff_like_box_small_header" <?php if($cff_like_box_small_header == true) echo 'checked="checked"' ?> />
|
1378 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1379 |
+
<p class="cff-tooltip cff-more-info"><?php _e("This will display a shorter version of the Like Box with a slimmer cover photo and less information."); ?></p>
|
1380 |
+
</td>
|
1381 |
+
</tr>
|
1382 |
+
<tr valign="top">
|
1383 |
+
<th class="bump-left" scope="row"><label><?php _e('Hide custom call to action button', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxhidebtn
|
1384 |
+
Eg: likeboxhidebtn=true</code></th>
|
1385 |
+
<td>
|
1386 |
+
<input type="checkbox" name="cff_like_box_hide_cta" id="cff_like_box_hide_cta" <?php if($cff_like_box_hide_cta == true) echo 'checked="checked"' ?> />
|
1387 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1388 |
+
<p class="cff-tooltip cff-more-info"><?php _e("If you have a custom 'Call To Action' button for your Facebook Page then this will hide it and display the default Like Box button."); ?></p>
|
1389 |
+
</td>
|
1390 |
+
</tr>
|
1391 |
+
<tr valign="top">
|
1392 |
+
<th class="bump-left" for="cff_likebox_width" scope="row"><label><?php _e('Custom Like Box Width', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxwidth
|
1393 |
+
Eg: likeboxwidth=500</code></th>
|
1394 |
+
<td>
|
1395 |
+
<input name="cff_likebox_width" type="text" value="<?php esc_attr_e( $cff_likebox_width, 'custom-facebook-feed' ); ?>" size="3" /><span class="cff-pixel-label">px</span>
|
1396 |
+
<span><i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Default: 340, Min: 180, Max: 500', 'custom-facebook-feed'); ?></i></span>
|
1397 |
+
</td>
|
1398 |
+
</tr>
|
1399 |
+
</tbody>
|
1400 |
+
</table>
|
1401 |
+
|
1402 |
+
<?php submit_button(); ?>
|
1403 |
+
|
1404 |
+
<hr />
|
1405 |
+
|
1406 |
+
<h3><?php _e('"Load More" button'); ?></h3>
|
1407 |
+
<a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=loadmore" target="_blank">Upgrade to Pro to enable the Load More button</a>
|
1408 |
+
<p class="submit cff-expand-button">
|
1409 |
+
<a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
|
1410 |
+
</p>
|
1411 |
+
<table class="form-table cff-expandable-options">
|
1412 |
+
<tbody>
|
1413 |
+
<tr valign="top" class="cff-pro">
|
1414 |
+
<th class="bump-left" scope="row"><label><?php _e('Show "Load More" Button'); ?></label></th>
|
1415 |
+
<td>
|
1416 |
+
<input type="checkbox" name="cff_load_more" id="cff_load_more" disabled />
|
1417 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1418 |
+
<p class="cff-tooltip cff-more-info"><?php _e("The Load More button is added to the bottom of your feed and allows you to dynamically load more posts into your feed. Use the button below to reveal customization settings for the button."); ?></p>
|
1419 |
+
</td>
|
1420 |
+
</tr>
|
1421 |
+
<tr valign="top" class="cff-pro">
|
1422 |
+
<th class="bump-left" scope="row"><label><?php _e('Button Background Color'); ?></label></th>
|
1423 |
+
<td>
|
1424 |
+
<input name="cff_load_more_bg" type="text" class="cff-colorpicker" disabled />
|
1425 |
+
</td>
|
1426 |
+
</tr>
|
1427 |
+
<tr valign="top" class="cff-pro">
|
1428 |
+
<th class="bump-left" scope="row"><label><?php _e('Button Hover Color'); ?></label></th>
|
1429 |
+
<td>
|
1430 |
+
<input name="cff_load_more_bg_hover" type="text" class="cff-colorpicker" disabled />
|
1431 |
+
</td>
|
1432 |
+
</tr>
|
1433 |
+
<tr valign="top" class="cff-pro">
|
1434 |
+
<th class="bump-left" scope="row"><label><?php _e('Button Text Color'); ?></label></th>
|
1435 |
+
<td>
|
1436 |
+
<input name="cff_load_more_text_color" type="text" class="cff-colorpicker" disabled />
|
1437 |
+
</td>
|
1438 |
+
</tr>
|
1439 |
+
<tr valign="top" class="cff-pro">
|
1440 |
+
<th class="bump-left" scope="row"><label><?php _e('Button Text'); ?></label></th>
|
1441 |
+
<td>
|
1442 |
+
<input name="cff_load_more_text" type="text" size="30" disabled />
|
1443 |
+
</td>
|
1444 |
+
</tr>
|
1445 |
+
</tbody>
|
1446 |
+
</table>
|
1447 |
+
|
1448 |
+
<hr />
|
1449 |
+
|
1450 |
+
<h3><?php _e('Lightbox'); ?></h3>
|
1451 |
+
<a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=lightbox" target="_blank">Upgrade to Pro to enable the Lightbox</a>
|
1452 |
+
<p class="submit cff-expand-button">
|
1453 |
+
<a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
|
1454 |
+
</p>
|
1455 |
+
<table class="form-table cff-expandable-options">
|
1456 |
+
<tbody>
|
1457 |
+
<tr valign="top" class="cff-pro">
|
1458 |
+
<th class="bump-left" scope="row"><label><?php _e('Disable Popup Lightbox'); ?></label><code class="cff_shortcode"> disablelightbox
|
1459 |
+
Eg: disablelightbox=true</code></th>
|
1460 |
+
<td>
|
1461 |
+
<input name="cff_disable_lightbox" type="checkbox" id="cff_disable_lightbox" disabled />
|
1462 |
+
<label for="cff_disable_lightbox"><?php _e('Disable'); ?></label>
|
1463 |
+
</td>
|
1464 |
+
</tr>
|
1465 |
+
<tr valign="top" class="cff-pro">
|
1466 |
+
<th class="bump-left" scope="row"><label><?php _e('Background Color'); ?></label></th>
|
1467 |
+
<td>
|
1468 |
+
<input name="cff_lightbox_bg_color" type="text" class="cff-colorpicker" disabled />
|
1469 |
+
</td>
|
1470 |
+
</tr>
|
1471 |
+
<tr valign="top" class="cff-pro">
|
1472 |
+
<th class="bump-left" scope="row"><label><?php _e('Text Color'); ?></label></th>
|
1473 |
+
<td>
|
1474 |
+
<input name="cff_lightbox_text_color" type="text" class="cff-colorpicker" disabled />
|
1475 |
+
</td>
|
1476 |
+
</tr>
|
1477 |
+
<tr valign="top" class="cff-pro">
|
1478 |
+
<th class="bump-left" scope="row"><label><?php _e('Link Color'); ?></label></th>
|
1479 |
+
<td>
|
1480 |
+
<input name="cff_lightbox_link_color" type="text" class="cff-colorpicker" disabled />
|
1481 |
+
</td>
|
1482 |
+
</tr>
|
1483 |
+
<tr valign="top" class="cff-pro">
|
1484 |
+
<th class="bump-left" scope="row"><label><?php _e('Show Comments in Lightbox'); ?></label><code class="cff_shortcode"> lightboxcomments
|
1485 |
+
Eg: lightboxcomments=true</code></th>
|
1486 |
+
<td>
|
1487 |
+
<input type="checkbox" name="cff_lightbox_comments" id="cff_lightbox_comments" disabled/>
|
1488 |
+
<span><i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('For timeline posts only'); ?></i></span>
|
1489 |
+
</td>
|
1490 |
+
</tr>
|
1491 |
+
</tbody>
|
1492 |
+
</table>
|
1493 |
+
|
1494 |
+
<hr />
|
1495 |
+
|
1496 |
+
<h3><?php _e('Filter Content by String'); ?></h3>
|
1497 |
+
<a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=filtering" target="_blank">Upgrade to Pro to enable Filtering</a>
|
1498 |
+
<p class="submit cff-expand-button">
|
1499 |
+
<a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
|
1500 |
+
</p>
|
1501 |
+
<table class="form-table cff-expandable-options">
|
1502 |
+
<tbody>
|
1503 |
+
<tr valign="top" class="cff-pro">
|
1504 |
+
<th class="bump-left" scope="row"><label><?php _e('Only show posts containing:'); ?></label></th>
|
1505 |
+
<td>
|
1506 |
+
<input name="cff_filter_string" type="text" size="25" disabled />
|
1507 |
+
<i style="color: #666; font-size: 11px;">Eg. #smash, balloon </i>
|
1508 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1509 |
+
<p class="cff-tooltip cff-more-info"><?php _e("You can use this setting to only display posts containing these text strings. Separate multiple strings using commas. If only a few posts, or none at all, are displayed then you may need to increase the plugin's 'Post Limit' settings. See <a href='https://smashballoon.com/filtering-your-facebook-posts/' target='_blank'>this FAQ</a> to learn more about how filtering works."); ?></p>
|
1510 |
+
</td>
|
1511 |
+
</tr>
|
1512 |
+
<tr valign="top" class="cff-pro">
|
1513 |
+
<th class="bump-left" scope="row"><label><?php _e("Don't show posts containing:"); ?></label></th>
|
1514 |
+
<td>
|
1515 |
+
<input name="cff_exclude_string" type="text" size="25" disabled />
|
1516 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1517 |
+
<p class="cff-tooltip cff-more-info"><?php _e("You can use this setting to remove any posts containing these text strings. Separate multiple strings using commas."); ?></p>
|
1518 |
+
</td>
|
1519 |
+
</tr>
|
1520 |
+
</tbody>
|
1521 |
+
</table>
|
1522 |
+
|
1523 |
+
<hr />
|
1524 |
+
|
1525 |
+
<?php submit_button(); ?>
|
1526 |
+
|
1527 |
+
<p style="padding-top: 5px;"><i class="fa fa-life-ring" aria-hidden="true"></i> <?php _e('Having trouble using the plugin? Check out the', 'custom-facebook-feed'); ?> <a href='admin.php?page=cff-top&tab=support'><?php _e('Support', 'custom-facebook-feed'); ?></a> <?php _e('tab', 'custom-facebook-feed'); ?>.</p>
|
1528 |
+
|
1529 |
+
<div class="cff_quickstart">
|
1530 |
+
<h3><i class="fa fa-rocket" aria-hidden="true"></i> Display your feed</h3>
|
1531 |
+
<p>Copy and paste this shortcode directly into the page, post or widget where you'd like to display the feed: <input type="text" value="[custom-facebook-feed]" size="22" readonly="readonly" style="text-align: center;" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)."></p>
|
1532 |
+
<p>Find out how to display <a href="https://smashballoon.com/using-shortcode-options-customize-facebook-feeds/" target="_blank"><b>multiple feeds</b></a>.</p>
|
1533 |
+
</div>
|
1534 |
+
|
1535 |
+
|
1536 |
+
<a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo CFF_PLUGIN_URL. 'admin/assets/img/pro.png?2019' ?>" /></a>
|
1537 |
+
|
1538 |
+
<?php } //End General tab ?>
|
1539 |
+
<?php if( $cff_active_tab == 'post_layout' ) { //Start Post Layout tab ?>
|
1540 |
+
|
1541 |
+
<p class="cff_contents_links" id="layout">
|
1542 |
+
<span>Jump to: </span>
|
1543 |
+
<a href="#showhide">Show/Hide</a>
|
1544 |
+
</p>
|
1545 |
+
|
1546 |
+
<input type="hidden" name="<?php echo $style_post_layout_hidden_field_name; ?>" value="Y">
|
1547 |
+
<br />
|
1548 |
+
<h3><?php _e('Post Layouts', 'custom-facebook-feed'); ?></h3>
|
1549 |
+
<a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=layouts" target="_blank"><?php _e('Upgrade to Pro to enable layouts', 'custom-facebook-feed'); ?></a>
|
1550 |
+
<p class="submit cff-expand-button">
|
1551 |
+
<a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
|
1552 |
+
</p>
|
1553 |
+
|
1554 |
+
<div class="form-table cff-expandable-options cff-pro">
|
1555 |
+
<p><?php _e("Choose a layout from the 3 below."); ?>
|
1556 |
+
|
1557 |
+
<div class="cff-layouts">
|
1558 |
+
<div class="cff-layout cff-thumb <?php if($cff_preset_layout == "thumb") echo "cff-layout-selected"; ?>">
|
1559 |
+
<h3><input type="radio" name="cff_preset_layout" id="cff_preset_layout" value="thumb" disabled /> <?php _e('Thumbnail'); ?></h3>
|
1560 |
+
<img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/layout-thumb.png' ?>" alt="Thumbnail Layout" />
|
1561 |
+
|
1562 |
+
</div>
|
1563 |
+
<div class="cff-layout cff-half <?php if($cff_preset_layout == "half") echo "cff-layout-selected"; ?>">
|
1564 |
+
<h3><input type="radio" name="cff_preset_layout" id="cff_preset_layout" value="half" disabled /> <?php _e('Half-width'); ?></h3>
|
1565 |
+
<img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/layout-half.png' ?>" alt="Half Width Layout" />
|
1566 |
+
|
1567 |
+
</div>
|
1568 |
+
<div class="cff-layout cff-full <?php if($cff_preset_layout == "full") echo "cff-layout-selected"; ?>">
|
1569 |
+
<h3><input type="radio" name="cff_preset_layout" id="cff_preset_layout" value="full" disabled /> <?php _e('Full-width'); ?></h3>
|
1570 |
+
<img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/layout-full.png' ?>" alt="Full Width Layout" />
|
1571 |
+
|
1572 |
+
</div>
|
1573 |
+
</div>
|
1574 |
+
|
1575 |
+
<table class="form-table">
|
1576 |
+
<tbody>
|
1577 |
+
<tr class="cff-media-position" class="cff-pro">
|
1578 |
+
<th><label for="cff_media_position" class="bump-left"><?php _e('Photo/Video Position'); ?></label></th>
|
1579 |
+
<td>
|
1580 |
+
<select name="cff_media_position" disabled>
|
1581 |
+
<option value="below">Below Text</option>
|
1582 |
+
<option value="above">Above Text</option>
|
1583 |
+
</select>
|
1584 |
+
</td>
|
1585 |
+
</tr>
|
1586 |
+
<tr class="cff-pro">
|
1587 |
+
<th><label for="cff_media_position" class="bump-left"><?php _e('Photo/Video Position'); ?></label></th>
|
1588 |
+
<td>
|
1589 |
+
<select name="cff_media_position" disabled>
|
1590 |
+
<option value="below">Below Text</option>
|
1591 |
+
<option value="above">Above Text</option>
|
1592 |
+
</select>
|
1593 |
+
<i style="color: #666; font-size: 11px; margin-left: 5px;">Only applies to Full-width layout</i>
|
1594 |
+
</td>
|
1595 |
+
</tr>
|
1596 |
+
<tr class="cff-pro">
|
1597 |
+
<th><label for="cff_enable_narrow" class="bump-left"><?php _e('Always use the Full-width layout when feed is narrow?'); ?></label></th>
|
1598 |
+
<td>
|
1599 |
+
<input name="cff_enable_narrow" type="checkbox" id="cff_enable_narrow" disabled />
|
1600 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1601 |
+
<p class="cff-tooltip cff-more-info"><?php _e("When displaying posts in either a narrow column or on a mobile device the plugin will automatically default to using the 'Full-width' layout as it's better suited to narrow sizes."); ?></p>
|
1602 |
+
</td>
|
1603 |
+
</tr>
|
1604 |
+
<tr class="cff-pro">
|
1605 |
+
<th><label for="cff_one_image" class="bump-left"><?php _e('Only show one image per post'); ?></label></th>
|
1606 |
+
<td>
|
1607 |
+
<input name="cff_one_image" type="checkbox" id="cff_one_image" disabled />
|
1608 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1609 |
+
<p class="cff-tooltip cff-more-info"><?php _e("If a Facebook post contains more than photo then enabling this setting means that only the first photo in the post is displayed."); ?></p>
|
1610 |
+
</td>
|
1611 |
+
</tr>
|
1612 |
+
</tbody>
|
1613 |
+
</table>
|
1614 |
+
</div>
|
1615 |
+
|
1616 |
+
|
1617 |
+
|
1618 |
+
<table class="form-table" id="showhide">
|
1619 |
+
|
1620 |
+
<hr />
|
1621 |
+
<h3><?php _e('Show/Hide'); ?></h3>
|
1622 |
+
<table class="form-table">
|
1623 |
+
<tbody>
|
1624 |
+
<tr valign="top">
|
1625 |
+
<th scope="row"><label><?php _e('Include the following in posts: <i style="font-size: 11px;">(when applicable)</i>'); ?></label><code class="cff_shortcode"> include exclude
|
1626 |
+
Eg: include=text,date,likebox
|
1627 |
+
Eg: exclude=likebox
|
1628 |
+
|
1629 |
+
Options: author, text, desc, sharedlinks, date, eventtitle, eventdetails, link, likebox</code></th>
|
1630 |
+
<td class="cff_show_hide_settings">
|
1631 |
+
<div>
|
1632 |
+
<input name="cff_show_author" type="checkbox" id="cff_show_author" <?php if($cff_show_author == true) echo "checked"; ?> />
|
1633 |
+
<label for="cff_show_author">
|
1634 |
+
<b><?php _e('Author Name and Avatar'); ?></b>
|
1635 |
+
<p class="cff-show-hide-desc"><?php _e("The author name and avatar image that's shown at the top of each timeline post"); ?></p>
|
1636 |
+
</label>
|
1637 |
+
|
1638 |
+
</div>
|
1639 |
+
<div>
|
1640 |
+
<input name="cff_show_text" type="checkbox" id="cff_show_text" <?php if($cff_show_text == true) echo "checked"; ?> />
|
1641 |
+
<label for="cff_show_text">
|
1642 |
+
<b><?php _e('Post Text'); ?></b>
|
1643 |
+
<p class="cff-show-hide-desc"><?php _e("The main text of the Facebook post"); ?></p>
|
1644 |
+
</label>
|
1645 |
+
</div>
|
1646 |
+
<div>
|
1647 |
+
<input type="checkbox" name="cff_show_desc" id="cff_show_desc" <?php if($cff_show_desc == true) echo 'checked="checked"' ?> />
|
1648 |
+
<label for="cff_show_desc">
|
1649 |
+
<b><?php _e('Description Text'); ?></b>
|
1650 |
+
<p class="cff-show-hide-desc"><?php _e("The description text associated with shared photos, videos, or links"); ?></p>
|
1651 |
+
</label>
|
1652 |
+
</div>
|
1653 |
+
<div>
|
1654 |
+
<input type="checkbox" name="cff_show_shared_links" id="cff_show_shared_links" <?php if($cff_show_shared_links == true) echo 'checked="checked"' ?> />
|
1655 |
+
<label for="cff_show_shared_links">
|
1656 |
+
<b><?php _e('Shared Link Box'); ?></b>
|
1657 |
+
<p class="cff-show-hide-desc"><?php _e("The link info box that's created when a link is shared in a Facebook post"); ?></p>
|
1658 |
+
</label>
|
1659 |
+
</div>
|
1660 |
+
<div>
|
1661 |
+
<input type="checkbox" name="cff_show_date" id="cff_show_date" <?php if($cff_show_date == true) echo 'checked="checked"' ?> />
|
1662 |
+
<label for="cff_show_date">
|
1663 |
+
<b><?php _e('Date'); ?></b>
|
1664 |
+
<p class="cff-show-hide-desc"><?php _e("The date of the post"); ?></p>
|
1665 |
+
</label>
|
1666 |
+
</div>
|
1667 |
+
<div class="cff-disabled">
|
1668 |
+
<input type="checkbox" name="cff_show_media" disabled />
|
1669 |
+
<label for="cff_show_media">
|
1670 |
+
<b><?php _e('Photos and Videos'); ?></b>
|
1671 |
+
<p class="cff-show-hide-desc"><?php _e("Any photos or videos in your posts"); ?></p>
|
1672 |
+
</label>
|
1673 |
+
</div>
|
1674 |
+
<div>
|
1675 |
+
<input type="checkbox" name="cff_show_media_link" id="cff_show_media_link" <?php if($cff_show_media_link == true) echo 'checked="checked"' ?> />
|
1676 |
+
<label for="cff_show_media_link">
|
1677 |
+
<b><?php _e('Media link', 'custom-facebook-feed'); ?></b>
|
1678 |
+
<p class="cff-show-hide-desc"><?php _e("Display an icon and link to Facebook if the post contains either a photo or video"); ?></p>
|
1679 |
+
</label>
|
1680 |
+
</div>
|
1681 |
+
<div>
|
1682 |
+
<input type="checkbox" name="cff_show_event_title" id="cff_show_event_title" <?php if($cff_show_event_title == true) echo 'checked="checked"' ?> />
|
1683 |
+
<label for="cff_show_event_title">
|
1684 |
+
<b><?php _e('Event Title'); ?></b>
|
1685 |
+
<p class="cff-show-hide-desc"><?php _e("The title of an event"); ?></p>
|
1686 |
+
</label>
|
1687 |
+
</div>
|
1688 |
+
<div>
|
1689 |
+
<input type="checkbox" name="cff_show_event_details" id="cff_show_event_details" <?php if($cff_show_event_details == true) echo 'checked="checked"' ?> />
|
1690 |
+
<label for="cff_show_event_details">
|
1691 |
+
<b><?php _e('Event Details'); ?></b>
|
1692 |
+
<p class="cff-show-hide-desc"><?php _e("The information associated with an event"); ?></p>
|
1693 |
+
</label>
|
1694 |
+
</div>
|
1695 |
+
<div class="cff-disabled">
|
1696 |
+
<input type="checkbox" name="cff_show_meta" disabled />
|
1697 |
+
<label for="cff_show_meta">
|
1698 |
+
<b><?php _e('Like, Shares, and Comments'); ?></b>
|
1699 |
+
<p class="cff-show-hide-desc"><?php _e("The comments box displayed at the bottom of each timeline post"); ?></p>
|
1700 |
+
</label>
|
1701 |
+
</div>
|
1702 |
+
<div>
|
1703 |
+
<input type="checkbox" name="cff_show_link" id="cff_show_link" <?php if($cff_show_link == true) echo 'checked="checked"' ?> />
|
1704 |
+
<label for="cff_show_link">
|
1705 |
+
<b><?php _e('Post Action Links'); ?></b>
|
1706 |
+
<p class="cff-show-hide-desc"><?php _e('The "View on Facebook" and "Share" links at the bottom of each post'); ?></p>
|
1707 |
+
</label>
|
1708 |
+
</div>
|
1709 |
+
</td>
|
1710 |
+
</tr>
|
1711 |
+
<tr id="poststyle"><!-- Quick link --></tr>
|
1712 |
+
</tbody>
|
1713 |
+
</table>
|
1714 |
+
|
1715 |
+
<?php submit_button(); ?>
|
1716 |
+
<a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo CFF_PLUGIN_URL. 'admin/assets/img/pro.png' ?>" /></a>
|
1717 |
+
<?php } //End Post Layout tab ?>
|
1718 |
+
<?php if( $cff_active_tab == 'typography' ) { //Start Typography tab ?>
|
1719 |
+
|
1720 |
+
<p class="cff_contents_links" id="postitem">
|
1721 |
+
<span>Jump to: </span>
|
1722 |
+
<a href="#postitem">Post Item</a>
|
1723 |
+
<a href="#author">Post Author</a>
|
1724 |
+
<a href="#text">Post Text</a>
|
1725 |
+
<a href="#description">Shared Post Description</a>
|
1726 |
+
<a href="#date">Post Date</a>
|
1727 |
+
<a href="#links">Shared Link Boxes</a>
|
1728 |
+
<a href="#eventtitle">Event Title</a>
|
1729 |
+
<a href="#eventdate">Event Date</a>
|
1730 |
+
<a href="#eventdetails">Event Details</a>
|
1731 |
+
<a href="#comments">Comments Box</a>
|
1732 |
+
<a href="#action">Post Action Links</a>
|
1733 |
+
</p>
|
1734 |
+
|
1735 |
+
<input type="hidden" name="<?php echo $style_typography_hidden_field_name; ?>" value="Y">
|
1736 |
+
<br />
|
1737 |
+
|
1738 |
+
<h3><?php _e('Post Item'); ?></h3>
|
1739 |
+
<table class="form-table">
|
1740 |
+
<tbody>
|
1741 |
+
<tr>
|
1742 |
+
<th class="bump-left" scope="row"><label><?php _e('Post Style'); ?></label><code class="cff_shortcode"> poststyle
|
1743 |
+
Eg: poststyle=regular/boxed</code></th>
|
1744 |
+
<td>
|
1745 |
+
<?php
|
1746 |
+
//If a post style isn't set (eg on initial update) then set it to be regular unless a bgcolor is set
|
1747 |
+
if( $cff_post_style == '' || empty($cff_post_style) ){
|
1748 |
+
$cff_post_style = 'regular';
|
1749 |
+
if( strlen($cff_post_bg_color) > 1 ) $cff_post_style = 'boxed';
|
1750 |
+
}
|
1751 |
+
|
1752 |
+
?>
|
1753 |
+
<div class="cff-layouts">
|
1754 |
+
<div class="cff-post-style cff-layout <?php if($cff_post_style == "regular") echo "cff-layout-selected"; ?>">
|
1755 |
+
<h3><input type="radio" name="cff_post_style" id="cff_post_style" class="cff_post_style" value="regular" <?php if($cff_post_style == "regular") echo "checked"; ?> /> <?php _e('Regular'); ?></h3>
|
1756 |
+
<img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/post-style.png' ?>" alt="Regular Post Style" />
|
1757 |
+
<img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/post-style.png' ?>" alt="Regular Post Style" />
|
1758 |
+
</div>
|
1759 |
+
|
1760 |
+
<div class="cff-post-style cff-boxed cff-layout <?php if($cff_post_style == "boxed") echo "cff-layout-selected"; ?>">
|
1761 |
+
<h3><input type="radio" name="cff_post_style" id="cff_post_style" class="cff_post_style" value="boxed" <?php if($cff_post_style == "boxed") echo "checked"; ?> /> <?php _e('Boxed'); ?></h3>
|
1762 |
+
<img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/post-style.png' ?>" alt="Box Post Style" style="margin-top: -2px;" />
|
1763 |
+
<img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/post-style.png' ?>" alt="Box Post Style" style="margin-top: 2px;" />
|
1764 |
+
</div>
|
1765 |
+
|
1766 |
+
<div class="cff-post-style-settings cff-regular">
|
1767 |
+
|
1768 |
+
<div class="cff-row">
|
1769 |
+
<label><?php _e('Separating Line Color'); ?></label><code class="cff_shortcode"> sepcolor
|
1770 |
+
Eg: sepcolor=CFCFCF</code>
|
1771 |
+
<br />
|
1772 |
+
<input name="cff_sep_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_sep_color) ); ?>" class="cff-colorpicker" />
|
1773 |
+
</div>
|
1774 |
+
<div class="cff-row">
|
1775 |
+
<label><?php _e('Separating Line Thickness'); ?></label><code class="cff_shortcode"> sepsize
|
1776 |
+
Eg: sepsize=3</code>
|
1777 |
+
<br />
|
1778 |
+
<input name="cff_sep_size" type="text" value="<?php esc_attr_e( $cff_sep_size ); ?>" size="1" /><span class="cff-pixel-label">px</span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Leave empty to hide'); ?></i>
|
1779 |
+
</div>
|
1780 |
+
</div>
|
1781 |
+
|
1782 |
+
<div class="cff-post-style-settings cff-boxed">
|
1783 |
+
<div class="cff-row">
|
1784 |
+
<label><?php _e('Background Color'); ?></label><code class="cff_shortcode"> postbgcolor
|
1785 |
+
Eg: postbgcolor=ff0000</code>
|
1786 |
+
<br />
|
1787 |
+
<input name="cff_post_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_post_bg_color) ); ?>" class="cff-colorpicker" />
|
1788 |
+
</div>
|
1789 |
+
<div class="cff-row">
|
1790 |
+
<label><?php _e('Rounded Corner Size'); ?></label><code class="cff_shortcode"> postcorners
|
1791 |
+
Eg: postcorners=10</code>
|
1792 |
+
<br />
|
1793 |
+
<input name="cff_post_rounded" type="text" value="<?php esc_attr_e( $cff_post_rounded ); ?>" size="3" /><span class="cff-pixel-label">px</span> <span><i style="color: #666; font-size: 11px; margin-left: 5px;">Eg. 5</i></span>
|
1794 |
+
</div>
|
1795 |
+
<div class="cff-row">
|
1796 |
+
<label><?php _e('Box Shadow'); ?></label><code class="cff_shortcode"> boxshadow
|
1797 |
+
Eg: boxshadow=true</code>
|
1798 |
+
<br />
|
1799 |
+
<input type="checkbox" name="cff_box_shadow" id="cff_box_shadow" <?php if($cff_box_shadow == true) echo 'checked="checked"' ?> /> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Adds a subtle shadow around the post'); ?></i>
|
1800 |
+
</div>
|
1801 |
+
</div>
|
1802 |
+
|
1803 |
+
</div>
|
1804 |
+
</td>
|
1805 |
+
</tr>
|
1806 |
+
</tbody>
|
1807 |
+
</table>
|
1808 |
+
<hr />
|
1809 |
+
|
1810 |
+
<h3><?php _e('Post Author'); ?></h3>
|
1811 |
+
<table class="form-table">
|
1812 |
+
<tbody>
|
1813 |
+
<tr>
|
1814 |
+
<th class="bump-left"><label for="cff_author_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> authorsize
|
1815 |
+
Eg: authorsize=20</code></th>
|
1816 |
+
<td>
|
1817 |
+
<select name="cff_author_size" class="cff-text-size-setting">
|
1818 |
+
<option value="inherit" <?php if($cff_author_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
1819 |
+
<option value="10" <?php if($cff_author_size == "10") echo 'selected="selected"' ?> >10px</option>
|
1820 |
+
<option value="11" <?php if($cff_author_size == "11") echo 'selected="selected"' ?> >11px</option>
|
1821 |
+
<option value="12" <?php if($cff_author_size == "12") echo 'selected="selected"' ?> >12px</option>
|
1822 |
+
<option value="13" <?php if($cff_author_size == "13") echo 'selected="selected"' ?> >13px</option>
|
1823 |
+
<option value="14" <?php if($cff_author_size == "14") echo 'selected="selected"' ?> >14px</option>
|
1824 |
+
<option value="16" <?php if($cff_author_size == "16") echo 'selected="selected"' ?> >16px</option>
|
1825 |
+
<option value="18" <?php if($cff_author_size == "18") echo 'selected="selected"' ?> >18px</option>
|
1826 |
+
<option value="20" <?php if($cff_author_size == "20") echo 'selected="selected"' ?> >20px</option>
|
1827 |
+
<option value="24" <?php if($cff_author_size == "24") echo 'selected="selected"' ?> >24px</option>
|
1828 |
+
<option value="28" <?php if($cff_author_size == "28") echo 'selected="selected"' ?> >28px</option>
|
1829 |
+
<option value="32" <?php if($cff_author_size == "32") echo 'selected="selected"' ?> >32px</option>
|
1830 |
+
<option value="36" <?php if($cff_author_size == "36") echo 'selected="selected"' ?> >36px</option>
|
1831 |
+
<option value="42" <?php if($cff_author_size == "42") echo 'selected="selected"' ?> >42px</option>
|
1832 |
+
<option value="48" <?php if($cff_author_size == "48") echo 'selected="selected"' ?> >48px</option>
|
1833 |
+
<option value="54" <?php if($cff_author_size == "54") echo 'selected="selected"' ?> >54px</option>
|
1834 |
+
<option value="60" <?php if($cff_author_size == "60") echo 'selected="selected"' ?> >60px</option>
|
1835 |
+
</select>
|
1836 |
+
</td>
|
1837 |
+
</tr>
|
1838 |
+
<tr>
|
1839 |
+
<th class="bump-left"><label for="cff_author_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> authorcolor
|
1840 |
+
Eg: authorcolor=ff0000</code></th>
|
1841 |
+
<td>
|
1842 |
+
<input name="cff_author_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_author_color) ); ?>" class="cff-colorpicker" />
|
1843 |
+
</td>
|
1844 |
+
</tr>
|
1845 |
+
<tr id="text"><!-- Quick link --></tr>
|
1846 |
+
</tbody>
|
1847 |
+
</table>
|
1848 |
+
|
1849 |
+
<div style="margin-top: -15px;">
|
1850 |
+
<?php submit_button(); ?>
|
1851 |
+
</div>
|
1852 |
+
|
1853 |
+
<hr />
|
1854 |
+
|
1855 |
+
<h3><?php _e('Post Text'); ?></h3>
|
1856 |
+
<table class="form-table">
|
1857 |
+
<tbody>
|
1858 |
+
<tr valign="top">
|
1859 |
+
<th class="bump-left" scope="row"><label class="bump-left"><?php _e('Maximum Post Text Length'); ?></label><code class="cff_shortcode"> textlength
|
1860 |
+
Eg: textlength=200</code></th>
|
1861 |
+
<td>
|
1862 |
+
<input name="cff_title_length" type="text" value="<?php esc_attr_e( $cff_title_length_val ); ?>" size="4" /><span class="cff-pixel-label"><?php _e('Characters'); ?></span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Eg. 200'); ?></i>
|
1863 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1864 |
+
<p class="cff-tooltip cff-more-info"><?php _e("If the post text exceeds this length then a 'See More' link will be added. Leave empty to set no maximum length."); ?></p>
|
1865 |
+
</td>
|
1866 |
+
</tr>
|
1867 |
+
<tr>
|
1868 |
+
<th class="bump-left"><label for="cff_title_format" class="bump-left"><?php _e('Format'); ?></label><code class="cff_shortcode"> textformat
|
1869 |
+
Eg: textformat=h4</code></th>
|
1870 |
+
<td>
|
1871 |
+
<select name="cff_title_format" class="cff-text-size-setting">
|
1872 |
+
<option value="p" <?php if($cff_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
|
1873 |
+
<option value="h3" <?php if($cff_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
|
1874 |
+
<option value="h4" <?php if($cff_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
|
1875 |
+
<option value="h5" <?php if($cff_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
|
1876 |
+
<option value="h6" <?php if($cff_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
|
1877 |
+
</select>
|
1878 |
+
</td>
|
1879 |
+
</tr>
|
1880 |
+
<tr>
|
1881 |
+
<th class="bump-left"><label for="cff_title_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> textsize
|
1882 |
+
Eg: textsize=12</code></th>
|
1883 |
+
<td>
|
1884 |
+
<select name="cff_title_size" class="cff-text-size-setting">
|
1885 |
+
<option value="inherit" <?php if($cff_title_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
1886 |
+
<option value="10" <?php if($cff_title_size == "10") echo 'selected="selected"' ?> >10px</option>
|
1887 |
+
<option value="11" <?php if($cff_title_size == "11") echo 'selected="selected"' ?> >11px</option>
|
1888 |
+
<option value="12" <?php if($cff_title_size == "12") echo 'selected="selected"' ?> >12px</option>
|
1889 |
+
<option value="13" <?php if($cff_title_size == "13") echo 'selected="selected"' ?> >13px</option>
|
1890 |
+
<option value="14" <?php if($cff_title_size == "14") echo 'selected="selected"' ?> >14px</option>
|
1891 |
+
<option value="16" <?php if($cff_title_size == "16") echo 'selected="selected"' ?> >16px</option>
|
1892 |
+
<option value="18" <?php if($cff_title_size == "18") echo 'selected="selected"' ?> >18px</option>
|
1893 |
+
<option value="20" <?php if($cff_title_size == "20") echo 'selected="selected"' ?> >20px</option>
|
1894 |
+
<option value="24" <?php if($cff_title_size == "24") echo 'selected="selected"' ?> >24px</option>
|
1895 |
+
<option value="28" <?php if($cff_title_size == "28") echo 'selected="selected"' ?> >28px</option>
|
1896 |
+
<option value="32" <?php if($cff_title_size == "32") echo 'selected="selected"' ?> >32px</option>
|
1897 |
+
<option value="36" <?php if($cff_title_size == "36") echo 'selected="selected"' ?> >36px</option>
|
1898 |
+
<option value="42" <?php if($cff_title_size == "42") echo 'selected="selected"' ?> >42px</option>
|
1899 |
+
<option value="48" <?php if($cff_title_size == "48") echo 'selected="selected"' ?> >48px</option>
|
1900 |
+
<option value="54" <?php if($cff_title_size == "54") echo 'selected="selected"' ?> >54px</option>
|
1901 |
+
<option value="60" <?php if($cff_title_size == "60") echo 'selected="selected"' ?> >60px</option>
|
1902 |
+
</select>
|
1903 |
+
</td>
|
1904 |
+
</tr>
|
1905 |
+
<tr>
|
1906 |
+
<th class="bump-left"><label for="cff_title_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> textweight
|
1907 |
+
Eg: textweight=bold</code></th>
|
1908 |
+
<td>
|
1909 |
+
<select name="cff_title_weight" class="cff-text-size-setting">
|
1910 |
+
<option value="inherit" <?php if($cff_title_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
1911 |
+
<option value="normal" <?php if($cff_title_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
1912 |
+
<option value="bold" <?php if($cff_title_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
1913 |
+
</select>
|
1914 |
+
</td>
|
1915 |
+
</tr>
|
1916 |
+
<tr>
|
1917 |
+
<th class="bump-left"><label for="cff_title_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> textcolor
|
1918 |
+
Eg: textcolor=333</code></th>
|
1919 |
+
<td>
|
1920 |
+
<input name="cff_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_title_color) ); ?>" class="cff-colorpicker" />
|
1921 |
+
</td>
|
1922 |
+
</tr>
|
1923 |
+
<tr>
|
1924 |
+
<th class="bump-left"><label for="cff_posttext_link_color" class="bump-left"><?php _e('Link Color'); ?></label><code class="cff_shortcode"> textlinkcolor
|
1925 |
+
Eg: textlinkcolor=E69100</code></th>
|
1926 |
+
<td>
|
1927 |
+
<input name="cff_posttext_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_posttext_link_color) ); ?>" class="cff-colorpicker" />
|
1928 |
+
</td>
|
1929 |
+
</tr>
|
1930 |
+
<tr>
|
1931 |
+
<th class="bump-left"><label for="cff_title_link" class="bump-left"><?php _e('Link Text to Facebook Post'); ?></label><code class="cff_shortcode"> textlink
|
1932 |
+
Eg: textlink=true</code></th>
|
1933 |
+
<td><input type="checkbox" name="cff_title_link" id="cff_title_link" <?php if($cff_title_link == true) echo 'checked="checked"' ?> /></td>
|
1934 |
+
</tr>
|
1935 |
+
|
1936 |
+
<tr>
|
1937 |
+
<th class="bump-left"><label for="cff_post_tags" class="bump-left"><?php _e('Link Post Tags'); ?></label><code class="cff_shortcode"> posttags
|
1938 |
+
Eg: posttags=false</code></th>
|
1939 |
+
<td>
|
1940 |
+
<input type="checkbox" name="cff_post_tags" id="cff_post_tags" <?php if($cff_post_tags == true) echo 'checked="checked"' ?> />
|
1941 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What are Post Tags?'); ?></a>
|
1942 |
+
<p class="cff-tooltip cff-more-info"><?php _e("When you tag another Facebook page or user in your post using the @ symbol it creates a post tag, which is a link to either that Facebook page or user profile."); ?></p>
|
1943 |
+
</td>
|
1944 |
+
</tr>
|
1945 |
+
|
1946 |
+
<tr>
|
1947 |
+
<th class="bump-left"><label for="cff_link_hashtags" class="bump-left"><?php _e('Link Hashtags'); ?></label><code class="cff_shortcode"> linkhashtags
|
1948 |
+
Eg: linkhashtags=false</code></th>
|
1949 |
+
<td>
|
1950 |
+
<input type="checkbox" name="cff_link_hashtags" id="cff_link_hashtags" <?php if($cff_link_hashtags == true) echo 'checked="checked"' ?> />
|
1951 |
+
</td>
|
1952 |
+
</tr>
|
1953 |
+
<tr id="description"><!-- Quick link --></tr>
|
1954 |
+
</tbody>
|
1955 |
+
</table>
|
1956 |
+
|
1957 |
+
<hr />
|
1958 |
+
|
1959 |
+
<h3><?php _e('Shared Post Description'); ?></h3>
|
1960 |
+
<table class="form-table">
|
1961 |
+
<tbody>
|
1962 |
+
<tr>
|
1963 |
+
<th class="bump-left"><label for="cff_body_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> descsize
|
1964 |
+
Eg: descsize=11</code></th>
|
1965 |
+
<td>
|
1966 |
+
<select name="cff_body_size" class="cff-text-size-setting">
|
1967 |
+
<option value="inherit" <?php if($cff_body_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
1968 |
+
<option value="10" <?php if($cff_body_size == "10") echo 'selected="selected"' ?> >10px</option>
|
1969 |
+
<option value="11" <?php if($cff_body_size == "11") echo 'selected="selected"' ?> >11px</option>
|
1970 |
+
<option value="12" <?php if($cff_body_size == "12") echo 'selected="selected"' ?> >12px</option>
|
1971 |
+
<option value="13" <?php if($cff_body_size == "13") echo 'selected="selected"' ?> >13px</option>
|
1972 |
+
<option value="14" <?php if($cff_body_size == "14") echo 'selected="selected"' ?> >14px</option>
|
1973 |
+
<option value="16" <?php if($cff_body_size == "16") echo 'selected="selected"' ?> >16px</option>
|
1974 |
+
<option value="18" <?php if($cff_body_size == "18") echo 'selected="selected"' ?> >18px</option>
|
1975 |
+
<option value="20" <?php if($cff_body_size == "20") echo 'selected="selected"' ?> >20px</option>
|
1976 |
+
<option value="24" <?php if($cff_body_size == "24") echo 'selected="selected"' ?> >24px</option>
|
1977 |
+
<option value="28" <?php if($cff_body_size == "28") echo 'selected="selected"' ?> >28px</option>
|
1978 |
+
<option value="32" <?php if($cff_body_size == "32") echo 'selected="selected"' ?> >32px</option>
|
1979 |
+
<option value="36" <?php if($cff_body_size == "36") echo 'selected="selected"' ?> >36px</option>
|
1980 |
+
<option value="42" <?php if($cff_body_size == "42") echo 'selected="selected"' ?> >42px</option>
|
1981 |
+
<option value="48" <?php if($cff_body_size == "48") echo 'selected="selected"' ?> >48px</option>
|
1982 |
+
<option value="54" <?php if($cff_body_size == "54") echo 'selected="selected"' ?> >54px</option>
|
1983 |
+
<option value="60" <?php if($cff_body_size == "60") echo 'selected="selected"' ?> >60px</option>
|
1984 |
+
</select>
|
1985 |
+
</td>
|
1986 |
+
</tr>
|
1987 |
+
<tr>
|
1988 |
+
<th class="bump-left"><label for="cff_body_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> descweight
|
1989 |
+
Eg: descweight=bold</code></th>
|
1990 |
+
<td>
|
1991 |
+
<select name="cff_body_weight" class="cff-text-size-setting">
|
1992 |
+
<option value="inherit" <?php if($cff_body_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
1993 |
+
<option value="normal" <?php if($cff_body_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
1994 |
+
<option value="bold" <?php if($cff_body_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
1995 |
+
</select>
|
1996 |
+
</td>
|
1997 |
+
</tr>
|
1998 |
+
<tr>
|
1999 |
+
<th class="bump-left"><label for="cff_body_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> desccolor
|
2000 |
+
Eg: desccolor=9F9F9F</code></th>
|
2001 |
+
|
2002 |
+
<td>
|
2003 |
+
<input name="cff_body_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_body_color) ); ?>" class="cff-colorpicker" />
|
2004 |
+
</td>
|
2005 |
+
</tr>
|
2006 |
+
<tr id="date"><!-- Quick link --></tr>
|
2007 |
+
</tbody>
|
2008 |
+
</table>
|
2009 |
+
|
2010 |
+
<div style="margin-top: -15px;">
|
2011 |
+
<?php submit_button(); ?>
|
2012 |
+
</div>
|
2013 |
+
<hr />
|
2014 |
+
|
2015 |
+
<h3><?php _e('Post Date'); ?></h3>
|
2016 |
+
<table class="form-table">
|
2017 |
+
<tbody>
|
2018 |
+
<tr>
|
2019 |
+
<th class="bump-left"><label for="cff_date_position" class="bump-left"><?php _e('Position'); ?></label><code class="cff_shortcode"> datepos
|
2020 |
+
Eg: datepos=below</code></th>
|
2021 |
+
<td>
|
2022 |
+
<select name="cff_date_position" style="width: 300px;">
|
2023 |
+
<option value="author" <?php if($cff_date_position == "author") echo 'selected="selected"' ?> >Immediately under the post author</option>
|
2024 |
+
<option value="above" <?php if($cff_date_position == "above") echo 'selected="selected"' ?> >At the top of the post</option>
|
2025 |
+
<option value="below" <?php if($cff_date_position == "below") echo 'selected="selected"' ?> >At the bottom of the post</option>
|
2026 |
+
</select>
|
2027 |
+
</td>
|
2028 |
+
</tr>
|
2029 |
+
<tr>
|
2030 |
+
<th class="bump-left"><label for="cff_date_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> datesize
|
2031 |
+
Eg: datesize=14</code></th>
|
2032 |
+
<td>
|
2033 |
+
<select name="cff_date_size" class="cff-text-size-setting">
|
2034 |
+
<option value="inherit" <?php if($cff_date_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
2035 |
+
<option value="10" <?php if($cff_date_size == "10") echo 'selected="selected"' ?> >10px</option>
|
2036 |
+
<option value="11" <?php if($cff_date_size == "11") echo 'selected="selected"' ?> >11px</option>
|
2037 |
+
<option value="12" <?php if($cff_date_size == "12") echo 'selected="selected"' ?> >12px</option>
|
2038 |
+
<option value="13" <?php if($cff_date_size == "13") echo 'selected="selected"' ?> >13px</option>
|
2039 |
+
<option value="14" <?php if($cff_date_size == "14") echo 'selected="selected"' ?> >14px</option>
|
2040 |
+
<option value="16" <?php if($cff_date_size == "16") echo 'selected="selected"' ?> >16px</option>
|
2041 |
+
<option value="18" <?php if($cff_date_size == "18") echo 'selected="selected"' ?> >18px</option>
|
2042 |
+
<option value="20" <?php if($cff_date_size == "20") echo 'selected="selected"' ?> >20px</option>
|
2043 |
+
<option value="24" <?php if($cff_date_size == "24") echo 'selected="selected"' ?> >24px</option>
|
2044 |
+
<option value="28" <?php if($cff_date_size == "28") echo 'selected="selected"' ?> >28px</option>
|
2045 |
+
<option value="32" <?php if($cff_date_size == "32") echo 'selected="selected"' ?> >32px</option>
|
2046 |
+
<option value="36" <?php if($cff_date_size == "36") echo 'selected="selected"' ?> >36px</option>
|
2047 |
+
<option value="42" <?php if($cff_date_size == "42") echo 'selected="selected"' ?> >42px</option>
|
2048 |
+
<option value="48" <?php if($cff_date_size == "48") echo 'selected="selected"' ?> >48px</option>
|
2049 |
+
<option value="54" <?php if($cff_date_size == "54") echo 'selected="selected"' ?> >54px</option>
|
2050 |
+
<option value="60" <?php if($cff_date_size == "60") echo 'selected="selected"' ?> >60px</option>
|
2051 |
+
</select>
|
2052 |
+
</td>
|
2053 |
+
</tr>
|
2054 |
+
<tr>
|
2055 |
+
<th class="bump-left"><label for="cff_date_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> dateweight
|
2056 |
+
Eg: dateweight=normal</code></th>
|
2057 |
+
<td>
|
2058 |
+
<select name="cff_date_weight" class="cff-text-size-setting">
|
2059 |
+
<option value="inherit" <?php if($cff_date_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
2060 |
+
<option value="normal" <?php if($cff_date_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
2061 |
+
<option value="bold" <?php if($cff_date_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
2062 |
+
</select>
|
2063 |
+
</td>
|
2064 |
+
</tr>
|
2065 |
+
<tr>
|
2066 |
+
<th class="bump-left"><label for="cff_date_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> datecolor
|
2067 |
+
Eg: datecolor=EAD114</code></th>
|
2068 |
+
<td>
|
2069 |
+
<input name="cff_date_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_date_color) ); ?>" class="cff-colorpicker" />
|
2070 |
+
</td>
|
2071 |
+
</tr>
|
2072 |
+
|
2073 |
+
<tr>
|
2074 |
+
<th class="bump-left"><label for="cff_date_formatting" class="bump-left"><?php _e('Date Formatting'); ?></label><code class="cff_shortcode"> dateformat
|
2075 |
+
Eg: dateformat=3</code></th>
|
2076 |
+
<td>
|
2077 |
+
<select name="cff_date_formatting" style="width: 300px;">
|
2078 |
+
<?php $original = strtotime('2016-07-25T17:30:00+0000'); ?>
|
2079 |
+
<option value="1" <?php if($cff_date_formatting == "1") echo 'selected="selected"' ?> ><?php _e('2 days ago'); ?></option>
|
2080 |
+
<option value="2" <?php if($cff_date_formatting == "2") echo 'selected="selected"' ?> ><?php echo date('F jS, g:i a', $original); ?></option>
|
2081 |
+
<option value="3" <?php if($cff_date_formatting == "3") echo 'selected="selected"' ?> ><?php echo date('F jS', $original); ?></option>
|
2082 |
+
<option value="4" <?php if($cff_date_formatting == "4") echo 'selected="selected"' ?> ><?php echo date('D F jS', $original); ?></option>
|
2083 |
+
<option value="5" <?php if($cff_date_formatting == "5") echo 'selected="selected"' ?> ><?php echo date('l F jS', $original); ?></option>
|
2084 |
+
<option value="6" <?php if($cff_date_formatting == "6") echo 'selected="selected"' ?> ><?php echo date('D M jS, Y', $original); ?></option>
|
2085 |
+
<option value="7" <?php if($cff_date_formatting == "7") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y', $original); ?></option>
|
2086 |
+
<option value="8" <?php if($cff_date_formatting == "8") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y - g:i a', $original); ?></option>
|
2087 |
+
<option value="9" <?php if($cff_date_formatting == "9") echo 'selected="selected"' ?> ><?php echo date("l M jS, 'y", $original); ?></option>
|
2088 |
+
<option value="10" <?php if($cff_date_formatting == "10") echo 'selected="selected"' ?> ><?php echo date('m.d.y', $original); ?></option>
|
2089 |
+
<option value="18" <?php if($cff_date_formatting == "18") echo 'selected="selected"' ?> ><?php echo date('m.d.y - G:i', $original); ?></option>
|
2090 |
+
<option value="11" <?php if($cff_date_formatting == "11") echo 'selected="selected"' ?> ><?php echo date('m/d/y', $original); ?></option>
|
2091 |
+
<option value="12" <?php if($cff_date_formatting == "12") echo 'selected="selected"' ?> ><?php echo date('d.m.y', $original); ?></option>
|
2092 |
+
<option value="19" <?php if($cff_date_formatting == "19") echo 'selected="selected"' ?> ><?php echo date('d.m.y - G:i', $original); ?></option>
|
2093 |
+
<option value="13" <?php if($cff_date_formatting == "13") echo 'selected="selected"' ?> ><?php echo date('d/m/y', $original); ?></option>
|
2094 |
+
|
2095 |
+
<option value="14" <?php if($cff_date_formatting == "14") echo 'selected="selected"' ?> ><?php echo date('d-m-Y, G:i', $original); ?></option>
|
2096 |
+
<option value="15" <?php if($cff_date_formatting == "15") echo 'selected="selected"' ?> ><?php echo date('jS F Y, G:i', $original); ?></option>
|
2097 |
+
<option value="16" <?php if($cff_date_formatting == "16") echo 'selected="selected"' ?> ><?php echo date('d M Y, G:i', $original); ?></option>
|
2098 |
+
<option value="17" <?php if($cff_date_formatting == "17") echo 'selected="selected"' ?> ><?php echo date('l jS F Y, G:i', $original); ?></option>
|
2099 |
+
</select>
|
2100 |
+
</tr>
|
2101 |
+
|
2102 |
+
<tr>
|
2103 |
+
<th class="bump-left"><label for="cff_timezone" class="bump-left"><?php _e('Timezone'); ?></label><code class="cff_shortcode"> timezone
|
2104 |
+
Eg: timezone="America/New_York"
|
2105 |
+
<a href="http://php.net/manual/en/timezones.php" target="_blank">See full list</a></code></th>
|
2106 |
+
<td>
|
2107 |
+
<select name="cff_timezone" style="width: 300px;">
|
2108 |
+
<option value="Pacific/Midway" <?php if($cff_timezone == "Pacific/Midway") echo 'selected="selected"' ?> ><?php _e('(GMT-11:00) Midway Island, Samoa'); ?></option>
|
2109 |
+
<option value="America/Adak" <?php if($cff_timezone == "America/Adak") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii-Aleutian'); ?></option>
|
2110 |
+
<option value="Etc/GMT+10" <?php if($cff_timezone == "Etc/GMT+10") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii'); ?></option>
|
2111 |
+
<option value="Pacific/Marquesas" <?php if($cff_timezone == "Pacific/Marquesas") echo 'selected="selected"' ?> ><?php _e('(GMT-09:30) Marquesas Islands'); ?></option>
|
2112 |
+
<option value="Pacific/Gambier" <?php if($cff_timezone == "Pacific/Gambier") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Gambier Islands'); ?></option>
|
2113 |
+
<option value="America/Anchorage" <?php if($cff_timezone == "America/Anchorage") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Alaska'); ?></option>
|
2114 |
+
<option value="America/Ensenada" <?php if($cff_timezone == "America/Ensenada") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Tijuana, Baja California'); ?></option>
|
2115 |
+
<option value="Etc/GMT+8" <?php if($cff_timezone == "Etc/GMT+8") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pitcairn Islands'); ?></option>
|
2116 |
+
<option value="America/Los_Angeles" <?php if($cff_timezone == "America/Los_Angeles") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pacific Time (US & Canada)'); ?></option>
|
2117 |
+
<option value="America/Denver" <?php if($cff_timezone == "America/Denver") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Mountain Time (US & Canada)'); ?></option>
|
2118 |
+
<option value="America/Chihuahua" <?php if($cff_timezone == "America/Chihuahua") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Chihuahua, La Paz, Mazatlan'); ?></option>
|
2119 |
+
<option value="America/Dawson_Creek" <?php if($cff_timezone == "America/Dawson_Creek") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Arizona'); ?></option>
|
2120 |
+
<option value="America/Belize" <?php if($cff_timezone == "America/Belize") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Saskatchewan, Central America'); ?></option>
|
2121 |
+
<option value="America/Cancun" <?php if($cff_timezone == "America/Cancun") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Guadalajara, Mexico City, Monterrey'); ?></option>
|
2122 |
+
<option value="Chile/EasterIsland" <?php if($cff_timezone == "Chile/EasterIsland") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Easter Island'); ?></option>
|
2123 |
+
<option value="America/Chicago" <?php if($cff_timezone == "America/Chicago") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Central Time (US & Canada)'); ?></option>
|
2124 |
+
<option value="America/New_York" <?php if($cff_timezone == "America/New_York") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Eastern Time (US & Canada)'); ?></option>
|
2125 |
+
<option value="America/Havana" <?php if($cff_timezone == "America/Havana") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Cuba'); ?></option>
|
2126 |
+
<option value="America/Bogota" <?php if($cff_timezone == "America/Bogota") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Bogota, Lima, Quito, Rio Branco'); ?></option>
|
2127 |
+
<option value="America/Caracas" <?php if($cff_timezone == "America/Caracas") echo 'selected="selected"' ?> ><?php _e('(GMT-04:30) Caracas'); ?></option>
|
2128 |
+
<option value="America/Santiago" <?php if($cff_timezone == "America/Santiago") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Santiago'); ?></option>
|
2129 |
+
<option value="America/La_Paz" <?php if($cff_timezone == "America/La_Paz") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) La Paz'); ?></option>
|
2130 |
+
<option value="Atlantic/Stanley" <?php if($cff_timezone == "Atlantic/Stanley") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Faukland Islands'); ?></option>
|
2131 |
+
<option value="America/Campo_Grande" <?php if($cff_timezone == "America/Campo_Grande") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Brazil'); ?></option>
|
2132 |
+
<option value="America/Goose_Bay" <?php if($cff_timezone == "America/Goose_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Goose Bay)'); ?></option>
|
2133 |
+
<option value="America/Glace_Bay" <?php if($cff_timezone == "America/Glace_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Canada)'); ?></option>
|
2134 |
+
<option value="America/St_Johns" <?php if($cff_timezone == "America/St_Johns") echo 'selected="selected"' ?> ><?php _e('(GMT-03:30) Newfoundland'); ?></option>
|
2135 |
+
<option value="America/Araguaina" <?php if($cff_timezone == "America/Araguaina") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) UTC-3'); ?></option>
|
2136 |
+
<option value="America/Montevideo" <?php if($cff_timezone == "America/Montevideo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Montevideo'); ?></option>
|
2137 |
+
<option value="America/Miquelon" <?php if($cff_timezone == "America/Miquelon") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Miquelon, St. Pierre'); ?></option>
|
2138 |
+
<option value="America/Godthab" <?php if($cff_timezone == "America/Godthab") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Greenland'); ?></option>
|
2139 |
+
<option value="America/Argentina/Buenos_Aires" <?php if($cff_timezone == "America/Argentina/Buenos_Aires") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Buenos Aires'); ?></option>
|
2140 |
+
<option value="America/Sao_Paulo" <?php if($cff_timezone == "America/Sao_Paulo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Brasilia'); ?></option>
|
2141 |
+
<option value="America/Noronha" <?php if($cff_timezone == "America/Noronha") echo 'selected="selected"' ?> ><?php _e('(GMT-02:00) Mid-Atlantic'); ?></option>
|
2142 |
+
<option value="Atlantic/Cape_Verde" <?php if($cff_timezone == "Atlantic/Cape_Verde") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Cape Verde Is.'); ?></option>
|
2143 |
+
<option value="Atlantic/Azores" <?php if($cff_timezone == "Atlantic/Azores") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Azores'); ?></option>
|
2144 |
+
<option value="Europe/Belfast" <?php if($cff_timezone == "Europe/Belfast") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Belfast'); ?></option>
|
2145 |
+
<option value="Europe/Dublin" <?php if($cff_timezone == "Europe/Dublin") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Dublin'); ?></option>
|
2146 |
+
<option value="Europe/Lisbon" <?php if($cff_timezone == "Europe/Lisbon") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Lisbon'); ?></option>
|
2147 |
+
<option value="Europe/London" <?php if($cff_timezone == "Europe/London") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : London'); ?></option>
|
2148 |
+
<option value="Africa/Abidjan" <?php if($cff_timezone == "Africa/Abidjan") echo 'selected="selected"' ?> ><?php _e('(GMT) Monrovia, Reykjavik'); ?></option>
|
2149 |
+
<option value="Europe/Amsterdam" <?php if($cff_timezone == "Europe/Amsterdam") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna'); ?></option>
|
2150 |
+
<option value="Europe/Belgrade" <?php if($cff_timezone == "Europe/Belgrade") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague'); ?></option>
|
2151 |
+
<option value="Europe/Brussels" <?php if($cff_timezone == "Europe/Brussels") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Brussels, Copenhagen, Madrid, Paris'); ?></option>
|
2152 |
+
<option value="Africa/Algiers" <?php if($cff_timezone == "Africa/Algiers") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) West Central Africa'); ?></option>
|
2153 |
+
<option value="Africa/Windhoek" <?php if($cff_timezone == "Africa/Windhoek") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Windhoek'); ?></option>
|
2154 |
+
<option value="Asia/Beirut" <?php if($cff_timezone == "Asia/Beirut") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Beirut'); ?></option>
|
2155 |
+
<option value="Africa/Cairo" <?php if($cff_timezone == "Africa/Cairo") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Cairo'); ?></option>
|
2156 |
+
<option value="Asia/Gaza" <?php if($cff_timezone == "Asia/Gaza") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Gaza'); ?></option>
|
2157 |
+
<option value="Africa/Blantyre" <?php if($cff_timezone == "Africa/Blantyre") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Harare, Pretoria'); ?></option>
|
2158 |
+
<option value="Asia/Jerusalem" <?php if($cff_timezone == "Asia/Jerusalem") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Jerusalem'); ?></option>
|
2159 |
+
<option value="Europe/Helsinki" <?php if($cff_timezone == "Europe/Helsinki") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Helsinki'); ?></option>
|
2160 |
+
<option value="Europe/Minsk" <?php if($cff_timezone == "Europe/Minsk") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Minsk'); ?></option>
|
2161 |
+
<option value="Asia/Damascus" <?php if($cff_timezone == "Asia/Damascus") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Syria'); ?></option>
|
2162 |
+
<option value="Europe/Moscow" <?php if($cff_timezone == "Europe/Moscow") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Moscow, St. Petersburg, Volgograd'); ?></option>
|
2163 |
+
<option value="Africa/Addis_Ababa" <?php if($cff_timezone == "Africa/Addis_Ababa") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Nairobi'); ?></option>
|
2164 |
+
<option value="Asia/Tehran" <?php if($cff_timezone == "Asia/Tehran") echo 'selected="selected"' ?> ><?php _e('(GMT+03:30) Tehran'); ?></option>
|
2165 |
+
<option value="Asia/Dubai" <?php if($cff_timezone == "Asia/Dubai") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Abu Dhabi, Muscat'); ?></option>
|
2166 |
+
<option value="Asia/Yerevan" <?php if($cff_timezone == "Asia/Yerevan") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Yerevan'); ?></option>
|
2167 |
+
<option value="Asia/Kabul" <?php if($cff_timezone == "Asia/Kabul") echo 'selected="selected"' ?> ><?php _e('(GMT+04:30) Kabul'); ?></option>
|
2168 |
+
<option value="Asia/Yekaterinburg" <?php if($cff_timezone == "Asia/Yekaterinburg") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Ekaterinburg'); ?></option>
|
2169 |
+
<option value="Asia/Tashkent" <?php if($cff_timezone == "Asia/Tashkent") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Tashkent'); ?></option>
|
2170 |
+
<option value="Asia/Kolkata" <?php if($cff_timezone == "Asia/Kolkata") echo 'selected="selected"' ?> ><?php _e('(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi'); ?></option>
|
2171 |
+
<option value="Asia/Katmandu" <?php if($cff_timezone == "Asia/Katmandu") echo 'selected="selected"' ?> ><?php _e('(GMT+05:45) Kathmandu'); ?></option>
|
2172 |
+
<option value="Asia/Dhaka" <?php if($cff_timezone == "Asia/Dhaka") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Astana, Dhaka'); ?></option>
|
2173 |
+
<option value="Asia/Novosibirsk" <?php if($cff_timezone == "Asia/Novosibirsk") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Novosibirsk'); ?></option>
|
2174 |
+
<option value="Asia/Rangoon" <?php if($cff_timezone == "Asia/Rangoon") echo 'selected="selected"' ?> ><?php _e('(GMT+06:30) Yangon (Rangoon)'); ?></option>
|
2175 |
+
<option value="Asia/Bangkok" <?php if($cff_timezone == "Asia/Bangkok") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Bangkok, Hanoi, Jakarta'); ?></option>
|
2176 |
+
<option value="Asia/Krasnoyarsk" <?php if($cff_timezone == "Asia/Krasnoyarsk") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Krasnoyarsk'); ?></option>
|
2177 |
+
<option value="Asia/Hong_Kong" <?php if($cff_timezone == "Asia/Hong_Kong") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi'); ?></option>
|
2178 |
+
<option value="Asia/Irkutsk" <?php if($cff_timezone == "Asia/Irkutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Irkutsk, Ulaan Bataar'); ?></option>
|
2179 |
+
<option value="Australia/Perth" <?php if($cff_timezone == "Australia/Perth") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Perth'); ?></option>
|
2180 |
+
<option value="Australia/Eucla" <?php if($cff_timezone == "Australia/Eucla") echo 'selected="selected"' ?> ><?php _e('(GMT+08:45) Eucla'); ?></option>
|
2181 |
+
<option value="Asia/Tokyo" <?php if($cff_timezone == "Asia/Tokyo") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Osaka, Sapporo, Tokyo'); ?></option>
|
2182 |
+
<option value="Asia/Seoul" <?php if($cff_timezone == "Asia/Seoul") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Seoul'); ?></option>
|
2183 |
+
<option value="Asia/Yakutsk" <?php if($cff_timezone == "Asia/Yakutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Yakutsk'); ?></option>
|
2184 |
+
<option value="Australia/Adelaide" <?php if($cff_timezone == "Australia/Adelaide") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Adelaide'); ?></option>
|
2185 |
+
<option value="Australia/Darwin" <?php if($cff_timezone == "Australia/Darwin") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Darwin'); ?></option>
|
2186 |
+
<option value="Australia/Brisbane" <?php if($cff_timezone == "Australia/Brisbane") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Brisbane'); ?></option>
|
2187 |
+
<option value="Australia/Hobart" <?php if($cff_timezone == "Australia/Hobart") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Hobart'); ?></option>
|
2188 |
+
<option value="Asia/Vladivostok" <?php if($cff_timezone == "Asia/Vladivostok") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Vladivostok'); ?></option>
|
2189 |
+
<option value="Australia/Lord_Howe" <?php if($cff_timezone == "Australia/Lord_Howe") echo 'selected="selected"' ?> ><?php _e('(GMT+10:30) Lord Howe Island'); ?></option>
|
2190 |
+
<option value="Etc/GMT-11" <?php if($cff_timezone == "Etc/GMT-11") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Solomon Is., New Caledonia'); ?></option>
|
2191 |
+
<option value="Asia/Magadan" <?php if($cff_timezone == "Asia/Magadan") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Magadan'); ?></option>
|
2192 |
+
<option value="Pacific/Norfolk" <?php if($cff_timezone == "Pacific/Norfolk") echo 'selected="selected"' ?> ><?php _e('(GMT+11:30) Norfolk Island'); ?></option>
|
2193 |
+
<option value="Asia/Anadyr" <?php if($cff_timezone == "Asia/Anadyr") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Anadyr, Kamchatka'); ?></option>
|
2194 |
+
<option value="Pacific/Auckland" <?php if($cff_timezone == "Pacific/Auckland") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Auckland, Wellington'); ?></option>
|
2195 |
+
<option value="Etc/GMT-12" <?php if($cff_timezone == "Etc/GMT-12") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Fiji, Kamchatka, Marshall Is.'); ?></option>
|
2196 |
+
<option value="Pacific/Chatham" <?php if($cff_timezone == "Pacific/Chatham") echo 'selected="selected"' ?> ><?php _e('(GMT+12:45) Chatham Islands'); ?></option>
|
2197 |
+
<option value="Pacific/Tongatapu" <?php if($cff_timezone == "Pacific/Tongatapu") echo 'selected="selected"' ?> ><?php _e('(GMT+13:00) Nuku\'alofa'); ?></option>
|
2198 |
+
<option value="Pacific/Kiritimati" <?php if($cff_timezone == "Pacific/Kiritimati") echo 'selected="selected"' ?> ><?php _e('(GMT+14:00) Kiritimati'); ?></option>
|
2199 |
+
</select>
|
2200 |
+
</td>
|
2201 |
+
</tr>
|
2202 |
+
|
2203 |
+
<tr>
|
2204 |
+
<th class="bump-left"><label for="cff_date_custom" class="bump-left"><?php _e('Custom Format'); ?></label><code class="cff_shortcode"> datecustom
|
2205 |
+
Eg: datecustom='D M jS, Y'</code></th>
|
2206 |
+
<td>
|
2207 |
+
<input name="cff_date_custom" type="text" value="<?php esc_attr_e( $cff_date_custom ); ?>" size="10" placeholder="Eg. F j, Y" />
|
2208 |
+
<a href="http://smashballoon.com/custom-facebook-feed/docs/date/" class="cff-external-link" target="_blank"><?php _e('Examples'); ?></a>
|
2209 |
+
</td>
|
2210 |
+
</tr>
|
2211 |
+
<tr>
|
2212 |
+
<th class="bump-left"><label for="cff_date_before" class="bump-left"><?php _e('Text Before Date'); ?></label><code class="cff_shortcode"> beforedate
|
2213 |
+
Eg: beforedate='Posted'</code></th>
|
2214 |
+
<td>
|
2215 |
+
<input name="cff_date_before" type="text" value="<?php esc_attr_e( $cff_date_before ); ?>" size="20" placeholder="Eg. Posted" />
|
2216 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
2217 |
+
<p class="cff-tooltip cff-more-info"><?php _e('You can add custom text here to display immediately <b>before</b> the date text'); ?></p>
|
2218 |
+
</td>
|
2219 |
+
</tr>
|
2220 |
+
<tr>
|
2221 |
+
<th class="bump-left"><label for="cff_date_after" class="bump-left"><?php _e('Text After Date'); ?></label><code class="cff_shortcode"> afterdate
|
2222 |
+
Eg: afterdate='Ago'</code></th>
|
2223 |
+
<td>
|
2224 |
+
<input name="cff_date_after" type="text" value="<?php esc_attr_e( $cff_date_after ); ?>" size="20" placeholder="Eg. by ___" />
|
2225 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
2226 |
+
<p class="cff-tooltip cff-more-info"><?php _e('You can add custom text here to display immediately <b>after</b> the date text'); ?></p>
|
2227 |
+
</td>
|
2228 |
+
</tr>
|
2229 |
+
<tr id="links"><!-- Quick link --></tr>
|
2230 |
+
</tbody>
|
2231 |
+
</table>
|
2232 |
+
|
2233 |
+
<hr />
|
2234 |
+
|
2235 |
+
|
2236 |
+
<h3><?php _e('Shared Link Boxes'); ?></h3>
|
2237 |
+
<table class="form-table">
|
2238 |
+
<tbody>
|
2239 |
+
|
2240 |
+
<tr class="cff-settings-row-header"><th>Box Style</th></tr>
|
2241 |
+
<tr>
|
2242 |
+
<th class="bump-left"><label for="cff_link_bg_color" class="bump-left"><?php _e('Link Box Background Color'); ?></label><code class="cff_shortcode"> linkbgcolor
|
2243 |
+
Eg: linkbgcolor='EEE'</code></th>
|
2244 |
+
<td>
|
2245 |
+
<input name="cff_link_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_bg_color) ); ?>" class="cff-colorpicker" />
|
2246 |
+
</td>
|
2247 |
+
</tr>
|
2248 |
+
|
2249 |
+
<tr>
|
2250 |
+
<th class="bump-left"><label for="cff_link_border_color" class="bump-left"><?php _e('Link Box Border Color'); ?></label><code class="cff_shortcode"> linkbordercolor
|
2251 |
+
Eg: linkbordercolor='CCC'</code></th>
|
2252 |
+
<td>
|
2253 |
+
<input name="cff_link_border_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_border_color) ); ?>" class="cff-colorpicker" />
|
2254 |
+
</td>
|
2255 |
+
</tr>
|
2256 |
+
|
2257 |
+
<tr>
|
2258 |
+
<th class="bump-left"><label for="cff_disable_link_box" class="bump-left"><?php _e('Remove Background/Border'); ?></label><code class="cff_shortcode"> disablelinkbox
|
2259 |
+
Eg: disablelinkbox=true</code></th>
|
2260 |
+
<td><input type="checkbox" name="cff_disable_link_box" id="cff_disable_link_box" <?php if($cff_disable_link_box == true) echo 'checked="checked"' ?> /></td>
|
2261 |
+
</tr>
|
2262 |
+
|
2263 |
+
<tr class="cff-settings-row-header"><th>Link Title</th></tr>
|
2264 |
+
<tr>
|
2265 |
+
<th class="bump-left"><label for="cff_link_title_format" class="bump-left"><?php _e('Link Title Format'); ?></label><code class="cff_shortcode"> linktitleformat
|
2266 |
+
Eg: linktitleformat='h3'</code></th>
|
2267 |
+
<td>
|
2268 |
+
<select name="cff_link_title_format" class="cff-text-size-setting">
|
2269 |
+
<option value="p" <?php if($cff_link_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
|
2270 |
+
<option value="h3" <?php if($cff_link_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
|
2271 |
+
<option value="h4" <?php if($cff_link_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
|
2272 |
+
<option value="h5" <?php if($cff_link_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
|
2273 |
+
<option value="h6" <?php if($cff_link_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
|
2274 |
+
</select>
|
2275 |
+
</td>
|
2276 |
+
</tr>
|
2277 |
+
<tr>
|
2278 |
+
<th class="bump-left"><label for="cff_link_title_size" class="bump-left"><?php _e('Link Title Size'); ?></label><code class="cff_shortcode"> linktitlesize
|
2279 |
+
Eg: linktitlesize='18'</code></th>
|
2280 |
+
<td>
|
2281 |
+
<select name="cff_link_title_size" class="cff-text-size-setting">
|
2282 |
+
<option value="inherit" <?php if($cff_link_title_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
2283 |
+
<option value="10" <?php if($cff_link_title_size == "10") echo 'selected="selected"' ?> >10px</option>
|
2284 |
+
<option value="11" <?php if($cff_link_title_size == "11") echo 'selected="selected"' ?> >11px</option>
|
2285 |
+
<option value="12" <?php if($cff_link_title_size == "12") echo 'selected="selected"' ?> >12px</option>
|
2286 |
+
<option value="13" <?php if($cff_link_title_size == "13") echo 'selected="selected"' ?> >13px</option>
|
2287 |
+
<option value="14" <?php if($cff_link_title_size == "14") echo 'selected="selected"' ?> >14px</option>
|
2288 |
+
<option value="16" <?php if($cff_link_title_size == "16") echo 'selected="selected"' ?> >16px</option>
|
2289 |
+
<option value="18" <?php if($cff_link_title_size == "18") echo 'selected="selected"' ?> >18px</option>
|
2290 |
+
<option value="20" <?php if($cff_link_title_size == "20") echo 'selected="selected"' ?> >20px</option>
|
2291 |
+
<option value="24" <?php if($cff_link_title_size == "24") echo 'selected="selected"' ?> >24px</option>
|
2292 |
+
<option value="28" <?php if($cff_link_title_size == "28") echo 'selected="selected"' ?> >28px</option>
|
2293 |
+
<option value="32" <?php if($cff_link_title_size == "32") echo 'selected="selected"' ?> >32px</option>
|
2294 |
+
<option value="36" <?php if($cff_link_title_size == "36") echo 'selected="selected"' ?> >36px</option>
|
2295 |
+
<option value="42" <?php if($cff_link_title_size == "42") echo 'selected="selected"' ?> >42px</option>
|
2296 |
+
<option value="48" <?php if($cff_link_title_size == "48") echo 'selected="selected"' ?> >48px</option>
|
2297 |
+
<option value="54" <?php if($cff_link_title_size == "54") echo 'selected="selected"' ?> >54px</option>
|
2298 |
+
<option value="60" <?php if($cff_link_title_size == "60") echo 'selected="selected"' ?> >60px</option>
|
2299 |
+
</select>
|
2300 |
+
</td>
|
2301 |
+
</tr>
|
2302 |
+
<tr>
|
2303 |
+
<th class="bump-left"><label for="cff_link_title_color" class="bump-left"><?php _e('Link Title Color'); ?></label><code class="cff_shortcode"> linktitlecolor
|
2304 |
+
Eg: linktitlecolor='ff0000'</code></th>
|
2305 |
+
<td>
|
2306 |
+
<input name="cff_link_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_title_color) ); ?>" class="cff-colorpicker" />
|
2307 |
+
</td>
|
2308 |
+
</tr>
|
2309 |
+
|
2310 |
+
<tr class="cff-settings-row-header"><th>Link URL</th></tr>
|
2311 |
+
<tr>
|
2312 |
+
<th class="bump-left"><label for="cff_link_url_size" class="bump-left"><?php _e('Link URL Size'); ?></label><code class="cff_shortcode"> linkurlsize
|
2313 |
+
Eg: linkurlsize='12'</code></th>
|
2314 |
+
<td>
|
2315 |
+
<select name="cff_link_url_size" class="cff-text-size-setting">
|
2316 |
+
<option value="inherit" <?php if($cff_link_url_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
2317 |
+
<option value="10" <?php if($cff_link_url_size == "10") echo 'selected="selected"' ?> >10px</option>
|
2318 |
+
<option value="11" <?php if($cff_link_url_size == "11") echo 'selected="selected"' ?> >11px</option>
|
2319 |
+
<option value="12" <?php if($cff_link_url_size == "12") echo 'selected="selected"' ?> >12px</option>
|
2320 |
+
<option value="13" <?php if($cff_link_url_size == "13") echo 'selected="selected"' ?> >13px</option>
|
2321 |
+
<option value="14" <?php if($cff_link_url_size == "14") echo 'selected="selected"' ?> >14px</option>
|
2322 |
+
<option value="16" <?php if($cff_link_url_size == "16") echo 'selected="selected"' ?> >16px</option>
|
2323 |
+
<option value="18" <?php if($cff_link_url_size == "18") echo 'selected="selected"' ?> >18px</option>
|
2324 |
+
<option value="20" <?php if($cff_link_url_size == "20") echo 'selected="selected"' ?> >20px</option>
|
2325 |
+
<option value="24" <?php if($cff_link_url_size == "24") echo 'selected="selected"' ?> >24px</option>
|
2326 |
+
<option value="28" <?php if($cff_link_url_size == "28") echo 'selected="selected"' ?> >28px</option>
|
2327 |
+
<option value="32" <?php if($cff_link_url_size == "32") echo 'selected="selected"' ?> >32px</option>
|
2328 |
+
<option value="36" <?php if($cff_link_url_size == "36") echo 'selected="selected"' ?> >36px</option>
|
2329 |
+
<option value="42" <?php if($cff_link_url_size == "42") echo 'selected="selected"' ?> >42px</option>
|
2330 |
+
<option value="48" <?php if($cff_link_url_size == "48") echo 'selected="selected"' ?> >48px</option>
|
2331 |
+
<option value="54" <?php if($cff_link_url_size == "54") echo 'selected="selected"' ?> >54px</option>
|
2332 |
+
<option value="60" <?php if($cff_link_url_size == "60") echo 'selected="selected"' ?> >60px</option>
|
2333 |
+
</select>
|
2334 |
+
</td>
|
2335 |
+
</tr>
|
2336 |
+
<tr>
|
2337 |
+
<th class="bump-left"><label for="cff_link_url_color" class="bump-left"><?php _e('Link URL Color'); ?></label><code class="cff_shortcode"> linkurlcolor
|
2338 |
+
Eg: linkurlcolor='999999'</code></th>
|
2339 |
+
<td>
|
2340 |
+
<input name="cff_link_url_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_url_color) ); ?>" class="cff-colorpicker" />
|
2341 |
+
</td>
|
2342 |
+
</tr>
|
2343 |
+
|
2344 |
+
<tr class="cff-settings-row-header"><th>Link Description</th></tr>
|
2345 |
+
|
2346 |
+
<tr>
|
2347 |
+
<th class="bump-left"><label for="cff_link_desc_size" class="bump-left"><?php _e('Link Description Size'); ?></label><code class="cff_shortcode"> linkdescsize
|
2348 |
+
Eg: linkdescsize='14'</code></th>
|
2349 |
+
<td>
|
2350 |
+
<select name="cff_link_desc_size" class="cff-text-size-setting">
|
2351 |
+
<option value="inherit" <?php if($cff_link_desc_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
2352 |
+
<option value="10" <?php if($cff_link_desc_size == "10") echo 'selected="selected"' ?> >10px</option>
|
2353 |
+
<option value="11" <?php if($cff_link_desc_size == "11") echo 'selected="selected"' ?> >11px</option>
|
2354 |
+
<option value="12" <?php if($cff_link_desc_size == "12") echo 'selected="selected"' ?> >12px</option>
|
2355 |
+
<option value="13" <?php if($cff_link_desc_size == "13") echo 'selected="selected"' ?> >13px</option>
|
2356 |
+
<option value="14" <?php if($cff_link_desc_size == "14") echo 'selected="selected"' ?> >14px</option>
|
2357 |
+
<option value="16" <?php if($cff_link_desc_size == "16") echo 'selected="selected"' ?> >16px</option>
|
2358 |
+
<option value="18" <?php if($cff_link_desc_size == "18") echo 'selected="selected"' ?> >18px</option>
|
2359 |
+
<option value="20" <?php if($cff_link_desc_size == "20") echo 'selected="selected"' ?> >20px</option>
|
2360 |
+
<option value="24" <?php if($cff_link_desc_size == "24") echo 'selected="selected"' ?> >24px</option>
|
2361 |
+
<option value="28" <?php if($cff_link_desc_size == "28") echo 'selected="selected"' ?> >28px</option>
|
2362 |
+
<option value="32" <?php if($cff_link_desc_size == "32") echo 'selected="selected"' ?> >32px</option>
|
2363 |
+
<option value="36" <?php if($cff_link_desc_size == "36") echo 'selected="selected"' ?> >36px</option>
|
2364 |
+
<option value="42" <?php if($cff_link_desc_size == "42") echo 'selected="selected"' ?> >42px</option>
|
2365 |
+
<option value="48" <?php if($cff_link_desc_size == "48") echo 'selected="selected"' ?> >48px</option>
|
2366 |
+
<option value="54" <?php if($cff_link_desc_size == "54") echo 'selected="selected"' ?> >54px</option>
|
2367 |
+
<option value="60" <?php if($cff_link_desc_size == "60") echo 'selected="selected"' ?> >60px</option>
|
2368 |
+
</select>
|
2369 |
+
</td>
|
2370 |
+
</tr>
|
2371 |
+
|
2372 |
+
<tr>
|
2373 |
+
<th class="bump-left"><label for="cff_link_desc_color" class="bump-left"><?php _e('Link Description Color'); ?></label><code class="cff_shortcode"> linkdesccolor
|
2374 |
+
Eg: linkdesccolor='ff0000'</code></th>
|
2375 |
+
<td>
|
2376 |
+
<input name="cff_link_desc_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_desc_color) ); ?>" class="cff-colorpicker" />
|
2377 |
+
</td>
|
2378 |
+
</tr>
|
2379 |
+
|
2380 |
+
<tr valign="top">
|
2381 |
+
<th class="bump-left" scope="row"><label class="bump-left"><?php _e('Maximum Link Description Length'); ?></label><code class="cff_shortcode"> desclength
|
2382 |
+
Eg: desclength=150</code></th>
|
2383 |
+
<td>
|
2384 |
+
<input name="cff_body_length" type="text" value="<?php esc_attr_e( $cff_body_length_val ); ?>" size="4" /><span class="cff-pixel-label"><?php _e('Characters'); ?></span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Eg. 200'); ?></i>
|
2385 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
2386 |
+
<p class="cff-tooltip cff-more-info"><?php _e("If the link description text exceeds this length then it will be truncated with an ellipsis. Leave empty to set no maximum length."); ?></p>
|
2387 |
+
</td>
|
2388 |
+
</tr>
|
2389 |
+
<tr id="eventtitle"><!-- Quick link --></tr>
|
2390 |
+
</tbody>
|
2391 |
+
</table>
|
2392 |
+
|
2393 |
+
<div style="margin-top: -15px;">
|
2394 |
+
<?php submit_button(); ?>
|
2395 |
+
</div>
|
2396 |
+
<hr />
|
2397 |
+
|
2398 |
+
<h3><?php _e('Event Title'); ?></h3>
|
2399 |
+
<table class="form-table">
|
2400 |
+
<tbody>
|
2401 |
+
<tr>
|
2402 |
+
<th class="bump-left"><label for="cff_event_title_format" class="bump-left"><?php _e('Format'); ?></label><code class="cff_shortcode"> eventtitleformat
|
2403 |
+
Eg: eventtitleformat=h5</code></th>
|
2404 |
+
<td>
|
2405 |
+
<select name="cff_event_title_format" class="cff-text-size-setting">
|
2406 |
+
<option value="p" <?php if($cff_event_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
|
2407 |
+
<option value="h3" <?php if($cff_event_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
|
2408 |
+
<option value="h4" <?php if($cff_event_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
|
2409 |
+
<option value="h5" <?php if($cff_event_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
|
2410 |
+
<option value="h6" <?php if($cff_event_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
|
2411 |
+
</select>
|
2412 |
+
</td>
|
2413 |
+
</tr>
|
2414 |
+
|
2415 |
+
<tr>
|
2416 |
+
<th class="bump-left"><label for="cff_event_title_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> eventtitlesize
|
2417 |
+
Eg: eventtitlesize=12</code></th>
|
2418 |
+
<td>
|
2419 |
+
<select name="cff_event_title_size" class="cff-text-size-setting">
|
2420 |
+
<option value="inherit" <?php if($cff_event_title_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
2421 |
+
<option value="10" <?php if($cff_event_title_size == "10") echo 'selected="selected"' ?> >10px</option>
|
2422 |
+
<option value="11" <?php if($cff_event_title_size == "11") echo 'selected="selected"' ?> >11px</option>
|
2423 |
+
<option value="12" <?php if($cff_event_title_size == "12") echo 'selected="selected"' ?> >12px</option>
|
2424 |
+
<option value="13" <?php if($cff_event_title_size == "13") echo 'selected="selected"' ?> >13px</option>
|
2425 |
+
<option value="14" <?php if($cff_event_title_size == "14") echo 'selected="selected"' ?> >14px</option>
|
2426 |
+
<option value="16" <?php if($cff_event_title_size == "16") echo 'selected="selected"' ?> >16px</option>
|
2427 |
+
<option value="18" <?php if($cff_event_title_size == "18") echo 'selected="selected"' ?> >18px</option>
|
2428 |
+
<option value="20" <?php if($cff_event_title_size == "20") echo 'selected="selected"' ?> >20px</option>
|
2429 |
+
<option value="24" <?php if($cff_event_title_size == "24") echo 'selected="selected"' ?> >24px</option>
|
2430 |
+
<option value="28" <?php if($cff_event_title_size == "28") echo 'selected="selected"' ?> >28px</option>
|
2431 |
+
<option value="32" <?php if($cff_event_title_size == "32") echo 'selected="selected"' ?> >32px</option>
|
2432 |
+
<option value="36" <?php if($cff_event_title_size == "36") echo 'selected="selected"' ?> >36px</option>
|
2433 |
+
<option value="42" <?php if($cff_event_title_size == "42") echo 'selected="selected"' ?> >42px</option>
|
2434 |
+
<option value="48" <?php if($cff_event_title_size == "48") echo 'selected="selected"' ?> >48px</option>
|
2435 |
+
<option value="54" <?php if($cff_event_title_size == "54") echo 'selected="selected"' ?> >54px</option>
|
2436 |
+
<option value="60" <?php if($cff_event_title_size == "60") echo 'selected="selected"' ?> >60px</option>
|
2437 |
+
</select>
|
2438 |
+
</td>
|
2439 |
+
</tr>
|
2440 |
+
<tr>
|
2441 |
+
<th class="bump-left"><label for="cff_event_title_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> eventtitleweight
|
2442 |
+
Eg: eventtitleweight=bold</code></th>
|
2443 |
+
<td>
|
2444 |
+
<select name="cff_event_title_weight" class="cff-text-size-setting">
|
2445 |
+
<option value="inherit" <?php if($cff_event_title_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
2446 |
+
<option value="normal" <?php if($cff_event_title_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
2447 |
+
<option value="bold" <?php if($cff_event_title_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
2448 |
+
</select>
|
2449 |
+
</td>
|
2450 |
+
</tr>
|
2451 |
+
<tr>
|
2452 |
+
<th class="bump-left"><label for="cff_event_title_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> eventtitlecolor
|
2453 |
+
Eg: eventtitlecolor=666</code></th>
|
2454 |
+
<td>
|
2455 |
+
<input name="cff_event_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_title_color) ); ?>" class="cff-colorpicker" />
|
2456 |
+
</td>
|
2457 |
+
</tr>
|
2458 |
+
<tr>
|
2459 |
+
<th class="bump-left"><label for="cff_event_title_link" class="bump-left"><?php _e('Link Title to Event on Facebook'); ?></label><code class="cff_shortcode"> eventtitlelink
|
2460 |
+
Eg: eventtitlelink=true</code></th>
|
2461 |
+
<td><input type="checkbox" name="cff_event_title_link" id="cff_event_title_link" <?php if($cff_event_title_link == true) echo 'checked="checked"' ?> /></td>
|
2462 |
+
</tr>
|
2463 |
+
<tr id="eventdate"><!-- Quick link --></tr>
|
2464 |
+
</tbody>
|
2465 |
+
</table>
|
2466 |
+
<hr />
|
2467 |
+
|
2468 |
+
<h3><?php _e('Event Date'); ?></h3>
|
2469 |
+
<table class="form-table">
|
2470 |
+
<tbody>
|
2471 |
+
<tr>
|
2472 |
+
<th class="bump-left"><label for="cff_event_date_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> eventdatesize
|
2473 |
+
Eg: eventdatesize=18</code></th>
|
2474 |
+
<td>
|
2475 |
+
<select name="cff_event_date_size" class="cff-text-size-setting">
|
2476 |
+
<option value="inherit" <?php if($cff_event_date_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
2477 |
+
<option value="10" <?php if($cff_event_date_size == "10") echo 'selected="selected"' ?> >10px</option>
|
2478 |
+
<option value="11" <?php if($cff_event_date_size == "11") echo 'selected="selected"' ?> >11px</option>
|
2479 |
+
<option value="12" <?php if($cff_event_date_size == "12") echo 'selected="selected"' ?> >12px</option>
|
2480 |
+
<option value="13" <?php if($cff_event_date_size == "13") echo 'selected="selected"' ?> >13px</option>
|
2481 |
+
<option value="14" <?php if($cff_event_date_size == "14") echo 'selected="selected"' ?> >14px</option>
|
2482 |
+
<option value="16" <?php if($cff_event_date_size == "16") echo 'selected="selected"' ?> >16px</option>
|
2483 |
+
<option value="18" <?php if($cff_event_date_size == "18") echo 'selected="selected"' ?> >18px</option>
|
2484 |
+
<option value="20" <?php if($cff_event_date_size == "20") echo 'selected="selected"' ?> >20px</option>
|
2485 |
+
<option value="24" <?php if($cff_event_date_size == "24") echo 'selected="selected"' ?> >24px</option>
|
2486 |
+
<option value="28" <?php if($cff_event_date_size == "28") echo 'selected="selected"' ?> >28px</option>
|
2487 |
+
<option value="32" <?php if($cff_event_date_size == "32") echo 'selected="selected"' ?> >32px</option>
|
2488 |
+
<option value="36" <?php if($cff_event_date_size == "36") echo 'selected="selected"' ?> >36px</option>
|
2489 |
+
<option value="42" <?php if($cff_event_date_size == "42") echo 'selected="selected"' ?> >42px</option>
|
2490 |
+
<option value="48" <?php if($cff_event_date_size == "48") echo 'selected="selected"' ?> >48px</option>
|
2491 |
+
<option value="54" <?php if($cff_event_date_size == "54") echo 'selected="selected"' ?> >54px</option>
|
2492 |
+
<option value="60" <?php if($cff_event_date_size == "60") echo 'selected="selected"' ?> >60px</option>
|
2493 |
+
</select>
|
2494 |
+
</td>
|
2495 |
+
</tr>
|
2496 |
+
<tr>
|
2497 |
+
<th class="bump-left"><label for="cff_event_date_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> eventdateweight
|
2498 |
+
Eg: eventdateweight=bold</code></th>
|
2499 |
+
<td>
|
2500 |
+
<select name="cff_event_date_weight" class="cff-text-size-setting">
|
2501 |
+
<option value="inherit" <?php if($cff_event_date_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
2502 |
+
<option value="normal" <?php if($cff_event_date_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
2503 |
+
<option value="bold" <?php if($cff_event_date_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
2504 |
+
</select>
|
2505 |
+
</td>
|
2506 |
+
</tr>
|
2507 |
+
<tr>
|
2508 |
+
<th class="bump-left"><label for="cff_event_date_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> eventdatecolor
|
2509 |
+
Eg: eventdatecolor=EB6A00</code></th>
|
2510 |
+
<td>
|
2511 |
+
<input name="cff_event_date_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_date_color) ); ?>" class="cff-colorpicker" />
|
2512 |
+
</td>
|
2513 |
+
</tr>
|
2514 |
+
<tr valign="top">
|
2515 |
+
<th class="bump-left" scope="row"><label class="bump-left"><?php _e('Date Position'); ?></label><code class="cff_shortcode"> eventdatepos
|
2516 |
+
Eg: eventdatepos=below</code></th>
|
2517 |
+
<td>
|
2518 |
+
<select name="cff_event_date_position">
|
2519 |
+
<option value="below" <?php if($cff_event_date_position == "below") echo 'selected="selected"' ?> ><?php _e('Below event title'); ?></option>
|
2520 |
+
<option value="above" <?php if($cff_event_date_position == "above") echo 'selected="selected"' ?> ><?php _e('Above event title'); ?></option>
|
2521 |
+
</select>
|
2522 |
+
</td>
|
2523 |
+
</tr>
|
2524 |
+
<tr>
|
2525 |
+
<th class="bump-left"><label for="cff_event_date_formatting" class="bump-left"><?php _e('Event Date Formatting'); ?></label><code class="cff_shortcode"> eventdateformat
|
2526 |
+
Eg: eventdateformat=12</code></th>
|
2527 |
+
<td>
|
2528 |
+
<select name="cff_event_date_formatting" style="width: 280px;">
|
2529 |
+
<?php $original = strtotime('2016-07-25T17:30:00+0000'); ?>
|
2530 |
+
<option value="14" <?php if($cff_event_date_formatting == "14") echo 'selected="selected"' ?> ><?php echo date('M j, g:ia', $original); ?></option>
|
2531 |
+
<option value="15" <?php if($cff_event_date_formatting == "15") echo 'selected="selected"' ?> ><?php echo date('M j, G:i', $original); ?></option>
|
2532 |
+
<option value="1" <?php if($cff_event_date_formatting == "1") echo 'selected="selected"' ?> ><?php echo date('F j, Y, g:ia', $original); ?></option>
|
2533 |
+
<option value="2" <?php if($cff_event_date_formatting == "2") echo 'selected="selected"' ?> ><?php echo date('F jS, g:ia', $original); ?></option>
|
2534 |
+
<option value="3" <?php if($cff_event_date_formatting == "3") echo 'selected="selected"' ?> ><?php echo date('g:ia - F jS', $original); ?></option>
|
2535 |
+
<option value="4" <?php if($cff_event_date_formatting == "4") echo 'selected="selected"' ?> ><?php echo date('g:ia, F jS', $original); ?></option>
|
2536 |
+
<option value="5" <?php if($cff_event_date_formatting == "5") echo 'selected="selected"' ?> ><?php echo date('l F jS - g:ia', $original); ?></option>
|
2537 |
+
<option value="6" <?php if($cff_event_date_formatting == "6") echo 'selected="selected"' ?> ><?php echo date('D M jS, Y, g:iA', $original); ?></option>
|
2538 |
+
<option value="7" <?php if($cff_event_date_formatting == "7") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y, g:iA', $original); ?></option>
|
2539 |
+
<option value="8" <?php if($cff_event_date_formatting == "8") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y - g:ia', $original); ?></option>
|
2540 |
+
<option value="9" <?php if($cff_event_date_formatting == "9") echo 'selected="selected"' ?> ><?php echo date("l M jS, 'y", $original); ?></option>
|
2541 |
+
<option value="10" <?php if($cff_event_date_formatting == "10") echo 'selected="selected"' ?> ><?php echo date('m.d.y - g:iA', $original); ?></option>
|
2542 |
+
<option value="20" <?php if($cff_event_date_formatting == "20") echo 'selected="selected"' ?> ><?php echo date('m.d.y - G:i', $original); ?></option>
|
2543 |
+
<option value="11" <?php if($cff_event_date_formatting == "11") echo 'selected="selected"' ?> ><?php echo date('m/d/y, g:ia', $original); ?></option>
|
2544 |
+
<option value="12" <?php if($cff_event_date_formatting == "12") echo 'selected="selected"' ?> ><?php echo date('d.m.y - g:iA', $original); ?></option>
|
2545 |
+
<option value="21" <?php if($cff_event_date_formatting == "21") echo 'selected="selected"' ?> ><?php echo date('d.m.y - G:i', $original); ?></option>
|
2546 |
+
<option value="13" <?php if($cff_event_date_formatting == "13") echo 'selected="selected"' ?> ><?php echo date('d/m/y, g:ia', $original); ?></option>
|
2547 |
+
|
2548 |
+
<option value="16" <?php if($cff_event_date_formatting == "16") echo 'selected="selected"' ?> ><?php echo date('d-m-Y, G:i', $original); ?></option>
|
2549 |
+
<option value="17" <?php if($cff_event_date_formatting == "17") echo 'selected="selected"' ?> ><?php echo date('jS F Y, G:i', $original); ?></option>
|
2550 |
+
<option value="18" <?php if($cff_event_date_formatting == "18") echo 'selected="selected"' ?> ><?php echo date('d M Y, G:i', $original); ?></option>
|
2551 |
+
<option value="19" <?php if($cff_event_date_formatting == "19") echo 'selected="selected"' ?> ><?php echo date('l jS F Y, G:i', $original); ?></option>
|
2552 |
+
</select>
|
2553 |
+
</td>
|
2554 |
+
</tr>
|
2555 |
+
<tr>
|
2556 |
+
<th class="bump-left"><label for="cff_event_date_custom" class="bump-left"><?php _e('Custom Event Date Format'); ?></label><code class="cff_shortcode"> eventdatecustom
|
2557 |
+
Eg: eventdatecustom='D M jS, Y'</code></th>
|
2558 |
+
<td>
|
2559 |
+
<input name="cff_event_date_custom" type="text" value="<?php _e($cff_event_date_custom); ?>" size="10" placeholder="Eg. F j, Y - g:ia" />
|
2560 |
+
<a href="http://smashballoon.com/custom-facebook-feed/docs/date/" class="cff-external-link" target="_blank"><?php _e('Examples'); ?></a>
|
2561 |
+
</td>
|
2562 |
+
</tr>
|
2563 |
+
<tr id="eventdetails"><!-- Quick link --></tr>
|
2564 |
+
</tbody>
|
2565 |
+
</table>
|
2566 |
+
<hr />
|
2567 |
+
|
2568 |
+
<h3><?php _e('Event Details'); ?></h3>
|
2569 |
+
<table class="form-table">
|
2570 |
+
<tbody>
|
2571 |
+
<tr>
|
2572 |
+
<th class="bump-left"><label for="cff_event_details_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> eventdetailssize
|
2573 |
+
Eg: eventdetailssize=13</code></th>
|
2574 |
+
<td>
|
2575 |
+
<select name="cff_event_details_size" class="cff-text-size-setting">
|
2576 |
+
<option value="inherit" <?php if($cff_event_details_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
2577 |
+
<option value="10" <?php if($cff_event_details_size == "10") echo 'selected="selected"' ?> >10px</option>
|
2578 |
+
<option value="11" <?php if($cff_event_details_size == "11") echo 'selected="selected"' ?> >11px</option>
|
2579 |
+
<option value="12" <?php if($cff_event_details_size == "12") echo 'selected="selected"' ?> >12px</option>
|
2580 |
+
<option value="13" <?php if($cff_event_details_size == "13") echo 'selected="selected"' ?> >13px</option>
|
2581 |
+
<option value="14" <?php if($cff_event_details_size == "14") echo 'selected="selected"' ?> >14px</option>
|
2582 |
+
<option value="16" <?php if($cff_event_details_size == "16") echo 'selected="selected"' ?> >16px</option>
|
2583 |
+
<option value="18" <?php if($cff_event_details_size == "18") echo 'selected="selected"' ?> >18px</option>
|
2584 |
+
<option value="20" <?php if($cff_event_details_size == "20") echo 'selected="selected"' ?> >20px</option>
|
2585 |
+
<option value="24" <?php if($cff_event_details_size == "24") echo 'selected="selected"' ?> >24px</option>
|
2586 |
+
<option value="28" <?php if($cff_event_details_size == "28") echo 'selected="selected"' ?> >28px</option>
|
2587 |
+
<option value="32" <?php if($cff_event_details_size == "32") echo 'selected="selected"' ?> >32px</option>
|
2588 |
+
<option value="36" <?php if($cff_event_details_size == "36") echo 'selected="selected"' ?> >36px</option>
|
2589 |
+
<option value="42" <?php if($cff_event_details_size == "42") echo 'selected="selected"' ?> >42px</option>
|
2590 |
+
<option value="48" <?php if($cff_event_details_size == "48") echo 'selected="selected"' ?> >48px</option>
|
2591 |
+
<option value="54" <?php if($cff_event_details_size == "54") echo 'selected="selected"' ?> >54px</option>
|
2592 |
+
<option value="60" <?php if($cff_event_details_size == "60") echo 'selected="selected"' ?> >60px</option>
|
2593 |
+
</select>
|
2594 |
+
</td>
|
2595 |
+
</tr>
|
2596 |
+
<tr>
|
2597 |
+
<th class="bump-left"><label for="cff_event_details_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> eventdetailsweight
|
2598 |
+
Eg: eventdetailsweight=bold</code></th>
|
2599 |
+
<td>
|
2600 |
+
<select name="cff_event_details_weight" class="cff-text-size-setting">
|
2601 |
+
<option value="inherit" <?php if($cff_event_details_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
2602 |
+
<option value="normal" <?php if($cff_event_details_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
2603 |
+
<option value="bold" <?php if($cff_event_details_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
2604 |
+
</select>
|
2605 |
+
</td>
|
2606 |
+
</tr>
|
2607 |
+
<tr>
|
2608 |
+
<th class="bump-left"><label for="cff_event_details_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> eventdetailscolor
|
2609 |
+
Eg: eventdetailscolor=FFF000</code></th>
|
2610 |
+
<td>
|
2611 |
+
<input name="cff_event_details_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_details_color) ); ?>" class="cff-colorpicker" />
|
2612 |
+
</td>
|
2613 |
+
</tr>
|
2614 |
+
<tr>
|
2615 |
+
<th class="bump-left"><label for="cff_event_link_color" class="bump-left"><?php _e('Link Color'); ?></label><code class="cff_shortcode"> eventlinkcolor
|
2616 |
+
Eg: eventlinkcolor=333</code></th>
|
2617 |
+
<td>
|
2618 |
+
<input name="cff_event_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_link_color) ); ?>" class="cff-colorpicker" />
|
2619 |
+
</td>
|
2620 |
+
</tr>
|
2621 |
+
<tr id="comments"><!-- Quick link --></tr>
|
2622 |
+
</tbody>
|
2623 |
+
</table>
|
2624 |
+
|
2625 |
+
<?php submit_button(); ?>
|
2626 |
+
|
2627 |
+
<hr />
|
2628 |
+
|
2629 |
+
<h3><?php _e('Post Action Links'); ?></span> <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is this?'); ?></a>
|
2630 |
+
<p class="cff-tooltip cff-more-info"><?php _e('Post action links refer to the "View on Facebook" and "Share" links at the bottom of each post'); ?></p></h3>
|
2631 |
+
<table class="form-table">
|
2632 |
+
<tbody>
|
2633 |
+
<tr>
|
2634 |
+
<th class="bump-left"><label for="cff_link_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> linksize
|
2635 |
+
Eg: linksize=13</code></th>
|
2636 |
+
<td>
|
2637 |
+
<select name="cff_link_size" class="cff-text-size-setting">
|
2638 |
+
<option value="inherit" <?php if($cff_link_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
2639 |
+
<option value="10" <?php if($cff_link_size == "10") echo 'selected="selected"' ?> >10px</option>
|
2640 |
+
<option value="11" <?php if($cff_link_size == "11") echo 'selected="selected"' ?> >11px</option>
|
2641 |
+
<option value="12" <?php if($cff_link_size == "12") echo 'selected="selected"' ?> >12px</option>
|
2642 |
+
<option value="13" <?php if($cff_link_size == "13") echo 'selected="selected"' ?> >13px</option>
|
2643 |
+
<option value="14" <?php if($cff_link_size == "14") echo 'selected="selected"' ?> >14px</option>
|
2644 |
+
<option value="16" <?php if($cff_link_size == "16") echo 'selected="selected"' ?> >16px</option>
|
2645 |
+
<option value="18" <?php if($cff_link_size == "18") echo 'selected="selected"' ?> >18px</option>
|
2646 |
+
<option value="20" <?php if($cff_link_size == "20") echo 'selected="selected"' ?> >20px</option>
|
2647 |
+
<option value="24" <?php if($cff_link_size == "24") echo 'selected="selected"' ?> >24px</option>
|
2648 |
+
<option value="28" <?php if($cff_link_size == "28") echo 'selected="selected"' ?> >28px</option>
|
2649 |
+
<option value="32" <?php if($cff_link_size == "32") echo 'selected="selected"' ?> >32px</option>
|
2650 |
+
<option value="36" <?php if($cff_link_size == "36") echo 'selected="selected"' ?> >36px</option>
|
2651 |
+
<option value="42" <?php if($cff_link_size == "42") echo 'selected="selected"' ?> >42px</option>
|
2652 |
+
<option value="48" <?php if($cff_link_size == "48") echo 'selected="selected"' ?> >48px</option>
|
2653 |
+
<option value="54" <?php if($cff_link_size == "54") echo 'selected="selected"' ?> >54px</option>
|
2654 |
+
<option value="60" <?php if($cff_link_size == "60") echo 'selected="selected"' ?> >60px</option>
|
2655 |
+
</select>
|
2656 |
+
</td>
|
2657 |
+
</tr>
|
2658 |
+
<tr>
|
2659 |
+
<th class="bump-left"><label for="cff_link_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> linkweight
|
2660 |
+
Eg: linkweight=bold</code></th>
|
2661 |
+
<td>
|
2662 |
+
<select name="cff_link_weight" class="cff-text-size-setting">
|
2663 |
+
<option value="inherit" <?php if($cff_link_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
2664 |
+
<option value="normal" <?php if($cff_link_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
2665 |
+
<option value="bold" <?php if($cff_link_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
2666 |
+
</select>
|
2667 |
+
</td>
|
2668 |
+
</tr>
|
2669 |
+
<tr>
|
2670 |
+
<th class="bump-left"><label for="cff_link_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> linkcolor
|
2671 |
+
Eg: linkcolor=E01B5D</code></th>
|
2672 |
+
<td>
|
2673 |
+
<input name="cff_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_color) ); ?>" class="cff-colorpicker" />
|
2674 |
+
</td>
|
2675 |
+
</tr>
|
2676 |
+
<tr>
|
2677 |
+
<th class="bump-left"><label for="cff_facebook_link_text" class="bump-left"><?php _e('"View on Facebook" Text'); ?></label><code class="cff_shortcode"> facebooklinktext
|
2678 |
+
Eg: facebooklinktext='Read more...'</code></th>
|
2679 |
+
<td>
|
2680 |
+
<input name="cff_facebook_link_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_link_text ) ); ?>" size="25" />
|
2681 |
+
</td>
|
2682 |
+
</tr>
|
2683 |
+
|
2684 |
+
<tr>
|
2685 |
+
<th class="bump-left"><label for="cff_facebook_share_text" class="bump-left"><?php _e('"Share" Text'); ?></label><code class="cff_shortcode"> sharelinktext
|
2686 |
+
Eg: sharelinktext='Share this post'</code></th>
|
2687 |
+
<td>
|
2688 |
+
<input name="cff_facebook_share_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_share_text ) ); ?>" size="25" />
|
2689 |
+
</td>
|
2690 |
+
</tr>
|
2691 |
+
|
2692 |
+
<tr>
|
2693 |
+
<th class="bump-left"><label for="cff_show_facebook_link" class="bump-left"><?php _e('Show "View on Facebook" link'); ?></label><code class="cff_shortcode"> showfacebooklink
|
2694 |
+
Eg: showfacebooklink=true</code></th>
|
2695 |
+
<td>
|
2696 |
+
<input type="checkbox" name="cff_show_facebook_link" id="cff_show_facebook_link" <?php if($cff_show_facebook_link == true) echo 'checked="checked"' ?> />
|
2697 |
+
</td>
|
2698 |
+
</tr>
|
2699 |
+
|
2700 |
+
<tr>
|
2701 |
+
<th class="bump-left"><label for="cff_show_facebook_share" class="bump-left"><?php _e('Show "Share" link'); ?></label><code class="cff_shortcode"> showsharelink
|
2702 |
+
Eg: showsharelink=true</code></th>
|
2703 |
+
<td>
|
2704 |
+
<input type="checkbox" name="cff_show_facebook_share" id="cff_show_facebook_share" <?php if($cff_show_facebook_share == true) echo 'checked="checked"' ?> />
|
2705 |
+
</td>
|
2706 |
+
</tr>
|
2707 |
+
<tr id="loadmore"><!-- Quick link --></tr>
|
2708 |
+
</tbody>
|
2709 |
+
</table>
|
2710 |
+
|
2711 |
+
<hr />
|
2712 |
+
|
2713 |
+
<h3><?php _e('Likes, Shares and Comments Box'); ?></h3>
|
2714 |
+
<a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=likesharescom" target="_blank">Upgrade to Pro to enable likes, shares and comments</a>
|
2715 |
+
<p class="submit cff-expand-button">
|
2716 |
+
<a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
|
2717 |
+
</p>
|
2718 |
+
<table class="form-table cff-expandable-options">
|
2719 |
+
<tbody>
|
2720 |
+
<tr valign="top" class="cff-pro">
|
2721 |
+
<th class="bump-left" scope="row"><label><?php _e('Icon Style'); ?></label><code class="cff_shortcode"> iconstyle
|
2722 |
+
Eg: iconstyle=dark</code></th>
|
2723 |
+
<td>
|
2724 |
+
<select name="cff_icon_style" style="width: 250px;" disabled>
|
2725 |
+
<option value="light"><?php _e('Light (for light backgrounds)'); ?></option>
|
2726 |
+
<option value="dark"><?php _e('Dark (for dark backgrounds)'); ?></option>
|
2727 |
+
</select>
|
2728 |
+
</td>
|
2729 |
+
</tr>
|
2730 |
+
<tr valign="top" class="cff-pro">
|
2731 |
+
<th class="bump-left" scope="row"><label><?php _e('Text Color'); ?></label><code class="cff_shortcode"> socialtextcolor
|
2732 |
+
Eg: socialtextcolor=FFF</code></th>
|
2733 |
+
<td>
|
2734 |
+
<input name="cff_meta_text_color" class="cff-colorpicker" />
|
2735 |
+
</td>
|
2736 |
+
</tr>
|
2737 |
+
<tr valign="top" class="cff-pro">
|
2738 |
+
<th class="bump-left" scope="row"><label><?php _e('Link Color'); ?></label><code class="cff_shortcode"> sociallinkcolor
|
2739 |
+
Eg: sociallinkcolor=FFF</code></th>
|
2740 |
+
<td>
|
2741 |
+
<input name="cff_meta_link_color" class="cff-colorpicker" />
|
2742 |
+
</td>
|
2743 |
+
</tr>
|
2744 |
+
<tr valign="top" class="cff-pro">
|
2745 |
+
<th class="bump-left" scope="row"><label><?php _e('Background Color'); ?></label><code class="cff_shortcode"> socialbgcolor
|
2746 |
+
Eg: socialbgcolor=111</code></th>
|
2747 |
+
<td>
|
2748 |
+
<input name="cff_meta_bg_color" class="cff-colorpicker" />
|
2749 |
+
</td>
|
2750 |
+
</tr>
|
2751 |
+
<tr valign="top" class="cff-pro">
|
2752 |
+
<th class="bump-left" scope="row"><label><?php _e('Expand Comments Box Initially'); ?></label><code class="cff_shortcode"> expandcomments
|
2753 |
+
Eg: expandcomments=true</code></th>
|
2754 |
+
<td>
|
2755 |
+
<input type="checkbox" name="cff_expand_comments" id="cff_expand_comments" disabled />
|
2756 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
2757 |
+
<p class="cff-tooltip cff-more-info"><?php _e('Checking this box will automatically expand the comments box beneath each post. Unchecking this box will mean that users will need to click the number of comments below each post in order to expand the comments box.'); ?></p>
|
2758 |
+
</td>
|
2759 |
+
</tr>
|
2760 |
+
<tr valign="top" class="cff-pro">
|
2761 |
+
<th class="bump-left" for="cff_comments_num" scope="row"><label><?php _e('Number of Comments to Show Initially'); ?></label><code class="cff_shortcode"> commentsnum
|
2762 |
+
Eg: commentsnum=1</code></th>
|
2763 |
+
<td>
|
2764 |
+
<input name="cff_comments_num" type="text" size="2" disabled />
|
2765 |
+
<span><i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('25 max'); ?></i></span>
|
2766 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
2767 |
+
<p class="cff-tooltip cff-more-info"><?php _e('The number of comments to show initially when the comments box is expanded.'); ?></p>
|
2768 |
+
|
2769 |
+
</td>
|
2770 |
+
</tr>
|
2771 |
+
<tr valign="top" class="cff-pro">
|
2772 |
+
<th class="bump-left" scope="row"><label><?php _e('Hide Comment Avatars'); ?></label><code class="cff_shortcode"> hidecommentimages
|
2773 |
+
Eg: hidecommentimages=true</code></th>
|
2774 |
+
<td>
|
2775 |
+
<input type="checkbox" name="cff_hide_comment_avatars" id="cff_hide_comment_avatars" disabled />
|
2776 |
+
</td>
|
2777 |
+
</tr>
|
2778 |
+
<tr valign="top" class="cff-pro">
|
2779 |
+
<th class="bump-left" scope="row"><label><?php _e('Show Comments in Lightbox'); ?></label></th>
|
2780 |
+
<td>
|
2781 |
+
<input type="checkbox" name="cff_lightbox_comments" id="cff_lightbox_comments" disabled />
|
2782 |
+
<span><i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('For timeline posts only'); ?>
|
2783 |
+
</td>
|
2784 |
+
</tr>
|
2785 |
+
<tr id="action"><!-- Quick link --></tr>
|
2786 |
+
</tbody>
|
2787 |
+
</table>
|
2788 |
+
|
2789 |
+
|
2790 |
+
<div style="margin-top: -15px;">
|
2791 |
+
<?php submit_button(); ?>
|
2792 |
+
</div>
|
2793 |
+
|
2794 |
+
<a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo CFF_PLUGIN_URL. 'admin/assets/img/pro.png' ?>" /></a>
|
2795 |
+
|
2796 |
+
<?php } //End Typography tab ?>
|
2797 |
+
<?php if( $cff_active_tab == 'misc' ) { //Start Misc tab ?>
|
2798 |
+
|
2799 |
+
<p class="cff_contents_links" id="comments">
|
2800 |
+
<span>Jump to: </span>
|
2801 |
+
<a href="#css">Custom CSS</a>
|
2802 |
+
<a href="#js">Custom JavaScript</a>
|
2803 |
+
<a href="#gdpr">GDPR</a>
|
2804 |
+
<a href="#misc">Misc Settings</a>
|
2805 |
+
</p>
|
2806 |
+
|
2807 |
+
<input type="hidden" name="<?php echo $style_misc_hidden_field_name; ?>" value="Y">
|
2808 |
+
<br />
|
2809 |
+
|
2810 |
+
<span id="css"><!-- Quick link --></span>
|
2811 |
+
<hr />
|
2812 |
+
<h3><?php _e('Custom CSS', 'custom-facebook-feed'); ?></h3>
|
2813 |
+
<table class="form-table">
|
2814 |
+
<tbody>
|
2815 |
+
<tr valign="top">
|
2816 |
+
<td style="padding-top: 0;">
|
2817 |
+
<p style="padding-bottom: 10px;"><?php _e('Enter your own custom CSS in the box below', 'custom-facebook-feed'); ?> <i style="margin-left: 5px; font-size: 11px;"><a href="https://smashballoon.com/snippets/" target="_blank"><?php _e('See some examples', 'custom-facebook-feed'); ?></a></i></p>
|
2818 |
+
<textarea name="cff_custom_css" id="cff_custom_css" style="width: 70%;" rows="7"><?php echo esc_textarea( stripslashes($cff_custom_css), 'custom-facebook-feed' ); ?></textarea>
|
2819 |
+
</td>
|
2820 |
+
</tr>
|
2821 |
+
</tbody>
|
2822 |
+
</table>
|
2823 |
+
<h3 id="js"><?php _e('Custom JavaScript', 'custom-facebook-feed'); ?></h3><!-- Quick link -->
|
2824 |
+
<table class="form-table">
|
2825 |
+
<tbody>
|
2826 |
+
<tr valign="top">
|
2827 |
+
<td style="padding-top: 0;">
|
2828 |
+
<p style="padding-bottom: 10px;"><?php _e('Enter your own custom JavaScript/jQuery in the box below', 'custom-facebook-feed'); ?> <i style="margin-left: 5px; font-size: 11px;"><a href="https://smashballoon.com/snippets/" target="_blank"><?php _e('See some examples', 'custom-facebook-feed'); ?></a></i></p>
|
2829 |
+
<textarea name="cff_custom_js" id="cff_custom_js" style="width: 70%;" rows="7"><?php echo esc_textarea( stripslashes($cff_custom_js), 'custom-facebook-feed' ); ?></textarea>
|
2830 |
+
</td>
|
2831 |
+
</tr>
|
2832 |
+
</tbody>
|
2833 |
+
</table>
|
2834 |
+
|
2835 |
+
<?php submit_button(); ?>
|
2836 |
+
<span id="gdpr"><!-- Quick link --></span>
|
2837 |
+
<hr />
|
2838 |
+
<h3><?php _e('GDPR'); ?></h3>
|
2839 |
+
<table class="form-table">
|
2840 |
+
<tbody>
|
2841 |
+
<tr>
|
2842 |
+
<th class="bump-left"><label class="bump-left"><?php _e("Enable GDPR settings", 'custom-facebook-feed'); ?></label></th>
|
2843 |
+
<td>
|
2844 |
+
|
2845 |
+
<?php
|
2846 |
+
$select_options = array(
|
2847 |
+
array(
|
2848 |
+
'label' => __( 'Automatic', 'custom-facebook-feed' ),
|
2849 |
+
'value' => 'auto'
|
2850 |
+
),
|
2851 |
+
array(
|
2852 |
+
'label' => __( 'Yes', 'custom-facebook-feed' ),
|
2853 |
+
'value' => 'yes'
|
2854 |
+
),
|
2855 |
+
array(
|
2856 |
+
'label' => __( 'No', 'custom-facebook-feed' ),
|
2857 |
+
'value' => 'no'
|
2858 |
+
)
|
2859 |
+
)
|
2860 |
+
?>
|
2861 |
+
<?php
|
2862 |
+
$gdpr_list = "<ul class='cff-list'>
|
2863 |
+
<li>" . __('The Facebook "Like Box" widget won\'t be included in the feed.', 'custom-facebook-feed') . "</li>
|
2864 |
+
<li>" . __('The "Visual" header will not be shown.', 'custom-facebook-feed') . "</li>
|
2865 |
+
<li>" . __('Any profile pictures will show a placeholder.', 'custom-facebook-feed') . "</li>
|
2866 |
+
</ul>";
|
2867 |
+
?>
|
2868 |
+
<div>
|
2869 |
+
<select name="gdpr" id="cff_gdpr_setting">
|
2870 |
+
<?php foreach ( $select_options as $select_option ) :
|
2871 |
+
$selected = $select_option['value'] === $gdpr ? ' selected' : '';
|
2872 |
+
?>
|
2873 |
+
<option value="<?php echo esc_attr( $select_option['value'] ); ?>"<?php echo $selected; ?> ><?php echo esc_html( $select_option['label'] ); ?></option>
|
2874 |
+
<?php endforeach; ?>
|
2875 |
+
</select>
|
2876 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?', 'custom-facebook-feed'); ?></a>
|
2877 |
+
<div class="cff-tooltip cff-more-info gdpr_tooltip">
|
2878 |
+
|
2879 |
+
<p><span><?php _e("Yes", 'custom-facebook-feed' ); ?>:</span> <?php _e("Enabling this setting prevents all images and videos from being loaded directly from Facebook's servers (CDN) to prevent any requests to external websites in your browser. To accommodate this, some features of the plugin will be disabled or limited.", 'custom-facebook-feed' ); ?> <a href="JavaScript:void(0);" class="cff_show_gdpr_list"><?php _e( 'What will be limited?', 'custom-facebook-feed' ); ?></a></p>
|
2880 |
+
|
2881 |
+
<?php echo "<div class='cff_gdpr_list'>" . $gdpr_list . '</div>'; ?>
|
2882 |
+
|
2883 |
+
|
2884 |
+
<p><span><?php _e("No", 'custom-facebook-feed' ); ?>:</span> <?php _e("The plugin will still make some requests to load and display images and videos directly from Facebook.", 'custom-facebook-feed' ); ?></p>
|
2885 |
+
|
2886 |
+
|
2887 |
+
<p><span><?php _e("Automatic", 'custom-facebook-feed' ); ?>:</span> <?php echo sprintf( __( 'The plugin will only load images and videos directly from Facebook if consent has been given by one of these integrated %s', 'custom-facebook-feed' ), '<a href="https://smashballoon.com/doc/gdpr-plugin-list/?facebook" target="_blank" rel="noopener">' . __( 'GDPR cookie plugins', 'custom-facebook-feed' ) . '</a>' ); ?></p>
|
2888 |
+
|
2889 |
+
<p><?php echo sprintf( __( '%s to learn more about GDPR compliance in the Facebook Feed plugin.', 'custom-facebook-feed' ), '<a href="https://smashballoon.com/doc/custom-facebook-feed-gdpr-compliance/?facebook" target="_blank" rel="noopener">'. __( 'Click here', 'custom-facebook-feed' ).'</a>' ); ?></p>
|
2890 |
+
</div>
|
2891 |
+
</div>
|
2892 |
+
|
2893 |
+
<?php if ( ! CFF_GDPR_Integrations::gdpr_tests_successful( isset( $_GET['retest'] ) ) ) :
|
2894 |
+
$errors = CFF_GDPR_Integrations::gdpr_tests_error_message();
|
2895 |
+
?>
|
2896 |
+
<div class="cff-box cff_gdpr_error">
|
2897 |
+
<div class="cff-box-setting">
|
2898 |
+
<p>
|
2899 |
+
<strong><?php _e( 'Error:', 'custom-facebook-feed' ); ?></strong> <?php _e("Due to a configuration issue on your web server, the GDPR setting is unable to be enabled. Please see below for more information.", 'custom-facebook-feed' ); ?></p>
|
2900 |
+
<p>
|
2901 |
+
<?php echo $errors; ?>
|
2902 |
+
</p>
|
2903 |
+
</div>
|
2904 |
+
</div>
|
2905 |
+
<?php else: ?>
|
2906 |
+
|
2907 |
+
<div class="cff_gdpr_auto">
|
2908 |
+
<?php if ( CFF_GDPR_Integrations::gdpr_plugins_active() ) :
|
2909 |
+
$active_plugin = CFF_GDPR_Integrations::gdpr_plugins_active();
|
2910 |
+
?>
|
2911 |
+
<div class="cff_gdpr_plugin_active">
|
2912 |
+
<div class="cff_active">
|
2913 |
+
<p>
|
2914 |
+
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check-circle" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-check-circle fa-w-16 fa-2x"><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z" class=""></path></svg>
|
2915 |
+
<b><?php echo sprintf( __( '%s detected', 'custom-facebook-feed' ), $active_plugin ); ?></b>
|
2916 |
+
<br />
|
2917 |
+
<?php _e( 'Some Facebook Feed features will be limited for visitors to ensure GDPR compliance until they give consent.', 'custom-facebook-feed' ); ?>
|
2918 |
+
<a href="JavaScript:void(0);" class="cff_show_gdpr_list"><?php _e( 'What will be limited?', 'custom-facebook-feed' ); ?></a>
|
2919 |
+
</p>
|
2920 |
+
<?php echo "<div class='cff_gdpr_list'>" . $gdpr_list . '</div>'; ?>
|
2921 |
+
</div>
|
2922 |
+
|
2923 |
+
</div>
|
2924 |
+
<?php else: ?>
|
2925 |
+
<div class="cff-box">
|
2926 |
+
<div class="cff-box-setting">
|
2927 |
+
<p><?php _e( 'No GDPR consent plugin detected. Install a compatible <a href="https://smashballoon.com/doc/gdpr-plugin-list/?facebook" target="_blank">GDPR consent plugin</a>, or manually enable the setting above to display a GDPR compliant version of the feed to all visitors.', 'custom-facebook-feed' ); ?></p>
|
2928 |
+
</div>
|
2929 |
+
</div>
|
2930 |
+
<?php endif; ?>
|
2931 |
+
</div>
|
2932 |
+
|
2933 |
+
<div class="cff-box cff_gdpr_yes">
|
2934 |
+
<div class="cff-box-setting">
|
2935 |
+
<p><?php _e( "No requests will be made to third-party websites. To accommodate this, some features of the plugin will be limited:", 'custom-facebook-feed' ); ?></p>
|
2936 |
+
<?php echo $gdpr_list; ?>
|
2937 |
+
</div>
|
2938 |
+
</div>
|
2939 |
+
|
2940 |
+
<div class="cff-box cff_gdpr_no">
|
2941 |
+
<div class="cff-box-setting">
|
2942 |
+
<p><?php _e( "The plugin will function as normal and load images and videos directly from Facebook.", 'custom-facebook-feed' ); ?></p>
|
2943 |
+
</div>
|
2944 |
+
</div>
|
2945 |
+
<?php endif; ?>
|
2946 |
+
|
2947 |
+
</td>
|
2948 |
+
</tr>
|
2949 |
+
|
2950 |
+
</tbody>
|
2951 |
+
</table>
|
2952 |
+
|
2953 |
+
<hr />
|
2954 |
+
<h3><?php _e('Media'); ?></h3>
|
2955 |
+
<a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=media" target="_blank">Upgrade to Pro to enable Media options</a>
|
2956 |
+
<p class="submit cff-expand-button">
|
2957 |
+
<a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
|
2958 |
+
</p>
|
2959 |
+
<table class="form-table cff-expandable-options">
|
2960 |
+
<tbody>
|
2961 |
+
<tr valign="top" class="cff-pro">
|
2962 |
+
<th class="bump-left" scope="row"><label><?php _e('Disable Popup Lightbox'); ?></label><code class="cff_shortcode"> disablelightbox
|
2963 |
+
Eg: disablelightbox=true</code></th>
|
2964 |
+
<td>
|
2965 |
+
<input name="cff_disable_lightbox" type="checkbox" id="cff_disable_lightbox" disabled />
|
2966 |
+
<label for="cff_disable_lightbox"><?php _e('Disable'); ?></label>
|
2967 |
+
</td>
|
2968 |
+
</tr>
|
2969 |
+
<tr class="cff-pro">
|
2970 |
+
<th class="bump-left"><label class="bump-left"><?php _e('Use full-size shared link images'); ?></label><code class="cff_shortcode"> fulllinkimages
|
2971 |
+
Eg: fulllinkimages=false</code></th>
|
2972 |
+
<td>
|
2973 |
+
<input type="checkbox" name="cff_full_link_images" id="cff_full_link_images" disabled />
|
2974 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
2975 |
+
<p class="cff-tooltip cff-more-info"><?php _e("By default the shared link boxes in your posts use the same layout selected on the 'Post Layout' page, however, but you can disable this by unchecking this setting to force all shared links to use the smaller image thumbnails instead."); ?></p>
|
2976 |
+
</td>
|
2977 |
+
</tr>
|
2978 |
+
<tr valign="top" class="cff-pro">
|
2979 |
+
<th class="bump-left" scope="row"><label><?php _e('Lightbox video player'); ?></label><code class="cff_shortcode"> videoplayer
|
2980 |
+
Eg: videoplayer=facebook</code></th>
|
2981 |
+
<td>
|
2982 |
+
<select name="cff_video_player" style="width: 280px;" disabled>
|
2983 |
+
<option value="facebook"><?php _e('Facebook Video Player'); ?></option>
|
2984 |
+
<option value="standard"><?php _e('Standard HTML5 Video'); ?></option>
|
2985 |
+
</select>
|
2986 |
+
</td>
|
2987 |
+
</tr>
|
2988 |
+
<tr valign="top" class="cff-pro">
|
2989 |
+
<th class="bump-left" scope="row"><label><?php _e('Play video action'); ?></label><code class="cff_shortcode"> videoaction
|
2990 |
+
Eg: videoaction=facebook</code></th>
|
2991 |
+
<td>
|
2992 |
+
<select name="cff_video_action" style="width: 280px;" disabled>
|
2993 |
+
<option value="post"><?php _e('Play videos directly in the feed'); ?></option>
|
2994 |
+
<!-- Link to the video either on Facebook or whatever the source is: -->
|
2995 |
+
<option value="facebook"><?php _e('Link to the video on Facebook'); ?></option>
|
2996 |
+
</select>
|
2997 |
+
</td>
|
2998 |
+
</tr>
|
2999 |
+
</tbody>
|
3000 |
+
</table>
|
3001 |
+
|
3002 |
+
<hr id="misc" />
|
3003 |
+
<h3><?php _e('Misc Settings', 'custom-facebook-feed'); ?></h3>
|
3004 |
+
<table class="form-table">
|
3005 |
+
<tbody>
|
3006 |
+
<tr>
|
3007 |
+
<th class="bump-left"><label class="bump-left"><?php _e('Is your theme loading the feed via Ajax?', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> ajax
|
3008 |
+
Eg: ajax=true</code></th>
|
3009 |
+
<td>
|
3010 |
+
<input name="cff_ajax" type="checkbox" id="cff_ajax" <?php if($cff_ajax_val == true) echo "checked"; ?> />
|
3011 |
+
<label for="cff_ajax"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
3012 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3013 |
+
<p class="cff-tooltip cff-more-info"><?php _e('Some modern WordPress themes use Ajax to load content into the page after it has loaded. If your theme uses Ajax to load the Custom Facebook Feed content into the page then check this box. If you are not sure then please check with the theme author.', 'custom-facebook-feed'); ?></p>
|
3014 |
+
</td>
|
3015 |
+
</tr>
|
3016 |
+
<tr>
|
3017 |
+
<th class="bump-left"><label class="bump-left"><?php _e("Preserve settings when plugin is removed", 'custom-facebook-feed'); ?></label></th>
|
3018 |
+
<td>
|
3019 |
+
<input name="cff_preserve_settings" type="checkbox" id="cff_preserve_settings" <?php if($cff_preserve_settings_val == true) echo "checked"; ?> />
|
3020 |
+
<label for="cff_preserve_settings"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
3021 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3022 |
+
<p class="cff-tooltip cff-more-info"><?php _e('When removing the plugin your settings are automatically deleted from your database. Checking this box will prevent any settings from being deleted. This means that you can uninstall and reinstall the plugin without losing your settings.', 'custom-facebook-feed'); ?></p>
|
3023 |
+
</td>
|
3024 |
+
</tr>
|
3025 |
+
<tr>
|
3026 |
+
<th class="bump-left"><label class="bump-left"><?php _e("Display credit link", 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> credit
|
3027 |
+
Eg: credit=true</code></th>
|
3028 |
+
<td>
|
3029 |
+
<input name="cff_show_credit" type="checkbox" id="cff_show_credit" <?php if($cff_show_credit == true) echo "checked"; ?> />
|
3030 |
+
<label for="cff_show_credit"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
3031 |
+
<i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Display a link at the bottom of the feed to help promote the plugin', 'custom-facebook-feed'); ?></i>
|
3032 |
+
</td>
|
3033 |
+
</tr>
|
3034 |
+
|
3035 |
+
<tr>
|
3036 |
+
<th class="bump-left"><label class="bump-left"><?php _e("Minify CSS and JavaScript files"); ?></label></th>
|
3037 |
+
<td>
|
3038 |
+
<input name="cff_minify" type="checkbox" id="cff_minify" <?php if($cff_minify == true) echo "checked"; ?> />
|
3039 |
+
</td>
|
3040 |
+
</tr>
|
3041 |
+
|
3042 |
+
<tr>
|
3043 |
+
<th class="bump-left"><label class="bump-left"><?php _e('Is Facebook Page restricted?'); ?></label><code class="cff_shortcode"> restrictedpage
|
3044 |
+
Eg: restrictedpage=true</code></th>
|
3045 |
+
<td>
|
3046 |
+
<input name="cff_restricted_page" type="checkbox" id="cff_restricted_page" <?php if($cff_restricted_page == true) echo "checked"; ?> />
|
3047 |
+
<label for="cff_ajax"><?php _e('Yes'); ?></label>
|
3048 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3049 |
+
<p class="cff-tooltip cff-more-info"><?php _e('If you want to display your Facebook feed on your website then ideally your Facebook page should not have any age or location restrictions on it as that restricts the plugin from being able to fully access the content. If it is not possible for you to remove all restrictions then you can enable this setting.'); ?></p>
|
3050 |
+
</td>
|
3051 |
+
</tr>
|
3052 |
+
|
3053 |
+
<tr>
|
3054 |
+
<th class="bump-left"><label class="bump-left"><?php _e("Icon font source", 'custom-facebook-feed'); ?></label></th>
|
3055 |
+
<td>
|
3056 |
+
<select name="cff_font_source">
|
3057 |
+
<option value="cdn" <?php if($cff_font_source == "cdn") echo 'selected="selected"' ?> ><?php _e('CDN', 'custom-facebook-feed'); ?></option>
|
3058 |
+
<option value="local" <?php if($cff_font_source == "local") echo 'selected="selected"' ?> ><?php _e('Local copy', 'custom-facebook-feed'); ?></option>
|
3059 |
+
<option value="none" <?php if($cff_font_source == "none") echo 'selected="selected"' ?> ><?php _e("Don't load", 'custom-facebook-feed'); ?></option>
|
3060 |
+
</select>
|
3061 |
+
</td>
|
3062 |
+
</tr>
|
3063 |
+
|
3064 |
+
<tr>
|
3065 |
+
<th class="bump-left">
|
3066 |
+
<label class="bump-left"><?php _e("Force cache to clear on interval", 'custom-facebook-feed'); ?></label>
|
3067 |
+
</th>
|
3068 |
+
<td>
|
3069 |
+
<select name="cff_cron">
|
3070 |
+
<option value="unset" <?php if($cff_cron == "unset") echo 'selected="selected"' ?> ><?php _e(' - ', 'custom-facebook-feed'); ?></option>
|
3071 |
+
<option value="yes" <?php if($cff_cron == "yes") echo 'selected="selected"' ?> ><?php _e('Yes', 'custom-facebook-feed'); ?></option>
|
3072 |
+
<option value="no" <?php if($cff_cron == "no") echo 'selected="selected"' ?> ><?php _e('No', 'custom-facebook-feed'); ?></option>
|
3073 |
+
</select>
|
3074 |
+
|
3075 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3076 |
+
<p class="cff-tooltip cff-more-info"><?php _e("If you're experiencing an issue with the plugin not auto-updating then you can set this to 'Yes' to run a scheduled event behind the scenes which forces the plugin cache to clear on a regular basis and retrieve new data from Facebook.", 'custom-facebook-feed'); ?></p>
|
3077 |
+
</td>
|
3078 |
+
</tr>
|
3079 |
+
|
3080 |
+
<tr>
|
3081 |
+
<th class="bump-left"><label class="bump-left"><?php _e("Request method", 'custom-facebook-feed'); ?></label></th>
|
3082 |
+
<td>
|
3083 |
+
<select name="cff_request_method">
|
3084 |
+
<option value="auto" <?php if($cff_request_method == "auto") echo 'selected="selected"' ?> ><?php _e('Auto', 'custom-facebook-feed'); ?></option>
|
3085 |
+
<option value="1" <?php if($cff_request_method == "1") echo 'selected="selected"' ?> ><?php _e('cURL', 'custom-facebook-feed'); ?></option>
|
3086 |
+
<option value="2" <?php if($cff_request_method == "2") echo 'selected="selected"' ?> ><?php _e('file_get_contents', 'custom-facebook-feed'); ?></option>
|
3087 |
+
<option value="3" <?php if($cff_request_method == "3") echo 'selected="selected"' ?> ><?php _e("WP_Http", 'custom-facebook-feed'); ?></option>
|
3088 |
+
</select>
|
3089 |
+
</td>
|
3090 |
+
</tr>
|
3091 |
+
<tr>
|
3092 |
+
<th class="bump-left"><label class="bump-left"><?php _e('Fix text shortening issue'); ?></label><code class="cff_shortcode"> textissue
|
3093 |
+
Eg: textissue=true</code></th>
|
3094 |
+
<td>
|
3095 |
+
<input name="cff_format_issue" type="checkbox" id="cff_format_issue" <?php if($cff_format_issue == true) echo "checked"; ?> />
|
3096 |
+
</td>
|
3097 |
+
</tr>
|
3098 |
+
<tr>
|
3099 |
+
<th class="bump-left"><label for="cff_disable_styles" class="bump-left"><?php _e("Disable default styles", 'custom-facebook-feed'); ?></label></th>
|
3100 |
+
<td>
|
3101 |
+
<input name="cff_disable_styles" type="checkbox" id="cff_disable_styles" <?php if($cff_disable_styles == true) echo "checked"; ?> />
|
3102 |
+
<label for="cff_disable_styles"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
3103 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3104 |
+
<p class="cff-tooltip cff-more-info"><?php _e("The plugin includes some basic text and link styles which can be disabled by enabling this setting. Note that the styles used for the layout of the posts will still be applied.", 'custom-facebook-feed'); ?></p>
|
3105 |
+
</td>
|
3106 |
+
</tr>
|
3107 |
+
|
3108 |
+
<tr>
|
3109 |
+
<th class="bump-left"><label for="cff_disable_admin_notice" class="bump-left"><?php _e("Disable admin error notice", 'custom-facebook-feed'); ?></label></th>
|
3110 |
+
<td>
|
3111 |
+
<input name="cff_disable_admin_notice" type="checkbox" id="cff_disable_admin_notice" <?php if($cff_disable_admin_notice == true) echo "checked"; ?> />
|
3112 |
+
<label for="cff_disable_admin_notice"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
3113 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3114 |
+
<p class="cff-tooltip cff-more-info"><?php _e("This will permanently disable the feed error notice that displays in the bottom right corner for admins on the front end of your site.", 'custom-facebook-feed'); ?></p>
|
3115 |
+
</td>
|
3116 |
+
</tr>
|
3117 |
+
|
3118 |
+
<tr>
|
3119 |
+
<th class="bump-left"><label for="cff_enable_email_report" class="bump-left"><?php _e("Feed issue email report", 'custom-facebook-feed'); ?></label></th>
|
3120 |
+
<td>
|
3121 |
+
<input name="cff_enable_email_report" type="checkbox" id="cff_enable_email_report" <?php if($cff_enable_email_report == 'on') echo "checked"; ?> />
|
3122 |
+
<label for="cff_enable_email_report"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
3123 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3124 |
+
<p class="cff-tooltip cff-more-info"><?php _e("Custom Facebook Feed will send a weekly notification email using your site's wp_mail() function if one or more of your feeds is not updating or is not displaying. If you're not receiving the emails in your inbox, you may need to configure an SMTP service using another plugin like WP Mail SMTP.", 'custom-facebook-feed'); ?></p>
|
3125 |
+
|
3126 |
+
<div class="cff_box" style="display: block;">
|
3127 |
+
<div class="cff_box_setting">
|
3128 |
+
<label><?php _e('Schedule Weekly on', 'custom-facebook-feed'); ?></label><br>
|
3129 |
+
<?php
|
3130 |
+
$schedule_options = array(
|
3131 |
+
array(
|
3132 |
+
'val' => 'monday',
|
3133 |
+
'label' => __( 'Monday', 'custom-facebook-feed' )
|
3134 |
+
),
|
3135 |
+
array(
|
3136 |
+
'val' => 'tuesday',
|
3137 |
+
'label' => __( 'Tuesday', 'custom-facebook-feed' )
|
3138 |
+
),
|
3139 |
+
array(
|
3140 |
+
'val' => 'wednesday',
|
3141 |
+
'label' => __( 'Wednesday', 'custom-facebook-feed' )
|
3142 |
+
),
|
3143 |
+
array(
|
3144 |
+
'val' => 'thursday',
|
3145 |
+
'label' => __( 'Thursday', 'custom-facebook-feed' )
|
3146 |
+
),
|
3147 |
+
array(
|
3148 |
+
'val' => 'friday',
|
3149 |
+
'label' => __( 'Friday', 'custom-facebook-feed' )
|
3150 |
+
),
|
3151 |
+
array(
|
3152 |
+
'val' => 'saturday',
|
3153 |
+
'label' => __( 'Saturday', 'custom-facebook-feed' )
|
3154 |
+
),
|
3155 |
+
array(
|
3156 |
+
'val' => 'sunday',
|
3157 |
+
'label' => __( 'Sunday', 'custom-facebook-feed' )
|
3158 |
+
),
|
3159 |
+
);
|
3160 |
+
|
3161 |
+
if ( isset( $_GET['flag'] ) ){
|
3162 |
+
echo '<span id="cff-goto"></span>';
|
3163 |
+
}
|
3164 |
+
?>
|
3165 |
+
<select name="cff_email_notification" id="cff_email_notification">
|
3166 |
+
<?php foreach ( $schedule_options as $schedule_option ) : ?>
|
3167 |
+
<option value="<?php echo esc_attr( $schedule_option['val'] ) ; ?>" <?php if ( $schedule_option['val'] === $cff_email_notification ) { echo 'selected';} ?>><?php echo esc_html( $schedule_option['label'] ) ; ?></option>
|
3168 |
+
<?php endforeach; ?>
|
3169 |
+
</select>
|
3170 |
+
</div>
|
3171 |
+
<div class="cff_box_setting">
|
3172 |
+
<label><?php _e('Email Recipients', 'custom-facebook-feed'); ?></label><br><input class="regular-text" type="text" name="cff_email_notification_addresses" value="<?php echo esc_attr( $cff_email_notification_addresses ); ?>"><span class="cff_note"><?php _e('separate multiple emails with commas', 'custom-facebook-feed'); ?></span>
|
3173 |
+
<br><br><?php _e( 'Emails not working?', 'custom-facebook-feed' ) ?> <a href="https://smashballoon.com/email-report-is-not-in-my-inbox/" target="_blank"><?php _e( 'See our related FAQ', 'custom-facebook-feed' ) ?></a>
|
3174 |
+
</div>
|
3175 |
+
</div>
|
3176 |
+
|
3177 |
+
</td>
|
3178 |
+
</tr>
|
3179 |
+
|
3180 |
+
<tr>
|
3181 |
+
<?php
|
3182 |
+
$usage_tracking = get_option( 'cff_usage_tracking', array( 'last_send' => 0, 'enabled' => CFF_Utils::cff_is_pro_version() ) );
|
3183 |
+
|
3184 |
+
if ( isset( $_POST['cff_email_notification_addresses'] ) ) {
|
3185 |
+
$usage_tracking['enabled'] = false;
|
3186 |
+
if ( isset( $_POST['cff_usage_tracking_enable'] ) ) {
|
3187 |
+
if ( ! is_array( $usage_tracking ) ) {
|
3188 |
+
$usage_tracking = array(
|
3189 |
+
'enabled' => true,
|
3190 |
+
'last_send' => 0,
|
3191 |
+
);
|
3192 |
+
} else {
|
3193 |
+
$usage_tracking['enabled'] = true;
|
3194 |
+
}
|
3195 |
+
}
|
3196 |
+
update_option( 'cff_usage_tracking', $usage_tracking, false );
|
3197 |
+
}
|
3198 |
+
$cff_usage_tracking_enable = isset( $usage_tracking['enabled'] ) ? $usage_tracking['enabled'] : true;
|
3199 |
+
?>
|
3200 |
+
<th class="bump-left"><label class="bump-left"><?php _e("Enable Usage Tracking", 'custom-facebook-feed'); ?></label></th>
|
3201 |
+
<td>
|
3202 |
+
<input name="cff_usage_tracking_enable" type="checkbox" id="cff_usage_tracking_enable" <?php if( $cff_usage_tracking_enable ) echo "checked"; ?> />
|
3203 |
+
<label for="cff_usage_tracking_enable"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
3204 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is usage tracking?', 'custom-facebook-feed'); ?></a>
|
3205 |
+
<p class="cff-tooltip"><?php _e("Understanding how you are using the plugin allows us to further improve it. The plugin will send a report in the background once per week which includes information about your plugin settings and statistics about your site, which we can use to help improve the features which matter most to you and improve your experience using the plugin. The plugin will never collect any sensitive information like access tokens, email addresses, or user information, and sending this data won't slow down your site at all. For more information,", 'custom-facebook-feed'); ?> <a href="https://smashballoon.com/custom-facebook-feed/docs/usage-tracking/" target="_blank"><?php _e("see here", 'custom-facebook-feed'); ?></a>.</p>
|
3206 |
+
</td>
|
3207 |
+
</tr>
|
3208 |
+
|
3209 |
+
</tbody>
|
3210 |
+
</table>
|
3211 |
+
|
3212 |
+
<?php submit_button(); ?>
|
3213 |
+
<a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo CFF_PLUGIN_URL. 'admin/assets/img/pro.png' ?>" /></a>
|
3214 |
+
<?php } //End Misc tab ?>
|
3215 |
+
|
3216 |
+
|
3217 |
+
<?php if( $cff_active_tab == 'custom_text' ) { //Start Custom Text tab ?>
|
3218 |
+
|
3219 |
+
<p class="cff_contents_links">
|
3220 |
+
<span>Jump to: </span>
|
3221 |
+
<a href="#text">Post Text</a>
|
3222 |
+
<a href="#action">Post Action Links</a>
|
3223 |
+
<a href="#medialink">Media Links</a>
|
3224 |
+
<a href="#date">Date</a>
|
3225 |
+
</p>
|
3226 |
+
|
3227 |
+
<input type="hidden" name="<?php echo $style_custom_text_hidden_field_name; ?>" value="Y">
|
3228 |
+
<br />
|
3229 |
+
<h3><?php _e('Custom Text / Translate', 'custom-facebook-feed'); ?></h3>
|
3230 |
+
<p><?php _e('Enter custom text for the words below, or translate it into the language you would like to use.', 'custom-facebook-feed'); ?></p>
|
3231 |
+
<table class="form-table cff-translate-table" style="width: 100%; max-width: 940px;">
|
3232 |
+
<tbody>
|
3233 |
+
|
3234 |
+
<thead id="text">
|
3235 |
+
<tr>
|
3236 |
+
<th><?php _e('Original Text', 'custom-facebook-feed'); ?></th>
|
3237 |
+
<th><?php _e('Custom Text / Translation', 'custom-facebook-feed'); ?></th>
|
3238 |
+
<th><?php _e('Context', 'custom-facebook-feed'); ?></th>
|
3239 |
+
</tr>
|
3240 |
+
</thead>
|
3241 |
+
|
3242 |
+
<tr class="cff-table-header"><th colspan="3"><?php _e('Post Text', 'custom-facebook-feed'); ?></th></tr>
|
3243 |
+
<tr>
|
3244 |
+
<td><label for="cff_see_more_text" class="bump-left"><?php _e('See More', 'custom-facebook-feed'); ?></label></td>
|
3245 |
+
<td><input name="cff_see_more_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_see_more_text ) ); ?>" /></td>
|
3246 |
+
<td class="cff-context"><?php _e('Used when truncating the post text', 'custom-facebook-feed'); ?></td>
|
3247 |
+
</tr>
|
3248 |
+
|
3249 |
+
<tr id="action"><!-- Quick link -->
|
3250 |
+
<td><label for="cff_see_less_text" class="bump-left"><?php _e('See Less', 'custom-facebook-feed'); ?></label></td>
|
3251 |
+
<td><input name="cff_see_less_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_see_less_text ) ); ?>" /></td>
|
3252 |
+
<td class="cff-context"><?php _e('Used when truncating the post text', 'custom-facebook-feed'); ?></td>
|
3253 |
+
</tr>
|
3254 |
+
|
3255 |
+
<tr class="cff-table-header"><th colspan="3"><?php _e('Post Action Links', 'custom-facebook-feed'); ?></th></tr>
|
3256 |
+
<tr>
|
3257 |
+
<td><label for="cff_facebook_link_text" class="bump-left"><?php _e('View on Facebook', 'custom-facebook-feed'); ?></label></td>
|
3258 |
+
<td><input name="cff_facebook_link_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_link_text ) ); ?>" /></td>
|
3259 |
+
<td class="cff-context"><?php _e('Used for the link to the post on Facebook', 'custom-facebook-feed'); ?></td>
|
3260 |
+
</tr>
|
3261 |
+
<tr>
|
3262 |
+
<td><label for="cff_facebook_share_text" class="bump-left"><?php _e('Share', 'custom-facebook-feed'); ?></label></td>
|
3263 |
+
<td><input name="cff_facebook_share_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_share_text ) ); ?>" /></td>
|
3264 |
+
<td class="cff-context"><?php _e('Used for sharing the Facebook post via Social Media', 'custom-facebook-feed'); ?></td>
|
3265 |
+
</tr>
|
3266 |
+
|
3267 |
+
<tr id="medialink"><!-- Quick link -->
|
3268 |
+
<td><label for="cff_translate_photos_text" class="bump-left"><?php _e('photos', 'custom-facebook-feed'); ?></label></td>
|
3269 |
+
<td><input name="cff_translate_photos_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_photos_text ) ); ?>" /></td>
|
3270 |
+
<td class="cff-context"><?php _e('Added to the end of an album name. Eg. (6 photos)', 'custom-facebook-feed'); ?></td>
|
3271 |
+
</tr>
|
3272 |
+
|
3273 |
+
<tr class="cff-table-header"><th colspan="3"><?php _e('Media Links', 'custom-facebook-feed'); ?></th></tr>
|
3274 |
+
<tr>
|
3275 |
+
<td><label for="cff_translate_photo_text" class="bump-left"><?php _e('Photo', 'custom-facebook-feed'); ?></label></td>
|
3276 |
+
<td><input name="cff_translate_photo_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_photo_text ) ); ?>" /></td>
|
3277 |
+
<td class="cff-context"><?php _e('Used to link to photos on Facebook', 'custom-facebook-feed'); ?></td>
|
3278 |
+
</tr>
|
3279 |
+
<tr id="date"><!-- Quick link -->
|
3280 |
+
<td><label for="cff_translate_video_text" class="bump-left"><?php _e('Video', 'custom-facebook-feed'); ?></label></td>
|
3281 |
+
<td><input name="cff_translate_video_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_video_text ) ); ?>" /></td>
|
3282 |
+
<td class="cff-context"><?php _e('Used to link to videos on Facebook', 'custom-facebook-feed'); ?></td>
|
3283 |
+
</tr>
|
3284 |
+
|
3285 |
+
<tr class="cff-table-header"><th colspan="3"><?php _e('Call-to-action Buttons', 'custom-facebook-feed'); ?></th></tr>
|
3286 |
+
<tr>
|
3287 |
+
<td><label for="cff_translate_learn_more_text" class="bump-left"><?php _e('Learn More', 'custom-facebook-feed'); ?></label></td>
|
3288 |
+
<td><input name="cff_translate_learn_more_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_learn_more_text ) ); ?>" /></td>
|
3289 |
+
<td class="cff-context"><?php _e("Used for the 'Learn More' button", 'custom-facebook-feed'); ?></td>
|
3290 |
+
</tr>
|
3291 |
+
<tr>
|
3292 |
+
<td><label for="cff_translate_shop_now_text" class="bump-left"><?php _e('Shop Now', 'custom-facebook-feed'); ?></label></td>
|
3293 |
+
<td><input name="cff_translate_shop_now_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_shop_now_text ) ); ?>" /></td>
|
3294 |
+
<td class="cff-context"><?php _e("Used for the 'Shop Now' button", 'custom-facebook-feed'); ?></td>
|
3295 |
+
</tr>
|
3296 |
+
<tr>
|
3297 |
+
<td><label for="cff_translate_message_page_text" class="bump-left"><?php _e('Message Page', 'custom-facebook-feed'); ?></label></td>
|
3298 |
+
<td><input name="cff_translate_message_page_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_message_page_text ) ); ?>" /></td>
|
3299 |
+
<td class="cff-context"><?php _e("Used for the 'Message Page' button", 'custom-facebook-feed'); ?></td>
|
3300 |
+
</tr>
|
3301 |
+
|
3302 |
+
<tr class="cff-table-header"><th colspan="3"><?php _e('Date', 'custom-facebook-feed'); ?></th></tr>
|
3303 |
+
<tr>
|
3304 |
+
<td><label for="cff_photos_text" class="bump-left"><?php _e('"Posted _ hours ago" text', 'custom-facebook-feed'); ?></label></td>
|
3305 |
+
<td class="cff-translate-date">
|
3306 |
+
|
3307 |
+
<label for="cff_translate_second"><?php _e("second", 'custom-facebook-feed'); ?></label>
|
3308 |
+
<input name="cff_translate_second" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_second ) ); ?>" size="20" />
|
3309 |
+
<br />
|
3310 |
+
<label for="cff_translate_seconds"><?php _e("seconds", 'custom-facebook-feed'); ?></label>
|
3311 |
+
<input name="cff_translate_seconds" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_seconds ) ); ?>" size="20" />
|
3312 |
+
<br />
|
3313 |
+
<label for="cff_translate_minute"><?php _e("minute", 'custom-facebook-feed'); ?></label>
|
3314 |
+
<input name="cff_translate_minute" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_minute ) ); ?>" size="20" />
|
3315 |
+
<br />
|
3316 |
+
<label for="cff_translate_minutes"><?php _e("minutes", 'custom-facebook-feed'); ?></label>
|
3317 |
+
<input name="cff_translate_minutes" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_minutes ) ); ?>" size="20" />
|
3318 |
+
<br />
|
3319 |
+
<label for="cff_translate_hour"><?php _e("hour", 'custom-facebook-feed'); ?></label>
|
3320 |
+
<input name="cff_translate_hour" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_hour ) ); ?>" size="20" />
|
3321 |
+
<br />
|
3322 |
+
<label for="cff_translate_hours"><?php _e("hours", 'custom-facebook-feed'); ?></label>
|
3323 |
+
<input name="cff_translate_hours" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_hours ) ); ?>" size="20" />
|
3324 |
+
<br />
|
3325 |
+
<label for="cff_translate_day"><?php _e("day", 'custom-facebook-feed'); ?></label>
|
3326 |
+
<input name="cff_translate_day" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_day ) ); ?>" size="20" />
|
3327 |
+
<br />
|
3328 |
+
<label for="cff_translate_days"><?php _e("days", 'custom-facebook-feed'); ?></label>
|
3329 |
+
<input name="cff_translate_days" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_days ) ); ?>" size="20" />
|
3330 |
+
<br />
|
3331 |
+
<label for="cff_translate_week"><?php _e("week", 'custom-facebook-feed'); ?></label>
|
3332 |
+
<input name="cff_translate_week" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_week ) ); ?>" size="20" />
|
3333 |
+
<br />
|
3334 |
+
<label for="cff_translate_weeks"><?php _e("weeks", 'custom-facebook-feed'); ?></label>
|
3335 |
+
<input name="cff_translate_weeks" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_weeks ) ); ?>" size="20" />
|
3336 |
+
<br />
|
3337 |
+
<label for="cff_translate_month"><?php _e("month", 'custom-facebook-feed'); ?></label>
|
3338 |
+
<input name="cff_translate_month" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_month ) ); ?>" size="20" />
|
3339 |
+
<br />
|
3340 |
+
<label for="cff_translate_months"><?php _e("months", 'custom-facebook-feed'); ?></label>
|
3341 |
+
<input name="cff_translate_months" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_months ) ); ?>" size="20" />
|
3342 |
+
<br />
|
3343 |
+
<label for="cff_translate_year"><?php _e("year", 'custom-facebook-feed'); ?></label>
|
3344 |
+
<input name="cff_translate_year" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_year ) ); ?>" size="20" />
|
3345 |
+
<br />
|
3346 |
+
<label for="cff_translate_years"><?php _e("years", 'custom-facebook-feed'); ?></label>
|
3347 |
+
<input name="cff_translate_years" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_years ) ); ?>" size="20" />
|
3348 |
+
<br />
|
3349 |
+
<label for="cff_translate_ago"><?php _e("ago", 'custom-facebook-feed'); ?></label>
|
3350 |
+
<input name="cff_translate_ago" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_ago ) ); ?>" size="20" />
|
3351 |
+
</td>
|
3352 |
+
<td class="cff-context"><?php _e('Used to translate the "__ days ago" date text', 'custom-facebook-feed'); ?></td>
|
3353 |
+
</tr>
|
3354 |
+
|
3355 |
+
</tbody>
|
3356 |
+
</table>
|
3357 |
+
|
3358 |
+
<?php submit_button(); ?>
|
3359 |
+
<a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo CFF_PLUGIN_URL. 'admin/assets/img/pro.png' ?>" /></a>
|
3360 |
+
<?php } //End Custom Text tab ?>
|
3361 |
+
|
3362 |
+
</form>
|
3363 |
+
|
3364 |
+
<div class="cff-share-plugin">
|
3365 |
+
<h3><?php _e('Like the plugin? Help spread the word!', 'custom-facebook-feed'); ?></h3>
|
3366 |
+
|
3367 |
+
<button id="cff-admin-show-share-links" class="button secondary" style="margin-bottom: 1px;"><i class="fa fa-share-alt" aria-hidden="true"></i> Share the plugin</button> <div id="cff-admin-share-links"></div>
|
3368 |
+
</div>
|
3369 |
+
|
3370 |
+
<?php
|
3371 |
+
} //End Style_Page
|
3372 |
+
|
3373 |
+
|
3374 |
+
|
3375 |
+
//Create Settings page
|
3376 |
+
function cff_settings_page() {
|
3377 |
+
//Declare variables for fields
|
3378 |
+
$hidden_field_name = 'cff_submit_hidden';
|
3379 |
+
$show_access_token = 'cff_show_access_token';
|
3380 |
+
$access_token = 'cff_access_token';
|
3381 |
+
$page_id = 'cff_page_id';
|
3382 |
+
$cff_connected_accounts = 'cff_connected_accounts';
|
3383 |
+
$cff_page_type = 'cff_page_type';
|
3384 |
+
$num_show = 'cff_num_show';
|
3385 |
+
$cff_post_limit = 'cff_post_limit';
|
3386 |
+
$cff_show_others = 'cff_show_others';
|
3387 |
+
$cff_cache_time = 'cff_cache_time';
|
3388 |
+
$cff_cache_time_unit = 'cff_cache_time_unit';
|
3389 |
+
$cff_locale = 'cff_locale';
|
3390 |
+
// Read in existing option value from database
|
3391 |
+
$show_access_token_val = true;
|
3392 |
+
$access_token_val = get_option( $access_token );
|
3393 |
+
$page_id_val = get_option( $page_id );
|
3394 |
+
$cff_connected_accounts_val = get_option( $cff_connected_accounts );
|
3395 |
+
|
3396 |
+
$cff_page_type_val = get_option( $cff_page_type, 'page' );
|
3397 |
+
$num_show_val = get_option( $num_show, '5' );
|
3398 |
+
$cff_post_limit_val = get_option( $cff_post_limit );
|
3399 |
+
$cff_show_others_val = get_option( $cff_show_others );
|
3400 |
+
$cff_cache_time_val = get_option( $cff_cache_time, '1' );
|
3401 |
+
$cff_cache_time_unit_val = get_option( $cff_cache_time_unit, 'hours' );
|
3402 |
+
$cff_locale_val = get_option( $cff_locale, 'en_US' );
|
3403 |
+
|
3404 |
+
//Timezone
|
3405 |
+
$defaults = array(
|
3406 |
+
'cff_timezone' => 'America/Chicago',
|
3407 |
+
'cff_num_mobile' => ''
|
3408 |
+
);
|
3409 |
+
$options = wp_parse_args(get_option('cff_style_settings'), $defaults);
|
3410 |
+
$cff_timezone = $options[ 'cff_timezone' ];
|
3411 |
+
$cff_num_mobile = $options[ 'cff_num_mobile' ];
|
3412 |
+
|
3413 |
+
|
3414 |
+
//Check nonce before saving data
|
3415 |
+
if ( ! isset( $_POST['cff_settings_nonce'] ) || ! wp_verify_nonce( $_POST['cff_settings_nonce'], 'cff_saving_settings' ) ) {
|
3416 |
+
//Nonce did not verify
|
3417 |
+
} else {
|
3418 |
+
// See if the user has posted us some information. If they did, this hidden field will be set to 'Y'.
|
3419 |
+
if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) {
|
3420 |
+
// Read their posted value
|
3421 |
+
isset( $_POST[ $show_access_token ] ) ? $show_access_token_val = true : $show_access_token_val = true;
|
3422 |
+
isset( $_POST[ $access_token ] ) ? $access_token_val = sanitize_text_field( $_POST[ $access_token ] ) : $access_token_val = '';
|
3423 |
+
isset( $_POST[ $page_id ] ) ? $page_id_val = sanitize_text_field( $_POST[ $page_id ] ) : $page_id_val = '';
|
3424 |
+
isset( $_POST[ $cff_connected_accounts ] ) ? $cff_connected_accounts_val = $_POST[ $cff_connected_accounts ] : $cff_connected_accounts_val = '';
|
3425 |
+
isset( $_POST[ $cff_page_type ] ) ? $cff_page_type_val = sanitize_text_field( $_POST[ $cff_page_type ] ) : $cff_page_type_val = '';
|
3426 |
+
isset( $_POST[ $num_show ] ) ? $num_show_val = sanitize_text_field( $_POST[ $num_show ] ) : $num_show_val = '';
|
3427 |
+
isset( $_POST[ 'cff_num_mobile' ] ) ? $cff_num_mobile = sanitize_text_field( $_POST[ 'cff_num_mobile' ] ) : $cff_num_mobile = '';
|
3428 |
+
isset( $_POST[ $cff_post_limit ] ) ? $cff_post_limit_val = sanitize_text_field( $_POST[ $cff_post_limit ] ) : $cff_post_limit_val = '';
|
3429 |
+
isset( $_POST[ $cff_show_others ] ) ? $cff_show_others_val = sanitize_text_field( $_POST[ $cff_show_others ] ) : $cff_show_others_val = '';
|
3430 |
+
isset( $_POST[ $cff_cache_time ] ) ? $cff_cache_time_val = sanitize_text_field( $_POST[ $cff_cache_time ] ) : $cff_cache_time_val = '';
|
3431 |
+
isset( $_POST[ $cff_cache_time_unit ] ) ? $cff_cache_time_unit_val = sanitize_text_field( $_POST[ $cff_cache_time_unit ] ) : $cff_cache_time_unit_val = '';
|
3432 |
+
isset( $_POST[ $cff_locale ] ) ? $cff_locale_val = sanitize_text_field( $_POST[ $cff_locale ] ) : $cff_locale_val = '';
|
3433 |
+
if (isset($_POST[ 'cff_timezone' ]) ) $cff_timezone = sanitize_text_field( $_POST[ 'cff_timezone' ] );
|
3434 |
+
|
3435 |
+
// Save the posted value in the database
|
3436 |
+
update_option( $show_access_token, true );
|
3437 |
+
update_option( $access_token, $access_token_val );
|
3438 |
+
update_option( $page_id, $page_id_val );
|
3439 |
+
update_option( $cff_connected_accounts, $cff_connected_accounts_val );
|
3440 |
+
|
3441 |
+
update_option( $cff_page_type, $cff_page_type_val );
|
3442 |
+
update_option( $num_show, $num_show_val );
|
3443 |
+
update_option( $cff_post_limit, $cff_post_limit_val );
|
3444 |
+
update_option( $cff_show_others, $cff_show_others_val );
|
3445 |
+
update_option( $cff_cache_time, $cff_cache_time_val );
|
3446 |
+
update_option( $cff_cache_time_unit, $cff_cache_time_unit_val );
|
3447 |
+
update_option( $cff_locale, $cff_locale_val );
|
3448 |
+
|
3449 |
+
$options[ 'cff_timezone' ] = $cff_timezone;
|
3450 |
+
$options[ 'cff_num_mobile' ] = $cff_num_mobile;
|
3451 |
+
update_option( 'cff_style_settings', $options );
|
3452 |
+
|
3453 |
+
//Delete ALL transients
|
3454 |
+
cff_delete_cache();
|
3455 |
+
// Put an settings updated message on the screen
|
3456 |
+
?>
|
3457 |
+
<div class="updated"><p><strong><?php _e('Settings saved.', 'custom-facebook-feed' ); ?></strong></p></div>
|
3458 |
+
<?php } ?>
|
3459 |
+
|
3460 |
+
<?php } //End nonce check ?>
|
3461 |
+
|
3462 |
+
<div id="cff-admin" class="wrap">
|
3463 |
+
|
3464 |
+
<?php
|
3465 |
+
$lite_notice_dismissed = get_transient( 'facebook_feed_dismiss_lite' );
|
3466 |
+
|
3467 |
+
if ( ! $lite_notice_dismissed ) :
|
3468 |
+
?>
|
3469 |
+
<div id="cff-notice-bar" style="display:none">
|
3470 |
+
<span class="cff-notice-bar-message"><?php _e( 'You\'re using Custom Facebook Feed Lite. To unlock more features consider <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=notices&utm_medium=lite" target="_blank" rel="noopener noreferrer">upgrading to Pro</a>.', 'custom-facebook-feed'); ?></span>
|
3471 |
+
<button type="button" class="dismiss" title="<?php _e( 'Dismiss this message.', 'custom-facebook-feed'); ?>" data-page="overview">
|
3472 |
+
</button>
|
3473 |
+
</div>
|
3474 |
+
<?php endif; ?>
|
3475 |
+
<?php do_action( 'cff_admin_overview_before_table' ); ?>
|
3476 |
+
|
3477 |
+
<div id="header">
|
3478 |
+
<h1><?php _e('Custom Facebook Feed', 'custom-facebook-feed'); ?></h1>
|
3479 |
+
</div>
|
3480 |
+
|
3481 |
+
<?php
|
3482 |
+
$cff_active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'configuration';
|
3483 |
+
?>
|
3484 |
+
<h2 class="nav-tab-wrapper">
|
3485 |
+
<a href="?page=cff-top&tab=configuration" class="nav-tab <?php echo $cff_active_tab == 'configuration' ? 'nav-tab-active' : ''; ?>"><?php _e('Configuration', 'custom-facebook-feed'); ?></a>
|
3486 |
+
<a href="?page=cff-style" class="nav-tab <?php echo $cff_active_tab == 'customize' ? 'nav-tab-active' : ''; ?>"><?php _e('Customize', 'custom-facebook-feed'); ?></a>
|
3487 |
+
<a href="?page=cff-top&tab=support" class="nav-tab <?php echo $cff_active_tab == 'support' ? 'nav-tab-active' : ''; ?>"><?php _e('Support', 'custom-facebook-feed'); ?></a>
|
3488 |
+
<a href="?page=cff-top&tab=more" class="nav-tab <?php echo $cff_active_tab == 'more' ? 'nav-tab-active' : ''; ?>"><?php _e('More Social Feeds', 'custom-facebook-feed'); ?>
|
3489 |
+
<?php
|
3490 |
+
$seen_more_plugins_page = get_user_meta(get_current_user_id(), 'seen_more_plugins_page_1', true);
|
3491 |
+
if( !$seen_more_plugins_page ) echo '<span class="cff-alert-bubble">1</span>';
|
3492 |
+
?>
|
3493 |
+
</a>
|
3494 |
+
</h2>
|
3495 |
+
|
3496 |
+
<?php if( $cff_active_tab == 'configuration' ) { //Start tab ?>
|
3497 |
+
|
3498 |
+
<form name="form1" method="post" action="">
|
3499 |
+
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
3500 |
+
<?php wp_nonce_field( 'cff_saving_settings', 'cff_settings_nonce' ); ?>
|
3501 |
+
|
3502 |
+
<br />
|
3503 |
+
<h3><?php _e('Configuration', 'custom-facebook-feed'); ?></h3>
|
3504 |
+
|
3505 |
+
|
3506 |
+
<div id="cff_fb_login_modal">
|
3507 |
+
<div class="cff_modal_box">
|
3508 |
+
|
3509 |
+
<p>Log into your Facebook account using the button below and approve the plugin to connect your account.</p>
|
3510 |
+
|
3511 |
+
|
3512 |
+
<div class="cff-login-options">
|
3513 |
+
<label for="cff_login_type">Would you like to display a Facebook Page or Group?</label>
|
3514 |
+
<select id="cff_login_type">
|
3515 |
+
<option value="page">Facebook Page</option>
|
3516 |
+
<option value="group">Facebook Group</option>
|
3517 |
+
</select>
|
3518 |
+
|
3519 |
+
<p>
|
3520 |
+
<a href="javascript:void(0);" id="cff_admin_cancel_btn" class="cff-admin-cancel-btn">Cancel</a>
|
3521 |
+
|
3522 |
+
<?php
|
3523 |
+
$admin_url_state = admin_url('admin.php?page=cff-top');
|
3524 |
+
//If the admin_url isn't returned correctly then use a fallback
|
3525 |
+
if( $admin_url_state == '/wp-admin/admin.php?page=cff-top' || $admin_url_state == '/wp-admin/admin.php?page=cff-top&tab=configuration' ){
|
3526 |
+
$admin_url_state = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
|
3527 |
+
}
|
3528 |
+
?>
|
3529 |
+
<a href="https://api.smashballoon.com/facebook-login.php?state=<?php echo $admin_url_state; ?>" class="cff_admin_btn" id="cff_page_app"><i class="fa fa-facebook-square"></i> <?php _e( 'Continue', 'custom-facebook-feed' ); ?></a>
|
3530 |
+
|
3531 |
+
<a href="https://api.smashballoon.com/facebook-group-login.php?state=<?php echo $admin_url_state; ?>" class="cff_admin_btn" id="cff_group_app"><i class="fa fa-facebook-square"></i> <?php _e( 'Continue', 'custom-facebook-feed' ); ?></a>
|
3532 |
+
|
3533 |
+
</p>
|
3534 |
+
</div>
|
3535 |
+
|
3536 |
+
<p style="font-size: 11px; margin-top: 25px;"><b>Please note:</b> this does not give us permission to manage your Facebook pages or groups, it simply allows the plugin to see a list that you manage and retrieve an Access Token.</p>
|
3537 |
+
|
3538 |
+
</div>
|
3539 |
+
</div>
|
3540 |
+
|
3541 |
+
<a href="JavaScript:void(0);" class="cff_admin_btn" id="cff_fb_login"><i class="fa fa-facebook-square"></i> <?php _e( 'Connect a Facebook account', 'custom-facebook-feed' ); ?></a>
|
3542 |
+
|
3543 |
+
|
3544 |
+
<?php
|
3545 |
+
if( isset($_GET['access_token']) && isset($_GET['final_response']) ){
|
3546 |
+
|
3547 |
+
if( $_GET['final_response'] == 'true' ){
|
3548 |
+
|
3549 |
+
|
3550 |
+
\cff_main()->cff_error_reporter->remove_error( 'accesstoken' );
|
3551 |
+
|
3552 |
+
$access_token = $_GET['access_token'];
|
3553 |
+
$cff_is_groups = false;
|
3554 |
+
$pages_data_arr = '';
|
3555 |
+
$groups_data_arr = '';
|
3556 |
+
|
3557 |
+
if( isset($_GET['group']) ){
|
3558 |
+
//Get Groups
|
3559 |
+
|
3560 |
+
$cff_is_groups = true;
|
3561 |
+
$groups_data_arr = '';
|
3562 |
+
|
3563 |
+
//Extend the user token by making a call to /me/accounts. User must be an admin of a page for this to work as won't work if the response is empty.
|
3564 |
+
$url = 'https://graph.facebook.com/me/accounts?limit=500&access_token='.$access_token;
|
3565 |
+
|
3566 |
+
$accounts_data = CFF_Utils::cff_fetchUrl($url);
|
3567 |
+
$accounts_data_arr = json_decode($accounts_data);
|
3568 |
+
$cff_token_expiration = 'never';
|
3569 |
+
if( empty($accounts_data_arr->data) ){
|
3570 |
+
$cff_token_expiration = '60 days';
|
3571 |
+
}
|
3572 |
+
|
3573 |
+
//Get User ID
|
3574 |
+
$user_url = 'https://graph.facebook.com/me?fields=id&access_token='.$access_token;
|
3575 |
+
$user_id_data = CFF_Utils::cff_fetchUrl($user_url);
|
3576 |
+
|
3577 |
+
if( !empty($user_id_data) ){
|
3578 |
+
$user_id_data_arr = json_decode($user_id_data);
|
3579 |
+
$user_id = $user_id_data_arr->id;
|
3580 |
+
|
3581 |
+
//Get groups they're admin of
|
3582 |
+
$groups_admin_url = 'https://graph.facebook.com/'.$user_id.'/groups?admin_only=true&fields=name,id,picture&access_token='.$access_token;
|
3583 |
+
$groups_admin_data = CFF_Utils::cff_fetchUrl($groups_admin_url);
|
3584 |
+
$groups_admin_data_arr = json_decode($groups_admin_data);
|
3585 |
+
|
3586 |
+
//Get member groups
|
3587 |
+
$groups_url = 'https://graph.facebook.com/'.$user_id.'/groups?admin_only=false&fields=name,id,picture&access_token='.$access_token;
|
3588 |
+
$groups_data = CFF_Utils::cff_fetchUrl($groups_url);
|
3589 |
+
$groups_data_arr = json_decode($groups_data);
|
3590 |
+
|
3591 |
+
// $pages_data_arr = $groups_data_arr;
|
3592 |
+
}
|
3593 |
+
} else {
|
3594 |
+
//Get Pages
|
3595 |
+
|
3596 |
+
$url = 'https://graph.facebook.com/me/accounts?limit=500&access_token='.$access_token;
|
3597 |
+
$pages_data = CFF_Utils::cff_fetchUrl($url);
|
3598 |
+
$pages_data_arr = json_decode($pages_data);
|
3599 |
+
|
3600 |
+
if( empty($pages_data_arr->data) ){
|
3601 |
+
//If they don't manage any pages then just use the user token instead
|
3602 |
+
?>
|
3603 |
+
<script type='text/javascript'>
|
3604 |
+
jQuery(document).ready(function($) {
|
3605 |
+
$('#cff_access_token').val('<?php echo $access_token ?>').addClass('cff-success');
|
3606 |
+
//Check the own access token setting so it reveals token field
|
3607 |
+
if( $('#cff_show_access_token:checked').length < 1 ){
|
3608 |
+
$("#cff_show_access_token").trigger("change").prop( "checked", true );
|
3609 |
+
}
|
3610 |
+
});
|
3611 |
+
</script>
|
3612 |
+
<?php
|
3613 |
+
}
|
3614 |
+
|
3615 |
+
}
|
3616 |
+
|
3617 |
+
|
3618 |
+
if( !empty($pages_data_arr->data) || $cff_is_groups ){
|
3619 |
+
//Show the pages they manage
|
3620 |
+
echo '<div id="cff_fb_login_modal" class="cff_modal_tokens cffnomodal">';
|
3621 |
+
echo '<div class="cff_modal_box">';
|
3622 |
+
echo '<div class="cff-managed-pages">';
|
3623 |
+
|
3624 |
+
if( $cff_is_groups ){
|
3625 |
+
//GROUPS
|
3626 |
+
|
3627 |
+
if( empty($groups_data_arr->data) && empty($groups_admin_data_arr->data) ){
|
3628 |
+
echo '<h3>No Groups Returned</h3>';
|
3629 |
+
echo "<p>Facebook has not returned any groups for your user. It is only possible to display a feed from a group which you are either an admin or a member. Please note, if you are not an admin of the group then it is required that an admin add our app in the group settings in order to display a feed.</p><p>Please either create or join a Facebook group and then follow the directions when connecting your account on this page.</p>";
|
3630 |
+
echo '<a href="JavaScript:void(0);" class="button button-primary" id="cff-close-modal-primary-button">Close</a>';
|
3631 |
+
} else {
|
3632 |
+
|
3633 |
+
|
3634 |
+
\cff_main()->cff_error_reporter->remove_error( 'accesstoken' );
|
3635 |
+
echo '<div class="cff-groups-list">';
|
3636 |
+
echo '<p style="margin-top: 0;"><i class="fa fa-check-circle" aria-hidden="true" style="font-size: 15px; margin: 0 8px 0 2px;"></i>Select a Facebook group below to get an Access Token.</p>';
|
3637 |
+
|
3638 |
+
echo '<div class="cff-pages-wrap">';
|
3639 |
+
//Admin groups
|
3640 |
+
foreach ( $groups_admin_data_arr->data as $page => $group_data ) {
|
3641 |
+
echo '<div class="cff-managed-page cff-group-admin';
|
3642 |
+
if( $group_data->id == $page_id_val ) echo ' cff-page-selected';
|
3643 |
+
echo '" data-token="'.$access_token.'" data-page-id="'.$group_data->id.'" id="cff_'.$group_data->id.'" data-pagetype="group">';
|
3644 |
+
echo '<p>';
|
3645 |
+
if( isset( $group_data->picture->data->url ) ) echo '<img class="cff-page-avatar" border="0" height="50" width="50" src="'.$group_data->picture->data->url.'">';
|
3646 |
+
echo '<b class="cff-page-info-name">'.$group_data->name.'</b><span class="cff-page-info">(Group ID: '.$group_data->id.')</span></p>';
|
3647 |
+
echo '<div class="cff-group-admin-icon"><i class="fa fa-user" aria-hidden="true"></i> Admin</div>';
|
3648 |
+
echo '</div>';
|
3649 |
+
}
|
3650 |
+
//Member groups
|
3651 |
+
foreach ( $groups_data_arr->data as $page => $group_data ) {
|
3652 |
+
echo '<div class="cff-managed-page';
|
3653 |
+
if( $group_data->id == $page_id_val ) echo ' cff-page-selected';
|
3654 |
+
echo '" data-token="'.$access_token.'" data-page-id="'.$group_data->id.'" id="cff_'.$group_data->id.'" data-pagetype="group">';
|
3655 |
+
echo '<p>';
|
3656 |
+
if( isset( $group_data->picture->data->url ) ) echo '<img class="cff-page-avatar" border="0" height="50" width="50" src="'.$group_data->picture->data->url.'">';
|
3657 |
+
echo '<b class="cff-page-info-name">'.$group_data->name.'</b><span class="cff-page-info">(Group ID: '.$group_data->id.')</span></p>';
|
3658 |
+
echo '</div>';
|
3659 |
+
}
|
3660 |
+
echo '</div>';
|
3661 |
+
echo '<a href="JavaScript:void(0);" class="button button-primary cff-group-btn" id="cff-insert-token" disabled="disabled">Use token for this Group</a>';
|
3662 |
+
if( $cff_token_expiration == "60 days" ) echo '<div id="cff_token_expiration_note" class="cff-error"><b>Important:</b> This token will expire in 60 days.<br /><a href="https://smashballoon.com/extending-a-group-access-token-so-it-never-expires/" target="_blank">Extend token so it never expires</a></div>';
|
3663 |
+
echo '</div>';
|
3664 |
+
|
3665 |
+
echo '<div id="cff-group-installation">';
|
3666 |
+
echo '<h3>Important</h3>';
|
3667 |
+
|
3668 |
+
echo '<div id="cff-group-admin-directions">';
|
3669 |
+
echo '<p>To display a feed from your group you need to add our app in your Facebook group settings:</p>';
|
3670 |
+
echo '<ul>';
|
3671 |
+
echo '<li><b>1)</b> Go to your group settings page by clicking <a id="cff-group-edit" href="https://www.facebook.com/groups/" target="_blank">here<i class="fa fa-external-link" aria-hidden="true" style="font-size: 13px; position: relative; top: 2px; margin-left: 5px;"></i></a></li>';
|
3672 |
+
echo '<li><b>2)</b> In the "Apps" section click "Add Apps".</li>';
|
3673 |
+
echo '<li><b>3)</b> Search for "Smash Balloon" and select our app (<a id="cff-group-app-tooltip">screenshot</a>).<img id="cff-group-app-screenshot" src="'. CFF_PLUGIN_URL ."admin/assets/img/group-app.png" .'" alt="Thumbnail Layout" /></li>';
|
3674 |
+
echo '<li><b>4</b>) Click "Add".</li>';
|
3675 |
+
echo '</ul>';
|
3676 |
+
|
3677 |
+
echo '<p style="margin-bottom: 10px;">You can now use the plugin to display a feed from your group.</p>';
|
3678 |
+
echo '</div>';
|
3679 |
+
|
3680 |
+
echo '<div id="cff-group-member-directions">';
|
3681 |
+
echo '<p>To display a feed from this group an admin needs to first add our app in the group settings. Please ask an admin to follow the directions <a href="https://smashballoon.com/adding-our-app-to-a-facebook-group/" target="_blank">here</a> to add our app.</p>';
|
3682 |
+
echo '<p>Once this is done you will then be able to display a feed from this group.</p>';
|
3683 |
+
echo '</div>';
|
3684 |
+
|
3685 |
+
echo '<a href="JavaScript:void(0);" class="button button-primary" id="cff-close-modal-primary-button">Done</a>';
|
3686 |
+
echo '<a href="https://smashballoon.com/display-facebook-group-feed/" target="_blank" class="button button-secondary"><i class="fa fa-life-ring"></i> Help</a>';
|
3687 |
+
echo '</div>';
|
3688 |
+
|
3689 |
+
}
|
3690 |
+
|
3691 |
+
} else {
|
3692 |
+
//PAGES
|
3693 |
+
|
3694 |
+
|
3695 |
+
\cff_main()->cff_error_reporter->remove_error( 'accesstoken' );
|
3696 |
+
|
3697 |
+
echo '<p class="cff-tokens-note"><i class="fa fa-check-circle" aria-hidden="true" style="font-size: 15px; margin: 0 8px 0 2px;"></i> Select a Facebook page below to connect it.</p>';
|
3698 |
+
|
3699 |
+
echo '<div class="cff-pages-wrap">';
|
3700 |
+
foreach ( $pages_data_arr->data as $page => $page_data ) {
|
3701 |
+
echo '<div class="cff-managed-page ';
|
3702 |
+
if( $page_data->id == $page_id_val ) echo 'cff-page-selected';
|
3703 |
+
echo '" data-token="'.$page_data->access_token.'" data-page-id="'.$page_data->id.'" data-pagetype="page">';
|
3704 |
+
echo '<p><img class="cff-page-avatar" border="0" height="50" width="50" src="https://graph.facebook.com/'.$page_data->id.'/picture"><b class="cff-page-info-name">'.$page_data->name.'</b><span class="cff-page-info">(Page ID: '.$page_data->id.')</span></p>';
|
3705 |
+
echo '</div>';
|
3706 |
+
}
|
3707 |
+
echo '</div>';
|
3708 |
+
|
3709 |
+
$cff_use_token_text = 'Connect this page';
|
3710 |
+
echo '<a href="JavaScript:void(0);" id="cff-insert-token" class="button button-primary" disabled="disabled">'.$cff_use_token_text.'</a>';
|
3711 |
+
echo '<a href="JavaScript:void(0);" id="cff-insert-all-tokens" class="button button-secondary cff_connect_all">Connect All</a>';
|
3712 |
+
echo "<a href='https://smashballoon.com/facebook-pages-im-admin-of-arent-listed-after-authorizing-plugin/' target='_blank' class='cff-connection-note'>One of my pages isn't listed</a>";
|
3713 |
+
|
3714 |
+
}
|
3715 |
+
|
3716 |
+
echo '</div>';
|
3717 |
+
echo '<a href="JavaScript:void(0);" class="cff-modal-close"><i class="fa fa-times"></i></a>';
|
3718 |
+
echo '</div>';
|
3719 |
+
echo '</div>';
|
3720 |
+
|
3721 |
+
echo '<a href="JavaScript:void(0);" class="cff_admin_btn" id="cff_fb_show_tokens"><i class="fa fa-th-list" aria-hidden="true" style="font-size: 14px; margin-right: 8px;"></i>';
|
3722 |
+
$cff_is_groups ? _e( "Show Available Groups", "custom-facebook-feed" ) : _e( "Show Available Pages", "custom-facebook-feed" );
|
3723 |
+
echo '</a>';
|
3724 |
+
|
3725 |
+
}
|
3726 |
+
|
3727 |
+
}
|
3728 |
+
}
|
3729 |
+
?>
|
3730 |
+
|
3731 |
+
<table class="form-table">
|
3732 |
+
<tbody>
|
3733 |
+
<tr valign="top">
|
3734 |
+
<th scope="row"><label><?php _e('Facebook Page ID<br /><i style="font-weight: normal; font-size: 12px;">ID of your Facebook Page or Group</i>', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> id
|
3735 |
+
Eg: id="YOUR_PAGE_OR_GROUP_ID"</code></th>
|
3736 |
+
<td>
|
3737 |
+
<p id="cff_primary_account_label"></p>
|
3738 |
+
<input name="cff_page_id" id="cff_page_id" type="text" value="<?php esc_attr_e( $page_id_val, 'custom-facebook-feed' ); ?>" size="45" data-page-id="<?php esc_attr_e( $page_id_val ); ?>" />
|
3739 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What\'s my Page ID?', 'custom-facebook-feed'); ?></a>
|
3740 |
+
<br /><i style="color: #666; font-size: 11px;">Eg. 1234567890123 or smashballoon</i>
|
3741 |
+
<div class="cff-tooltip cff-more-info">
|
3742 |
+
<ul>
|
3743 |
+
<li><?php _e('<b>Facebook Page</b><br />
|
3744 |
+
You can find the ID of your Facebook <b>Page</b> from the URL. In each URL format, the ID is highlighted below:<br /><br />
|
3745 |
+
URL Format 1: <code>https://www.facebook.com/<span class="cff-highlight">your_page_name</span></code>
|
3746 |
+
<br />
|
3747 |
+
URL Format 2: <code>https://www.facebook.com/your_page_name-<span class="cff-highlight">1234567890</span></code>
|
3748 |
+
<br />
|
3749 |
+
URL Format 3: <code>https://www.facebook.com/pages/your_page_name/<span class="cff-highlight">1234567890</span></code>
|
3750 |
+
'); ?>
|
3751 |
+
</li>
|
3752 |
+
<li><?php _e('<b>Facebook Group</b><br />You can find the ID of your Facebook <b>Group</b> from the URL, like so: <code>https://www.facebook.com/groups/<span class="cff-highlight">1234567890</span></code>'); ?></li>
|
3753 |
+
</ul>
|
3754 |
+
</div>
|
3755 |
+
</td>
|
3756 |
+
</tr>
|
3757 |
+
|
3758 |
+
<?php
|
3759 |
+
//When connecting an account check the current access token to see if it has an error. If so then add a class to the field and replace it automatically in JS when getting a new one.
|
3760 |
+
$cff_replace_token = false;
|
3761 |
+
if( isset($_GET['access_token']) && isset($_GET['final_response']) ){
|
3762 |
+
|
3763 |
+
if( $_GET['final_response'] == 'true' ){
|
3764 |
+
$api_page_id = trim($page_id_val);
|
3765 |
+
$url = 'https://graph.facebook.com/'.$api_page_id.'?limit=1&fields=id&access_token='.$access_token_val;
|
3766 |
+
$accounts_data = CFF_Utils::cff_fetchUrl($url);
|
3767 |
+
//If there's an error (and it's not the PPCA one) then mark the token as needing to be replaced
|
3768 |
+
if (strpos($accounts_data, 'error') !== false && strpos($accounts_data, 'Public') == false) $cff_replace_token = true;
|
3769 |
+
}
|
3770 |
+
|
3771 |
+
}
|
3772 |
+
|
3773 |
+
?>
|
3774 |
+
|
3775 |
+
<tr valign="top">
|
3776 |
+
|
3777 |
+
<?php
|
3778 |
+
//Check to see whether we've already checked the token against the API. If so, then don't do it again until the settings are saved which clears this transient.
|
3779 |
+
//This var is used to add an attr to the access token field below. If it's set then ana Ajax call is made in the admin JS file which checks the API to see if the token matches the ID.
|
3780 |
+
$cff_check_api_for_ppca = false;
|
3781 |
+
if( ! get_transient( 'cff_ppca_admin_token_check' ) ){
|
3782 |
+
$cff_check_api_for_ppca = true;
|
3783 |
+
set_transient( 'cff_ppca_admin_token_check', 1, YEAR_IN_SECONDS );
|
3784 |
+
}
|
3785 |
+
|
3786 |
+
?>
|
3787 |
+
<th scope="row" style="padding-bottom: 10px;"><?php _e('Facebook Access Token', 'custom-facebook-feed'); ?><br /><i style="font-weight: normal; font-size: 12px; color: red;"><?php _e('Required', 'custom-facebook-feed'); ?></i></th>
|
3788 |
+
<td>
|
3789 |
+
<textarea name="cff_access_token" id="cff_access_token" <?php if($cff_replace_token) echo 'class="cff-replace-token"' ?> style="min-width: 60%;" data-accesstoken="<?php esc_attr_e( $access_token_val ); ?>" <?php if($cff_check_api_for_ppca) echo 'data-check-ppca="true"'; ?>><?php esc_attr_e( $access_token_val ); ?></textarea>
|
3790 |
+
|
3791 |
+
<div class="cff-ppca-check-notice cff-error"><?php _e("<b>Important:</b> This Access Token does not match the Facebook ID used above. To check which Facebook Page this Access Token is for, <a href='https://smashballoon.com/checking-what-facebook-page-an-access-token-is-from/' target='_blank'>see here</a>.", 'custom-facebook-feed'); ?>
|
3792 |
+
|
3793 |
+
<span style="display: block; padding-top: 4px;"><i class="fa fa-question-circle" aria-hidden="true"></i> <a class="cff-tooltip-link" style="margin:0;" href="JavaScript:void(0);"><?php _e("Why am I seeing this?"); ?></a></span>
|
3794 |
+
<p class="cff-tooltip cff-more-info"><?php _e("Due to <a href='https://smashballoon.com/facebook-api-changes-september-4-2020/' target='_blank'>Facebook API changes</a> on September 4, 2020, it is only possible to display Facebook feeds from a Facebook page you have admin permissions on. This Access Token doesn't appear to match the Facebook page specified above that you are trying to display a feed from. To troubleshoot this issue, please <a href='https://smashballoon.com/facebook-ppca-error-notice/' target='_blank'>see here</a>.", 'custom-facebook-feed'); ?></p>
|
3795 |
+
</div>
|
3796 |
+
|
3797 |
+
<br /><a class="cff-tooltip-link" style="margin-left: 3px;" href="JavaScript:void(0);"><?php _e("What is this?", 'custom-facebook-feed'); ?></a>
|
3798 |
+
<p class="cff-tooltip cff-more-info"><?php _e("In order to connect to Facebook and get a feed, you need to use an Access Token. To get one, simply use the blue button above to log into your Facebook account. You will then receive a token that will be used to connect to Facebook's API. If you already have an Access Token then you can enter it here.", 'custom-facebook-feed'); ?></p>
|
3799 |
+
|
3800 |
+
<div class="cff-notice cff-profile-error cff-access-token">
|
3801 |
+
<?php _e("<p>This doesn't appear to be an Access Token. Please be sure that you didn't enter your App Secret instead of your Access Token.<br />Your App ID and App Secret are used to obtain your Access Token; simply paste them into the fields in the last step of the <a href='https://smashballoon.com/custom-facebook-feed/access-token/' target='_blank'>Access Token instructions</a> and click '<b>Get my Access Token</b>'.</p>", 'custom-facebook-feed'); ?>
|
3802 |
+
</div>
|
3803 |
+
</td>
|
3804 |
+
</tr>
|
3805 |
+
</tbody>
|
3806 |
+
</table>
|
3807 |
+
|
3808 |
+
<div id="cff_accounts_section">
|
3809 |
+
<a href="JavaScript:void(0);" class="button-secondary button" id="cff_manual_account_button">Manually connect account</a>
|
3810 |
+
|
3811 |
+
<div id="cff_manual_account">
|
3812 |
+
<div id="cff_manual_account_step_1">
|
3813 |
+
<label for="cff_manual_account_type"><?php _e('Is it a Facebook page or group?'); ?></label>
|
3814 |
+
<select name="cff_manual_account_type" id="cff_manual_account_type">
|
3815 |
+
<option value="" disabled selected><?php _e('- Select one -'); ?></option>
|
3816 |
+
<option value="page"><?php _e('Page'); ?></option>
|
3817 |
+
<option value="group"><?php _e('Group'); ?></option>
|
3818 |
+
</select>
|
3819 |
+
<a href="javascript:void(0);" class="cff_manual_forward button-primary"><i class="fa fa-chevron-right" aria-hidden="true"></i></a>
|
3820 |
+
</div>
|
3821 |
+
|
3822 |
+
<div id="cff_manual_account_step_2" class="cff_account_type_page">
|
3823 |
+
<div>
|
3824 |
+
<label for="cff_manual_account_name"><span class="cff_page"><?php _e('Page'); ?></span><span class="cff_group"><?php _e('Group'); ?></span> <?php _e('Name'); ?> <span style="font-size: 11px;"><?php _e('(optional)'); ?></span></label>
|
3825 |
+
<input name="cff_manual_account_name" id="cff_manual_account_name" type="text" value="" placeholder="Eg: John's Facebook Page" />
|
3826 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3827 |
+
<p class="cff-tooltip cff-more-info"><?php _e('This is just for labeling the account here on this settings page'); ?></p>
|
3828 |
+
</div>
|
3829 |
+
|
3830 |
+
<div>
|
3831 |
+
<label for="cff_manual_account_id"><span class="cff_page"><?php _e('Page'); ?></span><span class="cff_group"><?php _e('Group'); ?></span> <?php _e('ID'); ?></label>
|
3832 |
+
<input name="cff_manual_account_id" id="cff_manual_account_id" type="text" value="" placeholder="Eg: 1234567890123 or smashballoon" />
|
3833 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3834 |
+
<p class="cff-tooltip cff-more-info"><?php _e('The ID of the Facebook'); ?> <span class="cff_page"><?php _e('Page'); ?></span><span class="cff_group"><?php _e('Group'); ?></span> <?php _e('you want to add.'); ?> <a href='https://smashballoon.com/custom-facebook-feed/id/' target='_blank'><?php _e("How do I find my Page ID?"); ?></a></p>
|
3835 |
+
</div>
|
3836 |
+
|
3837 |
+
<div>
|
3838 |
+
<label for="cff_manual_account_token"><?php _e('Access Token'); ?></label>
|
3839 |
+
<input name="cff_manual_account_token" id="cff_manual_account_token" type="text" value="" />
|
3840 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3841 |
+
<p class="cff-tooltip cff-more-info"><?php _e('The Access Token of the Facebook'); ?> <span class="cff_page"><?php _e('Page'); ?></span><span class="cff_group"><?php _e('Group'); ?></span> <?php _e('you want to add'); ?></p>
|
3842 |
+
</div>
|
3843 |
+
|
3844 |
+
<?php
|
3845 |
+
$cff_submit_btn_atts = array( 'disabled' => 'true' );
|
3846 |
+
submit_button('Connect Account', 'primary', 'submit', true, $cff_submit_btn_atts);
|
3847 |
+
?>
|
3848 |
+
<a href="javascript:void(0);" class="cff_manual_back button-secondary">Back</a>
|
3849 |
+
</div>
|
3850 |
+
|
3851 |
+
</div>
|
3852 |
+
|
3853 |
+
<h3 class="cff_connected_actions">Connected Accounts:</h3>
|
3854 |
+
<div id="cff_connected_accounts_wrap"><?php //Add connected accounts here ?></div>
|
3855 |
+
|
3856 |
+
<div class="cff_connected_actions">
|
3857 |
+
<a href="JavaScript:void(0);" id="cff_export_accounts">Show raw account data</a>
|
3858 |
+
<div id="cff_export_accounts_wrap">
|
3859 |
+
<textarea name="cff_connected_accounts" id="cff_connected_accounts" style="width: 100%;" rows="5" /><?php echo stripslashes( esc_attr( $cff_connected_accounts_val ) ); ?></textarea>
|
3860 |
+
</div>
|
3861 |
+
|
3862 |
+
<?php submit_button('Save Settings'); ?>
|
3863 |
+
</div>
|
3864 |
+
|
3865 |
+
</div>
|
3866 |
+
|
3867 |
+
<hr />
|
3868 |
+
<table class="form-table">
|
3869 |
+
<tbody>
|
3870 |
+
<h3><?php _e('Settings', 'custom-facebook-feed'); ?></h3>
|
3871 |
+
|
3872 |
+
<tr valign="top" class="cff-page-type">
|
3873 |
+
<th scope="row"><label><?php _e('Is it a page or group?'); ?></label><code class="cff_shortcode"> pagetype
|
3874 |
+
Eg: pagetype=group</code></th>
|
3875 |
+
<td>
|
3876 |
+
<select name="cff_page_type" id="cff_page_type" style="width: 100px;">
|
3877 |
+
<option value="page" <?php if($cff_page_type_val == "page") echo 'selected="selected"' ?> ><?php _e('Page'); ?></option>
|
3878 |
+
<option value="group" <?php if($cff_page_type_val == "group") echo 'selected="selected"' ?> ><?php _e('Group'); ?></option>
|
3879 |
+
<option value="profile" <?php if($cff_page_type_val == "profile") echo 'selected="selected"' ?> ><?php _e('Profile'); ?></option>
|
3880 |
+
</select>
|
3881 |
+
<div class="cff-notice cff-profile-error cff-page-type">
|
3882 |
+
<?php _e("<p>Due to Facebook's privacy policy you're not able to display posts from a personal profile, only from a public Facebook Page.</p><p>If you're using a profile to represent a business, organization, product, public figure or the like, then Facebook recommends <a href='http://www.facebook.com/help/175644189234902/' target='_blank'>converting your profile to a page</a>. There are many advantages to using pages over profiles, and once you've converted then the plugin will be able to successfully retrieve and display all of your posts.</p>", 'custom-facebook-feed'); ?>
|
3883 |
+
</div>
|
3884 |
+
</td>
|
3885 |
+
</tr>
|
3886 |
+
|
3887 |
+
<tr valign="top">
|
3888 |
+
<th scope="row"><label><?php _e('Show posts on my page by:', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> showpostsby
|
3889 |
+
Eg: showpostsby=others</code></th>
|
3890 |
+
<td>
|
3891 |
+
<select name="cff_show_others" id="cff_show_others" style="width: 250px;">
|
3892 |
+
<option value="me" <?php if($cff_show_others_val == 'me') echo 'selected="selected"' ?> ><?php _e('Only the page owner (me)', 'custom-facebook-feed'); ?></option>
|
3893 |
+
<option value="others" <?php if($cff_show_others_val == 'others' || $cff_show_others_val == 'on') echo 'selected="selected"' ?> ><?php _e('Page owner + other people', 'custom-facebook-feed'); ?></option>
|
3894 |
+
<option value="onlyothers" <?php if($cff_show_others_val == 'onlyothers') echo 'selected="selected"' ?> ><?php _e('Only other people', 'custom-facebook-feed'); ?></option>
|
3895 |
+
</select>
|
3896 |
+
</td>
|
3897 |
+
</tr>
|
3898 |
+
|
3899 |
+
<tr valign="top">
|
3900 |
+
<th scope="row"><label><?php _e('Number of posts to display', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> num, nummobile
|
3901 |
+
Eg: num=5
|
3902 |
+
nummobile=3</code></th>
|
3903 |
+
<td>
|
3904 |
+
<input name="cff_num_show" type="text" value="<?php esc_attr_e( $num_show_val, 'custom-facebook-feed' ); ?>" size="4" />
|
3905 |
+
<i style="color: #666; font-size: 11px;">Max 100</i>
|
3906 |
+
<div style="margin: 8px 0 0 1px; font-size: 12px;">
|
3907 |
+
<input type="checkbox" name="cff_show_num_mobile" id="cff_show_num_mobile" <?php if(! empty( $cff_num_mobile )) echo 'checked="checked"' ?> /> <label for="cff_show_num_mobile"><?php _e('Show different number for mobile'); ?></label>
|
3908 |
+
<div class="cff-mobile-col-settings">
|
3909 |
+
<div class="cff-row">
|
3910 |
+
<label title="Click for shortcode option"><?php _e('Mobile Number', 'custom-facebook-feed'); ?>:</label><code class="cff_shortcode"> nummobile
|
3911 |
+
Eg: nummobile=4</code>
|
3912 |
+
<input type="text" name="cff_num_mobile" id="cff_num_mobile" size="4" value="<?php echo esc_attr( $cff_num_mobile ); ?>">
|
3913 |
+
<i style="color: #666; font-size: 11px;"><?php _e('Leave blank for default', 'custom-facebook-feed'); ?></i>
|
3914 |
+
</div>
|
3915 |
+
</div>
|
3916 |
+
</div>
|
3917 |
+
</td>
|
3918 |
+
</tr>
|
3919 |
+
<tr valign="top">
|
3920 |
+
<th scope="row"><label><?php _e('Facebook API post limit', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> limit
|
3921 |
+
Eg: limit=10</code></th>
|
3922 |
+
<td>
|
3923 |
+
<select name="cff_limit_setting" id="cff_limit_setting" style="width: 90px;">
|
3924 |
+
<option value="auto" selected="selected"><?php _e('Auto'); ?></option>
|
3925 |
+
<option value="manual"><?php _e('Manual'); ?></option>
|
3926 |
+
</select>
|
3927 |
+
<div id="cff_limit_manual_settings">
|
3928 |
+
<input name="cff_post_limit" id="cff_post_limit" type="text" value="<?php esc_attr_e( $cff_post_limit_val ); ?>" size="4" />
|
3929 |
+
<i style="color: #666; font-size: 11px;">Eg. 10. Max 100.</i>
|
3930 |
+
</div>
|
3931 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3932 |
+
<p class="cff-tooltip cff-more-info"><?php _e("The post 'limit' is the number of posts retrieved from the Facebook API. Most users won't need to manually adjust this setting as by default the plugin automatically retrieves a few more posts from the Facebook API than you need, as some posts may be filtered out.", "custom-facebook-feed"); ?><br /><br />
|
3933 |
+
|
3934 |
+
<b><?php _e('Auto', 'custom-facebook-feed'); ?></b> (<?php _e('Recommended', 'custom-facebook-feed'); ?>)<br />
|
3935 |
+
<?php _e("Allow the plugin to automatically decide how many posts to retrieve from Facebook's API.", "custom-facebook-feed"); ?><br /><br />
|
3936 |
+
|
3937 |
+
<b><?php _e('Manual', 'custom-facebook-feed'); ?></b><br />
|
3938 |
+
<?php _e("Manually set how many posts to retrieve from Facebook's API.<br /><b>Note:</b> If you choose to retrieve a high number of posts then it will take longer for Facebook to return the posts when the plugin checks for new ones.", "custom-facebook-feed"); ?></p>
|
3939 |
+
</td>
|
3940 |
+
</tr>
|
3941 |
+
<tr valign="top">
|
3942 |
+
<th scope="row"><?php _e('Check for new posts every', 'custom-facebook-feed'); ?></th>
|
3943 |
+
<td>
|
3944 |
+
<input name="cff_cache_time" type="text" value="<?php esc_attr_e( $cff_cache_time_val, 'custom-facebook-feed' ); ?>" size="4" />
|
3945 |
+
<select name="cff_cache_time_unit" style="width: 100px;">
|
3946 |
+
<option value="minutes" <?php if($cff_cache_time_unit_val == "minutes") echo 'selected="selected"' ?> ><?php _e('Minutes', 'custom-facebook-feed'); ?></option>
|
3947 |
+
<option value="hours" <?php if($cff_cache_time_unit_val == "hours") echo 'selected="selected"' ?> ><?php _e('Hours', 'custom-facebook-feed'); ?></option>
|
3948 |
+
<option value="days" <?php if($cff_cache_time_unit_val == "days") echo 'selected="selected"' ?> ><?php _e('Days', 'custom-facebook-feed'); ?></option>
|
3949 |
+
</select>
|
3950 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3951 |
+
<p class="cff-tooltip cff-more-info"><?php _e('Your Facebook posts and comments data is temporarily cached by the plugin in your WordPress database. You can choose how long this data should be cached for. If you set the time to 60 minutes then the plugin will clear the cached data after that length of time, and the next time the page is viewed it will check for new data.', 'custom-facebook-feed'); ?></p>
|
3952 |
+
</td>
|
3953 |
+
</tr>
|
3954 |
+
|
3955 |
+
<tr valign="top">
|
3956 |
+
<th scope="row"><label><?php _e('Localization', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> locale
|
3957 |
+
Eg: locale=es_ES</code></th>
|
3958 |
+
<td>
|
3959 |
+
<select name="cff_locale">
|
3960 |
+
<option value="af_ZA" <?php if($cff_locale_val == "af_ZA") echo 'selected="selected"' ?> ><?php _e('Afrikaans', 'custom-facebook-feed'); ?></option>
|
3961 |
+
<option value="ar_AR" <?php if($cff_locale_val == "ar_AR") echo 'selected="selected"' ?> ><?php _e('Arabic', 'custom-facebook-feed'); ?></option>
|
3962 |
+
<option value="az_AZ" <?php if($cff_locale_val == "az_AZ") echo 'selected="selected"' ?> ><?php _e('Azerbaijani', 'custom-facebook-feed'); ?></option>
|
3963 |
+
<option value="be_BY" <?php if($cff_locale_val == "be_BY") echo 'selected="selected"' ?> ><?php _e('Belarusian', 'custom-facebook-feed'); ?></option>
|
3964 |
+
<option value="bg_BG" <?php if($cff_locale_val == "bg_BG") echo 'selected="selected"' ?> ><?php _e('Bulgarian', 'custom-facebook-feed'); ?></option>
|
3965 |
+
<option value="bn_IN" <?php if($cff_locale_val == "bn_IN") echo 'selected="selected"' ?> ><?php _e('Bengali', 'custom-facebook-feed'); ?></option>
|
3966 |
+
<option value="bs_BA" <?php if($cff_locale_val == "bs_BA") echo 'selected="selected"' ?> ><?php _e('Bosnian', 'custom-facebook-feed'); ?></option>
|
3967 |
+
<option value="ca_ES" <?php if($cff_locale_val == "ca_ES") echo 'selected="selected"' ?> ><?php _e('Catalan', 'custom-facebook-feed'); ?></option>
|
3968 |
+
<option value="cs_CZ" <?php if($cff_locale_val == "cs_CZ") echo 'selected="selected"' ?> ><?php _e('Czech', 'custom-facebook-feed'); ?></option>
|
3969 |
+
<option value="cy_GB" <?php if($cff_locale_val == "cy_GB") echo 'selected="selected"' ?> ><?php _e('Welsh', 'custom-facebook-feed'); ?></option>
|
3970 |
+
<option value="da_DK" <?php if($cff_locale_val == "da_DK") echo 'selected="selected"' ?> ><?php _e('Danish', 'custom-facebook-feed'); ?></option>
|
3971 |
+
<option value="de_DE" <?php if($cff_locale_val == "de_DE") echo 'selected="selected"' ?> ><?php _e('German', 'custom-facebook-feed'); ?></option>
|
3972 |
+
<option value="el_GR" <?php if($cff_locale_val == "el_GR") echo 'selected="selected"' ?> ><?php _e('Greek', 'custom-facebook-feed'); ?></option>
|
3973 |
+
<option value="en_GB" <?php if($cff_locale_val == "en_GB") echo 'selected="selected"' ?> ><?php _e('English (UK)', 'custom-facebook-feed'); ?></option>
|
3974 |
+
<option value="en_PI" <?php if($cff_locale_val == "en_PI") echo 'selected="selected"' ?> ><?php _e('English (Pirate)', 'custom-facebook-feed'); ?></option>
|
3975 |
+
<option value="en_UD" <?php if($cff_locale_val == "en_UD") echo 'selected="selected"' ?> ><?php _e('English (Upside Down)', 'custom-facebook-feed'); ?></option>
|
3976 |
+
<option value="en_US" <?php if($cff_locale_val == "en_US") echo 'selected="selected"' ?> ><?php _e('English (US)', 'custom-facebook-feed'); ?></option>
|
3977 |
+
<option value="eo_EO" <?php if($cff_locale_val == "eo_EO") echo 'selected="selected"' ?> ><?php _e('Esperanto', 'custom-facebook-feed'); ?></option>
|
3978 |
+
<option value="es_ES" <?php if($cff_locale_val == "es_ES") echo 'selected="selected"' ?> ><?php _e('Spanish (Spain)', 'custom-facebook-feed'); ?></option>
|
3979 |
+
<option value="es_LA" <?php if($cff_locale_val == "es_LA") echo 'selected="selected"' ?> ><?php _e('Spanish', 'custom-facebook-feed'); ?></option>
|
3980 |
+
<option value="et_EE" <?php if($cff_locale_val == "et_EE") echo 'selected="selected"' ?> ><?php _e('Estonian', 'custom-facebook-feed'); ?></option>
|
3981 |
+
<option value="eu_ES" <?php if($cff_locale_val == "eu_ES") echo 'selected="selected"' ?> ><?php _e('Basque', 'custom-facebook-feed'); ?></option>
|
3982 |
+
<option value="fa_IR" <?php if($cff_locale_val == "fa_IR") echo 'selected="selected"' ?> ><?php _e('Persian', 'custom-facebook-feed'); ?></option>
|
3983 |
+
<option value="fb_LT" <?php if($cff_locale_val == "fb_LT") echo 'selected="selected"' ?> ><?php _e('Leet Speak', 'custom-facebook-feed'); ?></option>
|
3984 |
+
<option value="fi_FI" <?php if($cff_locale_val == "fi_FI") echo 'selected="selected"' ?> ><?php _e('Finnish', 'custom-facebook-feed'); ?></option>
|
3985 |
+
<option value="fo_FO" <?php if($cff_locale_val == "fo_FO") echo 'selected="selected"' ?> ><?php _e('Faroese', 'custom-facebook-feed'); ?></option>
|
3986 |
+
<option value="fr_CA" <?php if($cff_locale_val == "fr_CA") echo 'selected="selected"' ?> ><?php _e('French (Canada)', 'custom-facebook-feed'); ?></option>
|
3987 |
+
<option value="fr_FR" <?php if($cff_locale_val == "fr_FR") echo 'selected="selected"' ?> ><?php _e('French (France)', 'custom-facebook-feed'); ?></option>
|
3988 |
+
<option value="fy_NL" <?php if($cff_locale_val == "fy_NL") echo 'selected="selected"' ?> ><?php _e('Frisian', 'custom-facebook-feed'); ?></option>
|
3989 |
+
<option value="ga_IE" <?php if($cff_locale_val == "ga_IE") echo 'selected="selected"' ?> ><?php _e('Irish', 'custom-facebook-feed'); ?></option>
|
3990 |
+
<option value="gl_ES" <?php if($cff_locale_val == "gl_ES") echo 'selected="selected"' ?> ><?php _e('Galician', 'custom-facebook-feed'); ?></option>
|
3991 |
+
<option value="he_IL" <?php if($cff_locale_val == "he_IL") echo 'selected="selected"' ?> ><?php _e('Hebrew', 'custom-facebook-feed'); ?></option>
|
3992 |
+
<option value="hi_IN" <?php if($cff_locale_val == "hi_IN") echo 'selected="selected"' ?> ><?php _e('Hindi', 'custom-facebook-feed'); ?></option>
|
3993 |
+
<option value="hr_HR" <?php if($cff_locale_val == "hr_HR") echo 'selected="selected"' ?> ><?php _e('Croatian', 'custom-facebook-feed'); ?></option>
|
3994 |
+
<option value="hu_HU" <?php if($cff_locale_val == "hu_HU") echo 'selected="selected"' ?> ><?php _e('Hungarian', 'custom-facebook-feed'); ?></option>
|
3995 |
+
<option value="hy_AM" <?php if($cff_locale_val == "hy_AM") echo 'selected="selected"' ?> ><?php _e('Armenian', 'custom-facebook-feed'); ?></option>
|
3996 |
+
<option value="id_ID" <?php if($cff_locale_val == "id_ID") echo 'selected="selected"' ?> ><?php _e('Indonesian', 'custom-facebook-feed'); ?></option>
|
3997 |
+
<option value="is_IS" <?php if($cff_locale_val == "is_IS") echo 'selected="selected"' ?> ><?php _e('Icelandic', 'custom-facebook-feed'); ?></option>
|
3998 |
+
<option value="it_IT" <?php if($cff_locale_val == "it_IT") echo 'selected="selected"' ?> ><?php _e('Italian', 'custom-facebook-feed'); ?></option>
|
3999 |
+
<option value="ja_JP" <?php if($cff_locale_val == "ja_JP") echo 'selected="selected"' ?> ><?php _e('Japanese', 'custom-facebook-feed'); ?></option>
|
4000 |
+
<option value="ka_GE" <?php if($cff_locale_val == "ka_GE") echo 'selected="selected"' ?> ><?php _e('Georgian', 'custom-facebook-feed'); ?></option>
|
4001 |
+
<option value="km_KH" <?php if($cff_locale_val == "km_KH") echo 'selected="selected"' ?> ><?php _e('Khmer', 'custom-facebook-feed'); ?></option>
|
4002 |
+
<option value="ko_KR" <?php if($cff_locale_val == "ko_KR") echo 'selected="selected"' ?> ><?php _e('Korean', 'custom-facebook-feed'); ?></option>
|
4003 |
+
<option value="ku_TR" <?php if($cff_locale_val == "ku_TR") echo 'selected="selected"' ?> ><?php _e('Kurdish', 'custom-facebook-feed'); ?></option>
|
4004 |
+
<option value="la_VA" <?php if($cff_locale_val == "la_VA") echo 'selected="selected"' ?> ><?php _e('Latin', 'custom-facebook-feed'); ?></option>
|
4005 |
+
<option value="lt_LT" <?php if($cff_locale_val == "lt_LT") echo 'selected="selected"' ?> ><?php _e('Lithuanian', 'custom-facebook-feed'); ?></option>
|
4006 |
+
<option value="lv_LV" <?php if($cff_locale_val == "lv_LV") echo 'selected="selected"' ?> ><?php _e('Latvian', 'custom-facebook-feed'); ?></option>
|
4007 |
+
<option value="mk_MK" <?php if($cff_locale_val == "mk_MK") echo 'selected="selected"' ?> ><?php _e('Macedonian', 'custom-facebook-feed'); ?></option>
|
4008 |
+
<option value="ml_IN" <?php if($cff_locale_val == "ml_IN") echo 'selected="selected"' ?> ><?php _e('Malayalam', 'custom-facebook-feed'); ?></option>
|
4009 |
+
<option value="ms_MY" <?php if($cff_locale_val == "ms_MY") echo 'selected="selected"' ?> ><?php _e('Malay', 'custom-facebook-feed'); ?></option>
|
4010 |
+
<option value="nb_NO" <?php if($cff_locale_val == "nb_NO") echo 'selected="selected"' ?> ><?php _e('Norwegian (bokmal)', 'custom-facebook-feed'); ?></option>
|
4011 |
+
<option value="ne_NP" <?php if($cff_locale_val == "ne_NP") echo 'selected="selected"' ?> ><?php _e('Nepali', 'custom-facebook-feed'); ?></option>
|
4012 |
+
<option value="nl_NL" <?php if($cff_locale_val == "nl_NL") echo 'selected="selected"' ?> ><?php _e('Dutch', 'custom-facebook-feed'); ?></option>
|
4013 |
+
<option value="nn_NO" <?php if($cff_locale_val == "nn_NO") echo 'selected="selected"' ?> ><?php _e('Norwegian (nynorsk)', 'custom-facebook-feed'); ?></option>
|
4014 |
+
<option value="pa_IN" <?php if($cff_locale_val == "pa_IN") echo 'selected="selected"' ?> ><?php _e('Punjabi', 'custom-facebook-feed'); ?></option>
|
4015 |
+
<option value="pl_PL" <?php if($cff_locale_val == "pl_PL") echo 'selected="selected"' ?> ><?php _e('Polish', 'custom-facebook-feed'); ?></option>
|
4016 |
+
<option value="ps_AF" <?php if($cff_locale_val == "ps_AF") echo 'selected="selected"' ?> ><?php _e('Pashto', 'custom-facebook-feed'); ?></option>
|
4017 |
+
<option value="pt_BR" <?php if($cff_locale_val == "pt_BR") echo 'selected="selected"' ?> ><?php _e('Portuguese (Brazil)', 'custom-facebook-feed'); ?></option>
|
4018 |
+
<option value="pt_PT" <?php if($cff_locale_val == "pt_PT") echo 'selected="selected"' ?> ><?php _e('Portuguese (Portugal)', 'custom-facebook-feed'); ?></option>
|
4019 |
+
<option value="ro_RO" <?php if($cff_locale_val == "ro_RO") echo 'selected="selected"' ?> ><?php _e('Romanian', 'custom-facebook-feed'); ?></option>
|
4020 |
+
<option value="ru_RU" <?php if($cff_locale_val == "ru_RU") echo 'selected="selected"' ?> ><?php _e('Russian', 'custom-facebook-feed'); ?></option>
|
4021 |
+
<option value="sk_SK" <?php if($cff_locale_val == "sk_SK") echo 'selected="selected"' ?> ><?php _e('Slovak', 'custom-facebook-feed'); ?></option>
|
4022 |
+
<option value="sl_SI" <?php if($cff_locale_val == "sl_SI") echo 'selected="selected"' ?> ><?php _e('Slovenian', 'custom-facebook-feed'); ?></option>
|
4023 |
+
<option value="sq_AL" <?php if($cff_locale_val == "sq_AL") echo 'selected="selected"' ?> ><?php _e('Albanian', 'custom-facebook-feed'); ?></option>
|
4024 |
+
<option value="sr_RS" <?php if($cff_locale_val == "sr_RS") echo 'selected="selected"' ?> ><?php _e('Serbian', 'custom-facebook-feed'); ?></option>
|
4025 |
+
<option value="sv_SE" <?php if($cff_locale_val == "sv_SE") echo 'selected="selected"' ?> ><?php _e('Swedish', 'custom-facebook-feed'); ?></option>
|
4026 |
+
<option value="sw_KE" <?php if($cff_locale_val == "sw_KE") echo 'selected="selected"' ?> ><?php _e('Swahili', 'custom-facebook-feed'); ?></option>
|
4027 |
+
<option value="ta_IN" <?php if($cff_locale_val == "ta_IN") echo 'selected="selected"' ?> ><?php _e('Tamil', 'custom-facebook-feed'); ?></option>
|
4028 |
+
<option value="te_IN" <?php if($cff_locale_val == "te_IN") echo 'selected="selected"' ?> ><?php _e('Telugu', 'custom-facebook-feed'); ?></option>
|
4029 |
+
<option value="th_TH" <?php if($cff_locale_val == "th_TH") echo 'selected="selected"' ?> ><?php _e('Thai', 'custom-facebook-feed'); ?></option>
|
4030 |
+
<option value="tl_PH" <?php if($cff_locale_val == "tl_PH") echo 'selected="selected"' ?> ><?php _e('Filipino', 'custom-facebook-feed'); ?></option>
|
4031 |
+
<option value="tr_TR" <?php if($cff_locale_val == "tr_TR") echo 'selected="selected"' ?> ><?php _e('Turkish', 'custom-facebook-feed'); ?></option>
|
4032 |
+
<option value="uk_UA" <?php if($cff_locale_val == "uk_UA") echo 'selected="selected"' ?> ><?php _e('Ukrainian', 'custom-facebook-feed'); ?></option>
|
4033 |
+
<option value="vi_VN" <?php if($cff_locale_val == "vi_VN") echo 'selected="selected"' ?> ><?php _e('Vietnamese', 'custom-facebook-feed'); ?></option>
|
4034 |
+
<option value="zh_CN" <?php if($cff_locale_val == "zh_CN") echo 'selected="selected"' ?> ><?php _e('Simplified Chinese (China)', 'custom-facebook-feed'); ?></option>
|
4035 |
+
<option value="zh_HK" <?php if($cff_locale_val == "zh_HK") echo 'selected="selected"' ?> ><?php _e('Traditional Chinese (Hong Kong)', 'custom-facebook-feed'); ?></option>
|
4036 |
+
<option value="zh_TW" <?php if($cff_locale_val == "zh_TW") echo 'selected="selected"' ?> ><?php _e('Traditional Chinese (Taiwan)', 'custom-facebook-feed'); ?></option>
|
4037 |
+
</select>
|
4038 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
4039 |
+
<p class="cff-tooltip cff-more-info"><?php _e("This translates some of the text sent by Facebook, specifically, the descriptive post text (eg: Smash Balloon shared a link) and the text in the 'Like Box' widget. To find out how to translate the other text in the plugin see <a href='https://smashballoon.com/cff-how-does-the-plugin-handle-text-and-language-translation/' target='_blank'>this FAQ</a>."); ?></p>
|
4040 |
+
</td>
|
4041 |
+
</tr>
|
4042 |
+
|
4043 |
+
<tr>
|
4044 |
+
<th><label for="cff_timezone" class="bump-left"><?php _e('Timezone', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> timezone
|
4045 |
+
Eg: timezone="America/New_York"
|
4046 |
+
<a href="http://php.net/manual/en/timezones.php" target="_blank">See full list</a></code></th>
|
4047 |
+
<td>
|
4048 |
+
<select name="cff_timezone" style="width: 300px;">
|
4049 |
+
<option value="Pacific/Midway" <?php if($cff_timezone == "Pacific/Midway") echo 'selected="selected"' ?> ><?php _e('(GMT-11:00) Midway Island, Samoa', 'custom-facebook-feed'); ?></option>
|
4050 |
+
<option value="America/Adak" <?php if($cff_timezone == "America/Adak") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii-Aleutian', 'custom-facebook-feed'); ?></option>
|
4051 |
+
<option value="Etc/GMT+10" <?php if($cff_timezone == "Etc/GMT+10") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii', 'custom-facebook-feed'); ?></option>
|
4052 |
+
<option value="Pacific/Marquesas" <?php if($cff_timezone == "Pacific/Marquesas") echo 'selected="selected"' ?> ><?php _e('(GMT-09:30) Marquesas Islands', 'custom-facebook-feed'); ?></option>
|
4053 |
+
<option value="Pacific/Gambier" <?php if($cff_timezone == "Pacific/Gambier") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Gambier Islands', 'custom-facebook-feed'); ?></option>
|
4054 |
+
<option value="America/Anchorage" <?php if($cff_timezone == "America/Anchorage") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Alaska', 'custom-facebook-feed'); ?></option>
|
4055 |
+
<option value="America/Ensenada" <?php if($cff_timezone == "America/Ensenada") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Tijuana, Baja California', 'custom-facebook-feed'); ?></option>
|
4056 |
+
<option value="Etc/GMT+8" <?php if($cff_timezone == "Etc/GMT+8") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pitcairn Islands', 'custom-facebook-feed'); ?></option>
|
4057 |
+
<option value="America/Los_Angeles" <?php if($cff_timezone == "America/Los_Angeles") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pacific Time (US & Canada)', 'custom-facebook-feed'); ?></option>
|
4058 |
+
<option value="America/Denver" <?php if($cff_timezone == "America/Denver") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Mountain Time (US & Canada)', 'custom-facebook-feed'); ?></option>
|
4059 |
+
<option value="America/Chihuahua" <?php if($cff_timezone == "America/Chihuahua") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Chihuahua, La Paz, Mazatlan', 'custom-facebook-feed'); ?></option>
|
4060 |
+
<option value="America/Dawson_Creek" <?php if($cff_timezone == "America/Dawson_Creek") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Arizona', 'custom-facebook-feed'); ?></option>
|
4061 |
+
<option value="America/Belize" <?php if($cff_timezone == "America/Belize") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Saskatchewan, Central America', 'custom-facebook-feed'); ?></option>
|
4062 |
+
<option value="America/Cancun" <?php if($cff_timezone == "America/Cancun") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Guadalajara, Mexico City, Monterrey', 'custom-facebook-feed'); ?></option>
|
4063 |
+
<option value="Chile/EasterIsland" <?php if($cff_timezone == "Chile/EasterIsland") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Easter Island', 'custom-facebook-feed'); ?></option>
|
4064 |
+
<option value="America/Chicago" <?php if($cff_timezone == "America/Chicago") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Central Time (US & Canada)', 'custom-facebook-feed'); ?></option>
|
4065 |
+
<option value="America/New_York" <?php if($cff_timezone == "America/New_York") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Eastern Time (US & Canada)', 'custom-facebook-feed'); ?></option>
|
4066 |
+
<option value="America/Havana" <?php if($cff_timezone == "America/Havana") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Cuba', 'custom-facebook-feed'); ?></option>
|
4067 |
+
<option value="America/Bogota" <?php if($cff_timezone == "America/Bogota") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Bogota, Lima, Quito, Rio Branco', 'custom-facebook-feed'); ?></option>
|
4068 |
+
<option value="America/Caracas" <?php if($cff_timezone == "America/Caracas") echo 'selected="selected"' ?> ><?php _e('(GMT-04:30) Caracas', 'custom-facebook-feed'); ?></option>
|
4069 |
+
<option value="America/Santiago" <?php if($cff_timezone == "America/Santiago") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Santiago', 'custom-facebook-feed'); ?></option>
|
4070 |
+
<option value="America/La_Paz" <?php if($cff_timezone == "America/La_Paz") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) La Paz', 'custom-facebook-feed'); ?></option>
|
4071 |
+
<option value="Atlantic/Stanley" <?php if($cff_timezone == "Atlantic/Stanley") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Faukland Islands', 'custom-facebook-feed'); ?></option>
|
4072 |
+
<option value="America/Campo_Grande" <?php if($cff_timezone == "America/Campo_Grande") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Brazil', 'custom-facebook-feed'); ?></option>
|
4073 |
+
<option value="America/Goose_Bay" <?php if($cff_timezone == "America/Goose_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Goose Bay)', 'custom-facebook-feed'); ?></option>
|
4074 |
+
<option value="America/Glace_Bay" <?php if($cff_timezone == "America/Glace_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Canada)', 'custom-facebook-feed'); ?></option>
|
4075 |
+
<option value="America/St_Johns" <?php if($cff_timezone == "America/St_Johns") echo 'selected="selected"' ?> ><?php _e('(GMT-03:30) Newfoundland', 'custom-facebook-feed'); ?></option>
|
4076 |
+
<option value="America/Araguaina" <?php if($cff_timezone == "America/Araguaina") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) UTC-3', 'custom-facebook-feed'); ?></option>
|
4077 |
+
<option value="America/Montevideo" <?php if($cff_timezone == "America/Montevideo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Montevideo', 'custom-facebook-feed'); ?></option>
|
4078 |
+
<option value="America/Miquelon" <?php if($cff_timezone == "America/Miquelon") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Miquelon, St. Pierre', 'custom-facebook-feed'); ?></option>
|
4079 |
+
<option value="America/Godthab" <?php if($cff_timezone == "America/Godthab") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Greenland', 'custom-facebook-feed'); ?></option>
|
4080 |
+
<option value="America/Argentina/Buenos_Aires" <?php if($cff_timezone == "America/Argentina/Buenos_Aires") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Buenos Aires', 'custom-facebook-feed'); ?></option>
|
4081 |
+
<option value="America/Sao_Paulo" <?php if($cff_timezone == "America/Sao_Paulo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Brasilia', 'custom-facebook-feed'); ?></option>
|
4082 |
+
<option value="America/Noronha" <?php if($cff_timezone == "America/Noronha") echo 'selected="selected"' ?> ><?php _e('(GMT-02:00) Mid-Atlantic', 'custom-facebook-feed'); ?></option>
|
4083 |
+
<option value="Atlantic/Cape_Verde" <?php if($cff_timezone == "Atlantic/Cape_Verde") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Cape Verde Is.', 'custom-facebook-feed'); ?></option>
|
4084 |
+
<option value="Atlantic/Azores" <?php if($cff_timezone == "Atlantic/Azores") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Azores', 'custom-facebook-feed'); ?></option>
|
4085 |
+
<option value="Europe/Belfast" <?php if($cff_timezone == "Europe/Belfast") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Belfast', 'custom-facebook-feed'); ?></option>
|
4086 |
+
<option value="Europe/Dublin" <?php if($cff_timezone == "Europe/Dublin") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Dublin', 'custom-facebook-feed'); ?></option>
|
4087 |
+
<option value="Europe/Lisbon" <?php if($cff_timezone == "Europe/Lisbon") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Lisbon', 'custom-facebook-feed'); ?></option>
|
4088 |
+
<option value="Europe/London" <?php if($cff_timezone == "Europe/London") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : London', 'custom-facebook-feed'); ?></option>
|
4089 |
+
<option value="Africa/Abidjan" <?php if($cff_timezone == "Africa/Abidjan") echo 'selected="selected"' ?> ><?php _e('(GMT) Monrovia, Reykjavik', 'custom-facebook-feed'); ?></option>
|
4090 |
+
<option value="Europe/Amsterdam" <?php if($cff_timezone == "Europe/Amsterdam") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna', 'custom-facebook-feed'); ?></option>
|
4091 |
+
<option value="Europe/Belgrade" <?php if($cff_timezone == "Europe/Belgrade") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague', 'custom-facebook-feed'); ?></option>
|
4092 |
+
<option value="Europe/Brussels" <?php if($cff_timezone == "Europe/Brussels") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Brussels, Copenhagen, Madrid, Paris', 'custom-facebook-feed'); ?></option>
|
4093 |
+
<option value="Africa/Algiers" <?php if($cff_timezone == "Africa/Algiers") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) West Central Africa', 'custom-facebook-feed'); ?></option>
|
4094 |
+
<option value="Africa/Windhoek" <?php if($cff_timezone == "Africa/Windhoek") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Windhoek', 'custom-facebook-feed'); ?></option>
|
4095 |
+
<option value="Asia/Beirut" <?php if($cff_timezone == "Asia/Beirut") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Beirut', 'custom-facebook-feed'); ?></option>
|
4096 |
+
<option value="Africa/Cairo" <?php if($cff_timezone == "Africa/Cairo") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Cairo', 'custom-facebook-feed'); ?></option>
|
4097 |
+
<option value="Asia/Gaza" <?php if($cff_timezone == "Asia/Gaza") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Gaza', 'custom-facebook-feed'); ?></option>
|
4098 |
+
<option value="Africa/Blantyre" <?php if($cff_timezone == "Africa/Blantyre") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Harare, Pretoria', 'custom-facebook-feed'); ?></option>
|
4099 |
+
<option value="Asia/Jerusalem" <?php if($cff_timezone == "Asia/Jerusalem") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Jerusalem', 'custom-facebook-feed'); ?></option>
|
4100 |
+
<option value="Europe/Minsk" <?php if($cff_timezone == "Europe/Minsk") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Minsk', 'custom-facebook-feed'); ?></option>
|
4101 |
+
<option value="Asia/Damascus" <?php if($cff_timezone == "Asia/Damascus") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Syria', 'custom-facebook-feed'); ?></option>
|
4102 |
+
<option value="Europe/Moscow" <?php if($cff_timezone == "Europe/Moscow") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Moscow, St. Petersburg, Volgograd', 'custom-facebook-feed'); ?></option>
|
4103 |
+
<option value="Africa/Addis_Ababa" <?php if($cff_timezone == "Africa/Addis_Ababa") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Nairobi', 'custom-facebook-feed'); ?></option>
|
4104 |
+
<option value="Asia/Tehran" <?php if($cff_timezone == "Asia/Tehran") echo 'selected="selected"' ?> ><?php _e('(GMT+03:30) Tehran', 'custom-facebook-feed'); ?></option>
|
4105 |
+
<option value="Asia/Dubai" <?php if($cff_timezone == "Asia/Dubai") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Abu Dhabi, Muscat', 'custom-facebook-feed'); ?></option>
|
4106 |
+
<option value="Asia/Yerevan" <?php if($cff_timezone == "Asia/Yerevan") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Yerevan', 'custom-facebook-feed'); ?></option>
|
4107 |
+
<option value="Asia/Kabul" <?php if($cff_timezone == "Asia/Kabul") echo 'selected="selected"' ?> ><?php _e('(GMT+04:30) Kabul', 'custom-facebook-feed'); ?></option>
|
4108 |
+
<option value="Asia/Yekaterinburg" <?php if($cff_timezone == "Asia/Yekaterinburg") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Ekaterinburg', 'custom-facebook-feed'); ?></option>
|
4109 |
+
<option value="Asia/Tashkent" <?php if($cff_timezone == "Asia/Tashkent") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Tashkent', 'custom-facebook-feed'); ?></option>
|
4110 |
+
<option value="Asia/Kolkata" <?php if($cff_timezone == "Asia/Kolkata") echo 'selected="selected"' ?> ><?php _e('(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi', 'custom-facebook-feed'); ?></option>
|
4111 |
+
<option value="Asia/Katmandu" <?php if($cff_timezone == "Asia/Katmandu") echo 'selected="selected"' ?> ><?php _e('(GMT+05:45) Kathmandu', 'custom-facebook-feed'); ?></option>
|
4112 |
+
<option value="Asia/Dhaka" <?php if($cff_timezone == "Asia/Dhaka") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Astana, Dhaka', 'custom-facebook-feed'); ?></option>
|
4113 |
+
<option value="Asia/Novosibirsk" <?php if($cff_timezone == "Asia/Novosibirsk") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Novosibirsk', 'custom-facebook-feed'); ?></option>
|
4114 |
+
<option value="Asia/Rangoon" <?php if($cff_timezone == "Asia/Rangoon") echo 'selected="selected"' ?> ><?php _e('(GMT+06:30) Yangon (Rangoon)', 'custom-facebook-feed'); ?></option>
|
4115 |
+
<option value="Asia/Bangkok" <?php if($cff_timezone == "Asia/Bangkok") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Bangkok, Hanoi, Jakarta', 'custom-facebook-feed'); ?></option>
|
4116 |
+
<option value="Asia/Krasnoyarsk" <?php if($cff_timezone == "Asia/Krasnoyarsk") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Krasnoyarsk', 'custom-facebook-feed'); ?></option>
|
4117 |
+
<option value="Asia/Hong_Kong" <?php if($cff_timezone == "Asia/Hong_Kong") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi', 'custom-facebook-feed'); ?></option>
|
4118 |
+
<option value="Asia/Irkutsk" <?php if($cff_timezone == "Asia/Irkutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Irkutsk, Ulaan Bataar', 'custom-facebook-feed'); ?></option>
|
4119 |
+
<option value="Australia/Perth" <?php if($cff_timezone == "Australia/Perth") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Perth', 'custom-facebook-feed'); ?></option>
|
4120 |
+
<option value="Australia/Eucla" <?php if($cff_timezone == "Australia/Eucla") echo 'selected="selected"' ?> ><?php _e('(GMT+08:45) Eucla', 'custom-facebook-feed'); ?></option>
|
4121 |
+
<option value="Asia/Tokyo" <?php if($cff_timezone == "Asia/Tokyo") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Osaka, Sapporo, Tokyo', 'custom-facebook-feed'); ?></option>
|
4122 |
+
<option value="Asia/Seoul" <?php if($cff_timezone == "Asia/Seoul") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Seoul', 'custom-facebook-feed'); ?></option>
|
4123 |
+
<option value="Asia/Yakutsk" <?php if($cff_timezone == "Asia/Yakutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Yakutsk', 'custom-facebook-feed'); ?></option>
|
4124 |
+
<option value="Australia/Adelaide" <?php if($cff_timezone == "Australia/Adelaide") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Adelaide', 'custom-facebook-feed'); ?></option>
|
4125 |
+
<option value="Australia/Darwin" <?php if($cff_timezone == "Australia/Darwin") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Darwin', 'custom-facebook-feed'); ?></option>
|
4126 |
+
<option value="Australia/Brisbane" <?php if($cff_timezone == "Australia/Brisbane") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Brisbane', 'custom-facebook-feed'); ?></option>
|
4127 |
+
<option value="Australia/Hobart" <?php if($cff_timezone == "Australia/Hobart") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Sydney', 'custom-facebook-feed'); ?></option>
|
4128 |
+
<option value="Asia/Vladivostok" <?php if($cff_timezone == "Asia/Vladivostok") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Vladivostok', 'custom-facebook-feed'); ?></option>
|
4129 |
+
<option value="Australia/Lord_Howe" <?php if($cff_timezone == "Australia/Lord_Howe") echo 'selected="selected"' ?> ><?php _e('(GMT+10:30) Lord Howe Island', 'custom-facebook-feed'); ?></option>
|
4130 |
+
<option value="Etc/GMT-11" <?php if($cff_timezone == "Etc/GMT-11") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Solomon Is., New Caledonia', 'custom-facebook-feed'); ?></option>
|
4131 |
+
<option value="Asia/Magadan" <?php if($cff_timezone == "Asia/Magadan") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Magadan', 'custom-facebook-feed'); ?></option>
|
4132 |
+
<option value="Pacific/Norfolk" <?php if($cff_timezone == "Pacific/Norfolk") echo 'selected="selected"' ?> ><?php _e('(GMT+11:30) Norfolk Island', 'custom-facebook-feed'); ?></option>
|
4133 |
+
<option value="Asia/Anadyr" <?php if($cff_timezone == "Asia/Anadyr") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Anadyr, Kamchatka', 'custom-facebook-feed'); ?></option>
|
4134 |
+
<option value="Pacific/Auckland" <?php if($cff_timezone == "Pacific/Auckland") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Auckland, Wellington', 'custom-facebook-feed'); ?></option>
|
4135 |
+
<option value="Etc/GMT-12" <?php if($cff_timezone == "Etc/GMT-12") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Fiji, Kamchatka, Marshall Is.', 'custom-facebook-feed'); ?></option>
|
4136 |
+
<option value="Pacific/Chatham" <?php if($cff_timezone == "Pacific/Chatham") echo 'selected="selected"' ?> ><?php _e('(GMT+12:45) Chatham Islands', 'custom-facebook-feed'); ?></option>
|
4137 |
+
<option value="Pacific/Tongatapu" <?php if($cff_timezone == "Pacific/Tongatapu") echo 'selected="selected"' ?> ><?php _e('(GMT+13:00) Nuku\'alofa', 'custom-facebook-feed'); ?></option>
|
4138 |
+
<option value="Pacific/Kiritimati" <?php if($cff_timezone == "Pacific/Kiritimati") echo 'selected="selected"' ?> ><?php _e('(GMT+14:00) Kiritimati', 'custom-facebook-feed'); ?></option>
|
4139 |
+
</select>
|
4140 |
+
</td>
|
4141 |
+
</tr>
|
4142 |
+
|
4143 |
+
</tbody>
|
4144 |
+
</table>
|
4145 |
+
|
4146 |
+
<div class="cff-save-settings-btn">
|
4147 |
+
<?php submit_button('Save Settings & Clear Cache'); ?>
|
4148 |
+
|
4149 |
+
<a class="cff-tooltip-link" href="JavaScript:void(0);">Why is the cache cleared?</a>
|
4150 |
+
<p class="cff-tooltip cff-more-info"><?php _e("As the settings on this page directly affect the request made to Facebook to get data, then when these settings are changed the plugin cache is cleared in order for the plugin to check Facebook for data again using these new settings. The plugin will check Facebook for data the next time the page that the feed is on is loaded."); ?></p>
|
4151 |
+
</div>
|
4152 |
+
|
4153 |
+
<p style="padding-top: 5px;"><i class="fa fa-life-ring" aria-hidden="true"></i> <?php _e('Having trouble using the plugin? Check out the', 'custom-facebook-feed'); ?> <a href='admin.php?page=cff-top&tab=support'><?php _e('Support', 'custom-facebook-feed'); ?></a> <?php _e('tab', 'custom-facebook-feed'); ?>.</p>
|
4154 |
+
</form>
|
4155 |
+
|
4156 |
+
<div class="cff_quickstart">
|
4157 |
+
<h3><i class="fa fa-rocket" aria-hidden="true"></i> Display your feed</h3>
|
4158 |
+
<p>Copy and paste this shortcode directly into the page, post or widget where you'd like to display the feed: <input type="text" value="[custom-facebook-feed]" size="22" readonly="readonly" style="text-align: center;" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)."></p>
|
4159 |
+
<p>Find out how to display <a href="https://smashballoon.com/using-shortcode-options-customize-facebook-feeds/?utm_campaign=facebook-free&utm_source=settings&utm_medium=multiple" target="_blank"><b>multiple feeds</b></a>.</p>
|
4160 |
+
</div>
|
4161 |
+
|
4162 |
+
<a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo CFF_PLUGIN_URL. 'admin/assets/img/pro.png?2019' ?>" /></a>
|
4163 |
+
|
4164 |
+
<p class="cff_plugins_promo dashicons-before dashicons-admin-plugins"> <?php _e('Check out our other free plugins for <a href="https://wordpress.org/plugins/instagram-feed/" target="_blank">Instagram</a>, <a href="https://wordpress.org/plugins/custom-twitter-feeds/" target="_blank">Twitter</a>, and <a href="https://wordpress.org/plugins/feeds-for-youtube/" target="_blank">YouTube</a>.', 'custom-facebook-feed' ); ?></p>
|
4165 |
+
|
4166 |
+
<div class="cff-share-plugin">
|
4167 |
+
<h3><?php _e('Like the plugin? Help spread the word!', 'custom-facebook-feed'); ?></h3>
|
4168 |
+
|
4169 |
+
<button id="cff-admin-show-share-links" class="button secondary" style="margin-bottom: 1px;"><i class="fa fa-share-alt" aria-hidden="true"></i> Share the plugin</button> <div id="cff-admin-share-links"></div>
|
4170 |
+
</div>
|
4171 |
+
|
4172 |
+
<?php } //End config tab ?>
|
4173 |
+
|
4174 |
+
|
4175 |
+
<?php if( $cff_active_tab == 'support' ) { //Start Support tab ?>
|
4176 |
+
|
4177 |
+
<div class="cff_support">
|
4178 |
+
|
4179 |
+
<br />
|
4180 |
+
<h3 style="padding-bottom: 10px;">Need help?</h3>
|
4181 |
+
|
4182 |
+
<p>
|
4183 |
+
<span class="cff-support-title"><i class="fa fa-life-ring" aria-hidden="true"></i> <a href="https://smashballoon.com/custom-facebook-feed/docs/free/?utm_campaign=facebook-free&utm_source=support&utm_medium=setup" target="_blank"><?php _e('Setup Directions'); ?></a></span>
|
4184 |
+
<?php _e('A step-by-step guide on how to setup and use the plugin.'); ?>
|
4185 |
+
</p>
|
4186 |
+
|
4187 |
+
<p>
|
4188 |
+
<span class="cff-support-title"><i class="fa fa-question-circle" aria-hidden="true"></i> <a href="https://smashballoon.com/custom-facebook-feed/faq/?utm_campaign=facebook-free&utm_source=support&utm_medium=faqs" target="_blank"><?php _e('FAQs and Docs'); ?></a></span>
|
4189 |
+
<?php _e('View our expansive library of FAQs and documentation to help solve your problem as quickly as possible.'); ?>
|
4190 |
+
</p>
|
4191 |
+
|
4192 |
+
<div class="cff-support-faqs">
|
4193 |
+
|
4194 |
+
<ul class="cff-faq-col-1">
|
4195 |
+
<li><b>FAQs</b></li>
|
4196 |
+
<li>• <?php _e('<a href="https://smashballoon.com/category/custom-facebook-feed/faq/?utm_campaign=facebook-free&utm_source=support&utm_medium=general" target="_blank">General Questions</a>'); ?></li>
|
4197 |
+
<li>• <?php _e('<a href="https://smashballoon.com/category/custom-facebook-feed/getting-started/?utm_campaign=facebook-free&utm_source=support&utm_medium=setup" target="_blank">Getting Started</a>'); ?></li>
|
4198 |
+
<li>• <?php _e('<a href="https://smashballoon.com/category/custom-facebook-feed/troubleshooting/?utm_campaign=facebook-free&utm_source=support&utm_medium=issues" target="_blank">Common Issues</a>'); ?></li>
|
4199 |
+
<li style="margin-top: 8px; font-size: 12px;"><a href="https://smashballoon.com/custom-facebook-feed/faq/?utm_campaign=facebook-free&utm_source=support&utm_medium=faqs" target="_blank">See all<i class="fa fa-chevron-right" aria-hidden="true"></i></a></li>
|
4200 |
+
|
4201 |
+
</ul>
|
4202 |
+
|
4203 |
+
<ul>
|
4204 |
+
<li><b>Documentation</b></li>
|
4205 |
+
<li>• <?php _e('<a href="http://smashballoon.com/custom-facebook-feed/docs/free/?utm_campaign=facebook-free&utm_source=support&utm_medium=setup" target="_blank">Installation and Configuration</a>'); ?></li>
|
4206 |
+
<li>• <?php _e('<a href="https://smashballoon.com/custom-facebook-feed/docs/shortcodes/?utm_campaign=facebook-free&utm_source=support&utm_medium=shortcode" target="_blank">Shortcode Reference</a>', 'custom-facebook-feed'); ?></li>
|
4207 |
+
<li>• <?php _e('<a href="https://smashballoon.com/snippets/?utm_campaign=facebook-free&utm_source=support&utm_medium=snippets" target="_blank">Custom CSS and JavaScript Snippets</a>'); ?></li>
|
4208 |
+
<li style="margin-top: 8px; font-size: 12px;"><a href="https://smashballoon.com/custom-facebook-feed/docs/?utm_campaign=facebook-free&utm_source=support&utm_medium=docs" target="_blank">See all<i class="fa fa-chevron-right" aria-hidden="true"></i></a></li>
|
4209 |
+
</ul>
|
4210 |
+
</div>
|
4211 |
+
|
4212 |
+
<p>
|
4213 |
+
<span class="cff-support-title"><i class="fa fa-envelope" aria-hidden="true"></i> <a href="http://smashballoon.com/custom-facebook-feed/support/?utm_campaign=facebook-free&utm_source=support&utm_medium=support" target="_blank"><?php _e('Request Support'); ?></a></span>
|
4214 |
+
<?php _e('Still need help? Submit a ticket and one of our support experts will get back to you as soon as possible.<br /><b>Important:</b> Please include your <b>System Info</b> below with all support requests.'); ?>
|
4215 |
+
</p>
|
4216 |
+
</div>
|
4217 |
+
|
4218 |
+
<hr />
|
4219 |
+
|
4220 |
+
<h3><?php _e('System Info <i style="color: #666; font-size: 11px; font-weight: normal;">Click the text below to select all</i>', 'custom-facebook-feed'); ?></h3>
|
4221 |
+
|
4222 |
+
<?php
|
4223 |
+
$cff_use_own_token = get_option( 'cff_show_access_token' );
|
4224 |
+
$access_token = get_option( $access_token );
|
4225 |
+
$posts_json = CFF_Utils::cff_fetchUrl("https://graph.facebook.com/".get_option( trim($page_id) )."/feed?access_token=". trim($access_token) ."&limit=1");
|
4226 |
+
?>
|
4227 |
+
|
4228 |
+
<textarea readonly="readonly" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)." style="width: 70%; height: 500px; white-space: pre; font-family: Menlo,Monaco,monospace;">
|
4229 |
+
## SITE/SERVER INFO: ##
|
4230 |
+
Site URL: <?php echo site_url() . "\n"; ?>
|
4231 |
+
Home URL: <?php echo home_url() . "\n"; ?>
|
4232 |
+
WordPress Version: <?php echo get_bloginfo( 'version' ) . "\n"; ?>
|
4233 |
+
PHP Version: <?php echo PHP_VERSION . "\n"; ?>
|
4234 |
+
Web Server Info: <?php echo $_SERVER['SERVER_SOFTWARE'] . "\n"; ?>
|
4235 |
+
PHP allow_url_fopen: <?php echo ini_get( 'allow_url_fopen' ) ? "Yes" . "\n" : "No" . "\n"; ?>
|
4236 |
+
PHP cURL: <?php echo is_callable('curl_init') ? "Yes" . "\n" : "No" . "\n"; ?>
|
4237 |
+
JSON: <?php echo function_exists("json_decode") ? "Yes" . "\n" : "No" . "\n" ?>
|
4238 |
+
SSL Stream: <?php echo in_array('https', stream_get_wrappers()) ? "Yes" . "\n" : "No" . "\n" ?>
|
4239 |
+
|
4240 |
+
## ACTIVE PLUGINS: ##
|
4241 |
+
<?php
|
4242 |
+
$plugins = get_plugins();
|
4243 |
+
$active_plugins = get_option( 'active_plugins', array() );
|
4244 |
+
|
4245 |
+
foreach ( $plugins as $plugin_path => $plugin ) {
|
4246 |
+
// If the plugin isn't active, don't show it.
|
4247 |
+
if ( ! in_array( $plugin_path, $active_plugins ) )
|
4248 |
+
continue;
|
4249 |
+
|
4250 |
+
echo $plugin['Name'] . ': ' . $plugin['Version'] ."\n";
|
4251 |
+
}
|
4252 |
+
?>
|
4253 |
+
|
4254 |
+
## PLUGIN SETTINGS: ##
|
4255 |
+
Access Token: <?php echo chunk_split( get_option( 'cff_access_token' ), 110 ); ?>
|
4256 |
+
Page ID: <?php echo get_option( 'cff_page_id' ) ."\n"; ?>
|
4257 |
+
Number of Posts: <?php echo get_option( 'cff_num_show' ) ."\n"; ?>
|
4258 |
+
Post Limit: <?php echo get_option( 'cff_post_limit' ) ."\n"; ?>
|
4259 |
+
Show Posts by: <?php echo get_option( 'cff_show_others' ) ."\n"; ?>
|
4260 |
+
Cache Time: <?php echo get_option( 'cff_cache_time' ) ." ".get_option( 'cff_cache_time_unit' )."\n"; ?>
|
4261 |
+
Locale: <?php echo get_option( 'cff_locale' ) ."\n"; ?>
|
4262 |
+
Timezone: <?php $options = get_option( 'cff_style_settings', array() );
|
4263 |
+
echo $options[ 'cff_timezone' ] ."\n"; ?>
|
4264 |
+
|
4265 |
+
<?php if( isset( $options[ 'cff_feed_width' ] ) ) { ?>
|
4266 |
+
## CUSTOMIZE ##
|
4267 |
+
Feed Width => <?php echo $options[ 'cff_feed_width' ] ."\n"; ?>
|
4268 |
+
Responsive => <?php echo $options[ 'cff_feed_width_resp' ] ."\n"; ?>
|
4269 |
+
Feed Height => <?php echo $options[ 'cff_feed_height' ] ."\n"; ?>
|
4270 |
+
Feed Padding => <?php echo $options[ 'cff_feed_padding' ] ."\n"; ?>
|
4271 |
+
Feed BG Color => <?php echo $options[ 'cff_bg_color' ] ."\n"; ?>
|
4272 |
+
CSS Class => <?php echo $options[ 'cff_class' ] ."\n"; ?>
|
4273 |
+
Feed Columns => <?php echo $options['cff_cols'] ."\n"; ?>
|
4274 |
+
Mobile Columns => <?php echo $options['cff_cols_mobile'] ."\n"; ?>
|
4275 |
+
|
4276 |
+
## HEADER: ##
|
4277 |
+
Show Header => <?php echo $options[ 'cff_show_header' ] ."\n"; ?>
|
4278 |
+
Header Type => <?php echo $options[ 'cff_header_type' ] ."\n"; ?>
|
4279 |
+
Header Cover => <?php echo $options[ 'cff_header_cover' ] ."\n"; ?>
|
4280 |
+
Header Name => <?php echo $options[ 'cff_header_name' ] ."\n"; ?>
|
4281 |
+
Header Bio => <?php echo $options[ 'cff_header_bio' ] ."\n"; ?>
|
4282 |
+
Header Cover Height => <?php echo $options[ 'cff_header_cover_height' ] ."\n"; ?>
|
4283 |
+
Text => <?php echo $options[ 'cff_header_text' ] ."\n"; ?>
|
4284 |
+
Header Outside => <?php echo $options[ 'cff_header_outside' ] ."\n"; ?>
|
4285 |
+
Background Color => <?php echo $options[ 'cff_header_bg_color' ] ."\n"; ?>
|
4286 |
+
Padding => <?php echo $options[ 'cff_header_padding' ] ."\n"; ?>
|
4287 |
+
Text Size => <?php echo $options[ 'cff_header_text_size' ] ."\n"; ?>
|
4288 |
+
Text Weight => <?php echo $options[ 'cff_header_text_weight' ] ."\n"; ?>
|
4289 |
+
Text Color => <?php echo $options[ 'cff_header_text_color' ] ."\n"; ?>
|
4290 |
+
Icon => <?php echo $options[ 'cff_header_icon' ] ."\n"; ?>
|
4291 |
+
Icon Color => <?php echo $options[ 'cff_header_icon_color' ] ."\n"; ?>
|
4292 |
+
Icon Size => <?php echo $options[ 'cff_header_icon_size' ] ."\n"; ?>
|
4293 |
+
|
4294 |
+
## LIKE BOX: ##
|
4295 |
+
Position => <?php echo $options[ 'cff_like_box_position' ] ."\n"; ?>
|
4296 |
+
Display Outside => <?php echo $options[ 'cff_like_box_outside' ] ."\n"; ?>
|
4297 |
+
Show Fans => <?php echo $options[ 'cff_like_box_faces' ] ."\n"; ?>
|
4298 |
+
Cover Photo => <?php echo $options[ 'cff_like_box_cover' ] ."\n"; ?>
|
4299 |
+
Small Header => <?php echo $options[ 'cff_like_box_small_header' ] ."\n"; ?>
|
4300 |
+
Hide CTA => <?php echo $options[ 'cff_like_box_hide_cta' ] ."\n"; ?>
|
4301 |
+
Custom Width => <?php echo $options[ 'cff_likebox_width' ] ."\n"; ?>
|
4302 |
+
|
4303 |
+
## SHOW/HIDE: ##
|
4304 |
+
Show => <?php if( $options[ 'cff_show_author' ] ) echo 'Author, ';
|
4305 |
+
if( $options[ 'cff_show_text' ] ) echo 'Post Text, ';
|
4306 |
+
if( $options[ 'cff_show_desc' ] ) echo 'Description, ';
|
4307 |
+
if( $options[ 'cff_show_shared_links' ] ) echo 'Shared Links, ';
|
4308 |
+
if( $options[ 'cff_show_date' ] ) echo 'Date, ';
|
4309 |
+
if( $options[ 'cff_show_media' ] ) echo 'Photos/Videos, ';
|
4310 |
+
if( $options[ 'cff_show_event_title' ] ) echo 'Event Title, ';
|
4311 |
+
if( $options[ 'cff_show_event_details' ] ) echo 'Event Details, ';
|
4312 |
+
if( $options[ 'cff_show_meta' ] ) echo 'Comments Box, ';
|
4313 |
+
if( $options[ 'cff_show_link' ] ) echo 'Post Link';
|
4314 |
+
echo "\n"; ?>
|
4315 |
+
Hide => <?php if( !$options[ 'cff_show_author' ] ) echo 'Author, ';
|
4316 |
+
if( !$options[ 'cff_show_text' ] ) echo 'Post Text, ';
|
4317 |
+
if( !$options[ 'cff_show_desc' ] ) echo 'Description, ';
|
4318 |
+
if( !$options[ 'cff_show_shared_links' ] ) echo 'Shared Links, ';
|
4319 |
+
if( !$options[ 'cff_show_date' ] ) echo 'Date, ';
|
4320 |
+
if( !$options[ 'cff_show_media' ] ) echo 'Photos/Videos, ';
|
4321 |
+
if( !$options[ 'cff_show_event_title' ] ) echo 'Event Title, ';
|
4322 |
+
if( !$options[ 'cff_show_event_details' ] ) echo 'Event Details, ';
|
4323 |
+
if( !$options[ 'cff_show_meta' ] ) echo 'Comments Box, ';
|
4324 |
+
if( !$options[ 'cff_show_link' ] ) echo 'Post Link';
|
4325 |
+
echo "\n"; ?>
|
4326 |
+
|
4327 |
+
## STYLE POSTS: ##
|
4328 |
+
Post Style => <?php echo $options[ 'cff_post_style' ] ."\n"; ?>
|
4329 |
+
Background Color => <?php echo $options[ 'cff_post_bg_color' ] ."\n"; ?>
|
4330 |
+
Rounded => <?php echo $options[ 'cff_post_rounded' ] ."\n"; ?>
|
4331 |
+
Seperator Color => <?php echo $options[ 'cff_sep_color' ] ."\n"; ?>
|
4332 |
+
Seperator Size => <?php echo $options[ 'cff_sep_size' ] ."\n"; ?>
|
4333 |
+
Box Shadow => <?php echo $options[ 'cff_box_shadow' ] ."\n"; ?>
|
4334 |
+
|
4335 |
+
## POST AUTHOR: ##
|
4336 |
+
Text Size => <?php echo $options[ 'cff_author_size' ] ."\n"; ?>
|
4337 |
+
Text Color => <?php echo $options[ 'cff_author_color' ] ."\n"; ?>
|
4338 |
+
|
4339 |
+
## POST TEXT: ##
|
4340 |
+
Text Length => <?php echo get_option('cff_title_length') ."\n"; ?>
|
4341 |
+
Format => <?php echo $options['cff_title_format'] ."\n"; ?>
|
4342 |
+
Text Size => <?php echo $options['cff_title_size'] ."\n"; ?>
|
4343 |
+
Text Weight => <?php echo $options['cff_title_weight'] ."\n"; ?>
|
4344 |
+
Text Color => <?php echo $options['cff_title_color'] ."\n"; ?>
|
4345 |
+
Link Color => <?php echo $options['cff_link_color'] ."\n"; ?>
|
4346 |
+
Link Text To Facebook => <?php echo $options['cff_link_to_timeline'] ."\n"; ?>
|
4347 |
+
Link Post Tags => <?php echo $options['cff_post_tags'] ."\n"; ?>
|
4348 |
+
Link Hashags => <?php echo $options['cff_link_hashtags'] ."\n"; ?>
|
4349 |
+
|
4350 |
+
## SHARED POST DESCRIPTION: ##
|
4351 |
+
Text Size => <?php echo $options['cff_body_size'] ."\n"; ?>
|
4352 |
+
Text Weight => <?php echo $options['cff_body_weight'] ."\n"; ?>
|
4353 |
+
Text Color => <?php echo $options['cff_body_color'] ."\n"; ?>
|
4354 |
+
|
4355 |
+
## POST DATE: ##
|
4356 |
+
Position => <?php echo $options['cff_date_position'] ."\n"; ?>
|
4357 |
+
Text Size => <?php echo $options['cff_date_size'] ."\n"; ?>
|
4358 |
+
Text Weight => <?php echo $options['cff_date_weight'] ."\n"; ?>
|
4359 |
+
Text Color => <?php echo $options['cff_date_color'] ."\n"; ?>
|
4360 |
+
Date Formatting => <?php echo $options['cff_date_formatting'] ."\n"; ?>
|
4361 |
+
Timezone => <?php echo $options['cff_timezone'] ."\n"; ?>
|
4362 |
+
Custom Format => <?php echo $options['cff_date_custom'] ."\n"; ?>
|
4363 |
+
Text Before Date => <?php echo $options['cff_date_before'] ."\n"; ?>
|
4364 |
+
Text After Date => <?php echo $options['cff_date_after'] ."\n"; ?>
|
4365 |
+
|
4366 |
+
## SHARED LINK BOXES: ##
|
4367 |
+
Link Box BG Color => <?php echo $options['cff_link_bg_color'] ."\n"; ?>
|
4368 |
+
Link Box Border Color => <?php echo $options['cff_link_border_color'] ."\n"; ?>
|
4369 |
+
Remove Background/Border => <?php echo $options['cff_disable_link_box'] ."\n"; ?>
|
4370 |
+
Link Title Format => <?php echo $options['cff_link_title_format'] ."\n"; ?>
|
4371 |
+
Link Title Color => <?php echo $options['cff_link_title_color'] ."\n"; ?>
|
4372 |
+
Link Title Size => <?php echo $options['cff_link_title_size'] ."\n"; ?>
|
4373 |
+
Link URL Size => <?php echo $options['cff_link_url_size'] ."\n"; ?>
|
4374 |
+
Link URL Color => <?php echo $options['cff_link_url_color'] ."\n"; ?>
|
4375 |
+
Link Description Size => <?php echo $options['cff_link_desc_size'] ."\n"; ?>
|
4376 |
+
Link Description Color => <?php echo $options['cff_link_desc_color'] ."\n"; ?>
|
4377 |
+
Max Length => <?php echo get_option('cff_body_length') ."\n"; ?>
|
4378 |
+
|
4379 |
+
## EVENT TITLE: ##
|
4380 |
+
Format => <?php echo $options['cff_event_title_format'] ."\n"; ?>
|
4381 |
+
Text Size => <?php echo $options['cff_event_title_size'] ."\n"; ?>
|
4382 |
+
Text Weight => <?php echo $options['cff_event_title_weight'] ."\n"; ?>
|
4383 |
+
Text Color => <?php echo $options['cff_event_title_color'] ."\n"; ?>
|
4384 |
+
Link To Facebook => <?php echo $options['cff_event_title_link'] ."\n"; ?>
|
4385 |
+
|
4386 |
+
## EVENT DATE: ##
|
4387 |
+
Text Size => <?php echo $options['cff_event_date_size'] ."\n"; ?>
|
4388 |
+
Text Weight => <?php echo $options['cff_event_date_weight'] ."\n"; ?>
|
4389 |
+
Text Color => <?php echo $options['cff_event_date_color'] ."\n"; ?>
|
4390 |
+
Date Position => <?php echo $options['cff_event_date_position'] ."\n"; ?>
|
4391 |
+
Date Formatting => <?php echo $options['cff_event_date_formatting'] ."\n"; ?>
|
4392 |
+
Custom Format => <?php echo $options['cff_event_date_custom'] ."\n"; ?>
|
4393 |
+
|
4394 |
+
## EVENT DETAILS: ##
|
4395 |
+
Text Size => <?php echo $options['cff_event_details_size'] ."\n"; ?>
|
4396 |
+
Text Weight => <?php echo $options['cff_event_details_weight'] ."\n"; ?>
|
4397 |
+
Text Color => <?php echo $options['cff_event_details_color'] ."\n"; ?>
|
4398 |
+
Link Color => <?php echo $options['cff_event_link_color'] ."\n"; ?>
|
4399 |
+
|
4400 |
+
## POST ACTION LINKS: ##
|
4401 |
+
Text Size => <?php echo $options['cff_link_size'] ."\n"; ?>
|
4402 |
+
Text Weight => <?php echo $options['cff_link_weight'] ."\n"; ?>
|
4403 |
+
Text Color => <?php echo $options['cff_link_color'] ."\n"; ?>
|
4404 |
+
View on Facebook Text => <?php echo $options['cff_facebook_link_text'] ."\n"; ?>
|
4405 |
+
Share Text => <?php echo $options['cff_facebook_share_text'] ."\n"; ?>
|
4406 |
+
Show View on Facebook Text => <?php echo $options['cff_show_facebook_link'] ."\n"; ?>
|
4407 |
+
Show Share Text => <?php echo $options['cff_show_facebook_share'] ."\n"; ?>
|
4408 |
+
|
4409 |
+
## CUSTOM CSS/JS: ##
|
4410 |
+
Custom CSS => <?php echo $options['cff_custom_css'] ."\n"; ?>
|
4411 |
+
Custom JavaScript => <?php echo $options['cff_custom_js'] ."\n"; ?>
|
4412 |
+
|
4413 |
+
## MISC SETTINGS: ##
|
4414 |
+
Loading via AJAX => <?php echo get_option('cff_ajax') ."\n"; ?>
|
4415 |
+
Preserve Settings => <?php echo get_option('cff_preserve_settings') ."\n"; ?>
|
4416 |
+
Credit Link => <?php echo $options['cff_show_credit'] ."\n"; ?>
|
4417 |
+
Minify CSS/JS => <?php echo $options['cff_minify'] ."\n"; ?>
|
4418 |
+
Restricted Page => <?php echo $options['cff_restricted_page'] ."\n"; ?>
|
4419 |
+
Icon Font Source Method => <?php echo $options['cff_font_source'] ."\n"; ?>
|
4420 |
+
Force Cache To Clear => <?php echo $options['cff_cron'] ."\n"; ?>
|
4421 |
+
Request Method => <?php echo $options['cff_request_method'] ."\n"; ?>
|
4422 |
+
Fix Text Shortening => <?php echo $options['cff_format_issue'] ."\n"; ?>
|
4423 |
+
Disable Default Styles => <?php echo $options['cff_disable_styles'] ."\n"; ?>
|
4424 |
+
Disable Frontend Error Notice => <?php if ( isset( $options['disable_admin_notice'] ) ) echo $options['disable_admin_notice']; echo "\n"; ?>
|
4425 |
+
Enable Email => <?php if ( isset( $options['enable_email_report'] ) ) echo $options['enable_email_report']; echo "\n" ?>
|
4426 |
+
Email Addresses => <?php if ( isset( $options['enable_email_report'] ) ) echo $options['email_notification_addresses']; echo "\n"; ?>
|
4427 |
+
|
4428 |
+
## CUSTOM TEXT/TRANSLATE: ##
|
4429 |
+
Modified text strings:
|
4430 |
+
<?php if($options['cff_see_more_text'] != 'See More'){ ?>See More => <?php echo $options['cff_see_more_text'] ."\n"; ?><?php } ?>
|
4431 |
+
<?php if($options['cff_see_less_text'] != 'See Less'){ ?>See Less => <?php echo $options['cff_see_less_text'] ."\n"; ?><?php } ?>
|
4432 |
+
<?php if($options['cff_facebook_link_text'] != 'View on Facebook'){ ?>View on Facebook => <?php echo $options['cff_facebook_link_text'] ."\n"; ?><?php } ?>
|
4433 |
+
<?php if($options['cff_facebook_share_text'] != 'Share'){ ?>Share => <?php echo $options['cff_facebook_share_text'] ."\n"; ?><?php } ?>
|
4434 |
+
<?php if($options['cff_translate_photos_text'] != 'photos'){ ?>Photos => <?php echo $options['cff_translate_photos_text'] ."\n"; ?><?php } ?>
|
4435 |
+
<?php if($options['cff_translate_photo_text'] != 'Photo'){ ?>Photo => <?php echo $options['cff_translate_photo_text'] ."\n"; ?><?php } ?>
|
4436 |
+
<?php if($options['cff_translate_video_text'] != 'Video'){ ?>Video => <?php echo $options['cff_translate_video_text'] ."\n"; ?><?php } ?>
|
4437 |
+
<?php if($options['cff_translate_learn_more_text'] != 'Learn More'){ ?>Learn More => <?php echo $options['cff_translate_learn_more_text'] ."\n"; ?><?php } ?>
|
4438 |
+
<?php if($options['cff_translate_shop_now_text'] != 'Shop Now'){ ?>Shop Now => <?php echo $options['cff_translate_shop_now_text'] ."\n"; ?><?php } ?>
|
4439 |
+
<?php if($options['cff_translate_message_page_text'] != 'Message Page'){ ?>Message Page => <?php echo $options['cff_translate_message_page_text'] ."\n"; ?><?php } ?>
|
4440 |
+
<?php if($options['cff_translate_second'] != 'second'){ ?>Second => <?php echo $options['cff_translate_second'] ."\n"; ?><?php } ?>
|
4441 |
+
<?php if($options['cff_translate_seconds'] != 'seconds'){ ?>Seconds => <?php echo $options['cff_translate_seconds'] ."\n"; ?><?php } ?>
|
4442 |
+
<?php if($options['cff_translate_minute'] != 'minute'){ ?>Minute => <?php echo $options['cff_translate_minute'] ."\n"; ?><?php } ?>
|
4443 |
+
<?php if($options['cff_translate_minutes'] != 'minutes'){ ?>Minutes => <?php echo $options['cff_translate_minutes'] ."\n"; ?><?php } ?>
|
4444 |
+
<?php if($options['cff_translate_hour'] != 'hour'){ ?>Hour => <?php echo $options['cff_translate_hour'] ."\n"; ?><?php } ?>
|
4445 |
+
<?php if($options['cff_translate_hours'] != 'hours'){ ?>Hours => <?php echo $options['cff_translate_hours'] ."\n"; ?><?php } ?>
|
4446 |
+
<?php if($options['cff_translate_day'] != 'day'){ ?>Day => <?php echo $options['cff_translate_day'] ."\n"; ?><?php } ?>
|
4447 |
+
<?php if($options['cff_translate_days'] != 'days'){ ?>Days => <?php echo $options['cff_translate_days'] ."\n"; ?><?php } ?>
|
4448 |
+
<?php if($options['cff_translate_week'] != 'week'){ ?>Week => <?php echo $options['cff_translate_week'] ."\n"; ?><?php } ?>
|
4449 |
+
<?php if($options['cff_translate_weeks'] != 'weeks'){ ?>Weeks => <?php echo $options['cff_translate_weeks'] ."\n"; ?><?php } ?>
|
4450 |
+
<?php if($options['cff_translate_month'] != 'month'){ ?>Month => <?php echo $options['cff_translate_month'] ."\n"; ?><?php } ?>
|
4451 |
+
<?php if($options['cff_translate_months'] != 'months'){ ?>Months => <?php echo $options['cff_translate_months'] ."\n"; ?><?php } ?>
|
4452 |
+
<?php if($options['cff_translate_year'] != 'year'){ ?>Year => <?php echo $options['cff_translate_year'] ."\n"; ?><?php } ?>
|
4453 |
+
<?php if($options['cff_translate_years'] != 'years'){ ?>Years => <?php echo $options['cff_translate_years'] ."\n"; ?><?php } ?>
|
4454 |
+
<?php if($options['cff_translate_ago'] != 'ago'){ ?>Ago => <?php echo $options['cff_translate_ago'] ."\n"; ?><?php } ?>
|
4455 |
+
<?php } else {
|
4456 |
+
echo "\n"."## CUSTOMIZE ##"."\n";
|
4457 |
+
echo '-----------------------------'."\n";
|
4458 |
+
echo "Customize Settings not saved."."\n";
|
4459 |
+
echo '-----------------------------'."\n";
|
4460 |
+
} ?>
|
4461 |
+
|
4462 |
+
## FACEBOOK API RESPONSE: ##
|
4463 |
+
<?php
|
4464 |
+
$api_response_json = json_decode($posts_json);
|
4465 |
+
if( isset( $api_response_json->error ) ) echo $posts_json;
|
4466 |
+
if( isset( $api_response_json->data ) ){
|
4467 |
+
$posts_json_split = explode(',"paging":{', $posts_json);
|
4468 |
+
echo $posts_json_split[0];
|
4469 |
+
} ?>
|
4470 |
+
|
4471 |
+
|
4472 |
+
## CRON EVENTS: ##
|
4473 |
+
<?php
|
4474 |
+
$cron = _get_cron_array();
|
4475 |
+
foreach ( $cron as $key => $data ) {
|
4476 |
+
$is_target = false;
|
4477 |
+
foreach ( $data as $key2 => $val ) {
|
4478 |
+
if ( strpos( $key2, 'cff' ) !== false ) {
|
4479 |
+
$is_target = true;
|
4480 |
+
echo $key2;
|
4481 |
+
echo "\n";
|
4482 |
+
}
|
4483 |
+
}
|
4484 |
+
if ( $is_target) {
|
4485 |
+
echo date( "Y-m-d H:i:s", $key );
|
4486 |
+
echo "\n";
|
4487 |
+
echo 'Next Scheduled: ' . ((int)$key - time())/60 . ' minutes';
|
4488 |
+
echo "\n\n";
|
4489 |
+
}
|
4490 |
+
}
|
4491 |
+
?>
|
4492 |
+
|
4493 |
+
## Error Log: ##
|
4494 |
+
<?php
|
4495 |
+
|
4496 |
+
$errors = \cff_main()->cff_error_reporter->get_errors();
|
4497 |
+
if ( ! empty( $errors ) ) :
|
4498 |
+
foreach ( $errors as $error ) :
|
4499 |
+
echo $error['admin_message']."\n";
|
4500 |
+
echo 'Feed with error: ' . esc_url( get_the_permalink( $error['post_id'] ) )."\n";
|
4501 |
+
|
4502 |
+
endforeach;
|
4503 |
+
endif;
|
4504 |
+
|
4505 |
+
?>
|
4506 |
+
|
4507 |
+
## oEmbed: ##
|
4508 |
+
<?php
|
4509 |
+
$oembed_token_settings = get_option( 'cff_oembed_token', array() );
|
4510 |
+
foreach( $oembed_token_settings as $key => $value ) {
|
4511 |
+
echo $key . ': ' . esc_attr( $value ) . "\n";
|
4512 |
+
}
|
4513 |
+
|
4514 |
+
?>
|
4515 |
+
</textarea>
|
4516 |
+
|
4517 |
+
<?php } //End support tab
|
4518 |
+
|
4519 |
+
|
4520 |
+
if( $cff_active_tab == 'more' ) { //Start More Social Feeds tab
|
4521 |
+
|
4522 |
+
add_user_meta(get_current_user_id(), 'seen_more_plugins_page_1', 'true', true); //Iterate when adding a new plugin
|
4523 |
+
?>
|
4524 |
+
|
4525 |
+
<div class="cff_more_plugins" id="cff-admin-about">
|
4526 |
+
|
4527 |
+
<div class="cff-more-plugins-intro">
|
4528 |
+
<h3><?php _e( "Here's some more <span>free</span> plugins you might like!", 'custom-facebook-feed' ); ?></h3>
|
4529 |
+
<p><?php _e( "As you're already using one of our free plugins we thought we'd suggest some others you might like to. Check out our other free plugins below:", 'custom-facebook-feed' ); ?></p>
|
4530 |
+
</div>
|
4531 |
+
|
4532 |
+
<?php function get_am_plugins() {
|
4533 |
+
|
4534 |
+
$images_url = CFF_PLUGIN_URL . 'admin/assets/img/about/';
|
4535 |
+
|
4536 |
+
return array(
|
4537 |
+
'instagram-feed/instagram-feed.php' => array(
|
4538 |
+
'icon' => $images_url . 'plugin-if.png',
|
4539 |
+
'name' => esc_html__( 'Instagram Feed', 'custom-facebook-feed' ),
|
4540 |
+
'desc' => esc_html__( 'Instagram Feed is a clean and beautiful way to add your Instagram posts to your website. Grab your visitors attention and keep them engaged with your site longer.', 'custom-facebook-feed' ),
|
4541 |
+
'url' => 'https://downloads.wordpress.org/plugin/instagram-feed.zip',
|
4542 |
+
'pro' => array(
|
4543 |
+
'plug' => 'instagram-feed-pro/instagram-feed.php',
|
4544 |
+
'icon' => $images_url . 'plugin-if.png',
|
4545 |
+
'name' => esc_html__( 'Instagram Feed Pro', 'custom-facebook-feed' ),
|
4546 |
+
'desc' => esc_html__( 'Instagram Feed is a clean and beautiful way to add your Instagram posts to your website. Grab your visitors attention and keep them engaged with your site longer.', 'custom-facebook-feed' ),
|
4547 |
+
'url' => 'https://smashballoon.com/instagram-feed/?utm_campaign=facebook-free&utm_source=cross&utm_medium=cffinstaller',
|
4548 |
+
'act' => 'go-to-url',
|
4549 |
+
),
|
4550 |
+
),
|
4551 |
+
'custom-facebook-feed/custom-facebook-feed.php' => array(
|
4552 |
+
'icon' => $images_url . 'plugin-fb.png',
|
4553 |
+
'name' => esc_html__( 'Custom Facebook Feed', 'custom-facebook-feed' ),
|
4554 |
+
'desc' => esc_html__( 'Custom Facebook Feed makes displaying your Facebook posts easy. Keep your site visitors informed and increase engagement with your Facebook page by displaying a feed on your website.', 'custom-facebook-feed' ),
|
4555 |
+
'url' => 'https://downloads.wordpress.org/plugin/custom-facebook-feed.zip',
|
4556 |
+
'pro' => array(
|
4557 |
+
'plug' => 'custom-facebook-feed-pro/custom-facebook-feed.php',
|
4558 |
+
'icon' => $images_url . 'plugin-fb.png',
|
4559 |
+
'name' => esc_html__( 'Custom Facebook Feed Pro', 'custom-facebook-feed' ),
|
4560 |
+
'desc' => esc_html__( 'Custom Facebook Feed makes displaying your Facebook posts easy. Keep your site visitors informed and increase engagement with your Facebook page by displaying a feed on your website.', 'custom-facebook-feed' ),
|
4561 |
+
'url' => 'https://smashballoon.com/custom-facebook-feed/?utm_campaign=instagram-free&utm_source=cross&utm_medium=cffinstaller',
|
4562 |
+
'act' => 'go-to-url',
|
4563 |
+
)
|
4564 |
+
),
|
4565 |
+
|
4566 |
+
'custom-twitter-feeds/custom-twitter-feed.php' => array(
|
4567 |
+
'icon' => $images_url . 'plugin-tw.jpg',
|
4568 |
+
'name' => esc_html__( 'Custom Twitter Feeds', 'custom-facebook-feed' ),
|
4569 |
+
'desc' => esc_html__( 'Custom Twitter Feeds is a highly customizable way to display tweets from your Twitter account. Promote your latest content and update your site content automatically.', 'custom-facebook-feed' ),
|
4570 |
+
'url' => 'https://downloads.wordpress.org/plugin/custom-twitter-feeds.zip',
|
4571 |
+
'pro' => array(
|
4572 |
+
'plug' => 'custom-twitter-feeds-pro/custom-twitter-feed.php',
|
4573 |
+
'icon' => $images_url . 'plugin-tw.jpg',
|
4574 |
+
'name' => esc_html__( 'Custom Twitter Feeds Pro', 'custom-facebook-feed' ),
|
4575 |
+
'desc' => esc_html__( 'Custom Twitter Feeds is a highly customizable way to display tweets from your Twitter account. Promote your latest content and update your site content automatically.', 'custom-facebook-feed' ),
|
4576 |
+
'url' => 'https://smashballoon.com/custom-twitter-feeds/?utm_campaign=instagram-free&utm_source=cross&utm_medium=ctfinstaller',
|
4577 |
+
'act' => 'go-to-url',
|
4578 |
+
)
|
4579 |
+
),
|
4580 |
+
|
4581 |
+
'feeds-for-youtube/youtube-feed.php' => array(
|
4582 |
+
'icon' => $images_url . 'plugin-yt.png',
|
4583 |
+
'name' => esc_html__( 'Feeds for YouTube', 'custom-facebook-feed' ),
|
4584 |
+
'desc' => esc_html__( 'Feeds for YouTube is a simple yet powerful way to display videos from YouTube on your website. Increase engagement with your channel while keeping visitors on your website.', 'custom-facebook-feed' ),
|
4585 |
+
'url' => 'https://downloads.wordpress.org/plugin/feeds-for-youtube.zip',
|
4586 |
+
'pro' => array(
|
4587 |
+
'plug' => 'youtube-feed-pro/youtube-feed.php',
|
4588 |
+
'icon' => $images_url . 'plugin-yt.png',
|
4589 |
+
'name' => esc_html__( 'Feeds for YouTube Pro', 'custom-facebook-feed' ),
|
4590 |
+
'desc' => esc_html__( 'Feeds for YouTube is a simple yet powerful way to display videos from YouTube on your website. Increase engagement with your channel while keeping visitors on your website.', 'custom-facebook-feed' ),
|
4591 |
+
'url' => 'https://smashballoon.com/youtube-feed/?utm_campaign=instagram-free&utm_source=cross&utm_medium=sbyinstaller',
|
4592 |
+
'act' => 'go-to-url',
|
4593 |
+
)
|
4594 |
+
),
|
4595 |
+
);
|
4596 |
+
|
4597 |
+
}
|
4598 |
+
|
4599 |
+
function output_about_addons() {
|
4600 |
+
|
4601 |
+
if ( version_compare( PHP_VERSION, '5.3.0' ) <= 0
|
4602 |
+
|| version_compare( get_bloginfo('version'), '4.6' , '<' ) ){
|
4603 |
+
return;
|
4604 |
+
}
|
4605 |
+
|
4606 |
+
$all_plugins = get_plugins();
|
4607 |
+
$am_plugins = get_am_plugins();
|
4608 |
+
$has_all_plugins = true;
|
4609 |
+
|
4610 |
+
?>
|
4611 |
+
<div id="cff-admin-addons">
|
4612 |
+
<div class="addons-container">
|
4613 |
+
<?php
|
4614 |
+
foreach ( $am_plugins as $plugin => $details ) :
|
4615 |
+
|
4616 |
+
$free_only = true;
|
4617 |
+
$plugin_data = get_the_plugin_data( $plugin, $details, $all_plugins, $free_only );
|
4618 |
+
$plugin_slug = strtolower( str_replace( ' ', '_', $plugin_data['details']['name'] ) );
|
4619 |
+
|
4620 |
+
//Only show the plugin if both free/pro versions aren't already active
|
4621 |
+
isset( $plugin_data['details']['plug'] ) ? $pro_plugin_source = $plugin_data['details']['plug'] : $pro_plugin_source = '';
|
4622 |
+
|
4623 |
+
if( !is_plugin_active( $plugin ) && !is_plugin_active( $pro_plugin_source ) ){
|
4624 |
+
$has_all_plugins = false;
|
4625 |
+
?>
|
4626 |
+
<div class="addon-container" id="install_<?php echo $plugin_slug; ?>">
|
4627 |
+
<div class="addon-item">
|
4628 |
+
<div class="details cff-clear">
|
4629 |
+
<img src="<?php echo esc_url( $plugin_data['details']['icon'] ); ?>">
|
4630 |
+
<h5 class="addon-name">
|
4631 |
+
<?php echo esc_html( $plugin_data['details']['name'] ); ?>
|
4632 |
+
</h5>
|
4633 |
+
<p class="addon-desc">
|
4634 |
+
<?php echo wp_kses_post( $plugin_data['details']['desc'] ); ?>
|
4635 |
+
</p>
|
4636 |
+
</div>
|
4637 |
+
<div class="actions cff-clear">
|
4638 |
+
<div class="status">
|
4639 |
+
<strong>
|
4640 |
+
<?php _e( 'Price:', 'custom-facebook-feed' );
|
4641 |
+
echo ' <span style="color: green;">';
|
4642 |
+
_e( 'Free', 'custom-facebook-feed' );
|
4643 |
+
echo '</span>'; ?>
|
4644 |
+
</strong>
|
4645 |
+
</div>
|
4646 |
+
<div class="action-button">
|
4647 |
+
<button class="<?php echo esc_attr( $plugin_data['action_class'] ); ?>" data-plugin="<?php echo esc_attr( $plugin_data['plugin_src'] ); ?>" data-type="plugin">
|
4648 |
+
<?php echo wp_kses_post( $plugin_data['action_text'] ); ?>
|
4649 |
+
</button>
|
4650 |
+
</div>
|
4651 |
+
</div>
|
4652 |
+
</div>
|
4653 |
+
</div>
|
4654 |
+
|
4655 |
+
<?php } ?>
|
4656 |
+
|
4657 |
+
<?php endforeach;
|
4658 |
+
|
4659 |
+
if( $has_all_plugins == true ){ ?>
|
4660 |
+
|
4661 |
+
<style type="text/css">.cff-more-plugins-intro{display:none;}</style>
|
4662 |
+
<h2><?php _e( 'You already have all of our free plugins. Awesome!', 'custom-facebook-feed' ); ?></h2>
|
4663 |
+
|
4664 |
+
<p><?php _e( 'Thank you so much for using our plugins. We appreciate you trusting us to power your social media feeds.', 'custom-facebook-feed' ); ?></p>
|
4665 |
+
<p><?php _e( 'If you want to support us in our mission to make bringing social media content to your website both easy and reliable, then consider upgrading to one of our Pro plugins.', 'custom-facebook-feed' ); ?></p>
|
4666 |
+
|
4667 |
+
<div class="cff-cols-4">
|
4668 |
+
<?php //Show a list of Pro plugins which aren't currently active ?>
|
4669 |
+
<?php foreach ( $am_plugins as $plugin => $details ) :
|
4670 |
+
|
4671 |
+
$plugin_data = get_the_plugin_data( $plugin, $details, $all_plugins );
|
4672 |
+
$plugin_slug = strtolower( str_replace( ' ', '_', $plugin_data['details']['name'] ) );
|
4673 |
+
|
4674 |
+
isset( $plugin_data['details']['plug'] ) ? $pro_plugin_source = $plugin_data['details']['plug'] : $pro_plugin_source = '';
|
4675 |
+
if( !is_plugin_active( $pro_plugin_source ) ){
|
4676 |
+
?>
|
4677 |
+
|
4678 |
+
<div class="addon-container" id="install_<?php echo $plugin_slug; ?>">
|
4679 |
+
<div class="addon-item">
|
4680 |
+
<div class="details cff-clear">
|
4681 |
+
<img src="<?php echo esc_url( $plugin_data['details']['icon'] ); ?>">
|
4682 |
+
<h5 class="addon-name">
|
4683 |
+
<?php echo esc_html( $plugin_data['details']['name'] ); ?>
|
4684 |
+
</h5>
|
4685 |
+
<p class="addon-desc">
|
4686 |
+
<?php echo wp_kses_post( $plugin_data['details']['desc'] ); ?>
|
4687 |
+
</p>
|
4688 |
+
</div>
|
4689 |
+
<div class="actions cff-clear">
|
4690 |
+
<div class="action-button">
|
4691 |
+
<a href="<?php echo esc_attr( $details['pro']['url'] ); ?>" target="_blank" class="status-go-to-url button button-primary">
|
4692 |
+
<?php _e( 'Upgrade to Pro', 'custom-facebook-feed' ); ?>
|
4693 |
+
</a>
|
4694 |
+
</div>
|
4695 |
+
</div>
|
4696 |
+
</div>
|
4697 |
+
</div>
|
4698 |
+
|
4699 |
+
<?php } ?>
|
4700 |
+
|
4701 |
+
<?php endforeach; ?>
|
4702 |
+
</div>
|
4703 |
+
|
4704 |
+
<?php } ?>
|
4705 |
+
|
4706 |
+
</div>
|
4707 |
+
</div>
|
4708 |
+
<?php
|
4709 |
+
}
|
4710 |
+
|
4711 |
+
|
4712 |
+
function get_the_plugin_data( $plugin, $details, $all_plugins, $free_only = false ) {
|
4713 |
+
|
4714 |
+
$have_pro = ( ! empty( $details['pro'] ) && ! empty( $details['pro']['plug'] ) );
|
4715 |
+
$show_pro = false;
|
4716 |
+
|
4717 |
+
$plugin_data = array();
|
4718 |
+
|
4719 |
+
if( $free_only ) $have_pro = false;
|
4720 |
+
|
4721 |
+
if ( $have_pro ) {
|
4722 |
+
if ( array_key_exists( $plugin, $all_plugins ) ) {
|
4723 |
+
if ( is_plugin_active( $plugin ) ) {
|
4724 |
+
$show_pro = true;
|
4725 |
+
}
|
4726 |
+
}
|
4727 |
+
if ( array_key_exists( $details['pro']['plug'], $all_plugins ) ) {
|
4728 |
+
$show_pro = true;
|
4729 |
+
}
|
4730 |
+
if ( $show_pro ) {
|
4731 |
+
$plugin = $details['pro']['plug'];
|
4732 |
+
$details = $details['pro'];
|
4733 |
+
}
|
4734 |
+
}
|
4735 |
+
|
4736 |
+
if( $free_only ) $show_pro = false;
|
4737 |
+
|
4738 |
+
if ( array_key_exists( $plugin, $all_plugins ) ) {
|
4739 |
+
if ( is_plugin_active( $plugin ) ) {
|
4740 |
+
// Status text/status.
|
4741 |
+
$plugin_data['status_class'] = 'status-active';
|
4742 |
+
$plugin_data['status_text'] = esc_html__( 'Active', 'custom-facebook-feed' );
|
4743 |
+
// Button text/status.
|
4744 |
+
$plugin_data['action_class'] = $plugin_data['status_class'] . ' button button-secondary disabled';
|
4745 |
+
$plugin_data['action_text'] = esc_html__( 'Activated', 'custom-facebook-feed' );
|
4746 |
+
$plugin_data['plugin_src'] = esc_attr( $plugin );
|
4747 |
+
} else {
|
4748 |
+
// Status text/status.
|
4749 |
+
$plugin_data['status_class'] = 'status-inactive';
|
4750 |
+
$plugin_data['status_text'] = esc_html__( 'Inactive', 'custom-facebook-feed' );
|
4751 |
+
// Button text/status.
|
4752 |
+
$plugin_data['action_class'] = $plugin_data['status_class'] . ' button button-secondary';
|
4753 |
+
$plugin_data['action_text'] = esc_html__( 'Activate', 'custom-facebook-feed' );
|
4754 |
+
$plugin_data['plugin_src'] = esc_attr( $plugin );
|
4755 |
+
}
|
4756 |
+
} else {
|
4757 |
+
// Doesn't exist, install.
|
4758 |
+
// Status text/status.
|
4759 |
+
$plugin_data['status_class'] = 'status-download';
|
4760 |
+
if ( isset( $details['act'] ) && 'go-to-url' === $details['act'] ) {
|
4761 |
+
$plugin_data['status_class'] = 'status-go-to-url';
|
4762 |
+
}
|
4763 |
+
$plugin_data['status_text'] = esc_html__( 'Not Installed', 'custom-facebook-feed' );
|
4764 |
+
// Button text/status.
|
4765 |
+
$plugin_data['action_class'] = $plugin_data['status_class'] . ' button button-primary';
|
4766 |
+
$plugin_data['action_text'] = esc_html__( 'Install Plugin', 'custom-facebook-feed' );
|
4767 |
+
$plugin_data['plugin_src'] = esc_url( $details['url'] );
|
4768 |
+
}
|
4769 |
+
|
4770 |
+
$plugin_data['details'] = $details;
|
4771 |
+
|
4772 |
+
return $plugin_data;
|
4773 |
+
}
|
4774 |
+
|
4775 |
+
|
4776 |
+
output_about_addons();
|
4777 |
+
|
4778 |
+
?>
|
4779 |
+
<style>.cff_quickstart, .cff-pro-notice, .cff_plugins_promo, .cff_share_plugin{ display: none !Important; }</style>
|
4780 |
+
</div>
|
4781 |
+
|
4782 |
+
<?php
|
4783 |
+
} //End More tab
|
4784 |
+
|
4785 |
+
|
4786 |
+
|
4787 |
+
|
4788 |
+
} //End Settings_Page
|
4789 |
+
|
4790 |
+
|
4791 |
+
|
4792 |
+
function cff_oembeds_page() {
|
4793 |
+
( is_plugin_active( 'social-wall/social-wall.php' ) ) ? $cff_sw_active = true : $cff_sw_active = false;
|
4794 |
+
|
4795 |
+
?>
|
4796 |
+
|
4797 |
+
<div id="cff-admin" class="wrap cff-oembeds">
|
4798 |
+
<?php
|
4799 |
+
$lite_notice_dismissed = get_transient( 'facebook_feed_dismiss_lite' );
|
4800 |
+
|
4801 |
+
if ( ! $lite_notice_dismissed ) :
|
4802 |
+
?>
|
4803 |
+
<div id="cff-notice-bar" style="display:none">
|
4804 |
+
<span class="cff-notice-bar-message"><?php _e( 'You\'re using Custom Facebook Feed Lite. To unlock more features consider <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=notices&utm_medium=lite" target="_blank" rel="noopener noreferrer">upgrading to Pro</a>.', 'custom-facebook-feed'); ?></span>
|
4805 |
+
<button type="button" class="dismiss" title="<?php _e( 'Dismiss this message.', 'custom-facebook-feed'); ?>" data-page="overview">
|
4806 |
+
</button>
|
4807 |
+
</div>
|
4808 |
+
<?php endif; ?>
|
4809 |
+
|
4810 |
+
<div id="header">
|
4811 |
+
<h1><?php _e('Facebook oEmbeds', 'custom-facebook-feed'); ?></h1>
|
4812 |
+
</div>
|
4813 |
+
|
4814 |
+
<p>
|
4815 |
+
<?php
|
4816 |
+
_e( "You can use the Custom Facebook Feed plugin to power your Facebook oEmbeds, both old and new.", "custom-facebook-feed" );
|
4817 |
+
if ( ! CFF_Oembed::can_do_oembed() ) {
|
4818 |
+
echo ' ';
|
4819 |
+
_e( "Just click the button below and we'll do the rest.", "custom-facebook-feed" );
|
4820 |
+
}
|
4821 |
+
?>
|
4822 |
+
</p>
|
4823 |
+
|
4824 |
+
<div class="cff-oembed-button">
|
4825 |
+
|
4826 |
+
<?php
|
4827 |
+
//delete_option('cff_oembed_token');
|
4828 |
+
$admin_url_state = admin_url('admin.php?page=cff-oembeds');
|
4829 |
+
//If the admin_url isn't returned correctly then use a fallback
|
4830 |
+
if( $admin_url_state == '/wp-admin/admin.php?page=cff-oembeds' ){
|
4831 |
+
$admin_url_state = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
|
4832 |
+
}
|
4833 |
+
|
4834 |
+
$oembed_token_settings = get_option( 'cff_oembed_token', array() );
|
4835 |
+
$saved_access_token_data = isset( $oembed_token_settings['access_token'] ) ? $oembed_token_settings['access_token'] : false;
|
4836 |
+
|
4837 |
+
$access_token_error = false;
|
4838 |
+
$valid_new_access_token = false;
|
4839 |
+
$show_token_expiration_modal = false;
|
4840 |
+
if ( ! empty( $_GET['access_token'] ) && strlen( $_GET['access_token'] ) <= 20 ) {
|
4841 |
+
$access_token_error = true;
|
4842 |
+
} elseif ( ! empty( $_GET['transfer'] ) ) {
|
4843 |
+
if ( class_exists( 'SB_Instagram_Oembed' ) ) {
|
4844 |
+
$sbi_oembed_token = SB_Instagram_Oembed::last_access_token();
|
4845 |
+
$valid_new_access_token = $sbi_oembed_token;
|
4846 |
+
}
|
4847 |
+
} else {
|
4848 |
+
$valid_new_access_token = ! empty( $_GET['access_token'] ) && strlen( $_GET['access_token'] ) > 20 && $saved_access_token_data !== $_GET['access_token'] ? sanitize_text_field( $_GET['access_token'] ) : false;
|
4849 |
+
if ( $valid_new_access_token && ! empty( $_GET['access_token'] ) ) {
|
4850 |
+
$url = esc_url_raw( 'https://graph.facebook.com/me/accounts?limit=500&access_token=' . $valid_new_access_token );
|
4851 |
+
$pages_data_connection = wp_remote_get( $url );
|
4852 |
+
|
4853 |
+
if ( ! is_wp_error( $pages_data_connection ) && isset( $pages_data_connection['body'] ) ) {
|
4854 |
+
$pages_data = json_decode( $pages_data_connection['body'], true );
|
4855 |
+
if ( isset( $pages_data['data'][0]['access_token'] ) ) {
|
4856 |
+
$oembed_token_settings['expiration_date'] = 'never';
|
4857 |
+
} else {
|
4858 |
+
$oembed_token_settings['expiration_date'] = time() + (60 * DAY_IN_SECONDS);
|
4859 |
+
$show_token_expiration_modal = true;
|
4860 |
+
}
|
4861 |
+
} else {
|
4862 |
+
$oembed_token_settings['expiration_date'] = 'unknown';
|
4863 |
+
}
|
4864 |
+
}
|
4865 |
+
}
|
4866 |
+
|
4867 |
+
?>
|
4868 |
+
|
4869 |
+
<?php if ( ! $saved_access_token_data && ! $valid_new_access_token && ! CFF_Oembed::can_do_oembed() ) {
|
4870 |
+
if ( $access_token_error ) { ?>
|
4871 |
+
<p><?php _e("There was a problem with the access token that was retrieved.", "custom-facebook-feed"); ?></p>
|
4872 |
+
<?php }
|
4873 |
+
$token_href = 'https://api.smashballoon.com/facebook-login.php?state=' . $admin_url_state;
|
4874 |
+
if ( class_exists( 'SB_Instagram_Oembed' ) ) {
|
4875 |
+
$sbi_oembed_token = SB_Instagram_Oembed::last_access_token();
|
4876 |
+
|
4877 |
+
if ( ! empty( $sbi_oembed_token ) ) {
|
4878 |
+
$token_href = add_query_arg( 'transfer', '1', $admin_url_state );
|
4879 |
+
}
|
4880 |
+
}
|
4881 |
+
|
4882 |
+
?>
|
4883 |
+
<a href="<?php echo esc_url( $token_href ); ?>" class="cff_admin_btn" id="cff_fb_login"><i class="fa fa-facebook-square"></i> <?php _e( 'Connect to Facebook and Enable oEmbeds', 'custom-facebook-feed' ); ?></a>
|
4884 |
+
|
4885 |
+
<div class="cff-oembed-promo cff-oembed-desc">
|
4886 |
+
<div class="cff-col">
|
4887 |
+
<h2><?php _e("What are oEmbeds?", "custom-facebook-feed"); ?></h2>
|
4888 |
+
<p><?php _e("Anytime you share a link to a Facebook post or video in WordPress, it is automatically converted into an embedded version of that Facebook post (an \"oEmbed\").</p><p>WordPress is discontinuing support for Facebook oEmbeds due to them now requiring an Access Token to work. Don't worry though, we have your back. Just use the button above to connect to Facebook and we'll make sure your Facebook oEmbeds keep working.", "custom-facebook-feed"); ?></p>
|
4889 |
+
</div>
|
4890 |
+
|
4891 |
+
<img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/cff-oembed.png'; ?>" style="padding: 0px; background: white;">
|
4892 |
+
</div>
|
4893 |
+
|
4894 |
+
<?php } else {
|
4895 |
+
if ( $valid_new_access_token ) {
|
4896 |
+
$oembed_token_settings['access_token'] = $valid_new_access_token;
|
4897 |
+
$oembed_token_settings['disabled'] = false;
|
4898 |
+
update_option( 'cff_oembed_token', $oembed_token_settings );
|
4899 |
+
?>
|
4900 |
+
<div><p class="cff-success"><strong><?php _e("You're all set!", "custom-facebook-feed"); ?></strong> <?php _e("You're all set! Custom Facebook Feed is now powering all of your existing Facebook oEmbeds and also any new ones you create.", "custom-facebook-feed"); ?> <a href="javascript:void(0);" id="cff-oembed-disable"><?php _e("Disable", "custom-facebook-feed"); ?></a></p></div>
|
4901 |
+
|
4902 |
+
<?php if ( $show_token_expiration_modal ) : ?>
|
4903 |
+
<div id="cff_fb_login_modal" class="cff_modal_tokens cffnomodal">
|
4904 |
+
<div class="cff_modal_box">
|
4905 |
+
<p><strong><?php _e( 'Heads up!', 'custom-facebook-feed' ); ?></strong><br></p>
|
4906 |
+
|
4907 |
+
<p>
|
4908 |
+
<?php _e( 'Your access token will expire in 60 days. Facebook requires that users have a role on a Facebook page in order to create access tokens that don\'t expire. Click the button below for instructions on creating a Facebook page and extending your access token to never expire.', 'custom-facebook-feed' ); ?>
|
4909 |
+
</p>
|
4910 |
+
<p style="text-align: center;">
|
4911 |
+
<a style="display: inline-block; float: none; margin-bottom: 0;" href="https://smashballoon.com/doc/how-to-prevent-your-oembed-access-token-from-expiring/?facebook" class="cff_admin_btn" target="blank" rel="noopener"><?php _e( 'How to Create a Facebook Page', 'custom-facebook-feed' ); ?></a>
|
4912 |
+
<a href="https://api.smashballoon.com/facebook-login.php?state=<?php echo $admin_url_state; ?>" class="button button-secondary" style="height: 47px;line-height: 47px;font-size: 14px;padding: 0 21px;"><?php _e( 'Try Again', 'custom-facebook-feed' ); ?></a>
|
4913 |
+
</p>
|
4914 |
+
|
4915 |
+
<a href="JavaScript:void(0);" class="cff-modal-close"><i class="fa fa-times"></i></a>
|
4916 |
+
</div>
|
4917 |
+
</div>
|
4918 |
+
<?php endif; ?>
|
4919 |
+
<?php } else {
|
4920 |
+
if ( ! isset( $oembed_token_settings['expiration_date'] ) || (int)$oembed_token_settings['expiration_date'] === 0 || $oembed_token_settings['expiration_date'] > time() ) :
|
4921 |
+
?>
|
4922 |
+
<div><p class="cff-success"><?php _e("The Custom Facebook Feed plugin is now powering your Facebook oEmbeds.", "custom-facebook-feed"); ?> <a href="javascript:void(0);" id="cff-oembed-disable"><?php _e("Disable", "custom-facebook-feed"); ?></a></p></div>
|
4923 |
+
<?php
|
4924 |
+
endif;
|
4925 |
+
if ( ! empty( $oembed_token_settings['expiration_date'] )
|
4926 |
+
&& $oembed_token_settings['expiration_date'] !== 'never' ) :
|
4927 |
+
$link_1 = '<a href="https://smashballoon.com/doc/how-to-prevent-your-oembed-access-token-from-expiring/?facebook" target="blank" rel="noopener">';
|
4928 |
+
$link_2 = '</a>';
|
4929 |
+
$class = 'cff-warning';
|
4930 |
+
if ( $oembed_token_settings['expiration_date'] > time() ) {
|
4931 |
+
$days_to_expire = floor( ( $oembed_token_settings['expiration_date'] - time() ) / DAY_IN_SECONDS );
|
4932 |
+
$message = sprintf( __( '%1sImportant:%2s Your access token for powering oEmbeds will expire in %3s days.', 'custom-facebook-feed' ), '<strong>', '</strong>', $days_to_expire );
|
4933 |
+
} else {
|
4934 |
+
$class = 'cff-profile-error';
|
4935 |
+
$message = __( 'Your access token for powering oEmbeds has expired.', 'custom-facebook-feed' );
|
4936 |
+
}
|
4937 |
+
?>
|
4938 |
+
<div class="<?php echo $class; ?>" style="display:inline-block;width: auto;">
|
4939 |
+
<p>
|
4940 |
+
<?php echo $message ; ?>
|
4941 |
+
</p>
|
4942 |
+
<p>
|
4943 |
+
<?php echo sprintf( __( 'Facebook requires that users have a role on a Facebook page in order to create access tokens that don\'t expire. Visit %1sthis link%2s for instructions on extending your access token to never expire.', 'custom-facebook-feed' ), $link_1, $link_2 ); ?>
|
4944 |
+
</p>
|
4945 |
+
<p>
|
4946 |
+
<a href="https://api.smashballoon.com/facebook-login.php?state=<?php echo $admin_url_state; ?>" class="cff_admin_btn" id="cff_fb_login"><i class="fa fa-facebook-square"></i> <?php _e( 'Connect to Facebook and Recheck Access Token', 'custom-facebook-feed' ); ?></a>
|
4947 |
+
</p>
|
4948 |
+
</div>
|
4949 |
+
|
4950 |
+
<?php endif; ?>
|
4951 |
+
|
4952 |
+
<?php } ?>
|
4953 |
+
|
4954 |
+
<div class="cff-oembed-promo">
|
4955 |
+
<h2><?php _e("Did you know, the Custom Facebook Feed plugin can also automatically display your Facebook updates on your website?", "custom-facebook-feed"); ?></h2>
|
4956 |
+
<div class="cff-reasons">
|
4957 |
+
<div><svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="clock" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-clock fa-w-16 fa-2x"><path fill="currentColor" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z" class=""></path></svg><span><?php _e("Save time", "custom-facebook-feed"); ?></span></div>
|
4958 |
+
<div><svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="chart-line" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-chart-line fa-w-16 fa-2x"><path fill="currentColor" d="M117.65 277.65c6.25 6.25 16.38 6.25 22.63 0L192 225.94l84.69 84.69c6.25 6.25 16.38 6.25 22.63 0L409.54 200.4l29.49 29.5c15.12 15.12 40.97 4.41 40.97-16.97V112c0-8.84-7.16-16-16-16H363.07c-21.38 0-32.09 25.85-16.97 40.97l29.5 29.49-87.6 87.6-84.69-84.69c-6.25-6.25-16.38-6.25-22.63 0l-74.34 74.34c-6.25 6.25-6.25 16.38 0 22.63l11.31 11.31zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z" class=""></path></svg><span><?php _e("Increase social engagement", "custom-facebook-feed"); ?></span></div>
|
4959 |
+
<div><svg style="width: 16px; height: 16px;" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="search" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-search fa-w-16 fa-2x"><path fill="currentColor" d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" class=""></path></svg><span><?php _e("Add dynamic SEO content to your site.", "custom-facebook-feed"); ?></span></div>
|
4960 |
+
</div>
|
4961 |
+
<p>
|
4962 |
+
<?php $check_svg = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-check fa-w-16 fa-2x"><path fill="currentColor" d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" class=""></path></svg>'; ?>
|
4963 |
+
<?php echo $check_svg; ?><span><?php _e("Super simple to set up", "custom-facebook-feed"); ?></span>
|
4964 |
+
<?php echo $check_svg; ?><span><?php _e("Works for Facebook pages or groups", "custom-facebook-feed"); ?></span>
|
4965 |
+
<?php echo $check_svg; ?><span><?php _e("Lightning fast", "custom-facebook-feed"); ?></span>
|
4966 |
+
<?php echo $check_svg; ?><span><?php _e("Completely customizable", "custom-facebook-feed"); ?></span>
|
4967 |
+
</p>
|
4968 |
+
<a href="?page=cff-top" class="button button-primary"><?php _e("Add a Facebook feed now", "custom-facebook-feed"); ?></a>
|
4969 |
+
</div>
|
4970 |
+
<?php } ?>
|
4971 |
+
|
4972 |
+
</div>
|
4973 |
+
</div>
|
4974 |
+
<?php }
|
4975 |
+
|
4976 |
+
function cff_social_wall_page() {
|
4977 |
+
|
4978 |
+
( is_plugin_active( 'social-wall/social-wall.php' ) ) ? $cff_sw_active = true : $cff_sw_active = false;
|
4979 |
+
|
4980 |
+
?>
|
4981 |
+
|
4982 |
+
<div id="cff-admin" class="wrap sw-landing-page">
|
4983 |
+
|
4984 |
+
<?php $plus_svg = '<span class="cff-sb-plus"><svg aria-hidden="true" focusable="false" data-prefix="fal" data-icon="plus" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-plus fa-w-12 fa-2x"><path fill="currentColor" d="M376 232H216V72c0-4.42-3.58-8-8-8h-32c-4.42 0-8 3.58-8 8v160H8c-4.42 0-8 3.58-8 8v32c0 4.42 3.58 8 8 8h160v160c0 4.42 3.58 8 8 8h32c4.42 0 8-3.58 8-8V280h160c4.42 0 8-3.58 8-8v-32c0-4.42-3.58-8-8-8z" class=""></path></svg></span>'; ?>
|
4985 |
+
|
4986 |
+
<div class="cff-sw-icons">
|
4987 |
+
|
4988 |
+
<span style="display: inline-block; padding: 0 0 12px 0; width: 360px; max-width: 100%;">
|
4989 |
+
<svg viewBox="0 0 9161 1878" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2">
|
4990 |
+
<path d="M671.51192 492.98498c-131.56765-59.12206-268.60859-147.41608-396.53319-188.5154 45.4516 108.39585 83.81326 223.88002 123.5099 338.03081-79.17849 59.49897-171.6647 105.68858-260.02357 156.01204C213.65642 872.8361 320.1446 915.85885 404.9893 980.52836c-67.96118 83.8619-201.48512 171.0179-234.02089 247.0198 140.6921-17.62678 304.63665-46.21028 435.53762-52.00414 28.76425 144.58318 43.59867 303.0974 84.5075 435.5368 60.92028-175.2656 116.0013-356.3729 188.5158-520.0447 111.90636 46.28566 248.28994 102.72599 357.52876 130.01178-76.6463-107.53462-146.59336-221.76932-214.51645-338.02878 100.51155-72.83872 202.17166-144.52441 299.02516-221.02077-136.89504-12.61227-278.73407-20.28825-422.53587-25.99863-22.85286-148.332-16.84825-325.5158-52.00496-461.53949-53.19323 111.48812-115.96685 213.3914-175.51405 318.52475m65.00509 1228.60643c-18.07949 77.37581 41.48757 109.11319 32.50294 156.01204-58.81404-20.26799-103.0575-30.6796-182.01552-19.50201 2.47017-60.37032 56.76657-68.90954 45.50428-143.0107-841.40803-95.6632-843.09804-1616.06909-6.50107-1709.64388C1672.04777-111.55711 1704.8713 1694.70523 736.517 1721.5914" fill="#e34f0e"/>
|
4991 |
+
<path d="M847.02597 174.46023c35.15671 136.0237 29.1521 313.20749 52.00455 461.53544 143.80221 5.71443 285.63962 13.38636 422.53628 26.00268-96.8531 76.49636-198.51483 148.18205-299.02556 221.01874 67.92349 116.2623 137.87014 230.49416 214.51847 338.03-109.24085-27.2866-245.62443-83.72572-357.5308-130.0126-72.51448 163.67262-127.5955 344.77992-188.51538 520.04553-40.90924-132.4394-55.74325-290.95364-84.5079-435.53681-130.90057 5.79548-294.84472 34.37736-435.53722 52.00415 32.53577-76.0007 166.0589-163.15589 234.02008-247.02021-84.8451-64.67032-191.33207-107.69066-266.52343-182.01472 88.35886-50.32346 180.84346-96.51307 260.02276-156.01609-39.69705-114.14674-78.05668-229.63091-123.50868-338.02675C402.9013 345.5689 539.94427 433.86292 671.51192 492.98498c59.5468-105.13335 122.32082-207.03663 175.51405-318.52475" fill="#fff"/>
|
4992 |
+
<path d="M1782.27033 1236.51938c41.18267 21.61921 126.79927 44.31938 214.58338 44.31938 213.49962 0 311.03752-107.01507 311.03752-232.40646 0-101.61027-58.52274-171.87269-189.65702-220.5159-92.11913-33.50977-131.13429-48.6432-131.13429-85.39586 0-32.4288 32.51263-54.04801 92.11913-54.04801 72.61154 0 126.79927 20.53824 158.22814 34.59073l41.18267-155.65828c-47.6852-21.6192-110.54295-37.83361-197.2433-37.83361-184.23826 0-293.69746 99.44834-293.69746 228.08262 0 108.09602 82.36534 176.19652 205.91335 219.43493 82.36533 28.10497 114.87797 48.64321 114.87797 84.3149 0 36.75265-32.51264 59.45282-99.70541 59.45282-73.6953 0-145.2231-22.70017-189.65703-45.40034l-36.84765 161.06308zM3019.37602 1270.02915h189.65702l-36.84765-728.56722h-256.8498l-55.27148 194.57285c-21.67508 76.74818-45.51768 179.4394-66.10902 268.07815h-3.25126c-15.17256-88.63875-36.84765-185.92517-57.43898-266.99719l-47.6852-195.6538h-263.35233l-45.51768 728.56721h179.90323l11.9213-260.51142c3.25127-83.23394 6.50253-191.32997 10.83755-294.0212h2.1675c17.34008 99.44835 39.01517 207.54438 58.52274 286.45448l60.69025 252.9447h152.80938l72.61154-254.02566c23.8426-79.99106 54.18773-189.16805 76.94657-285.37352h3.25126c0 113.50083 1.08376 210.78726 4.33502 294.0212l8.67004 260.51142zM3699.9738 1101.39935l46.60144 168.6298h211.33211l-217.83464-728.56722H3478.8879l-211.33211 728.56722h202.66208l41.18267-168.6298h188.57327zm-162.56317-143.76772l31.42888-130.79619c9.7538-41.07649 20.59134-101.61026 31.42888-143.76771h2.1675c11.9213 42.15745 26.01012 102.69122 36.84766 143.76771l33.59639 130.7962h-135.4693zM4016.4301 1236.51938c41.18266 21.61921 126.79926 44.31938 214.58337 44.31938 213.49962 0 311.03752-107.01507 311.03752-232.40646 0-101.61027-58.52274-171.87269-189.65702-220.5159-92.11913-33.50977-131.1343-48.6432-131.1343-85.39586 0-32.4288 32.51264-54.04801 92.11914-54.04801 72.61154 0 126.79926 20.53824 158.22814 34.59073l41.18267-155.65828c-47.6852-21.6192-110.54295-37.83361-197.2433-37.83361-184.23826 0-293.69746 99.44834-293.69746 228.08262 0 108.09602 82.36534 176.19652 205.91335 219.43493 82.36533 28.10497 114.87797 48.64321 114.87797 84.3149 0 36.75265-32.51264 59.45282-99.70541 59.45282-73.6953 0-145.2231-22.70017-189.65703-45.40034l-36.84765 161.06308zM4623.27688 541.46193v728.56722h196.15955V981.41276h237.34222v288.6164h196.15955V541.46192h-196.15955v269.1591h-237.34222v-269.1591h-196.15955z" fill="#282828" fill-rule="nonzero"/>
|
4993 |
+
<g>
|
4994 |
+
<path d="M6900.00785 293.7053c5.29-14.371 11.90999-24.77099 19.84998-31.19998 7.94-6.429 16.07-9.644 24.38998-9.644 8.32 0 15.7 2.08 22.12999 6.241 6.43 4.16 10.39999 9.265 11.90999 15.31599 2.27 43.86896 4.16 92.65493 5.67 146.35689 1.51 53.70296 2.65 109.86291 3.4 168.48187.76 58.61796 1.52 118.74891 2.26999 180.39386.76 61.64396 1.33 122.71991 1.71 183.22987.37 60.50695.56 119.1269.56 175.85686 0 56.72996.38 109.28992 1.14 157.69988-3.78 12.1-10.59 20.98999-20.41999 26.65998-9.83999 5.68-19.85998 8.14-30.06997 7.38-10.21-.76-19.28999-4.73-27.22998-11.91-7.94-7.18999-11.91-17.58998-11.91-31.19997l-3.4-983.66226zm173.57987 0c5.3-14.371 11.90999-24.77099 19.85998-31.19998 7.94-6.429 16.06999-9.644 24.38998-9.644 8.32 0 15.69 2.08 22.11999 6.241 6.43 4.16 10.39999 9.265 11.91999 15.31599 2.27 43.86896 4.15 92.65493 5.67 146.35689 1.51 53.70296 2.64 109.86291 3.4 168.48187.76 58.61796 1.51999 118.74891 2.26999 180.39386.76 61.64396 1.33 122.71991 1.7 183.22987.38 60.50695.57 119.1269.57 175.85686 0 56.72996.38 109.28992 1.13 157.69988-3.78 12.1-10.59 20.98999-20.41999 26.65998-9.82999 5.68-19.84998 8.14-30.05998 7.38-10.20999-.76-19.28998-4.73-27.22997-11.91-7.94-7.18999-11.92-17.58998-11.92-31.19997l-3.4-983.66226zm-419.49969 980.25225c-6.81-4.54-13.60999-12.66999-20.41998-24.38998-6.81-11.71999-13.61-24.57998-20.41999-38.57997-6.81-13.98999-13.61999-28.16998-20.41998-42.53997-6.81-14.36999-13.99999-26.84998-21.55998-37.43997-7.56-10.58999-15.51-18.33998-23.82999-23.25998-8.31999-4.92-17.38998-4.73-27.22998.57-15.11998 24.95998-30.43997 49.15996-45.93996 72.60994-15.50999 23.44999-32.52998 43.48997-51.05996 60.12996-18.52999 16.63999-39.70997 28.35998-63.52995 35.16997-23.82999 6.81-51.62997 6.05-83.38994-2.27-31.01998-8.31999-56.16996-24.57998-75.44994-48.77996-19.28999-24.20998-33.65998-52.94996-43.10997-86.22993-9.46-33.27998-14.19-69.77995-14.19-109.48992 0-39.70397 4.35-79.22394 13.05-118.55591 8.7-39.33097 21.36998-77.14894 38.00997-113.45492 16.63999-36.30597 36.67997-67.50595 60.12995-93.60093 23.44999-26.09398 50.10997-45.75996 79.98994-58.99595 29.86998-13.237 62.20996-16.82999 96.99993-10.779 32.51998 6.051 59.36996 19.855 80.54994 41.41198 21.17998 21.55598 38.76997 47.65096 52.75996 78.28394 13.98999 30.63297 24.95998 64.47995 32.89998 101.54192 7.93999 37.06197 15.12998 74.12394 21.55998 111.18692 6.43 37.06197 12.85999 72.42194 19.28999 106.08192 6.41999 33.65997 14.92998 62.58995 25.51998 86.78993 10.58999 24.20998 24.01998 41.97997 40.27997 53.32996 16.25998 11.34 37.62997 12.84999 64.09995 4.53 30.25997-31.00998 54.45996-51.61996 72.60994-61.82996 18.15999-10.20999 31.38998-13.60999 39.70997-10.20999 8.32 3.4 11.91 11.91 10.78 25.52998-1.13 13.61-6.05 28.73998-14.75 45.37997-8.69999 16.63999-20.60998 32.89997-35.73997 48.77996-15.11999 15.88999-32.32997 27.98998-51.61996 36.30997-19.28998 8.32-40.46997 11.16-63.52995 8.51-23.06998-2.65-47.08997-14.56-72.04995-35.73998zm2413.83818 6.81c-2.26-39.32997-5.67-82.25994-10.20999-128.7699-4.53-46.51997-10.58-92.84993-18.14999-138.9899-7.55999-46.13396-16.63998-89.81493-27.22998-131.0369-10.58999-41.22197-23.06998-76.01494-37.43997-104.37892-14.36999-28.36298-30.81997-48.21797-49.34996-59.56396-18.52999-11.34499-39.51997-9.83199-62.96995 4.539-23.44998 14.37099-49.34997 43.30197-77.71994 86.79293-28.35998 43.49097-59.93996 106.08092-94.72993 187.76786-3.03 6.05-7 15.88-11.91 29.49998-4.91999 13.60999-10.20999 28.92998-15.88998 45.94997-5.67 17.01998-11.91 34.97997-18.71999 53.88996-6.8 18.90998-13.03999 37.05997-18.71998 54.45995-5.67 17.4-10.78 32.89998-15.31 46.50997-4.53999 13.61999-7.56999 23.82998-9.07998 30.63998-6.05 15.11998-13.62 23.62998-22.68999 25.52998-9.08 1.89-18.14998.18-27.22998-5.11-9.07999-5.3-17.39998-12.47999-24.95998-21.55998-7.56-9.07-12.09999-17.01999-13.61999-23.81999 6.81-26.47998 12.86-55.96995 18.15999-88.49993 5.29-32.51997 9.45-69.57995 12.47999-111.17991 3.02-41.60397 4.16-88.68794 3.4-141.2559-.76-52.56696-4.54-112.13091-11.35-178.69186 8.32-17.39599 16.65-27.03998 24.96999-28.93098 8.31999-1.891 16.63998.756 24.94998 7.942 8.32 7.18499 16.07999 17.77498 23.25998 31.76697 7.19 13.99299 13.61999 28.17498 19.28999 42.54597 5.67 14.37099 10.20999 27.79698 13.61998 40.27697 3.4 12.47999 5.1 20.61098 5.1 24.39298 16.63999-14.371 31.95998-32.71298 45.94997-55.02596 13.98999-22.31298 28.35997-44.62597 43.10996-66.93895 14.75-22.31298 30.82998-42.16697 48.21997-59.56396 17.39998-17.39598 38.19997-27.98597 62.39995-31.76697 49.91996-9.077 92.27993-3.215 127.0699 17.58499 34.79998 20.79998 63.34996 50.67696 85.65994 89.62993 22.30998 38.95297 39.32997 84.14593 51.05996 135.5789 11.72 51.43296 20.03999 103.05492 24.95998 154.86588 4.91 51.80996 6.99 101.34992 6.24 148.62989-.76 47.26996-2.65 86.02993-5.68 116.2899-8.32 17.39-19.46998 26.08999-33.46997 26.08999-13.99 0-25.13998-8.7-33.46998-26.08998zm-1029.72922-9.08c-43.86997-18.14998-78.46994-41.97996-103.80992-71.46994-25.33998-29.49998-43.10997-61.83995-53.32996-97.00993-10.21-35.16997-13.61-72.03994-10.21-110.61791 3.41-38.57497 12.48-76.20395 27.22999-112.88792 14.74998-36.68397 34.41997-71.28794 58.99995-103.81092 24.57998-32.52398 52.56996-60.32095 83.95994-83.38994 31.38997-23.06898 65.79995-40.08797 103.23992-51.05496 37.43997-10.967 76.20994-13.42599 116.28991-7.375 33.27998 5.295 61.83995 20.99 85.65994 47.08397 23.82998 26.09498 42.73996 58.42996 56.72995 97.00493 13.99 38.57397 22.87999 80.93094 26.65998 127.0699 3.78 46.13797 1.7 91.70893-6.24 136.7079-7.93999 45.00996-21.55997 86.79993-40.83996 125.3699-19.28999 38.57998-44.62997 69.77995-76.01994 93.59993-31.38998 23.82999-69.39995 37.81998-114.01992 41.97997-44.62996 4.16-96.05992-6.24-154.29988-31.19997zm-642.42952 0c-43.86996-18.14998-78.46994-41.97996-103.80992-71.46994-25.33998-29.49998-43.10997-61.83995-53.31996-97.00993-10.20999-35.16997-13.61999-72.03994-10.20999-110.61791 3.4-38.57497 12.48-76.20395 27.21998-112.88792 14.74999-36.68397 34.41997-71.28794 58.99996-103.81092 24.57998-32.52398 52.56996-60.32095 83.95993-83.38994 31.38998-23.06898 65.79995-40.08797 103.23992-51.05496 37.43998-10.967 76.20995-13.42599 116.29992-7.375 33.27997 5.295 61.82995 20.99 85.64993 47.08397 23.82998 26.09498 42.73997 58.42996 56.72996 97.00493 13.98999 38.57397 22.87998 80.93094 26.65998 127.0699 3.79 46.13797 1.71 91.70893-6.24 136.7079-7.94 45.00996-21.54998 86.79993-40.83997 125.3699-19.28998 38.57998-44.62996 69.77995-76.01994 93.59993-31.38997 23.82999-69.38995 37.81998-114.01991 41.97997-44.61997 4.16-96.05993-6.24-154.29989-31.19997zm-1823.64862-14.69998c-5.29-34.31998-9.64-71.39995-13.04999-111.24992-3.4-39.85997-6.24-80.95994-8.5-123.2999-2.27-42.34497-3.79-85.24294-4.54-128.6939-.75999-43.45198-1.13999-86.07294-1.13999-127.86391 0-41.78997.38-81.91994 1.14-120.38991.75-38.46997 1.89-74.30995 3.4-107.52092 2.27-9.41 8.13-15.63699 17.58998-18.68199 9.45-3.044 19.65999-3.736 30.62998-2.075 10.97 1.66 20.98998 5.12 30.06998 10.378 9.07 5.259 13.98999 11.48599 14.73999 18.68198-1.51 31.54998-2.64 62.40896-3.4 92.57593-.76 30.16698-.57 59.91796.57 89.25494 1.13 29.33597 3.4 58.81095 6.81 88.42493 3.4 29.61298 8.12999 59.64095 14.17998 90.08493 35.54998-34.31797 72.03995-55.90596 109.47992-64.76195 37.43997-8.856 72.79995-8.441 106.07992 1.245 33.27998 9.687 63.72995 26.56898 91.32993 50.64796 27.60998 24.07798 49.54996 51.61496 65.80995 82.61194 16.25999 31.00198 25.89998 63.65195 28.92998 97.97192 3.02 34.31998-3.22 66.41995-18.71999 96.30993-15.50998 29.88998-41.40996 55.62996-77.71994 77.21994-36.29997 21.58999-85.46993 35.42998-147.48989 41.50997-27.22998 2.77-50.86996 4.99-70.90994 6.65-20.03999 1.66-38.94997 1.8-56.72996.41-17.76999-1.38-35.91997-5.12-54.45996-11.21-18.52998-6.08999-39.89997-15.49998-64.09995-28.22997zm85.08994-154.42989c-9.83 32.09998-11.34 58.25996-4.53 78.45994 6.8 20.20999 18.89998 35.00998 36.29997 44.41997 17.39999 9.41 38.57997 14.11999 63.53995 14.11999 24.95998 0 50.66997-3.74 77.13995-11.21 26.47998-7.46999 52.37996-18.12998 77.71994-31.96997 25.33998-13.83999 47.08996-30.15997 65.23995-48.97996 13.60999-13.83999 20.79998-30.58998 21.55998-50.23996.75-19.64999-2.84-39.70997-10.78-60.18996-7.94998-20.47998-19.85998-40.13097-35.73996-58.95095-15.88-18.81999-33.65998-34.31798-53.31996-46.49597-19.66999-12.17699-40.65997-19.64998-62.96996-22.41698-22.31998-2.768-44.24996 1.799-65.80995 13.69899-21.54998 11.90099-41.78996 32.10397-60.69995 60.61095-18.90999 28.50398-34.78997 68.22395-47.64996 119.14391zm2380.9882 74.95995c49.15996 31.76997 93.21993 45.00996 132.1799 39.70997 38.94997-5.29 71.65995-21.92999 98.12993-49.91997 26.47998-27.97997 46.32996-63.71995 59.56995-107.20991 13.24-43.48997 18.90999-87.92994 17.01999-133.3119-1.9-45.38197-11.73-87.54994-29.49998-126.5029-17.77999-38.95298-44.81997-68.26196-81.11994-87.92694-20.41998-10.59-44.24997-10.022-71.47994 1.701-27.22998 11.72399-53.88996 30.63297-79.97994 56.72795-26.09998 26.09498-49.73997 57.29496-70.90995 93.60093-21.17999 36.30498-35.54997 73.55695-43.11997 111.75292-7.56 38.19897-6.62 75.06894 2.84 110.61892 9.45 35.54997 31.57998 65.79995 66.36995 90.75993zm-642.42952 0c49.16997 31.76997 93.21993 45.00996 132.1799 39.70997 38.94997-5.29 71.65995-21.92999 98.13993-49.91997 26.46998-27.97997 46.31997-63.71995 59.55996-107.20991 13.23999-43.48997 18.90998-87.92994 17.01998-133.3119-1.89-45.38197-11.71999-87.54994-29.49998-126.5029-17.76998-38.95298-44.80996-68.26196-81.11993-87.92694-20.41999-10.59-44.24997-10.022-71.47995 1.701-27.22998 11.72399-53.88996 30.63297-79.97994 56.72795-26.09998 26.09498-49.72996 57.29496-70.90995 93.60093-21.17998 36.30498-35.54997 73.55695-43.10996 111.75292-7.57 38.19897-6.62 75.06894 2.83 110.61892 9.45999 35.54997 31.57997 65.79995 66.36994 90.75993zm-1159.18912-39.69997c19.65998 30.24997 40.26997 47.64996 61.82995 52.18996 21.55999 4.53 42.53997.56 62.96995-11.92 20.41999-12.47998 39.70997-31.00997 57.85996-55.58995 18.14999-24.57998 33.65998-50.86996 46.51997-78.84994 12.84999-27.98998 22.30998-55.40696 28.35997-82.25794 6.05-26.85098 7.56-48.97496 4.54-66.37095-3.78-18.15299-6.81-34.41497-9.08-48.78596-2.27-14.371-4.72999-27.22898-7.36999-38.57497-2.65-11.345-5.68-21.74599-9.07999-31.19998-3.4-9.455-8.13-19.09799-14.17999-28.93098-30.25998-21.17898-58.42996-29.49898-84.52994-24.95998-26.08998 4.538-49.53996 17.39599-70.33994 38.57397-20.79999 21.17898-38.18997 48.40796-52.18996 81.68794-13.99 33.27997-24.19998 68.07295-30.62998 104.37892-6.43 36.30597-8.51 71.47995-6.24 105.50992 2.27 34.03998 9.45 62.39995 21.55999 85.09994z" fill="#282828" fill-rule="nonzero"/>
|
4995 |
+
<path d="M6892.93785 1141.07765l-2.93-847.33736c-.01-1.191.2-2.374.61-3.492 6.06-16.43098 13.87-28.16497 22.94999-35.51497 9.95999-8.065 20.24998-11.87199 30.67997-11.87199 10.37 0 19.54999 2.66 27.55998 7.845 8.86 5.732 14.1 12.94799 16.18 21.28698.16.625.25 1.264.29 1.908 2.26999 43.93997 4.15999 92.80393 5.67999 146.59289 1.51 53.75096 2.65 109.96191 3.4 168.63387.76 58.61996 1.52 118.75391 2.27 180.39986.76 61.66396 1.33 122.76091 1.71 183.28987.37 60.52995.56 119.1699.56 175.91986 0 56.66996.38 109.18992 1.13999 157.54988.01 1.06-.14 2.12-.46 3.13-4.6 14.73-12.99999 25.43998-24.96998 32.34998-11.7 6.75-23.64998 9.58-35.79997 8.68-12.44-.92-23.51999-5.71-33.19998-14.47-9.87-8.93-15.19999-21.69998-15.19999-38.57997l-.25-72.25994c-2.06 5.06-4.48 10.24999-7.27 15.58998-9.08998 17.41-21.52998 34.43998-37.35996 51.04997-16.08 16.88998-34.38998 29.74997-54.89996 38.58997-20.83999 8.98999-43.70997 12.12999-68.62995 9.25999-24.60998-2.82-50.33996-15.20999-76.94994-37.68997-7.62-5.23-15.41999-14.25-23.02998-27.34998-6.92-11.92-13.84-24.98998-20.75999-39.21997-6.83-14.02-13.64999-28.23998-20.46998-42.63997-6.53-13.77999-13.4-25.75998-20.65999-35.90997-6.62-9.27-13.48999-16.15999-20.76998-20.45999-4.67-2.76-9.71-2.7-15.12-.35-14.69998 24.18998-29.57997 47.66997-44.62996 70.42995-16.00999 24.20998-33.58997 44.87997-52.71996 62.05995-19.67998 17.66999-42.16997 30.11998-67.46995 37.34997-25.32998 7.23-54.88996 6.63-88.72993-2.23-33.15997-8.89999-60.03995-26.31997-80.66994-52.20995-20.07998-25.18998-35.06997-55.08996-44.90996-89.72994-9.7-34.10997-14.57-71.50994-14.57-112.21991 0-40.42697 4.43-80.66694 13.29-120.71491 8.84999-40.02697 21.73998-78.51394 38.67997-115.46191 17.08998-37.28898 37.69997-69.31695 61.77995-96.11793 24.43998-27.19398 52.23996-47.66197 83.36994-61.45595 31.65997-14.024 65.90995-17.899 102.88992-11.467 34.67997 6.452 63.26995 21.24799 85.85994 44.23397 21.94998 22.34798 40.20996 49.38096 54.70995 81.13794 14.28 31.25498 25.48998 65.78695 33.58998 103.60192 7.97 37.19097 15.17999 74.38195 21.62998 111.57192 6.42 37.00197 12.84 72.31194 19.25999 105.91192 6.27 32.82997 14.53999 61.05995 24.85998 84.65993 9.73 22.24999 21.89998 38.70997 36.83997 49.12997 13.55 9.45999 31.25998 10.32999 53.02996 3.92 30.31998-30.90998 54.72996-51.40997 73.05995-61.72996 12.16999-6.84 22.40998-10.8 30.62997-12.17 7.06-1.17999 12.97-.53999 17.76999 1.42 3.08 1.26 5.82 2.97 8.15 5.15zm171.26987-850.82935c-.41 1.118-.62 2.301-.62 3.492l3.4 983.65725c0 16.87999 5.34 29.64998 15.21 38.57997 9.67998 8.76 20.75997 13.55 33.19997 14.47 12.14999.9 24.09998-1.93 35.79997-8.68 11.95999-6.91 20.36998-17.61999 24.96998-32.34998.32-1.01.47-2.07.45-3.13-.75-48.35996-1.13-100.87992-1.13-157.54988 0-56.74995-.19-115.3899-.57-175.91986-.38-60.52896-.94-121.62591-1.7-183.28987-.76-61.64595-1.51-121.7799-2.27-180.39986-.76-58.67196-1.89-114.88291-3.41-168.63387-1.51-53.78896-3.4-102.65292-5.67999-146.5929-.03-.644-.13-1.283-.28-1.90799-2.09-8.339-7.32-15.55499-16.17999-21.28698-8.02-5.185-17.18998-7.845-27.55998-7.845-10.43999 0-20.71998 3.807-30.68997 11.872-9.08 7.34999-16.88999 19.08398-22.93999 35.51497zm1588.0788 521.3466c11.02-11.49199 21.36999-24.98198 31.06998-40.44997 14.03-22.37998 28.44998-44.75996 43.23997-67.13995 15.13999-22.89798 31.63998-43.26796 49.48996-61.12095 18.93999-18.93699 41.57997-30.45998 67.67995-34.53497 52.65996-9.574 97.29993-3.098 133.9899 18.84098 36.21997 21.64899 65.98995 52.69896 89.20993 93.24193 22.76999 39.74697 40.15997 85.84694 52.12996 138.3279 11.82 51.85696 20.20999 103.90492 25.15998 156.14788 4.96 52.18996 7.05 102.09992 6.29 149.72989-.77 47.60996-2.68 86.64993-5.73 117.1199-.11 1.16-.43 2.28-.92 3.32-10.40999 21.74999-24.99998 31.77998-42.49996 31.77998-17.48999 0-32.07998-10.03-42.48997-31.77997-.56-1.17-.88-2.44-.96-3.73-2.26-39.21997-5.65-82.00994-10.18-128.3799-4.51999-46.29997-10.53998-92.40994-18.06998-138.3399-7.51-45.82997-16.51999-89.21993-27.03998-130.1689-10.38999-40.41497-22.58998-74.53795-36.67997-102.34693-13.35999-26.36698-28.42998-45.00796-45.64997-55.55495-15.47998-9.474-32.93997-7.465-52.51996 4.536-22.56998 13.82998-47.26996 41.87496-74.56994 83.72993-28.12998 43.12897-59.40996 105.21592-93.90993 186.22486-.08.19-.17.37-.26.55-2.91 5.83-6.71 15.30999-11.45 28.42998-4.88999 13.53999-10.15998 28.77998-15.79998 45.70996-5.7 17.09-11.95999 35.12998-18.79998 54.11996-6.77 18.80999-12.98 36.85997-18.61999 54.16996-5.68 17.41999-10.79 32.93998-15.33999 46.57997-4.39 13.16999-7.33 23.04998-8.8 29.63997-.12.52-.28 1.04-.48 1.54-7.70999 19.27999-18.35998 29.19998-29.92997 31.59998-11.43 2.39-22.87998.41-34.30997-6.25-10.03-5.85-19.24999-13.76999-27.59998-23.78998-8.86-10.63999-13.93-20.08998-15.7-28.05998-.33999-1.54-.30999-3.14.08-4.66 6.74-26.20997 12.73-55.41995 17.97-87.60993 5.25-32.26997 9.36999-69.03995 12.36999-110.30991 3.01-41.34297 4.13-88.13794 3.38-140.3819-.75-52.31096-4.52-111.58291-11.29-177.81786-.19-1.829.13-3.674.92-5.332 10.19-21.30698 21.57999-32.05198 31.76998-34.36797 11.17999-2.541 22.52998.468 33.70997 10.12499 9.13 7.881 17.73999 19.41898 25.61998 34.76697 7.34 14.288 13.9 28.76898 19.68999 43.44197 5.82 14.74199 10.46999 28.51598 13.95999 41.31797.7 2.54 1.32 4.919 1.87 7.135zm-1260.43904 469.29265c-45.43997-18.81999-81.21994-43.59997-107.46992-74.15995-26.30998-30.62997-44.73997-64.20995-55.34996-100.72992-10.55-36.33997-14.07999-74.42994-10.56-114.28691 3.48-39.54797 12.79-78.12894 27.90999-115.73892 15.06999-37.49597 35.16997-72.86794 60.28995-106.11092 25.18998-33.31797 53.85996-61.78595 86.01994-85.41793 32.32997-23.76398 67.77995-41.29597 106.34992-52.59396 38.82997-11.373 79.02994-13.941 120.6799-7.653 35.51998 5.652 66.02996 22.35899 91.46994 50.21697 24.64998 26.99898 44.25996 60.42495 58.73995 100.33692 14.28 39.36297 23.36998 82.58094 27.22998 129.6629 3.85 46.99997 1.73 93.42293-6.36 139.2649-8.10999 45.98996-22.03998 88.68993-41.74996 128.1099-20.00999 40.01997-46.33997 72.36995-78.90994 97.08993-32.80998 24.89998-72.49995 39.61997-119.13991 43.96996-46.01997 4.29-99.08993-6.22-159.14988-31.95997zm642.41951 0c-45.43996-18.81999-81.21994-43.59997-107.46992-74.15995-26.30998-30.62997-44.73996-64.20995-55.33995-100.72992-10.55-36.33997-14.08-74.42994-10.57-114.28691 3.49-39.54797 12.79-78.12894 27.90998-115.73892 15.08-37.49597 35.17998-72.86794 60.29996-106.11092 25.17998-33.31797 53.85996-61.78595 86.00993-85.41793 32.33998-23.76398 67.78995-41.29597 106.35992-52.59396 38.82997-11.373 79.01994-13.941 120.66991-7.653 35.52997 5.652 66.03995 22.35899 91.47993 50.21697 24.64998 26.99898 44.25997 60.42495 58.73996 100.33692 14.27999 39.36297 23.36998 82.58094 27.22998 129.6629 3.85 46.99997 1.73 93.42293-6.36 139.2649-8.12 45.98996-22.03998 88.68993-41.74997 128.1099-20.00998 40.01997-46.33996 72.36995-78.90994 97.08993-32.80997 24.89998-72.49994 39.61997-119.1399 43.96996-46.01997 4.29-99.09993-6.22-159.15989-31.95997zM6968.3578 276.0543c-1.1-3.399-3.7-6.152-7.41999-8.557-4.84-3.135-10.41999-4.636-16.68999-4.636-6.2 0-12.17999 2.622-18.09998 7.417-6.5 5.259-11.73 13.762-16.13999 25.24198l3.4 981.84726c0 10.31 2.6 18.33999 8.62 23.77998 6.20999 5.62 13.27998 8.76 21.25998 9.36 8.26999.61 16.35998-1.47 24.32998-6.07 7.31-4.21 12.36999-10.78 15.39999-19.52998-.75-47.98997-1.12-100.04993-1.12-156.16989 0-56.70995-.19-115.30991-.56-175.79486-.38-60.48896-.95-121.54591-1.7-183.16987-.76-61.64195-1.52-121.7709-2.27-180.38686-.76-58.56596-1.89-114.67491-3.4-168.32887-1.5-53.15996-3.37-101.49493-5.61-145.0029zm173.57988 0c-1.1-3.399-3.69-6.152-7.41-8.557-4.84-3.135-10.42-4.636-16.68999-4.636-6.21 0-12.17999 2.622-18.09998 7.417-6.5 5.259-11.74 13.762-16.14 25.24198l3.39 981.84726c0 10.31 2.61 18.33999 8.63 23.77998 6.2 5.62 13.27999 8.76 21.25998 9.36 8.27.61 16.36-1.47 24.31999-6.07 7.31-4.21 12.36999-10.78 15.39998-19.52998-.74-47.98997-1.11-100.04993-1.11-156.16989 0-56.70995-.19-115.30991-.57-175.79486-.37-60.48896-.94-121.54591-1.7-183.16987-.75-61.64195-1.51-121.7709-2.27-180.38686-.75-58.56596-1.88999-114.67491-3.39999-168.32887-1.49-53.15996-3.36-101.49493-5.61-145.0029zm-1474.8589 611.05154c32.78998-28.61098 66.40996-46.87097 100.71993-54.98596 39.23997-9.282 76.29994-8.777 111.17992 1.375 34.64997 10.08599 66.35995 27.64098 95.10993 52.71196 28.56997 24.91798 51.24996 53.42596 68.07995 85.50393 16.88998 32.18698 26.89997 66.10695 30.03997 101.73693 3.2 36.27997-3.42 70.20994-19.80998 101.79992-16.27999 31.37997-43.34997 58.53995-81.47994 81.19994-37.32997 22.19998-87.83993 36.60997-151.58989 42.86996-27.29998 2.78-50.99996 5-71.08994 6.66-20.60999 1.71-40.05997 1.84-58.32996.42-18.53999-1.44-37.47997-5.33-56.80996-11.68-18.96998-6.22999-40.84997-15.83998-65.62995-28.87997-2.81-1.47-4.75-4.19-5.23-7.32-5.32999-34.52997-9.70999-71.83994-13.12998-111.92991-3.41-39.95997-6.26-81.15994-8.53-123.6199-2.28-42.45897-3.79-85.47694-4.55-129.0499-.76-43.51098-1.14-86.18994-1.14-128.03791 0-41.85797.38-82.05394 1.14-120.58691.76-38.56197 1.89-74.48795 3.41-107.77892.03-.637.12-1.27.27-1.889 3.13-12.99999 11.18-21.65098 24.23999-25.85598 10.86999-3.498 22.58998-4.353 35.19997-2.445 12.24999 1.856 23.43998 5.739 33.57997 11.614 12.52 7.25499 18.62999 16.35998 19.67999 26.28797.05.506.07 1.016.04 1.524-1.51 31.47298-2.64 62.25596-3.39 92.34793-.75 29.95198-.57 59.49096.56 88.61794 1.12 29.08597 3.37 58.30895 6.75 87.66993 2.72 23.63898 6.28 47.54596 10.70999 71.71995zm992.55926 378.53171c-5.84-3.89-11.48-11.03-17.31999-21.08998-6.7-11.53-13.38999-24.16999-20.07998-37.92998-6.79-13.95998-13.58-28.10997-20.37999-42.44996-7.08-14.97-14.57999-27.94998-22.44998-38.97997-8.51-11.9-17.51999-20.51999-26.87998-26.04998-11.32-6.69-23.67998-6.83-37.05997.37-1.57.85-2.88 2.1-3.81 3.62-15.05999 24.84997-30.29998 48.93996-45.73996 72.27994-15 22.68998-31.45998 42.10997-49.38997 58.20995-17.37998 15.61-37.24997 26.60998-59.59995 32.99998-22.31999 6.37-48.34997 5.46-78.10994-2.33-28.79998-7.73-52.21996-22.82998-70.15995-45.34996-18.49999-23.20999-32.24998-50.79997-41.31997-82.71994-9.21-32.44998-13.79999-68.03995-13.79999-106.75992 0-38.98097 4.27-77.78094 12.81-116.39591 8.54998-38.63497 20.98998-75.78495 37.33996-111.44792 16.19-35.32397 35.65998-65.69495 58.47996-91.08393 22.45998-24.99598 47.97996-43.85797 76.59994-56.53696 28.08998-12.44899 58.50996-15.75999 91.23993-10.069 30.24998 5.628 55.35996 18.44 75.12995 38.56698 20.39998 20.76598 37.30997 45.92097 50.78996 75.43094 13.70999 30.00998 24.43998 63.17396 32.21997 99.48293 7.92 36.93297 15.08 73.86594 21.48999 110.79991 6.43 37.12298 12.86999 72.53295 19.30998 106.24292 6.59 34.48998 15.34 64.12996 26.18998 88.92994 11.45 26.16998 26.13998 45.24996 43.71997 57.51995 18.48999 12.9 42.71997 15.33 72.81994 5.87 1.58-.49 3.01-1.37 4.16-2.55 29.34998-30.08998 52.73996-50.19996 70.35995-60.09995 8.15-4.59 15.17999-7.72 21.11998-9.24 4.06-1.05 7.35-1.48 9.9-.44 4.83 1.98 5.26 7.53 4.6 15.45-1.04 12.47998-5.67 26.31997-13.65 41.57996-8.3 15.86999-19.68998 31.36998-34.11997 46.51997-14.17 14.87998-30.26998 26.22998-48.33997 34.01997-17.73998 7.65-37.21997 10.19-58.42995 7.76-21.40999-2.46-43.55997-13.78-66.71995-33.42998l-.92-.7zm2465.44814 12.35c2.91-29.76999 4.72-67.65996 5.46-113.66992.75-46.92997-1.32-96.09993-6.2-147.5199-4.87-51.38895-13.12999-102.58491-24.74998-153.59388-11.49-50.38496-28.12998-94.67092-49.98996-132.8309-21.39999-37.36197-48.73997-66.06595-82.10994-86.01693-32.88998-19.65999-72.95995-24.90898-120.38991-16.28799-22.05998 3.447-41.01997 13.102-56.87996 28.95798-16.93999 16.93999-32.57997 36.27997-46.93996 58.00796-14.71 22.24498-29.03998 44.49096-42.98997 66.73695-14.56999 23.23798-30.54998 42.31396-47.87996 57.28095-2.96 2.557-7.14 3.153-10.7 1.525-3.56-1.628-5.84-5.181-5.84-9.093 0-3.38099-1.70999-10.60698-4.74999-21.76198-3.32-12.15799-7.74-25.23598-13.26999-39.23597-5.55-14.06799-11.84999-27.95098-18.87998-41.64996-6.49-12.637-13.39-22.27799-20.89999-28.76698-5.47-4.718-10.73999-7-16.20999-5.759-2.45.558-4.67 2.587-7.11999 5.432-3.3 3.817-6.54 9.02999-9.82 15.58699 6.66 65.73995 10.36 124.6399 11.11 176.70886.76 52.89196-.39 100.26493-3.43 142.1199-3.05 41.92996-7.25 79.28994-12.57999 112.06991-5.18 31.79998-11.08 60.72995-17.68999 86.79993 1.68 5.13 5.45 10.9 10.96 17.51 6.77 8.11999 14.18999 14.57998 22.31998 19.31998 6.72 3.93 13.41999 5.36 20.14998 3.96 6.46-1.35 10.86-8.16 15.16-18.77 1.62-7.01999 4.65999-17.27998 9.15999-30.76997 4.53-13.58999 9.62999-29.07998 15.29998-46.44996 5.7-17.48999 11.97-35.73998 18.80999-54.74996 6.78-18.82999 12.99999-36.71997 18.63999-53.65996 5.71-17.10999 11.02999-32.49998 15.96998-46.18997 5.02-13.88999 9.11-23.97298 12.22-30.26797 35.04997-82.24394 66.88994-145.2539 95.45992-189.06286 29.42998-45.12797 56.52996-74.94494 80.85994-89.85593 27.31998-16.744 51.82996-17.75999 73.41995-4.541 19.83998 12.144 37.66997 33.21197 53.04996 63.57295 14.64998 28.91898 27.40998 64.38095 38.20997 106.40992 10.65999 41.49597 19.79998 85.46594 27.40998 131.9149 7.6 46.34997 13.67999 92.88993 18.23998 139.6299 4.47 45.84996 7.84 88.22993 10.12 127.1199 6.08999 12 13.56998 18.70999 23.59998 18.70999 10.08999 0 17.58998-6.77 23.68998-18.86999zm-1725.4887-15.54c-42.25997-17.47998-75.64994-40.33997-100.04992-68.74995-24.36999-28.36997-41.48997-59.44995-51.30996-93.27993-9.87-33.99997-13.14-69.64994-9.85-106.94891 3.31-37.60098 12.17-74.27895 26.53998-110.03592 14.43-35.87297 33.65998-69.70795 57.69996-101.51292 23.97998-31.72998 51.27996-58.85496 81.89994-81.36094 30.43997-22.37399 63.81995-38.87897 100.12992-49.51597 36.05997-10.56199 73.38995-12.91099 111.98992-7.084 30.95997 4.925 57.54995 19.607 79.76994 43.93898 22.99998 25.18998 41.19997 56.43395 54.70996 93.67193 13.70999 37.78597 22.38998 79.28094 26.09998 124.4769 3.71 45.27597 1.67 89.99593-6.12 134.1609-7.77 44.01997-21.07998 84.89994-39.94997 122.6299-18.55999 37.11998-42.89997 67.17996-73.10994 90.10994-29.96998 22.74998-66.29995 36.00997-108.90992 39.98997-43.22997 4.03-93.00993-6.26-149.42989-30.43998l-.11-.05zm642.41952 0c-42.24997-17.47998-75.63995-40.33997-100.04993-68.74995-24.35998-28.36997-41.47997-59.44995-51.29996-93.27993-9.87-33.99997-13.14999-69.64994-9.86-106.94891 3.32-37.60098 12.17-74.27895 26.54999-110.03592 14.41999-35.87297 33.65997-69.70795 57.69995-101.51292 23.97999-31.72998 51.27997-58.85496 81.89994-81.36094 30.43998-22.37399 63.81995-38.87897 100.12993-49.51597 36.05997-10.56199 73.38994-12.91099 111.98991-7.084 30.94998 4.925 57.54996 19.607 79.76994 43.93898 22.99999 25.18998 41.19997 56.43395 54.70996 93.67193 13.7 37.78597 22.38998 79.28094 26.08998 124.4769 3.71 45.27597 1.68 89.99593-6.12 134.1609-7.76999 44.01997-21.06998 84.89994-39.93996 122.6299-18.55999 37.11998-42.90997 67.17996-73.10995 90.10994-29.96998 22.74998-66.29995 36.00997-108.90992 39.98997-43.22996 4.03-93.00993-6.26-149.42988-30.43998l-.12-.05zM5632.4288 546.7151c-.72-4.174-4.34-7.351-9.72999-10.47199-8.01-4.642-16.86999-7.678-26.54998-9.144-9.33-1.413-18.01998-.883-26.06998 1.707-5.56 1.792-9.16 5.322-10.71 10.675-1.47999 32.83197-2.59999 68.23495-3.33999 106.20592-.76 38.40597-1.14 78.47094-1.14 120.1929 0 41.73398.38 84.29694 1.14 127.68891.75 43.32997 2.26 86.10694 4.52 128.3289 2.26 42.23997 5.09 83.22994 8.49 122.97991 3.21999 37.68997 7.27999 72.88995 12.20998 105.58992 21.78999 11.26 41.14997 19.67999 58.09996 25.24998 17.72999 5.83 35.09997 9.42 52.10996 10.74 17.26999 1.35 35.64997 1.2 55.11996-.41 19.99998-1.66 43.56997-3.87 70.75994-6.63 60.26996-5.91 108.08992-19.17999 143.3599-40.15997 34.48997-20.49998 59.21995-44.82997 73.94994-73.21994 14.61999-28.18998 20.48999-58.46996 17.63999-90.82994-2.91-32.99997-12.19-64.39995-27.82998-94.20593-15.68999-29.91597-36.86997-56.48395-63.51995-79.72193-26.46998-23.08499-55.63996-39.29498-87.54994-48.58197-31.67997-9.221-65.34995-9.546-100.98992-1.115-35.87997 8.488-70.76995 29.33298-104.83992 62.22396-2.63 2.541-6.44 3.442-9.93 2.349-3.49-1.093-6.10999-4.005-6.81999-7.594-6.11-30.71598-10.88-61.01395-14.30999-90.89293-3.43-29.86598-5.72-59.59296-6.86-89.17993-1.15-29.54598-1.34-59.50996-.58-89.89194.75-29.94797 1.88-60.57595 3.37-91.88193zm15.14 553.17259c13.18998-52.14997 29.57997-92.78993 48.95996-122.00191 19.95998-30.08698 41.44996-51.27696 64.19995-63.83695 23.53998-12.994 47.49996-17.891 71.86994-14.869 23.73999 2.944 46.07997 10.883 66.99995 23.83899 20.53999 12.71799 39.10997 28.89298 55.69996 48.54796 16.63999 19.71899 29.09998 40.32097 37.41997 61.78096 8.47 21.83998 12.25 43.24996 11.45 64.19995-.86 22.23998-9.01 41.18997-24.34999 56.78995-18.82998 19.51999-41.36997 36.46998-67.63995 50.81997-26.01998 14.20999-52.61996 25.13998-79.79994 32.80997-27.39998 7.74-54.02996 11.59-79.85994 11.59-26.84998 0-49.58996-5.2-68.29994-15.32-19.60999-10.60999-33.33998-27.23998-41.01997-50.02996-7.32-21.70998-6.15-49.83996 4.37-84.31993zm19.33998 5.12c12.51999-49.58997 27.86998-88.30994 46.28996-116.06692 17.85999-26.92498 36.82998-46.14197 57.19996-57.38296 19.56999-10.80799 39.46997-15.04399 59.73996-12.52999 20.87998 2.59 40.51996 9.597 58.92995 20.99499 18.78999 11.63699 35.76997 26.45898 50.94996 44.44396 15.12 17.92099 26.48998 36.61097 34.04998 56.11096 7.42 19.12999 10.81999 37.84997 10.10999 56.19996-.65 17.04998-6.87 31.58997-18.68999 43.59996-17.54998 18.2-38.49997 33.89998-62.89995 47.22997-24.65998 13.46999-49.86996 23.83998-75.63994 31.10998-25.53998 7.20999-50.34996 10.83999-74.42995 10.83999-23.07998 0-42.69996-4.21-58.77995-12.91-15.18-8.20999-25.64998-21.19998-31.58998-38.81996-6.28-18.63999-4.44-42.72997 4.63-72.33995l.13-.48zm1723.4387 80.90993c51.62996 33.36998 98.03992 46.77997 138.9499 41.21997 41.29996-5.61 75.97994-23.27998 104.04991-52.95996 27.45998-29.02998 48.13997-66.05995 61.86996-111.16992 13.55999-44.57996 19.37998-90.12293 17.43998-136.6379-1.95-46.72396-12.08999-90.13293-30.38997-130.2379-18.71999-41.02096-47.21997-71.85994-85.45994-92.56893-23.01998-11.93999-49.70996-11.81599-80.18994 1.31-28.27998 12.173-56.00995 31.74398-83.09993 58.84096-26.66998 26.66498-50.83997 58.53395-72.47995 95.63293-21.75998 37.30897-36.50997 75.59694-44.27997 114.84991-7.87999 39.75097-6.86 78.13094 2.98 115.13091 10.02 37.67997 33.31998 69.85995 70.19995 96.31993l.41.27zm642.41951 0c51.62996 33.36998 98.04993 46.77997 138.9499 41.21997 41.30997-5.61 75.98994-23.27998 104.05992-52.95996 27.45998-29.02998 48.12996-66.05995 61.86995-111.16992 13.56-44.57996 19.37999-90.12293 17.43999-136.6379-1.95-46.72396-12.09-90.13293-30.38998-130.2379-18.71998-41.02096-47.22996-71.85994-85.45993-92.56893-23.01998-11.93999-49.70996-11.81599-80.18994 1.31-28.27998 12.173-56.00996 31.74398-83.10994 58.84096-26.65998 26.66498-50.82996 58.53395-72.46994 95.63293-21.76999 37.30897-36.51998 75.59694-44.28997 114.84991-7.87 39.75097-6.86 78.13094 2.98 115.13091 10.02999 37.67997 33.32997 69.85995 70.20994 96.31993l.4.27zm11.07-16.65999c46.60996 30.07998 88.23993 43.08997 125.1899 38.06997 36.59997-4.98 67.34995-20.58998 92.21993-46.88996 25.47998-26.93998 44.51997-61.38995 57.25996-103.24992 12.90999-42.40997 18.43998-85.73594 16.58999-129.9859-1.83-44.03997-11.35-84.96594-28.59998-122.76691-16.82999-36.88497-42.40997-64.66495-76.62995-83.20194-17.97998-9.323-38.93997-8.313-62.91995 2.009-26.17998 11.274-51.76996 29.52098-76.85994 54.61396-25.52998 25.52498-48.62996 56.05596-69.34995 91.56793-20.58998 35.30297-34.57997 71.51695-41.93997 108.65792-7.24999 36.63597-6.38 72.00594 2.69 106.10592 8.87 33.34997 29.74998 61.62995 62.34996 85.06993zm-642.42952 0c46.60996 30.07998 88.24993 43.08997 125.1899 38.06997 36.59998-4.98 67.34995-20.58998 92.21994-46.88996 25.48998-26.93998 44.51996-61.38995 57.25995-103.24992 12.91-42.40997 18.43999-85.73594 16.59999-129.9859-1.84-44.03997-11.36-84.96594-28.60998-122.76691-16.82999-36.88497-42.39997-64.66495-76.61994-83.20194-17.97999-9.323-38.94997-8.313-62.91995 2.009-26.18998 11.274-51.77996 29.52098-76.86995 54.61396-25.52998 25.52498-48.62996 56.05596-69.33994 91.56793-20.59999 35.30297-34.58998 71.51695-41.94997 108.65792-7.25 36.63597-6.37 72.00594 2.7 106.10592 8.86999 33.34997 29.73997 61.62995 62.33995 85.06993zm-1173.21912-25.98998c21.51999 33.09998 44.56997 51.54996 68.15995 56.51996 24.03999 5.06 47.46997.75 70.23995-13.16999 21.39998-13.06999 41.66997-32.41998 60.68995-58.17996 18.56-25.12998 34.41998-52.00996 47.55997-80.61994 13.16999-28.64997 22.83998-56.73495 29.03998-84.22993 6.4-28.42898 7.83-51.86396 4.63-70.28295l-.06-.326c-3.75-17.97399-6.74-34.07597-8.99-48.30596-2.31-14.636-4.82-27.73198-7.52-39.28697-2.74-11.752-5.86999-22.52199-9.39999-32.31498-3.62-10.059-8.64-20.32498-15.06999-30.78498-.72-1.164-1.67-2.168-2.79-2.952-32.86997-23.00798-63.61995-31.54997-91.96992-26.61997-28.08998 4.885-53.36996 18.62598-75.75995 41.41997-21.60998 21.99998-39.73997 50.24796-54.27996 84.81893-14.26999 33.96098-24.69998 69.46395-31.25997 106.51092-6.57 37.13497-8.69 73.11395-6.37 107.92392 2.38 35.65997 10.03 65.34995 22.70999 89.12993l.44.75zm223.31984-388.7207c-26.98998-18.50399-52.01996-26.18998-75.36995-22.12799-24.10998 4.192-45.70996 16.16699-64.91995 35.72898-19.99998 20.35698-36.65997 46.56796-50.10996 78.55694-13.70999 32.59997-23.70998 66.68295-29.99998 102.24692-6.29 35.47697-8.33 69.84595-6.11 103.10592 2.15 32.21998 8.8 59.13996 20.2 80.67994 17.73998 27.17998 35.82996 43.38997 55.26995 47.47996 19.06999 4.02 37.61997.38 55.68996-10.65999 19.44998-11.87999 37.74997-29.59997 55.02996-52.99996 17.74998-24.02998 32.90997-49.72996 45.47996-77.08994 12.55-27.30998 21.78999-54.06896 27.68998-80.27594 5.69-25.21598 7.29-45.98996 4.46-62.34495-3.79-18.24499-6.83-34.59698-9.12-49.05396-2.22-14.106-4.63-26.72698-7.22999-37.86298-2.55-10.93899-5.47-20.96898-8.75-30.08497-2.98-8.28-7.05999-16.709-12.20998-25.29798z" fill="#fff"/>
|
4996 |
+
</g>
|
4997 |
+
</svg>
|
4998 |
+
</span>
|
4999 |
+
<br />
|
5000 |
+
|
5001 |
+
<span style="width: 34px; top: -5px;"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-facebook fa-w-16 fa-2x"><path fill="#475e8f" d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z" class=""></path></svg></span>
|
5002 |
+
|
5003 |
+
<?php echo $plus_svg; ?>
|
5004 |
+
|
5005 |
+
<span><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-instagram fa-w-14 fa-2x"><path fill="#e15073" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z" class=""></path></svg></span>
|
5006 |
+
|
5007 |
+
<?php echo $plus_svg; ?>
|
5008 |
+
|
5009 |
+
<span style="top: -4px;"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-twitter fa-w-16 fa-2x"><path fill="#1a92dc" d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z" class=""></path></svg></span>
|
5010 |
+
|
5011 |
+
<?php echo $plus_svg; ?>
|
5012 |
+
|
5013 |
+
<span style="width: 35px; top: -5px;"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="svg-inline--fa fa-youtube fa-w-18 fa-2x"><path fill="#f5413d" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z" class=""></path></svg></span>
|
5014 |
+
</div>
|
5015 |
+
|
5016 |
+
<h1>Combine all your social media channels into one single wall.</h1>
|
5017 |
+
<h2>Maximize your social content and get more followers.</h2>
|
5018 |
+
|
5019 |
+
<div style="text-align: center;">
|
5020 |
+
<a href="https://smashballoon.com/social-wall/?utm_source=plugin-pro&utm_campaign=cff&utm_medium=sw-cta-1" target="_blank" class="cta button button-primary">Get the Social Wall plugin</a>
|
5021 |
+
</div>
|
5022 |
+
|
5023 |
+
<div class="cff-sw-info">
|
5024 |
+
<div class="cff-sw-features">
|
5025 |
+
<p><span>A dash of Instagram</span>Add posts from your profile, public hashtag posts, or posts you're tagged in.</p>
|
5026 |
+
<p><span>A sprinkle of Facebook</span>Include posts from your page or group timeline, or from your photos, videos, albums, and events pages.</p>
|
5027 |
+
<p><span>A spoonful of Twitter</span>Add Tweets from any Twitter account, hashtag Tweets, mentions, and more.</p>
|
5028 |
+
<p><span>And a dollop of YouTube</span>Embed videos from any public YouTube channel, playlists, searches, and more.</p>
|
5029 |
+
<p><span>All in the same feed</span>Combine feeds from all of our Smash Balloon Pro plugins into one single wall feed, and show off all your social media content in one place.</p>
|
5030 |
+
</div>
|
5031 |
+
<a class="cff-sw-screenshot" href="https://smashballoon.com/social-wall/demo?utm_source=plugin-pro&utm_campaign=cff&utm_medium=sw-demo" target="_blank">
|
5032 |
+
<span class="cta">View Demo</span>
|
5033 |
+
|
5034 |
+
<img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/sw-screenshot.png'; ?>" alt="Smash Balloon Social Wall plugin screenshot showing Facebook, Instagram, Twitter, and YouTube posts combined into one wall.">
|
5035 |
+
</a>
|
5036 |
+
</div>
|
5037 |
+
|
5038 |
+
<div class="cff-sw-footer-cta">
|
5039 |
+
<a href="https://smashballoon.com/social-wall/?utm_source=plugin-pro&utm_campaign=cff&utm_medium=sw-cta-2" target="_blank"><span>🚀</span>Get Social Wall and Increase Engagement >></a>
|
5040 |
+
</div>
|
5041 |
+
|
5042 |
+
</div>
|
5043 |
+
|
5044 |
+
<?php
|
5045 |
+
}
|
5046 |
+
|
5047 |
+
|
5048 |
+
|
5049 |
+
function cff_lite_dismiss() {
|
5050 |
+
$nonce = isset( $_POST['cff_nonce'] ) ? sanitize_text_field( $_POST['cff_nonce'] ) : '';
|
5051 |
+
|
5052 |
+
if ( ! wp_verify_nonce( $nonce, 'cff_nonce' ) ) {
|
5053 |
+
die ( 'You did not do this the right way!' );
|
5054 |
+
}
|
5055 |
+
|
5056 |
+
set_transient( 'facebook_feed_dismiss_lite', 'dismiss', 1 * WEEK_IN_SECONDS );
|
5057 |
+
|
5058 |
+
die();
|
5059 |
+
}
|
5060 |
+
add_action( 'wp_ajax_cff_lite_dismiss', 'cff_lite_dismiss' );
|
5061 |
+
|
5062 |
+
function cff_reset_log() {
|
5063 |
+
|
5064 |
+
|
5065 |
+
\cff_main()->cff_error_reporter->remove_all_errors();
|
5066 |
+
cff_delete_cache();
|
5067 |
+
|
5068 |
+
die();
|
5069 |
+
}
|
5070 |
+
add_action( 'wp_ajax_cff_reset_log', 'cff_reset_log' );
|
5071 |
+
|
5072 |
+
|
5073 |
+
/* Display a notice regarding PPCA changes, which can be dismissed */
|
5074 |
+
add_action('admin_notices', 'cff_ppca_notice');
|
5075 |
+
function cff_ppca_notice() {
|
5076 |
+
|
5077 |
+
global $current_user;
|
5078 |
+
$user_id = $current_user->ID;
|
5079 |
+
|
5080 |
+
$cap = current_user_can( 'manage_custom_facebook_feed_options' ) ? 'manage_custom_facebook_feed_options' : 'manage_options';
|
5081 |
+
$cap = apply_filters( 'cff_settings_pages_capability', $cap );
|
5082 |
+
if( !current_user_can( $cap ) ) return;
|
5083 |
+
|
5084 |
+
// Use this to show notice again
|
5085 |
+
// delete_user_meta($user_id, 'cff_ignore_ppca_notice');
|
5086 |
+
|
5087 |
+
/* Check whether it's an app token or if the user hasn't already clicked to ignore the message */
|
5088 |
+
if( get_user_meta($user_id, 'cff_ignore_ppca_notice') ) return;
|
5089 |
+
|
5090 |
+
$page_id = get_option( 'cff_page_id' );
|
5091 |
+
$cff_access_token = get_option( 'cff_access_token' );
|
5092 |
+
|
5093 |
+
if( $page_id && $cff_access_token ){
|
5094 |
+
|
5095 |
+
//Make a call to the API to see whether the ID and token are for the same Facebook page.
|
5096 |
+
$cff_ppca_check_url = 'https://graph.facebook.com/v8.0/'.$page_id.'/posts?limit=1&access_token='.$cff_access_token;
|
5097 |
+
|
5098 |
+
//Store the response in a transient which is deleted and then reset if the settings are saved.
|
5099 |
+
if ( ! get_transient( 'cff_ppca_admin_check' ) ) {
|
5100 |
+
//Get the contents of the API response
|
5101 |
+
$cff_ppca_admin_check_response = CFF_Utils::cff_fetchUrl($cff_ppca_check_url);
|
5102 |
+
set_transient( 'cff_ppca_admin_check', $cff_ppca_admin_check_response, YEAR_IN_SECONDS );
|
5103 |
+
|
5104 |
+
$cff_ppca_admin_check_json = json_decode($cff_ppca_admin_check_response);
|
5105 |
+
} else {
|
5106 |
+
$cff_ppca_admin_check_response = get_transient( 'cff_ppca_admin_check' );
|
5107 |
+
//If we can't find the transient then fall back to just getting the json from the api
|
5108 |
+
if ($cff_ppca_admin_check_response == false) $cff_ppca_admin_check_response = CFF_Utils::cff_fetchUrl($cff_ppca_check_url);
|
5109 |
+
|
5110 |
+
$cff_ppca_admin_check_json = json_decode($cff_ppca_admin_check_response);
|
5111 |
+
}
|
5112 |
+
|
5113 |
+
//If there's a PPCA error or it's a multifeed then display notice
|
5114 |
+
if( ( isset($cff_ppca_admin_check_json->error->message) && strpos($cff_ppca_admin_check_json->error->message, 'Public Content Access') ) || strpos( $page_id, ',') != false ){
|
5115 |
+
_e("
|
5116 |
+
<div class='cff-admin-top-notice'>
|
5117 |
+
<a class='cff-admin-notice-close' href='" .esc_url( add_query_arg( 'cff_nag_ppca_ignore', '0' ) ). "'>Don't show again<i class='fa fa-close' style='margin-left: 5px;'></i></a>
|
5118 |
+
<p style='min-height: 22px;'><img src='" . CFF_PLUGIN_URL . 'admin/assets/img/fb-icon.png' . "' style='float: left; width: 22px; height: 22px; margin-right: 12px; border-radius: 5px; box-shadow: 0 0 1px 0 #BA7B7B;'>
|
5119 |
+
<b>Action required: PPCA Error.</b> <span style='margin-right: 10px;'>Due to Facebook API changes it is no longer possible to display feeds from Facebook Pages you are not an admin of. Please <a href='https://smashballoon.com/facebook-ppca-error-notice/' target='_blank'>see here</a> for more information.</span><a href='admin.php?page=cff-top' class='cff-admin-notice-button'>Go to Facebook Feed Settings</a></p>
|
5120 |
+
</div>
|
5121 |
+
");
|
5122 |
+
}
|
5123 |
+
}
|
5124 |
+
|
5125 |
+
}
|
5126 |
+
//If PPCA notice is dismissed then don't show again
|
5127 |
+
add_action('admin_init', 'cff_nag_ppca_ignore');
|
5128 |
+
function cff_nag_ppca_ignore() {
|
5129 |
+
global $current_user;
|
5130 |
+
$user_id = $current_user->ID;
|
5131 |
+
if ( isset($_GET['cff_nag_ppca_ignore']) && '0' == $_GET['cff_nag_ppca_ignore'] ) {
|
5132 |
+
add_user_meta($user_id, 'cff_ignore_ppca_notice', 'true', true);
|
5133 |
+
}
|
5134 |
+
}
|
5135 |
+
|
5136 |
+
|
5137 |
+
// Add a Settings link to the plugin on the Plugins page
|
5138 |
+
$cff_plugin_file = 'custom-facebook-feed/custom-facebook-feed.php';
|
5139 |
+
add_filter( "plugin_action_links_{$cff_plugin_file}", 'cff_add_settings_link', 10, 2 );
|
5140 |
+
|
5141 |
+
//modify the link by unshifting the array
|
5142 |
+
function cff_add_settings_link( $links, $file ) {
|
5143 |
+
$cff_settings_link = '<a href="' . admin_url( 'admin.php?page=cff-top' ) . '">' . __( 'Settings', 'cff-top', 'custom-facebook-feed' ) . '</a>';
|
5144 |
+
array_unshift( $links, $cff_settings_link );
|
5145 |
+
|
5146 |
+
return $links;
|
5147 |
+
}
|
5148 |
+
|
5149 |
+
|
5150 |
+
//Delete cache
|
5151 |
+
function cff_delete_cache(){
|
5152 |
+
global $wpdb;
|
5153 |
+
$table_name = $wpdb->prefix . "options";
|
5154 |
+
$wpdb->query( "
|
5155 |
+
DELETE
|
5156 |
+
FROM $table_name
|
5157 |
+
WHERE `option_name` LIKE ('%\_transient\_cff\_%')
|
5158 |
+
" );
|
5159 |
+
$wpdb->query( "
|
5160 |
+
DELETE
|
5161 |
+
FROM $table_name
|
5162 |
+
WHERE `option_name` LIKE ('%\_transient\_cff\_tle\_%')
|
5163 |
+
" );
|
5164 |
+
$wpdb->query( "
|
5165 |
+
DELETE
|
5166 |
+
FROM $table_name
|
5167 |
+
WHERE `option_name` LIKE ('%\_transient\_timeout\_cff\_%')
|
5168 |
+
" );
|
5169 |
+
|
5170 |
+
//Clear cache of major caching plugins
|
5171 |
+
if(isset($GLOBALS['wp_fastest_cache']) && method_exists($GLOBALS['wp_fastest_cache'], 'deleteCache')){
|
5172 |
+
$GLOBALS['wp_fastest_cache']->deleteCache();
|
5173 |
+
}
|
5174 |
+
//WP Super Cache
|
5175 |
+
if (function_exists('wp_cache_clear_cache')) {
|
5176 |
+
wp_cache_clear_cache();
|
5177 |
+
}
|
5178 |
+
//W3 Total Cache
|
5179 |
+
if (function_exists('w3tc_flush_all')) {
|
5180 |
+
w3tc_flush_all();
|
5181 |
+
}
|
5182 |
+
|
5183 |
+
}
|
5184 |
+
|
5185 |
+
//Cron job to clear transients
|
5186 |
+
add_action('cff_cron_job', 'cff_cron_clear_cache');
|
5187 |
+
function cff_cron_clear_cache() {
|
5188 |
+
//Delete all transients
|
5189 |
+
cff_delete_cache();
|
5190 |
+
}
|
5191 |
+
|
5192 |
+
//NOTICES
|
5193 |
+
function cff_get_current_time() {
|
5194 |
+
$current_time = time();
|
5195 |
+
|
5196 |
+
// where to do tests
|
5197 |
+
// $current_time = strtotime( 'November 25, 2020' );
|
5198 |
+
|
5199 |
+
return $current_time;
|
5200 |
+
}
|
5201 |
+
|
5202 |
+
// generates the html for the admin notices
|
5203 |
+
function cff_notices_html() {
|
5204 |
+
// reset everything for testing
|
5205 |
+
/*
|
5206 |
+
global $current_user;
|
5207 |
+
$user_id = $current_user->ID;
|
5208 |
+
// delete_user_meta( $user_id, 'cff_ignore_bfcm_sale_notice' );
|
5209 |
+
// delete_user_meta( $user_id, 'cff_ignore_new_user_sale_notice' );
|
5210 |
+
// $cff_statuses_option = array( 'first_install' => strtotime( 'December 8, 2017' ) );
|
5211 |
+
// $cff_statuses_option = array( 'first_install' => time() );
|
5212 |
+
|
5213 |
+
// update_option( 'cff_statuses', $cff_statuses_option, false );
|
5214 |
+
// delete_option( 'cff_rating_notice');
|
5215 |
+
// delete_transient( 'custom_facebook_rating_notice_waiting' );
|
5216 |
+
|
5217 |
+
// set_transient( 'custom_facebook_rating_notice_waiting', 'waiting', 2 * WEEK_IN_SECONDS );
|
5218 |
+
delete_transient('custom_facebook_rating_notice_waiting');
|
5219 |
+
update_option( 'cff_rating_notice', 'pending', false );
|
5220 |
+
*/
|
5221 |
+
}
|
5222 |
+
|
5223 |
+
function cff_get_future_date( $month, $year, $week, $day, $direction ) {
|
5224 |
+
if ( $direction > 0 ) {
|
5225 |
+
$startday = 1;
|
5226 |
+
} else {
|
5227 |
+
$startday = date( 't', mktime(0, 0, 0, $month, 1, $year ) );
|
5228 |
+
}
|
5229 |
+
|
5230 |
+
$start = mktime( 0, 0, 0, $month, $startday, $year );
|
5231 |
+
$weekday = date( 'N', $start );
|
5232 |
+
|
5233 |
+
$offset = 0;
|
5234 |
+
if ( $direction * $day >= $direction * $weekday ) {
|
5235 |
+
$offset = -$direction * 7;
|
5236 |
+
}
|
5237 |
+
|
5238 |
+
$offset += $direction * ($week * 7) + ($day - $weekday);
|
5239 |
+
return mktime( 0, 0, 0, $month, $startday + $offset, $year );
|
5240 |
+
}
|
5241 |
+
|
5242 |
+
function cff_admin_hide_unrelated_notices() {
|
5243 |
+
|
5244 |
+
// Bail if we're not on a cff screen or page.
|
5245 |
+
if ( ! isset( $_GET['page'] ) || strpos( $_GET['page'], 'cff') === false ) {
|
5246 |
+
return;
|
5247 |
+
}
|
5248 |
+
|
5249 |
+
// Extra banned classes and callbacks from third-party plugins.
|
5250 |
+
$blacklist = array(
|
5251 |
+
'classes' => array(),
|
5252 |
+
'callbacks' => array(
|
5253 |
+
'cffdb_admin_notice', // 'Database for cff' plugin.
|
5254 |
+
),
|
5255 |
+
);
|
5256 |
+
|
5257 |
+
global $wp_filter;
|
5258 |
+
|
5259 |
+
foreach ( array( 'user_admin_notices', 'admin_notices', 'all_admin_notices' ) as $notices_type ) {
|
5260 |
+
if ( empty( $wp_filter[ $notices_type ]->callbacks ) || ! is_array( $wp_filter[ $notices_type ]->callbacks ) ) {
|
5261 |
+
continue;
|
5262 |
+
}
|
5263 |
+
foreach ( $wp_filter[ $notices_type ]->callbacks as $priority => $hooks ) {
|
5264 |
+
foreach ( $hooks as $name => $arr ) {
|
5265 |
+
if ( is_object( $arr['function'] ) && $arr['function'] instanceof Closure ) {
|
5266 |
+
unset( $wp_filter[ $notices_type ]->callbacks[ $priority ][ $name ] );
|
5267 |
+
continue;
|
5268 |
+
}
|
5269 |
+
$class = ! empty( $arr['function'][0] ) && is_object( $arr['function'][0] ) ? strtolower( get_class( $arr['function'][0] ) ) : '';
|
5270 |
+
if (
|
5271 |
+
! empty( $class ) &&
|
5272 |
+
strpos( $class, 'cff' ) !== false &&
|
5273 |
+
! in_array( $class, $blacklist['classes'], true )
|
5274 |
+
) {
|
5275 |
+
continue;
|
5276 |
+
}
|
5277 |
+
if (
|
5278 |
+
! empty( $name ) && (
|
5279 |
+
strpos( $name, 'cff' ) === false ||
|
5280 |
+
in_array( $class, $blacklist['classes'], true ) ||
|
5281 |
+
in_array( $name, $blacklist['callbacks'], true )
|
5282 |
+
)
|
5283 |
+
) {
|
5284 |
+
unset( $wp_filter[ $notices_type ]->callbacks[ $priority ][ $name ] );
|
5285 |
+
}
|
5286 |
+
}
|
5287 |
+
}
|
5288 |
+
}
|
5289 |
+
}
|
5290 |
+
add_action( 'admin_print_scripts', 'cff_admin_hide_unrelated_notices' );
|
5291 |
+
|
5292 |
+
function cff_free_add_caps() {
|
5293 |
+
global $wp_roles;
|
5294 |
+
|
5295 |
+
$wp_roles->add_cap( 'administrator', 'manage_custom_facebook_feed_options' );
|
5296 |
+
|
5297 |
+
}
|
5298 |
+
add_action( 'admin_init', 'cff_free_add_caps', 90 );
|
5299 |
+
|
5300 |
+
/* Usage */
|
5301 |
+
add_action( 'admin_notices', 'cff_usage_opt_in' );
|
5302 |
+
function cff_usage_opt_in() {
|
5303 |
+
|
5304 |
+
if ( isset( $_GET['trackingdismiss'] ) ) {
|
5305 |
+
$usage_tracking = get_option( 'cff_usage_tracking', array( 'last_send' => 0, 'enabled' => false ) );
|
5306 |
+
|
5307 |
+
$usage_tracking['enabled'] = false;
|
5308 |
+
|
5309 |
+
update_option( 'cff_usage_tracking', $usage_tracking, false );
|
5310 |
+
|
5311 |
+
return;
|
5312 |
+
}
|
5313 |
+
|
5314 |
+
$cap = current_user_can( 'manage_custom_facebook_feed_options' ) ? 'manage_custom_facebook_feed_options' : 'manage_options';
|
5315 |
+
|
5316 |
+
$cap = apply_filters( 'cff_settings_pages_capability', $cap );
|
5317 |
+
if ( ! current_user_can( $cap ) ) {
|
5318 |
+
return;
|
5319 |
+
}
|
5320 |
+
$usage_tracking = get_option( 'cff_usage_tracking', false );
|
5321 |
+
if ( $usage_tracking ) {
|
5322 |
+
return;
|
5323 |
+
}
|
5324 |
+
?>
|
5325 |
+
<div class="notice notice-warning is-dismissible cff-admin-notice">
|
5326 |
+
|
5327 |
+
<p>
|
5328 |
+
<strong><?php echo __( 'Help us improve the Custom Facebook Feed plugin', 'custom-facebook-feed' ); ?></strong><br>
|
5329 |
+
<?php echo __( 'Understanding how you are using the plugin allows us to further improve it. Opt-in below to agree to send a weekly report of plugin usage data.', 'custom-facebook-feed' ); ?>
|
5330 |
+
<a target="_blank" rel="noopener noreferrer" href="https://smashballoon.com/custom-facebook-feed/docs/usage-tracking/"><?php echo __( 'More information', 'custom-facebook-feed' ); ?></a>
|
5331 |
+
</p>
|
5332 |
+
<p>
|
5333 |
+
<a href="<?php echo admin_url('admin.php?page=cff-top&trackingdismiss=1') ?>" type="submit" class="button button-primary cff-opt-in"><?php echo __( 'Yes, I\'d like to help', 'custom-facebook-feed' ); ?></a>
|
5334 |
+
<a href="<?php echo admin_url('admin.php?page=cff-top&trackingdismiss=1') ?>" type="submit" class="cff-no-usage-opt-out cff-space-left button button-secondary"><?php echo __( 'No, thanks', 'custom-facebook-feed' ); ?></a>
|
5335 |
+
</p>
|
5336 |
+
|
5337 |
+
</div>
|
5338 |
+
|
5339 |
+
<?php
|
5340 |
+
}
|
5341 |
+
|
5342 |
+
function cff_usage_opt_in_or_out() {
|
5343 |
+
if ( ! isset( $_POST['opted_in'] ) ) {
|
5344 |
+
die ( 'You did not do this the right way!' );
|
5345 |
+
}
|
5346 |
+
|
5347 |
+
$usage_tracking = get_option( 'cff_usage_tracking', array( 'last_send' => 0, 'enabled' => false ) );
|
5348 |
+
|
5349 |
+
$usage_tracking['enabled'] = isset( $_POST['opted_in'] ) ? $_POST['opted_in'] === 'true' : false;
|
5350 |
+
|
5351 |
+
update_option( 'cff_usage_tracking', $usage_tracking, false );
|
5352 |
+
|
5353 |
+
die();
|
5354 |
+
}
|
5355 |
+
add_action( 'wp_ajax_cff_usage_opt_in_or_out', 'cff_usage_opt_in_or_out' );
|
5356 |
+
|
5357 |
+
//PPCA token checks
|
5358 |
+
function cff_ppca_token_check_flag() {
|
5359 |
+
if( get_transient('cff_ppca_access_token_invalid') ){
|
5360 |
+
print_r(true);
|
5361 |
+
} else {
|
5362 |
+
print_r(false);
|
5363 |
+
}
|
5364 |
+
|
5365 |
+
die();
|
5366 |
+
}
|
5367 |
+
add_action( 'wp_ajax_cff_ppca_token_check_flag', 'cff_ppca_token_check_flag' );
|
5368 |
+
|
5369 |
+
//Set the PPCA token transient. Is cleared when settings are saved.
|
5370 |
+
function cff_ppca_token_set_flag() {
|
5371 |
+
set_transient('cff_ppca_access_token_invalid', true);
|
5372 |
+
die();
|
5373 |
+
}
|
5374 |
+
add_action( 'wp_ajax_cff_ppca_token_set_flag', 'cff_ppca_token_set_flag' );
|
5375 |
+
|
5376 |
+
function cff_oembed_disable() {
|
5377 |
+
$nonce = isset( $_POST['cff_nonce'] ) ? sanitize_text_field( $_POST['cff_nonce'] ) : '';
|
5378 |
+
|
5379 |
+
if ( ! wp_verify_nonce( $nonce, 'cff_nonce' ) ) {
|
5380 |
+
die ( 'You did not do this the right way!' );
|
5381 |
+
}
|
5382 |
+
|
5383 |
+
$oembed_settings = get_option( 'cff_oembed_token', array() );
|
5384 |
+
$oembed_settings['access_token'] = '';
|
5385 |
+
$oembed_settings['disabled'] = true;
|
5386 |
+
echo '<strong>';
|
5387 |
+
if ( update_option( 'cff_oembed_token', $oembed_settings ) ) {
|
5388 |
+
_e( 'Facebook oEmbeds will no longer be handled by Custom Facebook Feed.', 'custom-facebook-feed' );
|
5389 |
+
} else {
|
5390 |
+
_e( 'An error occurred when trying to disable your oEmbed token.', 'custom-facebook-feed' );
|
5391 |
+
}
|
5392 |
+
echo '</strong>';
|
5393 |
+
|
5394 |
+
die();
|
5395 |
+
}
|
5396 |
+
add_action( 'wp_ajax_cff_oembed_disable', 'cff_oembed_disable' );
|
{css → admin/assets/css}/admin-notifications.css
RENAMED
File without changes
|
{css → admin/assets/css}/cff-admin-style.css
RENAMED
@@ -829,6 +829,7 @@
|
|
829 |
/* Review notice */
|
830 |
.cff_notice{
|
831 |
position: relative;
|
|
|
832 |
overflow: hidden;
|
833 |
max-width: 885px;
|
834 |
margin-top: 10px;
|
@@ -2738,7 +2739,7 @@
|
|
2738 |
width: 55%;
|
2739 |
float: left;
|
2740 |
height: 500px;
|
2741 |
-
background: url('../img/sw-screenshot.png') no-repeat center center;
|
2742 |
background-size: cover;
|
2743 |
}
|
2744 |
#cff-admin .cff-sw-screenshot img{
|
@@ -2964,4 +2965,71 @@
|
|
2964 |
#cff-admin .cff-cols-4 .addon-container{
|
2965 |
width: 100%;
|
2966 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2967 |
}
|
829 |
/* Review notice */
|
830 |
.cff_notice{
|
831 |
position: relative;
|
832 |
+
clear: right;
|
833 |
overflow: hidden;
|
834 |
max-width: 885px;
|
835 |
margin-top: 10px;
|
2739 |
width: 55%;
|
2740 |
float: left;
|
2741 |
height: 500px;
|
2742 |
+
background: url('../admin/assets/img/sw-screenshot.png') no-repeat center center;
|
2743 |
background-size: cover;
|
2744 |
}
|
2745 |
#cff-admin .cff-sw-screenshot img{
|
2965 |
#cff-admin .cff-cols-4 .addon-container{
|
2966 |
width: 100%;
|
2967 |
}
|
2968 |
+
}
|
2969 |
+
|
2970 |
+
/* GDPR Settings */
|
2971 |
+
#cff-admin .cff-list{
|
2972 |
+
list-style: inside disc;
|
2973 |
+
}
|
2974 |
+
#cff-admin .cff-box{
|
2975 |
+
float: left;
|
2976 |
+
clear: both;
|
2977 |
+
width: 96%;
|
2978 |
+
max-width: 900px;
|
2979 |
+
|
2980 |
+
padding: 10px 15px;
|
2981 |
+
margin: 10px 0;
|
2982 |
+
font-size: 13px;
|
2983 |
+
background: #f9f9f9;
|
2984 |
+
background: rgba(255,255,255,0.8);
|
2985 |
+
|
2986 |
+
-moz-border-radius: 8px;
|
2987 |
+
-webkit-border-radius: 8px;
|
2988 |
+
border-radius: 8px;
|
2989 |
+
}
|
2990 |
+
.gdpr_tooltip p{
|
2991 |
+
padding: 0 0 10px 0;
|
2992 |
+
}
|
2993 |
+
.gdpr_tooltip span{
|
2994 |
+
display: inline-block;
|
2995 |
+
margin: 0;
|
2996 |
+
font-weight: bold;
|
2997 |
+
font-size: 14px;
|
2998 |
+
}
|
2999 |
+
.gdpr_tooltip .cff-list{
|
3000 |
+
padding: 0 0 10px 0;
|
3001 |
+
}
|
3002 |
+
.gdpr_tooltip li{
|
3003 |
+
padding: 0;
|
3004 |
+
}
|
3005 |
+
.cff_gdpr_plugin_active .cff_active{
|
3006 |
+
display: inline-block;
|
3007 |
+
padding: 10px 20px 15px 20px;
|
3008 |
+
border-radius: 5px;
|
3009 |
+
background: #edf4f0;
|
3010 |
+
border: 1px solid #2c8649;
|
3011 |
+
color: #2c8649;
|
3012 |
+
margin: 8px 0 0 0;
|
3013 |
+
}
|
3014 |
+
.cff_gdpr_plugin_active svg{
|
3015 |
+
width: 16px;
|
3016 |
+
height: 16px;
|
3017 |
+
position: relative;
|
3018 |
+
top: 3px;
|
3019 |
+
margin-right: 2px;
|
3020 |
+
}
|
3021 |
+
.cff_gdpr_plugin_active path{
|
3022 |
+
fill: green;
|
3023 |
+
}
|
3024 |
+
.cff_gdpr_list,
|
3025 |
+
.cff_gdpr_yes,
|
3026 |
+
.cff_gdpr_no{
|
3027 |
+
display: none;
|
3028 |
+
}
|
3029 |
+
#cff-admin .cff_gdpr_error{
|
3030 |
+
padding: 10px 20px 15px 20px;
|
3031 |
+
border-radius: 5px;
|
3032 |
+
background: #F7E6E6;
|
3033 |
+
border: 1px solid #BA7B7B;
|
3034 |
+
color: #592626;
|
3035 |
}
|
{img → admin/assets/img}/about/api-error.png
RENAMED
File without changes
|
{img → admin/assets/img}/about/icon-full.svg
RENAMED
File without changes
|
{img → admin/assets/img}/about/icon-none.svg
RENAMED
File without changes
|
{img → admin/assets/img}/about/icon-partial.svg
RENAMED
File without changes
|
{img → admin/assets/img}/about/plugin-fb.png
RENAMED
File without changes
|
{img → admin/assets/img}/about/plugin-if.png
RENAMED
File without changes
|
{img → admin/assets/img}/about/plugin-mi.png
RENAMED
File without changes
|
{img → admin/assets/img}/about/plugin-om.png
RENAMED
File without changes
|
{img → admin/assets/img}/about/plugin-rp.png
RENAMED
File without changes
|
{img → admin/assets/img}/about/plugin-seo.png
RENAMED
File without changes
|
{img → admin/assets/img}/about/plugin-smtp.png
RENAMED
File without changes
|
{img → admin/assets/img}/about/plugin-tw.jpg
RENAMED
File without changes
|
{img → admin/assets/img}/about/plugin-wpforms.png
RENAMED
File without changes
|
{img → admin/assets/img}/about/plugin-yt.png
RENAMED
File without changes
|
{img → admin/assets/img}/about/steps.png
RENAMED
File without changes
|
{img → admin/assets/img}/about/team.jpg
RENAMED
File without changes
|
{img → admin/assets/img}/balloon-120.png
RENAMED
File without changes
|
{img → admin/assets/img}/cff-icon.png
RENAMED
File without changes
|
{img → admin/assets/img}/cff-oembed.png
RENAMED
File without changes
|
{img → admin/assets/img}/fb-icon.png
RENAMED
File without changes
|
{img → admin/assets/img}/group-app.png
RENAMED
File without changes
|
{img → admin/assets/img}/layout-full.png
RENAMED
File without changes
|
{img → admin/assets/img}/layout-half.png
RENAMED
File without changes
|
{img → admin/assets/img}/layout-thumb.png
RENAMED
File without changes
|
{img → admin/assets/img}/post-style.png
RENAMED
File without changes
|
{img → admin/assets/img}/pro.png
RENAMED
File without changes
|
{img → admin/assets/img}/sw-screenshot.png
RENAMED
File without changes
|
{js → admin/assets/js}/admin-notifications.js
RENAMED
File without changes
|
{js → admin/assets/js}/cff-admin-scripts.js
RENAMED
@@ -1,5 +1,4 @@
|
|
1 |
jQuery(document).ready(function($) {
|
2 |
-
|
3 |
//Tooltips
|
4 |
jQuery('#cff-admin .cff-tooltip-link').click(function(){
|
5 |
jQuery(this).closest('tr, h3, div').find('.cff-tooltip').slideToggle();
|
@@ -844,9 +843,32 @@ jQuery(document).ready(function($) {
|
|
844 |
jQuery('#cff-oembed-disable').closest('p').html(data);
|
845 |
}
|
846 |
});
|
|
|
847 |
});
|
848 |
|
849 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
850 |
|
851 |
//sb_instagram_enable_email_report
|
852 |
function cffToggleEmail() {
|
@@ -1054,7 +1076,7 @@ jQuery(document).ready(function($) {
|
|
1054 |
});
|
1055 |
|
1056 |
// Toggle an addon state.
|
1057 |
-
$( document ).on( 'click', '#cff-admin-addons .addon-item button', function( event ) {
|
1058 |
|
1059 |
event.preventDefault();
|
1060 |
|
@@ -1147,7 +1169,7 @@ jQuery(document).ready(function($) {
|
|
1147 |
type : plugin_type
|
1148 |
};
|
1149 |
$.post( cff_admin.ajax_url, data, function( res ) {
|
1150 |
-
|
1151 |
if ( res.success ) {
|
1152 |
if ( 'cff_install_addon' === action ) {
|
1153 |
$btn.attr( 'data-plugin', res.data.basename );
|
1 |
jQuery(document).ready(function($) {
|
|
|
2 |
//Tooltips
|
3 |
jQuery('#cff-admin .cff-tooltip-link').click(function(){
|
4 |
jQuery(this).closest('tr, h3, div').find('.cff-tooltip').slideToggle();
|
843 |
jQuery('#cff-oembed-disable').closest('p').html(data);
|
844 |
}
|
845 |
});
|
846 |
+
|
847 |
});
|
848 |
|
849 |
+
jQuery('.cff_show_gdpr_list').on('click', function(){
|
850 |
+
jQuery(this).closest('div').find('.cff_gdpr_list').slideToggle();
|
851 |
+
});
|
852 |
+
//Selecting a post style
|
853 |
+
jQuery('#cff_gdpr_setting').on('change', function(){
|
854 |
+
console.log('Slim Shady')
|
855 |
+
cffCheckGdprSetting( jQuery(this).val() );
|
856 |
+
});
|
857 |
+
function cffCheckGdprSetting(option) {
|
858 |
+
if( option == 'yes' ){
|
859 |
+
jQuery('.cff_gdpr_yes').show();
|
860 |
+
jQuery('.cff_gdpr_no, .cff_gdpr_auto').hide();
|
861 |
+
}
|
862 |
+
if( option == 'no' ){
|
863 |
+
jQuery('.cff_gdpr_no').show();
|
864 |
+
jQuery('.cff_gdpr_yes, .cff_gdpr_auto').hide();
|
865 |
+
}
|
866 |
+
if( option == 'auto' ){
|
867 |
+
jQuery('.cff_gdpr_auto').show();
|
868 |
+
jQuery('.cff_gdpr_yes, .cff_gdpr_no').hide();
|
869 |
+
}
|
870 |
+
}
|
871 |
+
cffCheckGdprSetting(jQuery('#cff_gdpr_setting').val());
|
872 |
|
873 |
//sb_instagram_enable_email_report
|
874 |
function cffToggleEmail() {
|
1076 |
});
|
1077 |
|
1078 |
// Toggle an addon state.
|
1079 |
+
$( document ).on( 'click', '#cff-admin-addons .addon-item button, .cff-notice-admin-btn', function( event ) {
|
1080 |
|
1081 |
event.preventDefault();
|
1082 |
|
1169 |
type : plugin_type
|
1170 |
};
|
1171 |
$.post( cff_admin.ajax_url, data, function( res ) {
|
1172 |
+
console.log(res)
|
1173 |
if ( res.success ) {
|
1174 |
if ( 'cff_install_addon' === action ) {
|
1175 |
$btn.attr( 'data-plugin', res.data.basename );
|
admin/enqueu-script.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
require_once trailingslashit( CFF_PLUGIN_DIR ) . 'admin/addon-functions.php';
|
3 |
+
|
4 |
+
require_once trailingslashit( CFF_PLUGIN_DIR ) . 'inc/Helpers/PluginSilentUpgrader.php';
|
5 |
+
require_once trailingslashit( CFF_PLUGIN_DIR ) . 'inc/Helpers/PluginSilentUpgraderSkin.php';
|
6 |
+
require_once trailingslashit( CFF_PLUGIN_DIR ) . 'inc/Admin/CFF_Install_Skin.php';
|
7 |
+
|
8 |
+
|
9 |
+
function cff_ppca_token_check_flag() {
|
10 |
+
if( get_transient('cff_ppca_access_token_invalid') ){
|
11 |
+
print_r(true);
|
12 |
+
} else {
|
13 |
+
print_r(false);
|
14 |
+
}
|
15 |
+
|
16 |
+
die();
|
17 |
+
}
|
18 |
+
add_action( 'wp_ajax_cff_ppca_token_check_flag', 'cff_ppca_token_check_flag' );
|
19 |
+
|
20 |
+
add_action( 'admin_enqueue_scripts' , 'enqueue_admin_scripts_assets' );
|
21 |
+
function enqueue_admin_scripts_assets(){
|
22 |
+
wp_register_style(
|
23 |
+
'custom_wp_admin_css',
|
24 |
+
CFF_PLUGIN_URL . 'admin/assets/css/cff-admin-style.css',
|
25 |
+
false,
|
26 |
+
CFFVER
|
27 |
+
);
|
28 |
+
wp_enqueue_style( 'custom_wp_admin_css' );
|
29 |
+
wp_enqueue_style(
|
30 |
+
'cff-font-awesome',
|
31 |
+
'https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css',
|
32 |
+
array(),
|
33 |
+
'4.5.0'
|
34 |
+
);
|
35 |
+
|
36 |
+
wp_enqueue_script(
|
37 |
+
'cff_admin_script',
|
38 |
+
CFF_PLUGIN_URL . 'admin/assets/js/cff-admin-scripts.js',
|
39 |
+
false,
|
40 |
+
CFFVER
|
41 |
+
);
|
42 |
+
|
43 |
+
wp_localize_script( 'cff_admin_script', 'cffA', array(
|
44 |
+
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
45 |
+
'cff_nonce' => wp_create_nonce( 'cff_nonce' )
|
46 |
+
)
|
47 |
+
);
|
48 |
+
$strings = array(
|
49 |
+
'addon_activate' => esc_html__( 'Activate', 'custom-facebook-feed' ),
|
50 |
+
'addon_activated' => esc_html__( 'Activated', 'custom-facebook-feed' ),
|
51 |
+
'addon_active' => esc_html__( 'Active', 'custom-facebook-feed' ),
|
52 |
+
'addon_deactivate' => esc_html__( 'Deactivate', 'custom-facebook-feed' ),
|
53 |
+
'addon_inactive' => esc_html__( 'Inactive', 'custom-facebook-feed' ),
|
54 |
+
'addon_install' => esc_html__( 'Install Addon', 'custom-facebook-feed' ),
|
55 |
+
'addon_error' => esc_html__( 'Could not install addon. Please download from smashballoon.com and install manually.', 'custom-facebook-feed' ),
|
56 |
+
'plugin_error' => esc_html__( 'Could not install a plugin. Please download from WordPress.org and install manually.', 'custom-facebook-feed' ),
|
57 |
+
'addon_search' => esc_html__( 'Searching Addons', 'custom-facebook-feed' ),
|
58 |
+
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
59 |
+
'cancel' => esc_html__( 'Cancel', 'custom-facebook-feed' ),
|
60 |
+
'close' => esc_html__( 'Close', 'custom-facebook-feed' ),
|
61 |
+
'nonce' => wp_create_nonce( 'cff-admin' ),
|
62 |
+
'almost_done' => esc_html__( 'Almost Done', 'custom-facebook-feed' ),
|
63 |
+
'oops' => esc_html__( 'Oops!', 'custom-facebook-feed' ),
|
64 |
+
'ok' => esc_html__( 'OK', 'custom-facebook-feed' ),
|
65 |
+
'plugin_install_activate_btn' => esc_html__( 'Install and Activate', 'custom-facebook-feed' ),
|
66 |
+
'plugin_install_activate_confirm' => esc_html__( 'needs to be installed and activated to import its forms. Would you like us to install and activate it for you?', 'custom-facebook-feed' ),
|
67 |
+
'plugin_activate_btn' => esc_html__( 'Activate', 'custom-facebook-feed' ),
|
68 |
+
);
|
69 |
+
$strings = apply_filters( 'cff_admin_strings', $strings );
|
70 |
+
wp_localize_script(
|
71 |
+
'cff_admin_script',
|
72 |
+
'cff_admin',
|
73 |
+
$strings
|
74 |
+
);
|
75 |
+
}
|
{css → assets/css}/cff-blocks.css
RENAMED
File without changes
|
{css → assets/css}/cff-style.css
RENAMED
@@ -25,6 +25,7 @@
|
|
25 |
padding: 20px 0 15px 0;
|
26 |
margin: 0;
|
27 |
border-bottom: 1px solid #ddd;
|
|
|
28 |
}
|
29 |
#cff .cff-item:first-child{
|
30 |
padding-top: 0;
|
@@ -57,8 +58,8 @@
|
|
57 |
padding: 0;
|
58 |
line-height: 1;
|
59 |
-webkit-box-sizing: border-box;
|
60 |
-
-moz-box-sizing: border-box;
|
61 |
box-sizing: border-box;
|
|
|
62 |
}
|
63 |
.cff-header .fa,
|
64 |
.cff-header svg{
|
@@ -229,6 +230,9 @@
|
|
229 |
#cff .cff-post-text-link{
|
230 |
display: block;
|
231 |
}
|
|
|
|
|
|
|
232 |
/* Post titles and body text */
|
233 |
#cff h3, #cff h4, #cff h5, #cff h6, #cff p, #cff .cff-post-desc{
|
234 |
float: left;
|
@@ -236,6 +240,7 @@
|
|
236 |
clear: both;
|
237 |
padding: 0;
|
238 |
margin: 5px 0;
|
|
|
239 |
white-space: pre;
|
240 |
white-space: pre-wrap;
|
241 |
white-space: pre-line;
|
@@ -243,6 +248,7 @@
|
|
243 |
white-space: -o-pre-wrap;
|
244 |
white-space: -moz-pre-wrap;
|
245 |
white-space: -hp-pre-wrap;
|
|
|
246 |
word-wrap: break-word;
|
247 |
}
|
248 |
#cff.cff-default-styles h3, #cff.cff-default-styles h4, #cff.cff-default-styles h5, #cff.cff-default-styles h6, #cff.cff-default-styles p, #cff.cff-default-styles .cff-post-desc{
|
@@ -281,6 +287,7 @@
|
|
281 |
background: #eee;
|
282 |
|
283 |
background: url('../img/cff-avatar.png') no-repeat;
|
|
|
284 |
border-radius: 50%;
|
285 |
}
|
286 |
#cff .cff-author img{
|
@@ -291,6 +298,17 @@
|
|
291 |
font-size: 0;
|
292 |
border-radius: 50%;
|
293 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
#cff .cff-author .cff-author-text span.cff-page-name{
|
295 |
display: table-cell;
|
296 |
vertical-align: middle;
|
@@ -600,6 +618,7 @@
|
|
600 |
position: relative;
|
601 |
margin: 20px 0 0 0;
|
602 |
}
|
|
|
603 |
.cff-likebox .fb_iframe_widget{
|
604 |
width: 100%;
|
605 |
}
|
@@ -679,6 +698,10 @@
|
|
679 |
padding-right: 5px;
|
680 |
font-size: 13px;
|
681 |
}
|
|
|
|
|
|
|
|
|
682 |
|
683 |
/* Accessibility */
|
684 |
.cff-screenreader{
|
25 |
padding: 20px 0 15px 0;
|
26 |
margin: 0;
|
27 |
border-bottom: 1px solid #ddd;
|
28 |
+
/*word-break: break-all;*/
|
29 |
}
|
30 |
#cff .cff-item:first-child{
|
31 |
padding-top: 0;
|
58 |
padding: 0;
|
59 |
line-height: 1;
|
60 |
-webkit-box-sizing: border-box;
|
|
|
61 |
box-sizing: border-box;
|
62 |
+
display: flex; align-items: center;
|
63 |
}
|
64 |
.cff-header .fa,
|
65 |
.cff-header svg{
|
230 |
#cff .cff-post-text-link{
|
231 |
display: block;
|
232 |
}
|
233 |
+
.cff-post-text{
|
234 |
+
width: 100%; float: left;
|
235 |
+
}
|
236 |
/* Post titles and body text */
|
237 |
#cff h3, #cff h4, #cff h5, #cff h6, #cff p, #cff .cff-post-desc{
|
238 |
float: left;
|
240 |
clear: both;
|
241 |
padding: 0;
|
242 |
margin: 5px 0;
|
243 |
+
/*
|
244 |
white-space: pre;
|
245 |
white-space: pre-wrap;
|
246 |
white-space: pre-line;
|
248 |
white-space: -o-pre-wrap;
|
249 |
white-space: -moz-pre-wrap;
|
250 |
white-space: -hp-pre-wrap;
|
251 |
+
*/
|
252 |
word-wrap: break-word;
|
253 |
}
|
254 |
#cff.cff-default-styles h3, #cff.cff-default-styles h4, #cff.cff-default-styles h5, #cff.cff-default-styles h6, #cff.cff-default-styles p, #cff.cff-default-styles .cff-post-desc{
|
287 |
background: #eee;
|
288 |
|
289 |
background: url('../img/cff-avatar.png') no-repeat;
|
290 |
+
background-size: 100%;
|
291 |
border-radius: 50%;
|
292 |
}
|
293 |
#cff .cff-author img{
|
298 |
font-size: 0;
|
299 |
border-radius: 50%;
|
300 |
}
|
301 |
+
#cff .cff-author-img.cff-no-consent img {
|
302 |
+
display: none;
|
303 |
+
}
|
304 |
+
.cff-no-consent .cff-header-text {
|
305 |
+
margin-left: 0 !important;
|
306 |
+
}
|
307 |
+
.cff-no-consent .cff-header-img,
|
308 |
+
.cff-no-consent .cff-header-hero{
|
309 |
+
display: none !important;
|
310 |
+
}
|
311 |
+
|
312 |
#cff .cff-author .cff-author-text span.cff-page-name{
|
313 |
display: table-cell;
|
314 |
vertical-align: middle;
|
618 |
position: relative;
|
619 |
margin: 20px 0 0 0;
|
620 |
}
|
621 |
+
.fb_iframe_widget{border:none;overflow:hidden}
|
622 |
.cff-likebox .fb_iframe_widget{
|
623 |
width: 100%;
|
624 |
}
|
698 |
padding-right: 5px;
|
699 |
font-size: 13px;
|
700 |
}
|
701 |
+
.cff-credit a {
|
702 |
+
display: flex;
|
703 |
+
align-items: center;
|
704 |
+
}
|
705 |
|
706 |
/* Accessibility */
|
707 |
.cff-screenreader{
|
assets/css/cff-style.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.cff-wrapper:after{content:"";display:table;clear:both}#cff{float:left;width:100%;margin:0 auto;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#cff .cff-item{float:left;width:100%;clear:both;padding:20px 0 15px 0;margin:0;border-bottom:1px solid #ddd}#cff .cff-item:first-child{padding-top:0}#cff .cff-item.cff-box,#cff .cff-item.cff-box:first-child{padding:15px;margin:8px 0;background:rgba(255,255,255,.5);border:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#cff .cff-item.cff-box:first-child{margin-top:0}#cff .cff-item.cff-box:last-child{margin-bottom:0}#cff .cff-item.cff-shadow{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)}.cff-header{width:100%;margin:0 0 15px 0;padding:0;line-height:1;-webkit-box-sizing:border-box;box-sizing:border-box;display:flex;align-items:center}.cff-header .fa,.cff-header svg{margin:0 10px 0 0;padding:0}.cff-visual-header{margin-bottom:24px!important}.cff-visual-header .cff-header-hero{width:100%;height:300px;position:relative;overflow:hidden}.cff-visual-header .cff-header-hero img{width:100%;display:none}.cff-visual-header .cff-likes-box{position:absolute;bottom:10px;right:10px;padding:5px;background:#eee;line-height:1;border-radius:2px;color:#445790}.cff-visual-header .cff-likes-box .cff-square-logo{float:left;display:inline-block;line-height:0}.cff-visual-header .cff-likes-box .cff-square-logo svg{width:18px;vertical-align:top}.cff-visual-header .cff-likes-box .cff-likes-count{float:left;display:inline-block;margin-left:8px;vertical-align:top;font-size:15px;line-height:20px}.cff-visual-header .cff-header-inner-wrap{position:relative;display:block;text-decoration:none!important}.cff-visual-header .cff-header-inner-wrap a{color:inherit!important;border:0}.cff-visual-header .cff-header-img img{display:block;width:100px;border-radius:3px;padding:0;margin:0}.cff-visual-header.cff-has-cover .cff-header-img img{border:2px solid #fff}.cff-visual-header .cff-header-img{position:absolute;display:inline-block;line-height:1}.cff-visual-header.cff-has-cover .cff-header-img{top:-25px;left:10px}.cff-visual-header .cff-header-text{display:inline-block;float:left;margin:20px 0 0 120px}#cff .cff-visual-header .cff-header-text h3,.cff-visual-header .cff-header-text h3{display:inline-block;width:auto;margin:0 8px 0 0;padding:0;font-size:1.2em;line-height:1.2em}.cff-visual-header .cff-header-text{padding-top:10px;margin:0}.cff-visual-header.cff-has-name{min-height:100px}.cff-visual-header.cff-has-cover.cff-has-name .cff-header-text{min-height:75px}.cff-visual-header.cff-has-name .cff-header-text{margin-left:120px}.cff-visual-header.cff-has-cover.cff-has-name .cff-header-text{margin-left:125px}.cff-visual-header.cff-has-name .cff-header-text{padding-top:30px}.cff-visual-header.cff-has-name.cff-has-about .cff-header-text,.cff-visual-header.cff-has-name.cff-has-cover .cff-header-text{padding-top:10px}#cff .cff-visual-header .cff-header-inner-wrap .cff-bio,.cff-visual-header .cff-header-inner-wrap .cff-bio{display:block;width:100%;clear:both;margin:3px 0 0 0;padding:0;line-height:1.2em}.cff-visual-header .cff-header-name{float:left;padding:0 5px 2px 0}.cff-visual-header .cff-bio-info{font-size:.9em;line-height:1.7}.cff-visual-header .cff-bio-info svg{display:inline-block;width:1em;vertical-align:middle;position:relative;top:-2px}.cff-posts-count svg{padding-right:3px}.cff-header-inner-wrap:after,.cff-header-text:after{display:table;clear:both;content:" "}#cff .cff-less{display:none}#cff.cff-default-styles a{text-decoration:none}#cff.cff-default-styles a:focus,#cff.cff-default-styles a:hover{text-decoration:underline}#cff .cff-post-text-link{display:block}.cff-post-text{width:100%;float:left}#cff .cff-post-desc,#cff h3,#cff h4,#cff h5,#cff h6,#cff p{float:left;width:100%;clear:both;padding:0;margin:5px 0;word-wrap:break-word}#cff.cff-default-styles .cff-post-desc,#cff.cff-default-styles h3,#cff.cff-default-styles h4,#cff.cff-default-styles h5,#cff.cff-default-styles h6,#cff.cff-default-styles p{line-height:1.4}#cff .cff-date{float:left;min-width:50px;width:auto}#cff.cff-default-styles .cff-date{font-size:11px}#cff .cff-author{float:left;clear:both;margin:0 0 15px 0;padding:0;line-height:1.2;width:100%}#cff .cff-author a{text-decoration:none;border:none}#cff .cff-author-img{float:left;width:40px;height:40px;margin:0 0 0 -100%!important;font-size:0;background:#eee;background:url(../img/cff-avatar.png) no-repeat;background-size:100%;border-radius:50%}#cff .cff-author img{float:left;margin:0!important;padding:0!important;border:none!important;font-size:0;border-radius:50%}#cff .cff-author-img.cff-no-consent img{display:none}.cff-no-consent .cff-header-text{margin-left:0!important}.cff-no-consent .cff-header-hero,.cff-no-consent .cff-header-img{display:none!important}#cff .cff-author .cff-author-text span.cff-page-name{display:table-cell;vertical-align:middle;height:40px;margin:0;font-weight:700;padding-left:50px;float:none}#cff .cff-author .cff-story{font-weight:400}#cff.cff-default-styles .cff-author a{text-decoration:none}#cff .cff-author.cff-no-author-info .cff-date{margin-top:12px!important}#cff .cff-author.cff-no-author-info .cff-author-img{width:40px;height:40px;background:url(../img/cff-avatar.png) no-repeat}#cff .cff-author .cff-author-text{float:left;width:100%}#cff .cff-author .cff-date,#cff .cff-author .cff-page-name{float:left;clear:both;width:auto;margin:0 0 0 50px!important}#cff.cff-default-styles .cff-author .cff-author-text *{font-weight:700;line-height:1.2}#cff .cff-author .cff-date{color:#9197a3;font-size:11px;margin-top:2px!important;margin-bottom:0!important}#cff.cff-default-styles .cff-author .cff-date{font-weight:400}#cff .cff-author .cff-page-name.cff-author-date{float:left;padding:3px 0 0 0;font-size:14px}#cff .cff-cta-link a,.cff-media-link .fa{display:inline-block;width:auto;padding:5px 7px 5px 6px;margin-right:6px;border:1px solid #eee;border:1px solid rgba(0,0,0,.1);border-radius:3px;background:rgba(0,0,0,.02)}#cff .cff-cta-link a:hover,.cff-media-link .fa:hover{background:#f9f9f9;background:rgba(0,0,0,.03);text-decoration:none}#cff .cff-cta-link a{padding:5px 15px}#cff .cff-break-word{word-break:break-all}#cff .cff-expand{display:none}#cff.cff-default-styles .cff-expand a{font-size:11px;font-weight:400}#cff .cff-shared-link{float:left;clear:both;width:100%;padding:5px 10px;margin:10px 0 5px 0;background:#f9f9f9;border:1px solid #d9d9d9;background:rgba(0,0,0,.02);border:1px solid rgba(0,0,0,.07);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#cff .cff-no-styles{background:0 0;border:none;padding:0}#cff .cff-link{float:left;clear:both;max-width:20%;margin:10px 0 0 0}#cff .cff-link img{max-width:100%}#cff .cff-link-title{float:left;clear:both;width:100%;display:block}#cff.cff-default-styles .cff-link-title{font-weight:700}#cff p.cff-link-title{margin:5px 0 0 0}#cff .cff-text-link{float:left;clear:none;width:72%;margin-left:3%;padding:0 0 5px 0}#cff .cff-link-caption{margin:0}#cff.cff-default-styles .cff-link-caption{font-size:12px}#cff .cff-text-link.cff-no-image{width:100%;margin-left:0}#cff .cff-post-desc{margin:5px 0 0 0}#cff .cff-details{float:left;clear:none;width:100%;margin:0;padding:0}#cff .cff-details h5{margin:0 0 5px 0}#cff.cff-default-styles .cff-details h5{padding:0;font-size:16px}#cff.cff-default-styles .cff-details p{font-size:14px}#cff .cff-timeline-event .cff-date,#cff .cff-timeline-event .cff-info,#cff .cff-timeline-event .cff-timeline-event-title,#cff .cff-timeline-event .cff-where{display:block;width:100%;clear:both}#cff .cff-details .cff-info{padding:10px 0 0 0}#cff.cff-default-styles .cff-details .cff-info{line-height:1.2}#cff .cff-desc-wrap{float:left;width:100%}#cff .cff-note-title{display:block;font-weight:700;padding-bottom:5px}#cff .cff-post-links{float:left;clear:none;padding:5px 0 0 0;margin:0}#cff.cff-default-styles .cff-post-links{font-size:11px}#cff .cff-post-links.cff-left{float:left;margin:8px 0}#cff.cff-default-styles .cff-post-links a{font-size:11px}#cff .cff-post-links a:first-child{padding-left:0;margin:0}#cff .cff-dot{padding:0 5px}#cff .cff-share-container{position:relative;display:inline}#cff .cff-share-tooltip{display:none;position:absolute;z-index:1000;bottom:22px;right:-40px;width:110px;padding:3px 5px 4px 5px;margin:0;background:#333;color:#eee;font-size:12px;line-height:1.3;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#cff .cff-share-tooltip .fa-play{position:absolute;font-size:8px;bottom:-6px;left:50%;margin-left:-3px;color:#333}#cff .cff-share-tooltip a .fa,#cff .cff-share-tooltip a svg{font-size:16px;margin:0;padding:5px}#cff .cff-share-tooltip a{display:block;float:left;margin:0!important;padding:0!important;color:#eee!important;opacity:0;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}#cff .cff-share-tooltip a:hover{color:#fff!important}#cff .cff-share-tooltip .cff-facebook-icon:hover{background:#3b5998}#cff .cff-share-tooltip .cff-twitter-icon:hover{background:#00aced}#cff .cff-share-tooltip .cff-google-icon:hover{background:#dd4b39}#cff .cff-share-tooltip .cff-linkedin-icon:hover{background:#007bb6}#cff .cff-share-tooltip .cff-pinterest-icon:hover{background:#cb2027}#cff .cff-share-tooltip .cff-email-icon:hover{background:#dd4b39}#cff .cff-share-tooltip a.cff-show{opacity:1;transition:opacity .2s ease}.cff-likebox{float:left;width:100%;position:relative;margin:20px 0 0 0}.fb_iframe_widget{border:none;overflow:hidden}.cff-likebox .fb_iframe_widget{width:100%}.cff-likebox .fb_iframe_widget span{width:100%!important}.cff-likebox .fb_iframe_widget iframe{margin:0;position:relative;top:0;left:0;width:100%!important;height:100%}.cff-likebox.cff-top.cff-outside{margin-bottom:10px}.cff-likebox.cff-bottom.cff-outside{margin-top:10px}#cff.cff-fixed-height{overflow:hidden;overflow-y:auto;padding:5px 10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#cff .cff-error-msg{display:none;position:relative;font-size:12px;font-family:sans-serif;padding:8px 12px;border:1px solid #ddd;margin-bottom:10px;clear:both;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px}#cff .cff-error-msg p{float:none}#cff .cff-error-msg .cff_notice_dismiss{position:absolute;top:4px;right:8px}#cff #cff-error-reason{display:none;padding:5px 0 0 0;clear:both}#cff.cff-default-styles .cff-credit{font-size:11px}#cff.cff-default-styles .cff-credit a{text-decoration:none}#cff .cff-credit img{float:left;margin:-2px 5px 0 0}#cff .cff-credit .fa{padding-right:5px;font-size:13px}.cff-credit a{display:flex;align-items:center}.cff-screenreader{text-indent:-9999px!important;display:block!important;width:0!important;height:0!important;line-height:0!important}@media all and (max-width:640px){#cff.cff-width-resp{width:100%!important}.cff-wrapper .cff-visual-header .cff-header-img img{width:80px}.cff-wrapper .cff-visual-header.cff-has-name .cff-header-text{margin-left:95px}.cff-wrapper .cff-visual-header.cff-has-cover.cff-has-name .cff-header-text{margin-left:105px}}#cff .cff-comment .cff-comment-text img,#cff img.emoji,#cff-lightbox-wrapper .cff-comment .cff-comment-text img,#cff-lightbox-wrapper img.emoji{float:none;max-width:100%}#cff .cff-linebreak{display:block;height:5px}#cff.cff-masonry .cff-item.cff-box{margin-left:1.5%;margin-right:1.5%}#cff.cff-masonry{box-sizing:border-box}#cff.cff-masonry .cff-item,#cff.cff-masonry .cff-item:first-child{padding-top:20px;margin-top:0}#cff.cff-masonry .cff-item,#cff.cff-masonry .cff-likebox{float:none;display:inline-block;width:30.3%;margin:0 1.5%;margin-bottom:20px}#cff.cff-masonry.cff-opaque-comments .cff-item{z-index:1}#cff.cff-masonry.masonry-2-desktop .cff-item{width:47%;margin:0 1.5%}#cff.cff-masonry.masonry-4-desktop .cff-item{width:22%;margin:0 1.5%}#cff.cff-masonry.masonry-5-desktop .cff-item{width:17%;margin:0 1.5%}#cff.cff-masonry.masonry-6-desktop .cff-item{width:13.516%;margin:0 1.5%}#cff.cff-masonry .cff-comments-box{position:relative;z-index:999}#cff.cff-masonry .cff-comment-attachment,#cff.cff-masonry .cff-comment-replies-box{max-width:100%}#cff.cff-masonry .cff-load-more{display:block;float:left;clear:both}@media (max-width:780px){#cff.cff-masonry .cff-item,#cff.cff-masonry .cff-likebox,#cff.cff-masonry.masonry-2-desktop .cff-item,#cff.cff-masonry.masonry-4-desktop .cff-item,#cff.cff-masonry.masonry-5-desktop .cff-item,#cff.cff-masonry.masonry-6-desktop .cff-item{width:100%;margin:0}#cff.cff-masonry.masonry-2-mobile .cff-item{width:47%;margin-left:1.5%;margin-right:1.5%}}#cff.cff-masonry.cff-masonry-css{width:100%;overflow:hidden;margin-bottom:20px}#cff.cff-masonry.cff-masonry-css{-webkit-column-gap:20px;-moz-column-gap:20px;column-gap:20px;-webkit-column-fill:auto;column-fill:unset;-webkit-column-count:3;-moz-column-count:3;column-count:3;margin:0}#cff.cff-masonry.cff-masonry-css.masonry-2-desktop{-webkit-column-count:2;-moz-column-count:2;column-count:2;margin:0}#cff.cff-masonry.cff-masonry-css.masonry-4-desktop{-webkit-column-count:4;-moz-column-count:4;column-count:4;margin:0}#cff.cff-masonry.cff-masonry-css.masonry-5-desktop{-webkit-column-count:5;-moz-column-count:5;column-count:5;margin:0}#cff.cff-masonry.cff-masonry-css.masonry-6-desktop{-webkit-column-count:6;-moz-column-count:6;column-count:6;margin:0}#cff.cff-masonry.cff-masonry-css .cff-item,#cff.cff-masonry.cff-masonry-css .cff-likebox,#cff.cff-masonry.cff-masonry-css.masonry-2-desktop .cff-item,#cff.cff-masonry.cff-masonry-css.masonry-4-desktop .cff-item,#cff.cff-masonry.cff-masonry-css.masonry-5-desktop .cff-item,#cff.cff-masonry.cff-masonry-css.masonry-6-desktop .cff-item{float:none;display:inline-block;width:100%;margin:0 0 12px 0}#cff.cff-masonry.cff-masonry-css .cff-likebox{width:99.5%}#cff.cff-masonry.cff-masonry-css .cff-load-more{margin:0 0 10px 0;position:relative;bottom:0}@media only screen and (max-width:780px){#cff.cff-masonry.cff-masonry-css,#cff.cff-masonry.cff-masonry-css.masonry-2-desktop,#cff.cff-masonry.cff-masonry-css.masonry-4-desktop,#cff.cff-masonry.cff-masonry-css.masonry-5-desktop,#cff.cff-masonry.cff-masonry-css.masonry-6-desktop{-webkit-column-count:1;-moz-column-count:1;column-count:1}#cff.cff-masonry.cff-masonry-css.masonry-2-mobile{-webkit-column-count:2;-moz-column-count:2;column-count:2;margin:0}#cff.cff-masonry.cff-masonry-css.masonry-2-mobile,#cff.cff-masonry.cff-masonry-css.masonry-2-mobile .cff-item{width:100%}}#cff.cff-disable-masonry{height:auto!important}#cff.cff-disable-masonry .cff-item,#cff.cff-disable-masonry .cff-likebox{position:relative!important;top:auto!important}.cff-num-diff-hide{display:none!important}
|
{css → assets/css}/font-awesome.min.css
RENAMED
File without changes
|
{fonts → assets/fonts}/FontAwesome.otf
RENAMED
File without changes
|
{fonts → assets/fonts}/fontawesome-webfont.eot
RENAMED
File without changes
|
{fonts → assets/fonts}/fontawesome-webfont.svg
RENAMED
File without changes
|
{fonts → assets/fonts}/fontawesome-webfont.ttf
RENAMED
File without changes
|
{fonts → assets/fonts}/fontawesome-webfont.woff
RENAMED
File without changes
|
{fonts → assets/fonts}/fontawesome-webfont.woff2
RENAMED
File without changes
|
{img → assets/img}/cff-avatar.png
RENAMED
File without changes
|
assets/img/placeholder.png
ADDED
Binary file
|
{img → assets/img}/smashballoon-tiny.png
RENAMED
File without changes
|
{js → assets/js}/cff-blocks.js
RENAMED
File without changes
|
{js → assets/js}/cff-scripts.js
RENAMED
@@ -80,11 +80,11 @@ if(!cff_js_exists){
|
|
80 |
function cff_init(){
|
81 |
|
82 |
//Set likebox width
|
|
|
83 |
jQuery('.cff-likebox iframe').each(function(){
|
84 |
var $likebox = jQuery(this),
|
85 |
likeboxWidth = $likebox.attr('data-likebox-width'),
|
86 |
cffFeedWidth = $likebox.parent().width();
|
87 |
-
|
88 |
//Default width is 340
|
89 |
if( likeboxWidth == '' ) likeboxWidth = 340;
|
90 |
//Change the width dynamically so it's responsive
|
@@ -92,7 +92,7 @@ if(!cff_js_exists){
|
|
92 |
|
93 |
$likebox.attr('src', 'https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2F'+$likebox.attr('data-likebox-id')+'%2F&tabs&width='+Math.floor(likeboxWidth)+'&small_header='+$likebox.attr('data-likebox-header')+'&adapt_container_width=true&hide_cover='+$likebox.attr('data-hide-cover')+'&hide_cta='+$likebox.attr('data-hide-cta')+'&show_facepile='+$likebox.attr('data-likebox-faces')+'&locale='+$likebox.attr('data-locale'));
|
94 |
});
|
95 |
-
|
96 |
jQuery('#cff .cff-item').each(function(){
|
97 |
var $self = jQuery(this);
|
98 |
|
@@ -268,10 +268,23 @@ if(!cff_js_exists){
|
|
268 |
|
269 |
|
270 |
}); //End .cff-item each
|
271 |
-
|
|
|
272 |
|
273 |
jQuery('.cff-wrapper').each(function(){
|
274 |
var $cff = jQuery(this).find('#cff');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
|
276 |
//maybe hide
|
277 |
if (typeof $cff.attr('data-nummobile') !== 'undefined') {
|
@@ -337,5 +350,146 @@ if(!cff_js_exists){
|
|
337 |
});
|
338 |
}
|
339 |
cff_init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
|
341 |
} //End cff_js_exists check
|
80 |
function cff_init(){
|
81 |
|
82 |
//Set likebox width
|
83 |
+
/*
|
84 |
jQuery('.cff-likebox iframe').each(function(){
|
85 |
var $likebox = jQuery(this),
|
86 |
likeboxWidth = $likebox.attr('data-likebox-width'),
|
87 |
cffFeedWidth = $likebox.parent().width();
|
|
|
88 |
//Default width is 340
|
89 |
if( likeboxWidth == '' ) likeboxWidth = 340;
|
90 |
//Change the width dynamically so it's responsive
|
92 |
|
93 |
$likebox.attr('src', 'https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2F'+$likebox.attr('data-likebox-id')+'%2F&tabs&width='+Math.floor(likeboxWidth)+'&small_header='+$likebox.attr('data-likebox-header')+'&adapt_container_width=true&hide_cover='+$likebox.attr('data-hide-cover')+'&hide_cta='+$likebox.attr('data-hide-cta')+'&show_facepile='+$likebox.attr('data-likebox-faces')+'&locale='+$likebox.attr('data-locale'));
|
94 |
});
|
95 |
+
*/
|
96 |
jQuery('#cff .cff-item').each(function(){
|
97 |
var $self = jQuery(this);
|
98 |
|
268 |
|
269 |
|
270 |
}); //End .cff-item each
|
271 |
+
|
272 |
+
|
273 |
|
274 |
jQuery('.cff-wrapper').each(function(){
|
275 |
var $cff = jQuery(this).find('#cff');
|
276 |
+
var $cffElm = jQuery(this);
|
277 |
+
|
278 |
+
setTimeout(function(){
|
279 |
+
var consent = checkConsent( $cffElm );
|
280 |
+
if(consent){
|
281 |
+
addFullFeatures( $cffElm);
|
282 |
+
}else{
|
283 |
+
if ($cffElm.find('.cff-visual-header').length) {
|
284 |
+
$cffElm.find('.cff-header-text').closest('.cff-visual-header').addClass('cff-no-consent');
|
285 |
+
}
|
286 |
+
}
|
287 |
+
},250)
|
288 |
|
289 |
//maybe hide
|
290 |
if (typeof $cff.attr('data-nummobile') !== 'undefined') {
|
350 |
});
|
351 |
}
|
352 |
cff_init();
|
353 |
+
/*
|
354 |
+
GDPR & CONSENT Functions
|
355 |
+
*/
|
356 |
+
function checkConsent( ctn ){
|
357 |
+
ctn = ctn.find('.cff-list-container');
|
358 |
+
var flags = typeof ctn.attr('data-cff-flags') !== 'undefined' ? ctn.attr('data-cff-flags').split(',') : [],
|
359 |
+
gdpr = (flags.indexOf('gdpr') > -1),
|
360 |
+
overrideBlockCDN = (flags.indexOf('overrideBlockCDN') > -1),
|
361 |
+
consentGiven = false;
|
362 |
+
if (consentGiven || !gdpr) {
|
363 |
+
return true;
|
364 |
+
}
|
365 |
+
if (typeof CLI_Cookie !== "undefined") { // GDPR Cookie Consent by WebToffee
|
366 |
+
if (CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) !== null) {
|
367 |
+
consentGiven = CLI_Cookie.read('cookielawinfo-checkbox-non-necessary') === 'yes';
|
368 |
+
}
|
369 |
+
|
370 |
+
} else if (typeof window.cnArgs !== "undefined") { // Cookie Notice by dFactory
|
371 |
+
var value = "; " + document.cookie,
|
372 |
+
parts = value.split( '; cookie_notice_accepted=' );
|
373 |
+
if ( parts.length === 2 ) {
|
374 |
+
var val = parts.pop().split( ';' ).shift();
|
375 |
+
consentGiven = (val === 'true');
|
376 |
+
}
|
377 |
+
} else if (typeof window.cookieconsent !== 'undefined') { // Complianz by Really Simple Plugins
|
378 |
+
consentGiven = cffCmplzGetCookie('complianz_consent_status') === 'allow';
|
379 |
+
} else if (typeof window.Cookiebot !== "undefined") { // Cookiebot by Cybot A/S
|
380 |
+
consentGiven = Cookiebot.consented;
|
381 |
+
} else if (typeof window.BorlabsCookie !== 'undefined') { // Borlabs Cookie by Borlabs
|
382 |
+
consentGiven = window.BorlabsCookie.checkCookieConsent('facebook');
|
383 |
+
}
|
384 |
+
return consentGiven; // GDPR not enabled
|
385 |
+
}
|
386 |
+
|
387 |
+
function cffCmplzGetCookie(cname) {
|
388 |
+
var name = cname + "="; //Create the cookie name variable with cookie name concatenate with = sign
|
389 |
+
var cArr = window.document.cookie.split(';'); //Create cookie array by split the cookie by ';'
|
390 |
+
|
391 |
+
//Loop through the cookies and return the cookie value if it find the cookie name
|
392 |
+
for (var i = 0; i < cArr.length; i++) {
|
393 |
+
var c = cArr[i].trim();
|
394 |
+
//If the name is the cookie string at position 0, we found the cookie and return the cookie value
|
395 |
+
if (c.indexOf(name) == 0)
|
396 |
+
return c.substring(name.length, c.length);
|
397 |
+
}
|
398 |
+
|
399 |
+
return "";
|
400 |
+
}
|
401 |
+
|
402 |
+
function addFullFeatures( ctn ){
|
403 |
+
ctn = jQuery( ctn );
|
404 |
+
ctn.find('.cff-author-img').each(function() {
|
405 |
+
jQuery(this).find('img').attr('src',jQuery(this).attr('data-avatar'));
|
406 |
+
jQuery(this).removeClass('cff-no-consent');
|
407 |
+
});
|
408 |
+
ctn.find('.cff-likebox iframe').each(function(){
|
409 |
+
var $likebox = jQuery(this),
|
410 |
+
likeboxWidth = $likebox.attr('data-likebox-width'),
|
411 |
+
cffFeedWidth = $likebox.parent().width();
|
412 |
+
//Default width is 340
|
413 |
+
if( likeboxWidth == '' ) likeboxWidth = 340;
|
414 |
+
//Change the width dynamically so it's responsive
|
415 |
+
if( cffFeedWidth < likeboxWidth ) likeboxWidth = cffFeedWidth;
|
416 |
+
|
417 |
+
$likebox.attr('src', 'https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2F'+$likebox.attr('data-likebox-id')+'%2F&tabs&width='+Math.floor(likeboxWidth)+'&small_header='+$likebox.attr('data-likebox-header')+'&adapt_container_width=true&hide_cover='+$likebox.attr('data-hide-cover')+'&hide_cta='+$likebox.attr('data-hide-cta')+'&show_facepile='+$likebox.attr('data-likebox-faces')+'&locale='+$likebox.attr('data-locale'));
|
418 |
+
});
|
419 |
+
if (jQuery('.cff-visual-header').length) {
|
420 |
+
jQuery('.cff-visual-header').each(function() {
|
421 |
+
jQuery(this).removeClass('cff-no-consent');
|
422 |
+
if (jQuery(this).find('.cff-header-hero').length) {
|
423 |
+
jQuery(this).find('.cff-header-hero').find('img').attr('src',jQuery(this).find('.cff-header-hero').find('img').attr('data-cover-url'))
|
424 |
+
}
|
425 |
+
if (jQuery(this).find('.cff-header-img').length) {
|
426 |
+
jQuery(this).find('.cff-header-img').find('img').attr('src',jQuery(this).find('.cff-header-img').find('img').attr('data-avatar'))
|
427 |
+
}
|
428 |
+
});
|
429 |
+
}
|
430 |
+
}
|
431 |
+
|
432 |
+
function afterConsentToggled( isConsent, ctn ) {
|
433 |
+
if( isConsent ){
|
434 |
+
addFullFeatures( ctn );
|
435 |
+
}
|
436 |
+
}
|
437 |
+
|
438 |
+
jQuery(document).ready(function(){
|
439 |
+
var $ = jQuery;
|
440 |
+
$('#cookie-notice a').click(function() {
|
441 |
+
setTimeout(function() {
|
442 |
+
jQuery('.cff-wrapper').each(function(index){
|
443 |
+
afterConsentToggled( checkConsent( jQuery(this) ), jQuery(this) );
|
444 |
+
});
|
445 |
+
},1000);
|
446 |
+
});
|
447 |
+
|
448 |
+
// Cookie Notice by dFactory
|
449 |
+
$('#cookie-law-info-bar a').click(function() {
|
450 |
+
setTimeout(function() {
|
451 |
+
jQuery('.cff-wrapper').each(function(index){
|
452 |
+
afterConsentToggled( checkConsent( jQuery(this) ), jQuery(this) );
|
453 |
+
});
|
454 |
+
},1000);
|
455 |
+
});
|
456 |
+
|
457 |
+
// GDPR Cookie Consent by WebToffee
|
458 |
+
$('.cli-user-preference-checkbox').click(function(){
|
459 |
+
setTimeout(function() {
|
460 |
+
jQuery('.cff-wrapper').each(function(index){
|
461 |
+
afterConsentToggled( false, jQuery(this) );
|
462 |
+
});
|
463 |
+
},1000);
|
464 |
+
});
|
465 |
+
|
466 |
+
// Cookiebot
|
467 |
+
$(window).on('CookiebotOnAccept', function (event) {
|
468 |
+
jQuery('.cff-wrapper').each(function(index){
|
469 |
+
afterConsentToggled( true, jQuery(this) );
|
470 |
+
});
|
471 |
+
});
|
472 |
+
|
473 |
+
// Complianz by Really Simple Plugins
|
474 |
+
$(document).on('cmplzAcceptAll', function (event) {
|
475 |
+
jQuery('.cff-wrapper').each(function(index){
|
476 |
+
afterConsentToggled( true, jQuery(this) );
|
477 |
+
});
|
478 |
+
});
|
479 |
+
|
480 |
+
// Complianz by Really Simple Plugins
|
481 |
+
$(document).on('cmplzRevoke', function (event) {
|
482 |
+
jQuery('.cff-wrapper').each(function(index){
|
483 |
+
afterConsentToggled( false, jQuery(this) );
|
484 |
+
});
|
485 |
+
});
|
486 |
+
|
487 |
+
// Borlabs Cookie by Borlabs
|
488 |
+
$(document).on('borlabs-cookie-consent-saved', function (event) {
|
489 |
+
jQuery('.cff-wrapper').each(function(index){
|
490 |
+
afterConsentToggled( true, jQuery(this) );
|
491 |
+
});
|
492 |
+
});
|
493 |
+
})
|
494 |
|
495 |
} //End cff_js_exists check
|
{js → assets/js}/cff-scripts.min.js
RENAMED
@@ -1 +1 @@
|
|
1 |
-
var cff_js_exists=void 0!==cff_js_exists;if(!cff_js_exists){if(jQuery("#cff.cff-masonry-js").length){function cffAddMasonry(t){jQuery(window).width()>780||t.hasClass("masonry-2-mobile")?(t.addClass("cff-masonry cff-masonry-js").removeClass("cff-disable-masonry"),t.find(".cff-item").length?(t.masonry({itemSelector:".cff-new, .cff-item, .cff-likebox"}),t.find(".cff-item").each(function(){jQuery(this).css("margin-bottom","15px")})):t.find(".cff-album-item").length&&t.masonry({itemSelector:".cff-album-item"})):t.addClass("cff-disable-masonry")}!function(t){function e(){}function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function o(e,i){t.fn[e]=function(o){if("string"==typeof o){for(var u=n.call(arguments,1),s=0,a=this.length;a>s;s++){var f=this[s],h=t.data(f,e);if(h)if(t.isFunction(h[o])&&"_"!==o.charAt(0)){var d=h[o].apply(h,u);if(void 0!==d)return d}else r("no such method '"+o+"' for "+e+" instance");else r("cannot call methods on "+e+" prior to initialization; attempted to call '"+o+"'")}return this}return this.each(function(){var n=t.data(this,e);n?(n.option(o),n._init()):(n=new i(this,o),t.data(this,e,n))})}}if(t){var r="undefined"==typeof console?e:function(t){console.error(t)};return t.bridget=function(t,e){i(e),o(t,e)},t.bridget}}var n=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):i("object"==typeof exports?require("jquery"):t.jQuery)}(window),function(t){function e(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}var i=document.documentElement,n=function(){};i.addEventListener?n=function(t,e,i){t.addEventListener(e,i,!1)}:i.attachEvent&&(n=function(t,i,n){t[i+n]=n.handleEvent?function(){var i=e(t);n.handleEvent.call(n,i)}:function(){var i=e(t);n.call(t,i)},t.attachEvent("on"+i,t[i+n])});var o=function(){};i.removeEventListener?o=function(t,e,i){t.removeEventListener(e,i,!1)}:i.detachEvent&&(o=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var r={bind:n,unbind:o};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:t.eventie=r}(window),function(){function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}var n=t.prototype,o=this,r=o.EventEmitter;n.getListeners=function(t){var e,i,n=this._getEvents();if(t instanceof RegExp)for(i in e={},n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i]);else e=n[t]||(n[t]=[]);return e},n.flattenListeners=function(t){var e,i=[];for(e=0;e<t.length;e+=1)i.push(t[e].listener);return i},n.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&((e={})[t]=i),e||i},n.addListener=function(t,i){var n,o=this.getListenersAsObject(t),r="object"==typeof i;for(n in o)o.hasOwnProperty(n)&&-1===e(o[n],i)&&o[n].push(r?i:{listener:i,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,i){var n,o,r=this.getListenersAsObject(t);for(o in r)r.hasOwnProperty(o)&&(-1!==(n=e(r[o],i))&&r[o].splice(n,1));return this},n.off=i("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,i){var n,o,r=t?this.removeListener:this.addListener,u=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=i.length;n--;)r.call(this,e,i[n]);else for(n in e)e.hasOwnProperty(n)&&(o=e[n])&&("function"==typeof o?r.call(this,n,o):u.call(this,n,o));return this},n.removeEvent=function(t){var e,i=typeof t,n=this._getEvents();if("string"===i)delete n[t];else if(t instanceof RegExp)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(t,e){var i,n,o,r=this.getListenersAsObject(t);for(o in r)if(r.hasOwnProperty(o))for(n=r[o].length;n--;)!0===(i=r[o][n]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},n.trigger=i("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return o.EventEmitter=r,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:o.EventEmitter=t}.call(this),function(t){function e(t){if(t){if("string"==typeof n[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e,o=0,r=i.length;r>o;o++)if(e=i[o]+t,"string"==typeof n[e])return e}}var i="Webkit Moz ms Ms O".split(" "),n=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(t){function e(t){var e=parseFloat(t);return-1===t.indexOf("%")&&!isNaN(e)&&e}function i(i){function r(){if(!h){h=!0;var o=t.getComputedStyle;if(s=function(){var t=o?function(t){return o(t,null)}:function(t){return t.currentStyle};return function(e){var i=t(e);return i||n("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),i}}(),a=i("boxSizing")){var r=document.createElement("div");r.style.width="200px",r.style.padding="1px 2px 3px 4px",r.style.borderStyle="solid",r.style.borderWidth="1px 2px 3px 4px",r.style[a]="border-box";var u=document.body||document.documentElement;u.appendChild(r);var d=s(r);f=200===e(d.width),u.removeChild(r)}}}function u(e,i){if(t.getComputedStyle||-1===i.indexOf("%"))return i;var n=e.style,o=n.left,r=e.runtimeStyle,u=r&&r.left;return u&&(r.left=e.currentStyle.left),n.left=i,i=n.pixelLeft,n.left=o,u&&(r.left=u),i}var s,a,f,h=!1;return function(t){if(r(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var i=s(t);if("none"===i.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=o.length;i>e;e++)t[o[e]]=0;return t}();var n={};n.width=t.offsetWidth,n.height=t.offsetHeight;for(var h=n.isBorderBox=!(!a||!i[a]||"border-box"!==i[a]),d=0,p=o.length;p>d;d++){var c=o[d],l=i[c];l=u(t,l);var m=parseFloat(l);n[c]=isNaN(m)?0:m}var y=n.paddingLeft+n.paddingRight,g=n.paddingTop+n.paddingBottom,v=n.marginLeft+n.marginRight,A=n.marginTop+n.marginBottom,E=n.borderLeftWidth+n.borderRightWidth,F=n.borderTopWidth+n.borderBottomWidth,C=h&&f,B=e(i.width);!1!==B&&(n.width=B+(C?0:y+E));var D=e(i.height);return!1!==D&&(n.height=D+(C?0:g+F)),n.innerWidth=n.width-(y+E),n.innerHeight=n.height-(g+F),n.outerWidth=n.width+v,n.outerHeight=n.height+A,n}}}var n="undefined"==typeof console?function(){}:function(t){console.error(t)},o=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],i):"object"==typeof exports?module.exports=i(require("desandro-get-style-property")):t.getSize=i(t.getStyleProperty)}(window),function(t){function e(t){"function"==typeof t&&(e.isReady?t():u.push(t))}function i(t){var i="readystatechange"===t.type&&"complete"!==r.readyState;e.isReady||i||n()}function n(){e.isReady=!0;for(var t=0,i=u.length;i>t;t++){(0,u[t])()}}function o(o){return"complete"===r.readyState?n():(o.bind(r,"DOMContentLoaded",i),o.bind(r,"readystatechange",i),o.bind(t,"load",i)),e}var r=t.document,u=[];e.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],o):"object"==typeof exports?module.exports=o(require("eventie")):t.docReady=o(t.eventie)}(window),function(t){function e(t,e){return t[o](e)}function i(t){t.parentNode||document.createDocumentFragment().appendChild(t)}var n,o=function(){if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0,n=e.length;n>i;i++){var o=e[i]+"MatchesSelector";if(t[o])return o}}();if(o){var r=e(document.createElement("div"),"div");n=r?e:function(t,n){return i(t),e(t,n)}}else n=function(t,e){i(t);for(var n=t.parentNode.querySelectorAll(e),o=0,r=n.length;r>o;o++)if(n[o]===t)return!0;return!1};"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return n}):"object"==typeof exports?module.exports=n:window.matchesSelector=n}(Element.prototype),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(i,n){return e(t,i,n)}):"object"==typeof exports?module.exports=e(t,require("doc-ready"),require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.docReady,t.matchesSelector)}(window,function(t,e,i){var n={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},o=Object.prototype.toString;n.isArray=function(t){return"[object Array]"==o.call(t)},n.makeArray=function(t){var e=[];if(n.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0,o=t.length;o>i;i++)e.push(t[i]);else e.push(t);return e},n.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1},n.removeFrom=function(t,e){var i=n.indexOf(t,e);-1!=i&&t.splice(i,1)},n.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1==t.nodeType&&"string"==typeof t.nodeName},n.setText=function(){var t;return function(e,i){e[t=t||(void 0!==document.documentElement.textContent?"textContent":"innerText")]=i}}(),n.getParent=function(t,e){for(;t!=document.body;)if(t=t.parentNode,i(t,e))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,e){for(var o=[],r=0,u=(t=n.makeArray(t)).length;u>r;r++){var s=t[r];if(n.isElement(s))if(e){i(s,e)&&o.push(s);for(var a=s.querySelectorAll(e),f=0,h=a.length;h>f;f++)o.push(a[f])}else o.push(s)}return o},n.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i||100)}},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var r=t.console;return n.htmlInit=function(i,o){e(function(){for(var e=n.toDashed(o),u=document.querySelectorAll(".js-"+e),s="data-"+e+"-options",a=0,f=u.length;f>a;a++){var h,d=u[a],p=d.getAttribute(s);try{h=p&&JSON.parse(p)}catch(t){r&&r.error("Error parsing "+s+" on "+d.nodeName.toLowerCase()+(d.id?"#"+d.id:"")+": "+t);continue}var c=new i(d,h),l=t.jQuery;l&&l.data(d,o,c)}})},n}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof exports?module.exports=e(t,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(t.Outlayer={},t.Outlayer.Item=e(t,t.EventEmitter,t.getSize,t.getStyleProperty,t.fizzyUIUtils))}(window,function(t,e,i,n,o){function r(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var u=t.getComputedStyle,s=u?function(t){return u(t,null)}:function(t){return t.currentStyle},a=n("transition"),f=n("transform"),h=a&&f,d=!!n("perspective"),p={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[a],c=["transform","transition","transitionDuration","transitionProperty"],l=function(){for(var t={},e=0,i=c.length;i>e;e++){var o=c[e],r=n(o);r&&r!==o&&(t[o]=r)}return t}();o.extend(r.prototype,e.prototype),r.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.getSize=function(){this.size=i(this.element)},r.prototype.css=function(t){var e=this.element.style;for(var i in t){e[l[i]||i]=t[i]}},r.prototype.getPosition=function(){var t=s(this.element),e=this.layout.options,i=e.isOriginLeft,n=e.isOriginTop,o=parseInt(t[i?"left":"right"],10),r=parseInt(t[n?"top":"bottom"],10);o=isNaN(o)?0:o,r=isNaN(r)?0:r;var u=this.layout.size;o-=i?u.paddingLeft:u.paddingRight,r-=n?u.paddingTop:u.paddingBottom,this.position.x=o,this.position.y=r},r.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={},n=e.isOriginLeft?"paddingLeft":"paddingRight",o=e.isOriginLeft?"left":"right",r=e.isOriginLeft?"right":"left",u=this.position.x+t[n];u=e.percentPosition&&!e.isHorizontal?u/t.width*100+"%":u+"px",i[o]=u,i[r]="";var s=e.isOriginTop?"paddingTop":"paddingBottom",a=e.isOriginTop?"top":"bottom",f=e.isOriginTop?"bottom":"top",h=this.position.y+t[s];h=e.percentPosition&&e.isHorizontal?h/t.height*100+"%":h+"px",i[a]=h,i[f]="",this.css(i),this.emitEvent("layout",[this])};var m=d?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};r.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),r=parseInt(e,10),u=o===this.position.x&&r===this.position.y;if(this.setPosition(t,e),!u||this.isTransitioning){var s=t-i,a=e-n,f={},h=this.layout.options;s=h.isOriginLeft?s:-s,a=h.isOriginTop?a:-a,f.transform=m(s,a),this.transition({to:f,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},r.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},r.prototype.moveTo=h?r.prototype._transitionTo:r.prototype.goTo,r.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},r.prototype._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},r.prototype._transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var y=f&&o.toDashed(f)+",opacity";r.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:y,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(p,this,!1))},r.prototype.transition=r.prototype[a?"_transition":"_nonTransition"],r.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},r.prototype.onotransitionend=function(t){this.ontransitionend(t)};var g={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};r.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=g[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},r.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(p,this,!1),this.isTransitioning=!1},r.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var v={transitionProperty:"",transitionDuration:""};return r.prototype.removeTransitionStyles=function(){this.css(v)},r.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},r.prototype.remove=function(){if(a&&parseFloat(this.layout.options.transitionDuration)){var t=this;this.once("transitionEnd",function(){t.removeElem()}),this.hide()}else this.removeElem()},r.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},r.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},r.prototype.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},r.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},r.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},r.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},r}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r,u){return e(t,i,n,o,r,u)}):"object"==typeof exports?module.exports=e(t,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.eventie,t.EventEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o,r){function u(t,e){var i=o.getQueryElement(t);if(i){this.element=i,a&&(this.$element=a(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++h;this.element.outlayerGUID=n,d[n]=this,this._create(),this.options.isInitLayout&&this.layout()}else s&&s.error("Bad element for "+this.constructor.namespace+": "+(i||t))}var s=t.console,a=t.jQuery,f=function(){},h=0,d={};return u.namespace="outlayer",u.Item=r,u.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},o.extend(u.prototype,i.prototype),u.prototype.option=function(t){o.extend(this.options,t)},u.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},u.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},u.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0,r=e.length;r>o;o++){var u=new i(e[o],this);n.push(u)}return n},u.prototype._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},u.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;i>e;e++)t.push(this.items[e].element);return t},u.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},u.prototype._init=u.prototype.layout,u.prototype._resetLayout=function(){this.getSize()},u.prototype.getSize=function(){this.size=n(this.element)},u.prototype._getMeasurement=function(t,e){var i,r=this.options[t];r?("string"==typeof r?i=this.element.querySelector(r):o.isElement(r)&&(i=r),this[t]=i?n(i)[e]:r):this[t]=0},u.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},u.prototype._getItemsForLayout=function(t){for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i];o.isIgnored||e.push(o)}return e},u.prototype._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){for(var i=[],n=0,o=t.length;o>n;n++){var r=t[n],u=this._getItemLayoutPosition(r);u.item=r,u.isInstant=e||r.isLayoutInstant,i.push(u)}this._processLayoutQueue(i)}},u.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},u.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;i>e;e++){var n=t[e];this._positionItem(n.item,n.x,n.y,n.isInstant)}},u.prototype._positionItem=function(t,e,i,n){n?t.goTo(e,i):t.moveTo(e,i)},u.prototype._postLayout=function(){this.resizeContainer()},u.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},u.prototype._getContainerSize=f,u.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},u.prototype._emitCompleteOnItems=function(t,e){function i(){o.emitEvent(t+"Complete",[e])}function n(){++u===r&&i()}var o=this,r=e.length;if(e&&r)for(var u=0,s=0,a=e.length;a>s;s++){e[s].once(t,n)}else i()},u.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},u.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},u.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;i>e;e++){var n=t[e];this.ignore(n)}}},u.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;i>e;e++){var n=t[e];o.removeFrom(this.stamps,n),this.unignore(n)}},u.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o.makeArray(t)):void 0},u.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;e>t;t++){var i=this.stamps[t];this._manageStamp(i)}}},u.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},u.prototype._manageStamp=f,u.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,o=n(t);return{left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.marginBottom}},u.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.prototype.bindResize=function(){this.isResizeBound||(e.bind(t,"resize",this),this.isResizeBound=!0)},u.prototype.unbindResize=function(){this.isResizeBound&&e.unbind(t,"resize",this),this.isResizeBound=!1},u.prototype.onresize=function(){this.resizeTimeout&&clearTimeout(this.resizeTimeout);var t=this;this.resizeTimeout=setTimeout(function(){t.resize(),delete t.resizeTimeout},100)},u.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},u.prototype.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},u.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},u.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},u.prototype.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},u.prototype.reveal=function(t){this._emitCompleteOnItems("reveal",t);for(var e=t&&t.length,i=0;e&&e>i;i++){t[i].reveal()}},u.prototype.hide=function(t){this._emitCompleteOnItems("hide",t);for(var e=t&&t.length,i=0;e&&e>i;i++){t[i].hide()}},u.prototype.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},u.prototype.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},u.prototype.getItem=function(t){for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];if(n.element===t)return n}},u.prototype.getItems=function(t){for(var e=[],i=0,n=(t=o.makeArray(t)).length;n>i;i++){var r=t[i],u=this.getItem(r);u&&e.push(u)}return e},u.prototype.remove=function(t){var e=this.getItems(t);if(this._emitCompleteOnItems("remove",e),e&&e.length)for(var i=0,n=e.length;n>i;i++){var r=e[i];r.remove(),o.removeFrom(this.items,r)}},u.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;i>e;e++){this.items[e].destroy()}this.unbindResize();var n=this.element.outlayerGUID;delete d[n],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},u.data=function(t){var e=(t=o.getQueryElement(t))&&t.outlayerGUID;return e&&d[e]},u.create=function(t,e){function i(){u.apply(this,arguments)}return Object.create?i.prototype=Object.create(u.prototype):o.extend(i.prototype,u.prototype),i.prototype.constructor=i,i.defaults=o.extend({},u.defaults),o.extend(i.defaults,e),i.prototype.settings={},i.namespace=t,i.data=u.data,i.Item=function(){r.apply(this,arguments)},i.Item.prototype=new r,o.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i},u.Item=r,u}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],e):"object"==typeof exports?module.exports=e(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):t.Masonry=e(t.Outlayer,t.getSize,t.fizzyUIUtils)}(window,function(t,e,i){var n=t.create("masonry");return n.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},n.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,u=n-o%n;r=Math[u&&1>u?"round":"floor"](r),this.cols=Math.max(r,1)},n.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},n.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,n=Math[e&&1>e?"round":"ceil"](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this._getColGroup(n),r=Math.min.apply(Math,o),u=i.indexOf(o,r),s={x:this.columnWidth*u,y:r},a=r+t.size.outerHeight,f=this.cols+1-o.length,h=0;f>h;h++)this.colYs[u+h]=a;return s},n.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e},n.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this.options.isOriginLeft?n.left:n.right,r=o+i.outerWidth,u=Math.floor(o/this.columnWidth);u=Math.max(0,u);var s=Math.floor(r/this.columnWidth);s-=r%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var a=(this.options.isOriginTop?n.top:n.bottom)+i.outerHeight,f=u;s>=f;f++)this.colYs[f]=Math.max(a,this.colYs[f])},n.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},n.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},n})}function cff_init(){function t(){jQuery(".cff-visual-header.cff-has-cover").each(function(){var t=jQuery(this).find(".cff-header-hero").innerHeight(),e=jQuery(this).find(".cff-header-hero img").innerHeight(),i=jQuery(this).find(".cff-header-hero").innerWidth(),n=jQuery(this).find(".cff-header-hero img").innerWidth()/e,o=i/t<n?t*n+"px":"100%",r=e-t,u=Math.max(0,Math.round(r/2)),s="100%"!==o?Math.max(0,Math.round((t*n-i)/2)):0;jQuery(this).find(".cff-header-hero img").css({opacity:1,display:"block",visibility:"visible","max-width":"none","max-height":"none","margin-top":-u+"px","margin-left":-s+"px",width:o})})}jQuery(".cff-likebox iframe").each(function(){var t=jQuery(this),e=t.attr("data-likebox-width"),i=t.parent().width();""==e&&(e=340),i<e&&(e=i),t.attr("src","https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2F"+t.attr("data-likebox-id")+"%2F&tabs&width="+e+"&small_header="+t.attr("data-likebox-header")+"&adapt_container_width=true&hide_cover="+t.attr("data-hide-cover")+"&hide_cta="+t.attr("data-hide-cta")+"&show_facepile="+t.attr("data-likebox-faces")+"&locale="+t.attr("data-locale"))}),jQuery("#cff .cff-item").each(function(){var t=jQuery(this);t.find(".cff-viewpost-facebook").parent("p").length&&t.find(".cff-viewpost-facebook").unwrap("p"),t.find(".cff-author").parent("p").length&&(t.find(".cff-author").eq(1).unwrap("p"),t.find(".cff-author").eq(1).remove()),t.find("#cff .cff-link").parent("p").length&&t.find("#cff .cff-link").unwrap("p");var e=!1,i=t.find(".cff-post-text .cff-text"),n=t.closest("#cff").attr("data-char");void 0!==n&&""!=n||(n=99999),i.find("a.cff-post-text-link").length&&(i=t.find(".cff-post-text .cff-text a"));var o=i.html();null==o&&(o="");var r=new RegExp(/(<[^>]*>)/g),u=0;full_text_arr=o.split(r);for(var s=0,a=full_text_arr.length;s<a;s++)if(!r.test(full_text_arr[s])){if(u==n){full_text_arr.splice(s,1);continue}if((u+=full_text_arr[s].length)>n){var f=u-n;full_text_arr[s]=full_text_arr[s].slice(0,-f),u=n,o.length>n&&t.find(".cff-expand").show()}}var h=full_text_arr.join("");function d(){var e=t.find(".cff-text").html(),i=t.find(".cff-post-desc").html(),n=/(^|\s)#(\w*[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]+\w*)/gi,o=t.find(".cff-text").attr("data-color");function r(t){var e=jQuery.trim(t);return/^#[0-9A-F]{6}$/i.test(e)?e:' <a href="https://www.facebook.com/hashtag/'+e.substring(1)+'" target="_blank" rel="nofollow" style="color:#'+o+'">'+e+"</a>"}if("undefined"==typeof cfflinkhashtags&&(cfflinkhashtags="true"),"true"==cfflinkhashtags){var u=t.find(".cff-text");u.length>0&&(e=e.replace(/<br>/g,"<br> "),u.html(e.replace(n,r)))}t.find(".cff-post-desc").length>0&&t.find(".cff-post-desc").html(i.replace(n,r))}"<"==(h=h.replace(/(<(?!\/)[^>]+>)+(<\/[^>]+>)/g,"")).substr(h.length-1)&&(h=h.substring(0,h.length-1)),h=(h=h.replace(/(<br>\s*)+$/,"")).replace(/(<img class="cff-linebreak">\s*)+$/,""),i.html(h),t.find(".cff-expand a").unbind("click").bind("click",function(t){t.preventDefault();var n=jQuery(this),r=n.find(".cff-more"),u=n.find(".cff-less");0==e?(i.html(o),e=!0,r.hide(),u.show()):(i.html(h),e=!1,r.show(),u.hide()),d(),i.find("a").attr("target","_blank")}),i.find("a").add(t.find(".cff-post-desc a")).attr({target:"_blank",rel:"nofollow"}),$sharedLink=t.find(".cff-shared-link"),""==$sharedLink.text()&&$sharedLink.remove(),d(),t.find(".cff-text a").add(t.find(".cff-post-desc a")).attr({target:"_blank",rel:"nofollow noopener noreferrer"}),t.find(".cff-share-link").unbind().bind("click",function(e){e.preventDefault();var i=t.find(".cff-share-tooltip");if(i.is(":visible"))i.hide().find("a").removeClass("cff-show");else{i.show();var n=0;i.find("a").each(function(){var t=jQuery(this);setTimeout(function(){t.addClass("cff-show")},n),n+=20})}})}),jQuery(".cff-wrapper").each(function(){var t=jQuery(this).find("#cff");if(void 0!==t.attr("data-nummobile")){var e=void 0!==t.attr("data-pag-num")&&""!==t.attr("data-pag-num")?parseInt(t.attr("data-pag-num")):1,i=void 0!==t.attr("data-nummobile")&&""!==t.attr("data-nummobile")?parseInt(t.attr("data-nummobile")):e,n=t.find(".cff-item").length?".cff-item":".cff-album-item";jQuery(window).width()<480?i<t.find(n).length&&t.find(n).slice(i-t.find(n).length).addClass("cff-num-diff-hide"):e<t.find(n).length&&t.find(n).slice(e-t.find(n).length).addClass("cff-num-diff-hide"),t.removeAttr("data-nummobile")}t.hasClass("cff-masonry-js")&&(cffAddMasonry(t),setTimeout(function(){cffAddMasonry(t)},500),jQuery(window).resize(function(){setTimeout(function(){cffAddMasonry(t)},500)}),t.find(".cff-credit").length&&t.css("padding-bottom",30))}),setTimeout(t,200),jQuery(window).resize(function(){setTimeout(function(){t()},500)})}cff_init()}
|
1 |
+
var cff_js_exists=void 0!==cff_js_exists;if(!cff_js_exists){if(jQuery("#cff.cff-masonry-js").length){function cffAddMasonry(t){jQuery(window).width()>780||t.hasClass("masonry-2-mobile")?(t.addClass("cff-masonry cff-masonry-js").removeClass("cff-disable-masonry"),t.find(".cff-item").length?(t.masonry({itemSelector:".cff-new, .cff-item, .cff-likebox"}),t.find(".cff-item").each(function(){jQuery(this).css("margin-bottom","15px")})):t.find(".cff-album-item").length&&t.masonry({itemSelector:".cff-album-item"})):t.addClass("cff-disable-masonry")}!function(t){function e(){}function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function o(e,i){t.fn[e]=function(o){if("string"==typeof o){for(var u=n.call(arguments,1),s=0,a=this.length;a>s;s++){var f=this[s],h=t.data(f,e);if(h)if(t.isFunction(h[o])&&"_"!==o.charAt(0)){var c=h[o].apply(h,u);if(void 0!==c)return c}else r("no such method '"+o+"' for "+e+" instance");else r("cannot call methods on "+e+" prior to initialization; attempted to call '"+o+"'")}return this}return this.each(function(){var n=t.data(this,e);n?(n.option(o),n._init()):(n=new i(this,o),t.data(this,e,n))})}}if(t){var r="undefined"==typeof console?e:function(t){console.error(t)};return t.bridget=function(t,e){i(e),o(t,e)},t.bridget}}var n=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):i("object"==typeof exports?require("jquery"):t.jQuery)}(window),function(t){function e(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}var i=document.documentElement,n=function(){};i.addEventListener?n=function(t,e,i){t.addEventListener(e,i,!1)}:i.attachEvent&&(n=function(t,i,n){t[i+n]=n.handleEvent?function(){var i=e(t);n.handleEvent.call(n,i)}:function(){var i=e(t);n.call(t,i)},t.attachEvent("on"+i,t[i+n])});var o=function(){};i.removeEventListener?o=function(t,e,i){t.removeEventListener(e,i,!1)}:i.detachEvent&&(o=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var r={bind:n,unbind:o};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:t.eventie=r}(window),function(){function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}var n=t.prototype,o=this,r=o.EventEmitter;n.getListeners=function(t){var e,i,n=this._getEvents();if(t instanceof RegExp)for(i in e={},n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i]);else e=n[t]||(n[t]=[]);return e},n.flattenListeners=function(t){var e,i=[];for(e=0;e<t.length;e+=1)i.push(t[e].listener);return i},n.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&((e={})[t]=i),e||i},n.addListener=function(t,i){var n,o=this.getListenersAsObject(t),r="object"==typeof i;for(n in o)o.hasOwnProperty(n)&&-1===e(o[n],i)&&o[n].push(r?i:{listener:i,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,i){var n,o,r=this.getListenersAsObject(t);for(o in r)r.hasOwnProperty(o)&&(-1!==(n=e(r[o],i))&&r[o].splice(n,1));return this},n.off=i("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,i){var n,o,r=t?this.removeListener:this.addListener,u=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=i.length;n--;)r.call(this,e,i[n]);else for(n in e)e.hasOwnProperty(n)&&(o=e[n])&&("function"==typeof o?r.call(this,n,o):u.call(this,n,o));return this},n.removeEvent=function(t){var e,i=typeof t,n=this._getEvents();if("string"===i)delete n[t];else if(t instanceof RegExp)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(t,e){var i,n,o,r=this.getListenersAsObject(t);for(o in r)if(r.hasOwnProperty(o))for(n=r[o].length;n--;)!0===(i=r[o][n]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},n.trigger=i("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return o.EventEmitter=r,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:o.EventEmitter=t}.call(this),function(t){function e(t){if(t){if("string"==typeof n[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e,o=0,r=i.length;r>o;o++)if(e=i[o]+t,"string"==typeof n[e])return e}}var i="Webkit Moz ms Ms O".split(" "),n=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(t){function e(t){var e=parseFloat(t);return-1===t.indexOf("%")&&!isNaN(e)&&e}function i(i){function r(){if(!h){h=!0;var o=t.getComputedStyle;if(s=function(){var t=o?function(t){return o(t,null)}:function(t){return t.currentStyle};return function(e){var i=t(e);return i||n("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),i}}(),a=i("boxSizing")){var r=document.createElement("div");r.style.width="200px",r.style.padding="1px 2px 3px 4px",r.style.borderStyle="solid",r.style.borderWidth="1px 2px 3px 4px",r.style[a]="border-box";var u=document.body||document.documentElement;u.appendChild(r);var c=s(r);f=200===e(c.width),u.removeChild(r)}}}function u(e,i){if(t.getComputedStyle||-1===i.indexOf("%"))return i;var n=e.style,o=n.left,r=e.runtimeStyle,u=r&&r.left;return u&&(r.left=e.currentStyle.left),n.left=i,i=n.pixelLeft,n.left=o,u&&(r.left=u),i}var s,a,f,h=!1;return function(t){if(r(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var i=s(t);if("none"===i.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=o.length;i>e;e++)t[o[e]]=0;return t}();var n={};n.width=t.offsetWidth,n.height=t.offsetHeight;for(var h=n.isBorderBox=!(!a||!i[a]||"border-box"!==i[a]),c=0,d=o.length;d>c;c++){var l=o[c],p=i[l];p=u(t,p);var m=parseFloat(p);n[l]=isNaN(m)?0:m}var y=n.paddingLeft+n.paddingRight,g=n.paddingTop+n.paddingBottom,v=n.marginLeft+n.marginRight,A=n.marginTop+n.marginBottom,C=n.borderLeftWidth+n.borderRightWidth,F=n.borderTopWidth+n.borderBottomWidth,E=h&&f,B=e(i.width);!1!==B&&(n.width=B+(E?0:y+C));var D=e(i.height);return!1!==D&&(n.height=D+(E?0:g+F)),n.innerWidth=n.width-(y+C),n.innerHeight=n.height-(g+F),n.outerWidth=n.width+v,n.outerHeight=n.height+A,n}}}var n="undefined"==typeof console?function(){}:function(t){console.error(t)},o=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],i):"object"==typeof exports?module.exports=i(require("desandro-get-style-property")):t.getSize=i(t.getStyleProperty)}(window),function(t){function e(t){"function"==typeof t&&(e.isReady?t():u.push(t))}function i(t){var i="readystatechange"===t.type&&"complete"!==r.readyState;e.isReady||i||n()}function n(){e.isReady=!0;for(var t=0,i=u.length;i>t;t++){(0,u[t])()}}function o(o){return"complete"===r.readyState?n():(o.bind(r,"DOMContentLoaded",i),o.bind(r,"readystatechange",i),o.bind(t,"load",i)),e}var r=t.document,u=[];e.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],o):"object"==typeof exports?module.exports=o(require("eventie")):t.docReady=o(t.eventie)}(window),function(t){function e(t,e){return t[o](e)}function i(t){t.parentNode||document.createDocumentFragment().appendChild(t)}var n,o=function(){if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0,n=e.length;n>i;i++){var o=e[i]+"MatchesSelector";if(t[o])return o}}();if(o){var r=e(document.createElement("div"),"div");n=r?e:function(t,n){return i(t),e(t,n)}}else n=function(t,e){i(t);for(var n=t.parentNode.querySelectorAll(e),o=0,r=n.length;r>o;o++)if(n[o]===t)return!0;return!1};"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return n}):"object"==typeof exports?module.exports=n:window.matchesSelector=n}(Element.prototype),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(i,n){return e(t,i,n)}):"object"==typeof exports?module.exports=e(t,require("doc-ready"),require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.docReady,t.matchesSelector)}(window,function(t,e,i){var n={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},o=Object.prototype.toString;n.isArray=function(t){return"[object Array]"==o.call(t)},n.makeArray=function(t){var e=[];if(n.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0,o=t.length;o>i;i++)e.push(t[i]);else e.push(t);return e},n.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1},n.removeFrom=function(t,e){var i=n.indexOf(t,e);-1!=i&&t.splice(i,1)},n.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1==t.nodeType&&"string"==typeof t.nodeName},n.setText=function(){var t;return function(e,i){e[t=t||(void 0!==document.documentElement.textContent?"textContent":"innerText")]=i}}(),n.getParent=function(t,e){for(;t!=document.body;)if(t=t.parentNode,i(t,e))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,e){for(var o=[],r=0,u=(t=n.makeArray(t)).length;u>r;r++){var s=t[r];if(n.isElement(s))if(e){i(s,e)&&o.push(s);for(var a=s.querySelectorAll(e),f=0,h=a.length;h>f;f++)o.push(a[f])}else o.push(s)}return o},n.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i||100)}},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var r=t.console;return n.htmlInit=function(i,o){e(function(){for(var e=n.toDashed(o),u=document.querySelectorAll(".js-"+e),s="data-"+e+"-options",a=0,f=u.length;f>a;a++){var h,c=u[a],d=c.getAttribute(s);try{h=d&&JSON.parse(d)}catch(t){r&&r.error("Error parsing "+s+" on "+c.nodeName.toLowerCase()+(c.id?"#"+c.id:"")+": "+t);continue}var l=new i(c,h),p=t.jQuery;p&&p.data(c,o,l)}})},n}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof exports?module.exports=e(t,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(t.Outlayer={},t.Outlayer.Item=e(t,t.EventEmitter,t.getSize,t.getStyleProperty,t.fizzyUIUtils))}(window,function(t,e,i,n,o){function r(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var u=t.getComputedStyle,s=u?function(t){return u(t,null)}:function(t){return t.currentStyle},a=n("transition"),f=n("transform"),h=a&&f,c=!!n("perspective"),d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[a],l=["transform","transition","transitionDuration","transitionProperty"],p=function(){for(var t={},e=0,i=l.length;i>e;e++){var o=l[e],r=n(o);r&&r!==o&&(t[o]=r)}return t}();o.extend(r.prototype,e.prototype),r.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.getSize=function(){this.size=i(this.element)},r.prototype.css=function(t){var e=this.element.style;for(var i in t){e[p[i]||i]=t[i]}},r.prototype.getPosition=function(){var t=s(this.element),e=this.layout.options,i=e.isOriginLeft,n=e.isOriginTop,o=parseInt(t[i?"left":"right"],10),r=parseInt(t[n?"top":"bottom"],10);o=isNaN(o)?0:o,r=isNaN(r)?0:r;var u=this.layout.size;o-=i?u.paddingLeft:u.paddingRight,r-=n?u.paddingTop:u.paddingBottom,this.position.x=o,this.position.y=r},r.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={},n=e.isOriginLeft?"paddingLeft":"paddingRight",o=e.isOriginLeft?"left":"right",r=e.isOriginLeft?"right":"left",u=this.position.x+t[n];u=e.percentPosition&&!e.isHorizontal?u/t.width*100+"%":u+"px",i[o]=u,i[r]="";var s=e.isOriginTop?"paddingTop":"paddingBottom",a=e.isOriginTop?"top":"bottom",f=e.isOriginTop?"bottom":"top",h=this.position.y+t[s];h=e.percentPosition&&e.isHorizontal?h/t.height*100+"%":h+"px",i[a]=h,i[f]="",this.css(i),this.emitEvent("layout",[this])};var m=c?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};r.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),r=parseInt(e,10),u=o===this.position.x&&r===this.position.y;if(this.setPosition(t,e),!u||this.isTransitioning){var s=t-i,a=e-n,f={},h=this.layout.options;s=h.isOriginLeft?s:-s,a=h.isOriginTop?a:-a,f.transform=m(s,a),this.transition({to:f,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},r.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},r.prototype.moveTo=h?r.prototype._transitionTo:r.prototype.goTo,r.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},r.prototype._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},r.prototype._transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var y=f&&o.toDashed(f)+",opacity";r.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:y,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(d,this,!1))},r.prototype.transition=r.prototype[a?"_transition":"_nonTransition"],r.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},r.prototype.onotransitionend=function(t){this.ontransitionend(t)};var g={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};r.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=g[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},r.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(d,this,!1),this.isTransitioning=!1},r.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var v={transitionProperty:"",transitionDuration:""};return r.prototype.removeTransitionStyles=function(){this.css(v)},r.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},r.prototype.remove=function(){if(a&&parseFloat(this.layout.options.transitionDuration)){var t=this;this.once("transitionEnd",function(){t.removeElem()}),this.hide()}else this.removeElem()},r.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},r.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},r.prototype.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},r.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},r.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},r.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},r}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r,u){return e(t,i,n,o,r,u)}):"object"==typeof exports?module.exports=e(t,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.eventie,t.EventEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o,r){function u(t,e){var i=o.getQueryElement(t);if(i){this.element=i,a&&(this.$element=a(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++h;this.element.outlayerGUID=n,c[n]=this,this._create(),this.options.isInitLayout&&this.layout()}else s&&s.error("Bad element for "+this.constructor.namespace+": "+(i||t))}var s=t.console,a=t.jQuery,f=function(){},h=0,c={};return u.namespace="outlayer",u.Item=r,u.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},o.extend(u.prototype,i.prototype),u.prototype.option=function(t){o.extend(this.options,t)},u.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},u.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},u.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0,r=e.length;r>o;o++){var u=new i(e[o],this);n.push(u)}return n},u.prototype._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},u.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;i>e;e++)t.push(this.items[e].element);return t},u.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},u.prototype._init=u.prototype.layout,u.prototype._resetLayout=function(){this.getSize()},u.prototype.getSize=function(){this.size=n(this.element)},u.prototype._getMeasurement=function(t,e){var i,r=this.options[t];r?("string"==typeof r?i=this.element.querySelector(r):o.isElement(r)&&(i=r),this[t]=i?n(i)[e]:r):this[t]=0},u.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},u.prototype._getItemsForLayout=function(t){for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i];o.isIgnored||e.push(o)}return e},u.prototype._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){for(var i=[],n=0,o=t.length;o>n;n++){var r=t[n],u=this._getItemLayoutPosition(r);u.item=r,u.isInstant=e||r.isLayoutInstant,i.push(u)}this._processLayoutQueue(i)}},u.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},u.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;i>e;e++){var n=t[e];this._positionItem(n.item,n.x,n.y,n.isInstant)}},u.prototype._positionItem=function(t,e,i,n){n?t.goTo(e,i):t.moveTo(e,i)},u.prototype._postLayout=function(){this.resizeContainer()},u.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},u.prototype._getContainerSize=f,u.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},u.prototype._emitCompleteOnItems=function(t,e){function i(){o.emitEvent(t+"Complete",[e])}function n(){++u===r&&i()}var o=this,r=e.length;if(e&&r)for(var u=0,s=0,a=e.length;a>s;s++){e[s].once(t,n)}else i()},u.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},u.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},u.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;i>e;e++){var n=t[e];this.ignore(n)}}},u.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;i>e;e++){var n=t[e];o.removeFrom(this.stamps,n),this.unignore(n)}},u.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o.makeArray(t)):void 0},u.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;e>t;t++){var i=this.stamps[t];this._manageStamp(i)}}},u.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},u.prototype._manageStamp=f,u.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,o=n(t);return{left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.marginBottom}},u.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.prototype.bindResize=function(){this.isResizeBound||(e.bind(t,"resize",this),this.isResizeBound=!0)},u.prototype.unbindResize=function(){this.isResizeBound&&e.unbind(t,"resize",this),this.isResizeBound=!1},u.prototype.onresize=function(){this.resizeTimeout&&clearTimeout(this.resizeTimeout);var t=this;this.resizeTimeout=setTimeout(function(){t.resize(),delete t.resizeTimeout},100)},u.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},u.prototype.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},u.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},u.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},u.prototype.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},u.prototype.reveal=function(t){this._emitCompleteOnItems("reveal",t);for(var e=t&&t.length,i=0;e&&e>i;i++){t[i].reveal()}},u.prototype.hide=function(t){this._emitCompleteOnItems("hide",t);for(var e=t&&t.length,i=0;e&&e>i;i++){t[i].hide()}},u.prototype.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},u.prototype.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},u.prototype.getItem=function(t){for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];if(n.element===t)return n}},u.prototype.getItems=function(t){for(var e=[],i=0,n=(t=o.makeArray(t)).length;n>i;i++){var r=t[i],u=this.getItem(r);u&&e.push(u)}return e},u.prototype.remove=function(t){var e=this.getItems(t);if(this._emitCompleteOnItems("remove",e),e&&e.length)for(var i=0,n=e.length;n>i;i++){var r=e[i];r.remove(),o.removeFrom(this.items,r)}},u.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;i>e;e++){this.items[e].destroy()}this.unbindResize();var n=this.element.outlayerGUID;delete c[n],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},u.data=function(t){var e=(t=o.getQueryElement(t))&&t.outlayerGUID;return e&&c[e]},u.create=function(t,e){function i(){u.apply(this,arguments)}return Object.create?i.prototype=Object.create(u.prototype):o.extend(i.prototype,u.prototype),i.prototype.constructor=i,i.defaults=o.extend({},u.defaults),o.extend(i.defaults,e),i.prototype.settings={},i.namespace=t,i.data=u.data,i.Item=function(){r.apply(this,arguments)},i.Item.prototype=new r,o.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i},u.Item=r,u}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],e):"object"==typeof exports?module.exports=e(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):t.Masonry=e(t.Outlayer,t.getSize,t.fizzyUIUtils)}(window,function(t,e,i){var n=t.create("masonry");return n.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},n.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,u=n-o%n;r=Math[u&&1>u?"round":"floor"](r),this.cols=Math.max(r,1)},n.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},n.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,n=Math[e&&1>e?"round":"ceil"](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this._getColGroup(n),r=Math.min.apply(Math,o),u=i.indexOf(o,r),s={x:this.columnWidth*u,y:r},a=r+t.size.outerHeight,f=this.cols+1-o.length,h=0;f>h;h++)this.colYs[u+h]=a;return s},n.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e},n.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this.options.isOriginLeft?n.left:n.right,r=o+i.outerWidth,u=Math.floor(o/this.columnWidth);u=Math.max(0,u);var s=Math.floor(r/this.columnWidth);s-=r%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var a=(this.options.isOriginTop?n.top:n.bottom)+i.outerHeight,f=u;s>=f;f++)this.colYs[f]=Math.max(a,this.colYs[f])},n.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},n.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},n})}function cff_init(){function t(){jQuery(".cff-visual-header.cff-has-cover").each(function(){var t=jQuery(this).find(".cff-header-hero").innerHeight(),e=jQuery(this).find(".cff-header-hero img").innerHeight(),i=jQuery(this).find(".cff-header-hero").innerWidth(),n=jQuery(this).find(".cff-header-hero img").innerWidth()/e,o=i/t<n?t*n+"px":"100%",r=e-t,u=Math.max(0,Math.round(r/2)),s="100%"!==o?Math.max(0,Math.round((t*n-i)/2)):0;jQuery(this).find(".cff-header-hero img").css({opacity:1,display:"block",visibility:"visible","max-width":"none","max-height":"none","margin-top":-u+"px","margin-left":-s+"px",width:o})})}jQuery("#cff .cff-item").each(function(){var t=jQuery(this);t.find(".cff-viewpost-facebook").parent("p").length&&t.find(".cff-viewpost-facebook").unwrap("p"),t.find(".cff-author").parent("p").length&&(t.find(".cff-author").eq(1).unwrap("p"),t.find(".cff-author").eq(1).remove()),t.find("#cff .cff-link").parent("p").length&&t.find("#cff .cff-link").unwrap("p");var e=!1,i=t.find(".cff-post-text .cff-text"),n=t.closest("#cff").attr("data-char");void 0!==n&&""!=n||(n=99999),i.find("a.cff-post-text-link").length&&(i=t.find(".cff-post-text .cff-text a"));var o=i.html();null==o&&(o="");var r=new RegExp(/(<[^>]*>)/g),u=0;full_text_arr=o.split(r);for(var s=0,a=full_text_arr.length;s<a;s++)if(!r.test(full_text_arr[s])){if(u==n){full_text_arr.splice(s,1);continue}if((u+=full_text_arr[s].length)>n){var f=u-n;full_text_arr[s]=full_text_arr[s].slice(0,-f),u=n,o.length>n&&t.find(".cff-expand").show()}}var h=full_text_arr.join("");function c(){var e=t.find(".cff-text").html(),i=t.find(".cff-post-desc").html(),n=/(^|\s)#(\w*[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]+\w*)/gi,o=t.find(".cff-text").attr("data-color");function r(t){var e=jQuery.trim(t);return/^#[0-9A-F]{6}$/i.test(e)?e:' <a href="https://www.facebook.com/hashtag/'+e.substring(1)+'" target="_blank" rel="nofollow" style="color:#'+o+'">'+e+"</a>"}if("undefined"==typeof cfflinkhashtags&&(cfflinkhashtags="true"),"true"==cfflinkhashtags){var u=t.find(".cff-text");u.length>0&&(e=e.replace(/<br>/g,"<br> "),u.html(e.replace(n,r)))}t.find(".cff-post-desc").length>0&&t.find(".cff-post-desc").html(i.replace(n,r))}"<"==(h=h.replace(/(<(?!\/)[^>]+>)+(<\/[^>]+>)/g,"")).substr(h.length-1)&&(h=h.substring(0,h.length-1)),h=(h=h.replace(/(<br>\s*)+$/,"")).replace(/(<img class="cff-linebreak">\s*)+$/,""),i.html(h),t.find(".cff-expand a").unbind("click").bind("click",function(t){t.preventDefault();var n=jQuery(this),r=n.find(".cff-more"),u=n.find(".cff-less");0==e?(i.html(o),e=!0,r.hide(),u.show()):(i.html(h),e=!1,r.show(),u.hide()),c(),i.find("a").attr("target","_blank")}),i.find("a").add(t.find(".cff-post-desc a")).attr({target:"_blank",rel:"nofollow"}),$sharedLink=t.find(".cff-shared-link"),""==$sharedLink.text()&&$sharedLink.remove(),c(),t.find(".cff-text a").add(t.find(".cff-post-desc a")).attr({target:"_blank",rel:"nofollow noopener noreferrer"}),t.find(".cff-share-link").unbind().bind("click",function(e){e.preventDefault();var i=t.find(".cff-share-tooltip");if(i.is(":visible"))i.hide().find("a").removeClass("cff-show");else{i.show();var n=0;i.find("a").each(function(){var t=jQuery(this);setTimeout(function(){t.addClass("cff-show")},n),n+=20})}})}),jQuery(".cff-wrapper").each(function(){var t=jQuery(this).find("#cff"),e=jQuery(this);if(setTimeout(function(){checkConsent(e)?addFullFeatures(e):e.find(".cff-visual-header").length&&e.find(".cff-header-text").closest(".cff-visual-header").addClass("cff-no-consent")},250),void 0!==t.attr("data-nummobile")){var i=void 0!==t.attr("data-pag-num")&&""!==t.attr("data-pag-num")?parseInt(t.attr("data-pag-num")):1,n=void 0!==t.attr("data-nummobile")&&""!==t.attr("data-nummobile")?parseInt(t.attr("data-nummobile")):i,o=t.find(".cff-item").length?".cff-item":".cff-album-item";jQuery(window).width()<480?n<t.find(o).length&&t.find(o).slice(n-t.find(o).length).addClass("cff-num-diff-hide"):i<t.find(o).length&&t.find(o).slice(i-t.find(o).length).addClass("cff-num-diff-hide"),t.removeAttr("data-nummobile")}t.hasClass("cff-masonry-js")&&(cffAddMasonry(t),setTimeout(function(){cffAddMasonry(t)},500),jQuery(window).resize(function(){setTimeout(function(){cffAddMasonry(t)},500)}),t.find(".cff-credit").length&&t.css("padding-bottom",30))}),setTimeout(t,200),jQuery(window).resize(function(){setTimeout(function(){t()},500)})}function checkConsent(t){var e=void 0!==(t=t.find(".cff-list-container")).attr("data-cff-flags")?t.attr("data-cff-flags").split(","):[],i=e.indexOf("gdpr")>-1,n=(e.indexOf("overrideBlockCDN"),!1);if(n||!i)return!0;if("undefined"!=typeof CLI_Cookie)null!==CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)&&(n="yes"===CLI_Cookie.read("cookielawinfo-checkbox-non-necessary"));else if(void 0!==window.cnArgs){var o=("; "+document.cookie).split("; cookie_notice_accepted=");if(2===o.length)n="true"===o.pop().split(";").shift()}else void 0!==window.cookieconsent?n="allow"===cffCmplzGetCookie("complianz_consent_status"):void 0!==window.Cookiebot?n=Cookiebot.consented:void 0!==window.BorlabsCookie&&(n=window.BorlabsCookie.checkCookieConsent("facebook"));return n}function cffCmplzGetCookie(t){for(var e=t+"=",i=window.document.cookie.split(";"),n=0;n<i.length;n++){var o=i[n].trim();if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}function addFullFeatures(t){(t=jQuery(t)).find(".cff-author-img").each(function(){jQuery(this).find("img").attr("src",jQuery(this).attr("data-avatar")),jQuery(this).removeClass("cff-no-consent")}),t.find(".cff-likebox iframe").each(function(){var t=jQuery(this),e=t.attr("data-likebox-width"),i=t.parent().width();""==e&&(e=340),i<e&&(e=i),t.attr("src","https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2F"+t.attr("data-likebox-id")+"%2F&tabs&width="+Math.floor(e)+"&small_header="+t.attr("data-likebox-header")+"&adapt_container_width=true&hide_cover="+t.attr("data-hide-cover")+"&hide_cta="+t.attr("data-hide-cta")+"&show_facepile="+t.attr("data-likebox-faces")+"&locale="+t.attr("data-locale"))}),jQuery(".cff-visual-header").length&&jQuery(".cff-visual-header").each(function(){jQuery(this).removeClass("cff-no-consent"),jQuery(this).find(".cff-header-hero").length&&jQuery(this).find(".cff-header-hero").find("img").attr("src",jQuery(this).find(".cff-header-hero").find("img").attr("data-cover-url")),jQuery(this).find(".cff-header-img").length&&jQuery(this).find(".cff-header-img").find("img").attr("src",jQuery(this).find(".cff-header-img").find("img").attr("data-avatar"))})}function afterConsentToggled(t,e){t&&addFullFeatures(e)}cff_init(),jQuery(document).ready(function(){var t=jQuery;t("#cookie-notice a").click(function(){setTimeout(function(){jQuery(".cff-wrapper").each(function(t){afterConsentToggled(checkConsent(jQuery(this)),jQuery(this))})},1e3)}),t("#cookie-law-info-bar a").click(function(){setTimeout(function(){jQuery(".cff-wrapper").each(function(t){afterConsentToggled(checkConsent(jQuery(this)),jQuery(this))})},1e3)}),t(".cli-user-preference-checkbox").click(function(){setTimeout(function(){jQuery(".cff-wrapper").each(function(t){afterConsentToggled(!1,jQuery(this))})},1e3)}),t(window).on("CookiebotOnAccept",function(t){jQuery(".cff-wrapper").each(function(t){afterConsentToggled(!0,jQuery(this))})}),t(document).on("cmplzAcceptAll",function(t){jQuery(".cff-wrapper").each(function(t){afterConsentToggled(!0,jQuery(this))})}),t(document).on("cmplzRevoke",function(t){jQuery(".cff-wrapper").each(function(t){afterConsentToggled(!1,jQuery(this))})}),t(document).on("borlabs-cookie-consent-saved",function(t){jQuery(".cff-wrapper").each(function(t){afterConsentToggled(!0,jQuery(this))})})})}
|
{js → assets/js}/jquery.matchHeight-min.js
RENAMED
File without changes
|
composer.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "smashballoon/custom-facebook-feed",
|
3 |
+
"autoload": {
|
4 |
+
"psr-4": {
|
5 |
+
"CustomFacebookFeed\\": "inc/"
|
6 |
+
}
|
7 |
+
}
|
8 |
+
}
|
css/cff-style.min.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.cff-wrapper:after{content:"";display:table;clear:both}#cff{float:left;width:100%;margin:0 auto;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#cff .cff-item{float:left;width:100%;clear:both;padding:20px 0 15px 0;margin:0;border-bottom:1px solid #ddd}#cff .cff-item:first-child{padding-top:0}#cff .cff-item.cff-box,#cff .cff-item.cff-box:first-child{padding:15px;margin:8px 0;background:rgba(255,255,255,.5);border:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#cff .cff-item.cff-box:first-child{margin-top:0}#cff .cff-item.cff-box:last-child{margin-bottom:0}#cff .cff-item.cff-shadow{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)}.cff-header{width:100%;margin:0 0 15px 0;padding:0;line-height:1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.cff-header .fa,.cff-header svg{margin:0 10px 0 0;padding:0}.cff-visual-header{margin-bottom:24px!important}.cff-visual-header .cff-header-hero{width:100%;height:300px;position:relative;overflow:hidden}.cff-visual-header .cff-header-hero img{width:100%;display:none}.cff-visual-header .cff-likes-box{position:absolute;bottom:10px;right:10px;padding:5px;background:#eee;line-height:1;border-radius:2px;color:#445790}.cff-visual-header .cff-likes-box .cff-square-logo{float:left;display:inline-block;line-height:0}.cff-visual-header .cff-likes-box .cff-square-logo svg{width:18px;vertical-align:top}.cff-visual-header .cff-likes-box .cff-likes-count{float:left;display:inline-block;margin-left:8px;vertical-align:top;font-size:15px;line-height:20px}.cff-visual-header .cff-header-inner-wrap{position:relative;display:block;text-decoration:none!important}.cff-visual-header .cff-header-inner-wrap a{color:inherit!important;border:0}.cff-visual-header .cff-header-img img{display:block;width:100px;border-radius:3px;padding:0;margin:0}.cff-visual-header.cff-has-cover .cff-header-img img{border:2px solid #fff}.cff-visual-header .cff-header-img{position:absolute;display:inline-block;line-height:1}.cff-visual-header.cff-has-cover .cff-header-img{top:-25px;left:10px}.cff-visual-header .cff-header-text{display:inline-block;float:left;margin:20px 0 0 120px}#cff .cff-visual-header .cff-header-text h3,.cff-visual-header .cff-header-text h3{display:inline-block;width:auto;margin:0 8px 0 0;padding:0;font-size:1.2em;line-height:1.2em}.cff-visual-header .cff-header-text{padding-top:10px;margin:0}.cff-visual-header.cff-has-name{min-height:100px}.cff-visual-header.cff-has-cover.cff-has-name .cff-header-text{min-height:75px}.cff-visual-header.cff-has-name .cff-header-text{margin-left:120px}.cff-visual-header.cff-has-cover.cff-has-name .cff-header-text{margin-left:125px}.cff-visual-header.cff-has-name .cff-header-text{padding-top:30px}.cff-visual-header.cff-has-name.cff-has-about .cff-header-text,.cff-visual-header.cff-has-name.cff-has-cover .cff-header-text{padding-top:10px}#cff .cff-visual-header .cff-header-inner-wrap .cff-bio,.cff-visual-header .cff-header-inner-wrap .cff-bio{display:block;width:100%;clear:both;margin:3px 0 0 0;padding:0;line-height:1.2em}.cff-visual-header .cff-header-name{float:left;padding:0 5px 2px 0}.cff-visual-header .cff-bio-info{font-size:.9em;line-height:1.7}.cff-visual-header .cff-bio-info svg{width:1em;vertical-align:middle;position:relative;top:-2px}.cff-posts-count svg{padding-right:3px}.cff-header-inner-wrap:after,.cff-header-text:after{display:table;clear:both;content:" "}#cff .cff-less{display:none}#cff.cff-default-styles a{text-decoration:none}#cff.cff-default-styles a:focus,#cff.cff-default-styles a:hover{text-decoration:underline}#cff .cff-post-text-link{display:block}#cff .cff-post-desc,#cff h3,#cff h4,#cff h5,#cff h6,#cff p{float:left;width:100%;clear:both;padding:0;margin:5px 0;white-space:pre;white-space:pre-wrap;white-space:pre-line;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:-moz-pre-wrap;white-space:-hp-pre-wrap;word-wrap:break-word}#cff.cff-default-styles .cff-post-desc,#cff.cff-default-styles h3,#cff.cff-default-styles h4,#cff.cff-default-styles h5,#cff.cff-default-styles h6,#cff.cff-default-styles p{line-height:1.4}#cff .cff-date{float:left;min-width:50px;width:auto}#cff.cff-default-styles .cff-date{font-size:11px}#cff .cff-author{float:left;clear:both;margin:0 0 15px 0;padding:0;line-height:1.2;width:100%}#cff .cff-author a{text-decoration:none;border:none}#cff .cff-author-img{float:left;width:40px;height:40px;margin:0 0 0 -100%!important;font-size:0;background:#eee;background:url(../img/cff-avatar.png) no-repeat;border-radius:50%}#cff .cff-author img{float:left;margin:0!important;padding:0!important;border:none!important;font-size:0;border-radius:50%}#cff .cff-author .cff-author-text span.cff-page-name{display:table-cell;vertical-align:middle;height:40px;margin:0;font-weight:700;padding-left:50px;float:none}#cff .cff-author .cff-story{font-weight:400}#cff.cff-default-styles .cff-author a{text-decoration:none}#cff .cff-author.cff-no-author-info .cff-date{margin-top:12px!important}#cff .cff-author.cff-no-author-info .cff-author-img{width:40px;height:40px;background:url(../img/cff-avatar.png) no-repeat}#cff .cff-author .cff-author-text{float:left;width:100%}#cff .cff-author .cff-date,#cff .cff-author .cff-page-name{float:left;clear:both;width:auto;margin:0 0 0 50px!important}#cff.cff-default-styles .cff-author .cff-author-text *{font-weight:700;line-height:1.2}#cff .cff-author .cff-date{color:#9197a3;font-size:11px;margin-top:0!important;margin-bottom:0!important}#cff.cff-default-styles .cff-author .cff-date{font-weight:400}#cff .cff-author .cff-page-name.cff-author-date{float:left;padding:2px 0 0 0;font-size:14px}#cff .cff-cta-link a,.cff-media-link .fa{display:inline-block;width:auto;padding:5px 7px 5px 6px;margin-right:6px;border:1px solid #eee;border:1px solid rgba(0,0,0,.1);border-radius:3px;background:rgba(0,0,0,.02)}#cff .cff-cta-link a:hover,.cff-media-link .fa:hover{background:#f9f9f9;background:rgba(0,0,0,.03);text-decoration:none}#cff .cff-cta-link a{padding:5px 15px}#cff .cff-break-word{word-break:break-all}#cff .cff-expand{display:none}#cff.cff-default-styles .cff-expand a{font-size:11px;font-weight:400}#cff .cff-shared-link{float:left;clear:both;width:100%;padding:5px 10px;margin:10px 0 5px 0;background:#f9f9f9;border:1px solid #d9d9d9;background:rgba(0,0,0,.02);border:1px solid rgba(0,0,0,.07);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#cff .cff-no-styles{background:0 0;border:none;padding:0}#cff .cff-link{float:left;clear:both;max-width:20%;margin:10px 0 0 0}#cff .cff-link img{max-width:100%}#cff .cff-link-title{float:left;clear:both;width:100%;display:block}#cff.cff-default-styles .cff-link-title{font-weight:700}#cff p.cff-link-title{margin:5px 0 0 0}#cff .cff-text-link{float:left;clear:none;width:72%;margin-left:3%;padding:0 0 5px 0}#cff .cff-link-caption{margin:0}#cff.cff-default-styles .cff-link-caption{font-size:12px}#cff .cff-text-link.cff-no-image{width:100%;margin-left:0}#cff .cff-post-desc{margin:5px 0 0 0}#cff .cff-details{float:left;clear:none;width:100%;margin:0;padding:0}#cff .cff-details h5{margin:0 0 5px 0}#cff.cff-default-styles .cff-details h5{padding:0;font-size:16px}#cff.cff-default-styles .cff-details p{font-size:14px}#cff .cff-timeline-event .cff-date,#cff .cff-timeline-event .cff-info,#cff .cff-timeline-event .cff-timeline-event-title,#cff .cff-timeline-event .cff-where{display:block;width:100%;clear:both}#cff .cff-details .cff-info{padding:10px 0 0 0}#cff.cff-default-styles .cff-details .cff-info{line-height:1.2}#cff .cff-desc-wrap{float:left;width:100%}#cff .cff-note-title{display:block;font-weight:700;padding-bottom:5px}#cff .cff-post-links{float:left;clear:none;padding:5px 0 0 0;margin:0}#cff.cff-default-styles .cff-post-links{font-size:11px}#cff .cff-post-links.cff-left{float:left;margin:8px 0}#cff.cff-default-styles .cff-post-links a{font-size:11px}#cff .cff-post-links a:first-child{padding-left:0;margin:0}#cff .cff-dot{padding:0 5px}#cff .cff-share-container{position:relative;display:inline}#cff .cff-share-tooltip{display:none;position:absolute;z-index:1000;bottom:22px;right:-40px;width:110px;padding:5px 5px 4px 5px;margin:0;background:#333;color:#eee;font-size:12px;line-height:1.3;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#cff .cff-share-tooltip .fa-play{position:absolute;font-size:8px;bottom:-6px;left:50%;margin-left:-3px;color:#333}#cff .cff-share-tooltip a .fa,#cff .cff-share-tooltip a svg{font-size:16px;margin:0;padding:5px}#cff .cff-share-tooltip a{display:block;float:left;margin:0!important;padding:0!important;color:#eee!important;opacity:0;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}#cff .cff-share-tooltip a:hover{color:#fff!important}#cff .cff-share-tooltip .cff-facebook-icon:hover{background:#3b5998}#cff .cff-share-tooltip .cff-twitter-icon:hover{background:#00aced}#cff .cff-share-tooltip .cff-google-icon:hover{background:#dd4b39}#cff .cff-share-tooltip .cff-linkedin-icon:hover{background:#007bb6}#cff .cff-share-tooltip .cff-pinterest-icon:hover{background:#cb2027}#cff .cff-share-tooltip .cff-email-icon:hover{background:#dd4b39}#cff .cff-share-tooltip a.cff-show{opacity:1;transition:opacity .2s ease}.cff-likebox{float:left;width:100%;position:relative;margin:20px 0 0 0}.cff-likebox .fb_iframe_widget{width:100%}.cff-likebox .fb_iframe_widget span{width:100%!important}.cff-likebox .fb_iframe_widget iframe{margin:0;position:relative;top:0;left:0;width:100%!important;height:100%}.cff-likebox.cff-top.cff-outside{margin-bottom:10px}.cff-likebox.cff-bottom.cff-outside{margin-top:10px}#cff.cff-fixed-height{overflow:hidden;overflow-y:auto;padding:5px 10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#cff .cff-error-msg{display:none;position:relative;font-size:12px;font-family:sans-serif;padding:8px 12px;border:1px solid #ddd;margin-bottom:10px;clear:both;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px}#cff .cff-error-msg p{float:none}#cff #cff-error-reason{display:none;padding:5px 0 0 0;clear:both}#cff.cff-default-styles .cff-credit{font-size:11px}#cff.cff-default-styles .cff-credit a{text-decoration:none}#cff .cff-credit img{float:left;margin:-2px 5px 0 0}#cff .cff-credit .fa{padding-right:5px;font-size:13px}.cff-screenreader{text-indent:-9999px!important;display:block!important;width:0!important;height:0!important;line-height:0!important}@media all and (max-width:640px){#cff.cff-width-resp{width:100%!important}}#cff .cff-comment .cff-comment-text img,#cff img.emoji,#cff-lightbox-wrapper .cff-comment .cff-comment-text img,#cff-lightbox-wrapper img.emoji{float:none;max-width:100%}#cff .cff-linebreak{display:block;height:5px}#cff.cff-masonry .cff-item.cff-box{margin-left:1.5%;margin-right:1.5%}#cff.cff-masonry{box-sizing:border-box}#cff.cff-masonry .cff-item,#cff.cff-masonry .cff-item:first-child{padding-top:20px;margin-top:0}#cff.cff-masonry .cff-item,#cff.cff-masonry .cff-likebox{float:none;display:inline-block;width:30.3%;margin:0 1.5%;margin-bottom:20px}#cff.cff-masonry.cff-opaque-comments .cff-item{z-index:1}#cff.cff-masonry.masonry-2-desktop .cff-item{width:47%;margin:0 1.5%}#cff.cff-masonry.masonry-4-desktop .cff-item{width:22%;margin:0 1.5%}#cff.cff-masonry.masonry-5-desktop .cff-item{width:17%;margin:0 1.5%}#cff.cff-masonry.masonry-6-desktop .cff-item{width:13.516%;margin:0 1.5%}#cff.cff-masonry .cff-comments-box{position:relative;z-index:999}#cff.cff-masonry .cff-comment-attachment,#cff.cff-masonry .cff-comment-replies-box{max-width:100%}#cff.cff-masonry .cff-load-more{display:block;float:left;clear:both}@media (max-width:780px){#cff.cff-masonry .cff-item,#cff.cff-masonry .cff-likebox,#cff.cff-masonry.masonry-2-desktop .cff-item,#cff.cff-masonry.masonry-4-desktop .cff-item,#cff.cff-masonry.masonry-5-desktop .cff-item,#cff.cff-masonry.masonry-6-desktop .cff-item{width:100%;margin:0}#cff.cff-masonry.masonry-2-mobile .cff-item{width:47%;margin-left:1.5%;margin-right:1.5%}}#cff.cff-masonry.cff-masonry-css{width:100%;overflow:hidden;margin-bottom:20px}#cff.cff-masonry.cff-masonry-css{-webkit-column-gap:20px;-moz-column-gap:20px;column-gap:20px;-webkit-column-fill:auto;column-fill:unset;-webkit-column-count:3;-moz-column-count:3;column-count:3;margin:0}#cff.cff-masonry.cff-masonry-css.masonry-2-desktop{-webkit-column-count:2;-moz-column-count:2;column-count:2;margin:0}#cff.cff-masonry.cff-masonry-css.masonry-4-desktop{-webkit-column-count:4;-moz-column-count:4;column-count:4;margin:0}#cff.cff-masonry.cff-masonry-css.masonry-5-desktop{-webkit-column-count:5;-moz-column-count:5;column-count:5;margin:0}#cff.cff-masonry.cff-masonry-css.masonry-6-desktop{-webkit-column-count:6;-moz-column-count:6;column-count:6;margin:0}#cff.cff-masonry.cff-masonry-css .cff-item,#cff.cff-masonry.cff-masonry-css .cff-likebox,#cff.cff-masonry.cff-masonry-css.masonry-2-desktop .cff-item,#cff.cff-masonry.cff-masonry-css.masonry-4-desktop .cff-item,#cff.cff-masonry.cff-masonry-css.masonry-5-desktop .cff-item,#cff.cff-masonry.cff-masonry-css.masonry-6-desktop .cff-item{float:none;display:inline-block;width:100%;margin:0 0 12px 0}#cff.cff-masonry.cff-masonry-css .cff-likebox{width:99.5%}#cff.cff-masonry.cff-masonry-css .cff-load-more{margin:0 0 10px 0;position:relative;bottom:0}@media only screen and (max-width:780px){#cff.cff-masonry.cff-masonry-css,#cff.cff-masonry.cff-masonry-css.masonry-2-desktop,#cff.cff-masonry.cff-masonry-css.masonry-4-desktop,#cff.cff-masonry.cff-masonry-css.masonry-5-desktop,#cff.cff-masonry.cff-masonry-css.masonry-6-desktop{-webkit-column-count:1;-moz-column-count:1;column-count:1}#cff.cff-masonry.cff-masonry-css.masonry-2-mobile{-webkit-column-count:2;-moz-column-count:2;column-count:2;margin:0}#cff.cff-masonry.cff-masonry-css.masonry-2-mobile,#cff.cff-masonry.cff-masonry-css.masonry-2-mobile .cff-item{width:100%}}#cff.cff-disable-masonry{height:auto!important}#cff.cff-disable-masonry .cff-item,#cff.cff-disable-masonry .cff-likebox{position:relative!important;top:auto!important}.cff-num-diff-hide{display:none!important}
|
|
custom-facebook-feed-admin.php
DELETED
@@ -1,5432 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
3 |
-
|
4 |
-
function cff_menu() {
|
5 |
-
global $cff_error_reporter;
|
6 |
-
$notice = '';
|
7 |
-
if ( $cff_error_reporter->are_critical_errors() ) {
|
8 |
-
$notice = ' <span class="update-plugins cff-error-alert"><span>!</span></span>';
|
9 |
-
}
|
10 |
-
$cap = current_user_can( 'manage_custom_facebook_feed_options' ) ? 'manage_custom_facebook_feed_options' : 'manage_options';
|
11 |
-
$cap = apply_filters( 'cff_settings_pages_capability', $cap );
|
12 |
-
add_menu_page(
|
13 |
-
'',
|
14 |
-
'Facebook Feed'. $notice,
|
15 |
-
$cap,
|
16 |
-
'cff-top',
|
17 |
-
'cff_settings_page'
|
18 |
-
);
|
19 |
-
add_submenu_page(
|
20 |
-
'cff-top',
|
21 |
-
'Settings',
|
22 |
-
'Settings'. $notice,
|
23 |
-
$cap,
|
24 |
-
'cff-top',
|
25 |
-
'cff_settings_page'
|
26 |
-
);
|
27 |
-
add_submenu_page(
|
28 |
-
'cff-top',
|
29 |
-
'Customize',
|
30 |
-
'Customize',
|
31 |
-
$cap,
|
32 |
-
'cff-style',
|
33 |
-
'cff_style_page'
|
34 |
-
);
|
35 |
-
add_submenu_page(
|
36 |
-
'cff-top',
|
37 |
-
__( 'About Us', 'custom-facebook-feed' ),
|
38 |
-
__( 'About Us', 'custom-facebook-feed' ),
|
39 |
-
$cap,
|
40 |
-
'cff-about',
|
41 |
-
'cff_about_page'
|
42 |
-
);
|
43 |
-
|
44 |
-
add_submenu_page(
|
45 |
-
'cff-top',
|
46 |
-
__( 'oEmbeds', 'custom-facebook-feed' ),
|
47 |
-
'<svg style="height: 14px; margin: 0 8px 0 0; position: relative; top: 2px;" aria-hidden="true" focusable="false" data-prefix="far" data-icon="code" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="svg-inline--fa fa-code fa-w-18 fa-2x"><path fill="currentColor" d="M234.8 511.7L196 500.4c-4.2-1.2-6.7-5.7-5.5-9.9L331.3 5.8c1.2-4.2 5.7-6.7 9.9-5.5L380 11.6c4.2 1.2 6.7 5.7 5.5 9.9L244.7 506.2c-1.2 4.3-5.6 6.7-9.9 5.5zm-83.2-121.1l27.2-29c3.1-3.3 2.8-8.5-.5-11.5L72.2 256l106.1-94.1c3.4-3 3.6-8.2.5-11.5l-27.2-29c-3-3.2-8.1-3.4-11.3-.4L2.5 250.2c-3.4 3.2-3.4 8.5 0 11.7L140.3 391c3.2 3 8.2 2.8 11.3-.4zm284.1.4l137.7-129.1c3.4-3.2 3.4-8.5 0-11.7L435.7 121c-3.2-3-8.3-2.9-11.3.4l-27.2 29c-3.1 3.3-2.8 8.5.5 11.5L503.8 256l-106.1 94.1c-3.4 3-3.6 8.2-.5 11.5l27.2 29c3.1 3.2 8.1 3.4 11.3.4z" class=""></path></svg>' . __( 'oEmbeds', 'custom-facebook-feed' ),
|
48 |
-
$cap,
|
49 |
-
'cff-oembeds',
|
50 |
-
'cff_oembeds_page'
|
51 |
-
);
|
52 |
-
|
53 |
-
//Show a Instagram plugin menu item if it isn't already installed
|
54 |
-
if( !is_plugin_active( 'instagram-feed/instagram-feed.php' ) && !is_plugin_active( 'instagram-feed-pro/instagram-feed.php' ) ){
|
55 |
-
add_submenu_page(
|
56 |
-
'cff-top',
|
57 |
-
__( 'Instagram Feed', 'custom-facebook-feed' ),
|
58 |
-
'<span class="cff_get_sbi"><svg style="height: 14px; margin: 0 8px 0 0; position: relative; top: 2px;" aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-instagram fa-w-14 fa-2x"><path fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z" class=""></path></svg>' . __( 'Instagram Feed', 'custom-facebook-feed' ) . '</span>',
|
59 |
-
$cap,
|
60 |
-
'admin.php?page=cff-top&tab=more',
|
61 |
-
''
|
62 |
-
);
|
63 |
-
}
|
64 |
-
|
65 |
-
//Show a Twitter plugin menu item if it isn't already installed
|
66 |
-
if( !is_plugin_active( 'custom-twitter-feeds/custom-twitter-feed.php' ) && !is_plugin_active( 'custom-twitter-feeds-pro/custom-twitter-feed.php' ) ){
|
67 |
-
add_submenu_page(
|
68 |
-
'cff-top',
|
69 |
-
__( 'Twitter Feed', 'custom-facebook-feed' ),
|
70 |
-
'<span class="cff_get_ctf"><svg style="height: 14px; margin: 0 8px 0 0; position: relative; top: 2px;" aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-twitter fa-w-16 fa-2x"><path fill="currentColor" d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z" class=""></path></svg>' . __( 'Twitter Feed', 'custom-facebook-feed' ) . '</span>',
|
71 |
-
$cap,
|
72 |
-
'admin.php?page=cff-top&tab=more',
|
73 |
-
''
|
74 |
-
);
|
75 |
-
}
|
76 |
-
|
77 |
-
//Show a YouTube plugin menu item if it isn't already installed
|
78 |
-
if( !is_plugin_active( 'feeds-for-youtube/youtube-feed.php' ) && !is_plugin_active( 'youtube-feed-pro/youtube-feed.php' ) ){
|
79 |
-
add_submenu_page(
|
80 |
-
'cff-top',
|
81 |
-
__( 'YouTube Feed', 'custom-facebook-feed' ),
|
82 |
-
'<span class="cff_get_yt"><svg style="height: 14px; margin: 0 8px 0 0; position: relative; top: 2px;" aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="svg-inline--fa fa-youtube fa-w-18 fa-2x"><path fill="currentColor" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z" class=""></path></svg>' . __( 'YouTube Feed', 'custom-facebook-feed' ) . '</span>',
|
83 |
-
$cap,
|
84 |
-
'admin.php?page=cff-top&tab=more',
|
85 |
-
''
|
86 |
-
);
|
87 |
-
}
|
88 |
-
|
89 |
-
add_submenu_page(
|
90 |
-
'cff-top',
|
91 |
-
__( 'Social Wall', 'custom-facebook-feed' ),
|
92 |
-
'<span><svg style="height: 14px; margin: 0 8px 0 0; position: relative; top: 2px;" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="th" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-th fa-w-16 fa-2x"><path fill="currentColor" d="M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z" class=""></path></svg>' . __( 'Social Wall', 'custom-facebook-feed' ) . '</span>',
|
93 |
-
$cap,
|
94 |
-
'cff-sw',
|
95 |
-
'cff_social_wall_page'
|
96 |
-
);
|
97 |
-
|
98 |
-
}
|
99 |
-
add_action('admin_menu', 'cff_menu');
|
100 |
-
|
101 |
-
function cff_about_page() {
|
102 |
-
do_action('cff_admin_page' );
|
103 |
-
}
|
104 |
-
|
105 |
-
function cff_oembeds_page() {
|
106 |
-
( is_plugin_active( 'social-wall/social-wall.php' ) ) ? $cff_sw_active = true : $cff_sw_active = false;
|
107 |
-
|
108 |
-
?>
|
109 |
-
|
110 |
-
<div id="cff-admin" class="wrap cff-oembeds">
|
111 |
-
<?php
|
112 |
-
$lite_notice_dismissed = get_transient( 'facebook_feed_dismiss_lite' );
|
113 |
-
|
114 |
-
if ( ! $lite_notice_dismissed ) :
|
115 |
-
?>
|
116 |
-
<div id="cff-notice-bar" style="display:none">
|
117 |
-
<span class="cff-notice-bar-message"><?php _e( 'You\'re using Custom Facebook Feed Lite. To unlock more features consider <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=notices&utm_medium=lite" target="_blank" rel="noopener noreferrer">upgrading to Pro</a>.', 'custom-facebook-feed'); ?></span>
|
118 |
-
<button type="button" class="dismiss" title="<?php _e( 'Dismiss this message.', 'custom-facebook-feed'); ?>" data-page="overview">
|
119 |
-
</button>
|
120 |
-
</div>
|
121 |
-
<?php endif; ?>
|
122 |
-
|
123 |
-
<div id="header">
|
124 |
-
<h1><?php _e('Facebook oEmbeds', 'custom-facebook-feed'); ?></h1>
|
125 |
-
</div>
|
126 |
-
|
127 |
-
<p>
|
128 |
-
<?php
|
129 |
-
_e( "You can use the Custom Facebook Feed plugin to power your Facebook oEmbeds, both old and new.", "custom-facebook-feed" );
|
130 |
-
if ( ! CFF_Oembed::can_do_oembed() ) {
|
131 |
-
echo ' ';
|
132 |
-
_e( "Just click the button below and we'll do the rest.", "custom-facebook-feed" );
|
133 |
-
}
|
134 |
-
?>
|
135 |
-
</p>
|
136 |
-
|
137 |
-
<div class="cff-oembed-button">
|
138 |
-
|
139 |
-
<?php
|
140 |
-
//delete_option('cff_oembed_token');
|
141 |
-
$admin_url_state = admin_url('admin.php?page=cff-oembeds');
|
142 |
-
//If the admin_url isn't returned correctly then use a fallback
|
143 |
-
if( $admin_url_state == '/wp-admin/admin.php?page=cff-oembeds' ){
|
144 |
-
$admin_url_state = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
|
145 |
-
}
|
146 |
-
|
147 |
-
$oembed_token_settings = get_option( 'cff_oembed_token', array() );
|
148 |
-
$saved_access_token_data = isset( $oembed_token_settings['access_token'] ) ? $oembed_token_settings['access_token'] : false;
|
149 |
-
|
150 |
-
$access_token_error = false;
|
151 |
-
$valid_new_access_token = false;
|
152 |
-
$show_token_expiration_modal = false;
|
153 |
-
if ( ! empty( $_GET['access_token'] ) && strlen( $_GET['access_token'] ) <= 20 ) {
|
154 |
-
$access_token_error = true;
|
155 |
-
} elseif ( ! empty( $_GET['transfer'] ) ) {
|
156 |
-
if ( class_exists( 'SB_Instagram_Oembed' ) ) {
|
157 |
-
$sbi_oembed_token = SB_Instagram_Oembed::last_access_token();
|
158 |
-
$valid_new_access_token = $sbi_oembed_token;
|
159 |
-
}
|
160 |
-
} else {
|
161 |
-
$valid_new_access_token = ! empty( $_GET['access_token'] ) && strlen( $_GET['access_token'] ) > 20 && $saved_access_token_data !== $_GET['access_token'] ? sanitize_text_field( $_GET['access_token'] ) : false;
|
162 |
-
if ( $valid_new_access_token && ! empty( $_GET['access_token'] ) ) {
|
163 |
-
$url = esc_url_raw( 'https://graph.facebook.com/me/accounts?limit=500&access_token=' . $valid_new_access_token );
|
164 |
-
$pages_data_connection = wp_remote_get( $url );
|
165 |
-
|
166 |
-
if ( ! is_wp_error( $pages_data_connection ) && isset( $pages_data_connection['body'] ) ) {
|
167 |
-
$pages_data = json_decode( $pages_data_connection['body'], true );
|
168 |
-
if ( isset( $pages_data['data'][0]['access_token'] ) ) {
|
169 |
-
$oembed_token_settings['expiration_date'] = 'never';
|
170 |
-
} else {
|
171 |
-
$oembed_token_settings['expiration_date'] = time() + (60 * DAY_IN_SECONDS);
|
172 |
-
$show_token_expiration_modal = true;
|
173 |
-
}
|
174 |
-
} else {
|
175 |
-
$oembed_token_settings['expiration_date'] = 'unknown';
|
176 |
-
}
|
177 |
-
}
|
178 |
-
}
|
179 |
-
|
180 |
-
?>
|
181 |
-
|
182 |
-
<?php if ( ! $saved_access_token_data && ! $valid_new_access_token && ! CFF_Oembed::can_do_oembed() ) {
|
183 |
-
if ( $access_token_error ) { ?>
|
184 |
-
<p><?php _e("There was a problem with the access token that was retrieved.", "custom-facebook-feed"); ?></p>
|
185 |
-
<?php }
|
186 |
-
$token_href = 'https://api.smashballoon.com/facebook-login.php?state=' . $admin_url_state;
|
187 |
-
if ( class_exists( 'SB_Instagram_Oembed' ) ) {
|
188 |
-
$sbi_oembed_token = SB_Instagram_Oembed::last_access_token();
|
189 |
-
|
190 |
-
if ( ! empty( $sbi_oembed_token ) ) {
|
191 |
-
$token_href = add_query_arg( 'transfer', '1', $admin_url_state );
|
192 |
-
}
|
193 |
-
}
|
194 |
-
|
195 |
-
?>
|
196 |
-
<a href="<?php echo esc_url( $token_href ); ?>" class="cff_admin_btn" id="cff_fb_login"><i class="fa fa-facebook-square"></i> <?php _e( 'Connect to Facebook and Enable oEmbeds', 'custom-facebook-feed' ); ?></a>
|
197 |
-
|
198 |
-
<div class="cff-oembed-promo cff-oembed-desc">
|
199 |
-
<div class="cff-col">
|
200 |
-
<h2><?php _e("What are oEmbeds?", "custom-facebook-feed"); ?></h2>
|
201 |
-
<p><?php _e("Anytime you share a link to a Facebook post or video in WordPress, it is automatically converted into an embedded version of that Facebook post (an \"oEmbed\").</p><p>WordPress is discontinuing support for Facebook oEmbeds due to them now requiring an Access Token to work. Don't worry though, we have your back. Just use the button above to connect to Facebook and we'll make sure your Facebook oEmbeds keep working.", "custom-facebook-feed"); ?></p>
|
202 |
-
</div>
|
203 |
-
|
204 |
-
<img src="<?php echo CFF_PLUGIN_URL . 'img/cff-oembed.png'; ?>" style="padding: 0px; background: white;">
|
205 |
-
</div>
|
206 |
-
|
207 |
-
<?php } else {
|
208 |
-
if ( $valid_new_access_token ) {
|
209 |
-
$oembed_token_settings['access_token'] = $valid_new_access_token;
|
210 |
-
$oembed_token_settings['disabled'] = false;
|
211 |
-
update_option( 'cff_oembed_token', $oembed_token_settings );
|
212 |
-
?>
|
213 |
-
<div><p class="cff-success"><strong><?php _e("You're all set!", "custom-facebook-feed"); ?></strong> <?php _e("You're all set! Custom Facebook Feed is now powering all of your existing Facebook oEmbeds and also any new ones you create.", "custom-facebook-feed"); ?> <a href="javascript:void(0);" id="cff-oembed-disable"><?php _e("Disable", "custom-facebook-feed"); ?></a></p></div>
|
214 |
-
|
215 |
-
<?php if ( $show_token_expiration_modal ) : ?>
|
216 |
-
<div id="cff_fb_login_modal" class="cff_modal_tokens cffnomodal">
|
217 |
-
<div class="cff_modal_box">
|
218 |
-
<p><strong><?php _e( 'Heads up!', 'custom-facebook-feed' ); ?></strong><br></p>
|
219 |
-
|
220 |
-
<p>
|
221 |
-
<?php _e( 'Your access token will expire in 60 days. Facebook requires that users have a role on a Facebook page in order to create access tokens that don\'t expire. Click the button below for instructions on creating a Facebook page and extending your access token to never expire.', 'custom-facebook-feed' ); ?>
|
222 |
-
</p>
|
223 |
-
<p style="text-align: center;">
|
224 |
-
<a style="display: inline-block; float: none; margin-bottom: 0;" href="https://smashballoon.com/doc/how-to-prevent-your-oembed-access-token-from-expiring/?facebook" class="cff_admin_btn" target="blank" rel="noopener"><?php _e( 'How to Create a Facebook Page', 'custom-facebook-feed' ); ?></a>
|
225 |
-
<a href="https://api.smashballoon.com/facebook-login.php?state=<?php echo $admin_url_state; ?>" class="button button-secondary" style="height: 47px;line-height: 47px;font-size: 14px;padding: 0 21px;"><?php _e( 'Try Again', 'custom-facebook-feed' ); ?></a>
|
226 |
-
</p>
|
227 |
-
|
228 |
-
<a href="JavaScript:void(0);" class="cff-modal-close"><i class="fa fa-times"></i></a>
|
229 |
-
</div>
|
230 |
-
</div>
|
231 |
-
<?php endif; ?>
|
232 |
-
<?php } else {
|
233 |
-
if ( ! isset( $oembed_token_settings['expiration_date'] ) || (int)$oembed_token_settings['expiration_date'] === 0 || $oembed_token_settings['expiration_date'] > time() ) :
|
234 |
-
?>
|
235 |
-
<div><p class="cff-success"><?php _e("The Custom Facebook Feed plugin is now powering your Facebook oEmbeds.", "custom-facebook-feed"); ?> <a href="javascript:void(0);" id="cff-oembed-disable"><?php _e("Disable", "custom-facebook-feed"); ?></a></p></div>
|
236 |
-
<?php
|
237 |
-
endif;
|
238 |
-
if ( ! empty( $oembed_token_settings['expiration_date'] )
|
239 |
-
&& $oembed_token_settings['expiration_date'] !== 'never' ) :
|
240 |
-
$link_1 = '<a href="https://smashballoon.com/doc/how-to-prevent-your-oembed-access-token-from-expiring/?facebook" target="blank" rel="noopener">';
|
241 |
-
$link_2 = '</a>';
|
242 |
-
$class = 'cff-warning';
|
243 |
-
if ( $oembed_token_settings['expiration_date'] > time() ) {
|
244 |
-
$days_to_expire = floor( ( $oembed_token_settings['expiration_date'] - time() ) / DAY_IN_SECONDS );
|
245 |
-
$message = sprintf( __( '%1sImportant:%2s Your access token for powering oEmbeds will expire in %3s days.', 'custom-facebook-feed' ), '<strong>', '</strong>', $days_to_expire );
|
246 |
-
} else {
|
247 |
-
$class = 'cff-profile-error';
|
248 |
-
$message = __( 'Your access token for powering oEmbeds has expired.', 'custom-facebook-feed' );
|
249 |
-
}
|
250 |
-
?>
|
251 |
-
<div class="<?php echo $class; ?>" style="display:inline-block;width: auto;">
|
252 |
-
<p>
|
253 |
-
<?php echo $message ; ?>
|
254 |
-
</p>
|
255 |
-
<p>
|
256 |
-
<?php echo sprintf( __( 'Facebook requires that users have a role on a Facebook page in order to create access tokens that don\'t expire. Visit %1sthis link%2s for instructions on extending your access token to never expire.', 'custom-facebook-feed' ), $link_1, $link_2 ); ?>
|
257 |
-
</p>
|
258 |
-
<p>
|
259 |
-
<a href="https://api.smashballoon.com/facebook-login.php?state=<?php echo $admin_url_state; ?>" class="cff_admin_btn" id="cff_fb_login"><i class="fa fa-facebook-square"></i> <?php _e( 'Connect to Facebook and Recheck Access Token', 'custom-facebook-feed' ); ?></a>
|
260 |
-
</p>
|
261 |
-
</div>
|
262 |
-
|
263 |
-
<?php endif; ?>
|
264 |
-
|
265 |
-
<?php } ?>
|
266 |
-
|
267 |
-
<div class="cff-oembed-promo">
|
268 |
-
<h2><?php _e("Did you know, the Custom Facebook Feed plugin can also automatically display your Facebook updates on your website?", "custom-facebook-feed"); ?></h2>
|
269 |
-
<div class="cff-reasons">
|
270 |
-
<div><svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="clock" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-clock fa-w-16 fa-2x"><path fill="currentColor" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z" class=""></path></svg><span><?php _e("Save time", "custom-facebook-feed"); ?></span></div>
|
271 |
-
<div><svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="chart-line" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-chart-line fa-w-16 fa-2x"><path fill="currentColor" d="M117.65 277.65c6.25 6.25 16.38 6.25 22.63 0L192 225.94l84.69 84.69c6.25 6.25 16.38 6.25 22.63 0L409.54 200.4l29.49 29.5c15.12 15.12 40.97 4.41 40.97-16.97V112c0-8.84-7.16-16-16-16H363.07c-21.38 0-32.09 25.85-16.97 40.97l29.5 29.49-87.6 87.6-84.69-84.69c-6.25-6.25-16.38-6.25-22.63 0l-74.34 74.34c-6.25 6.25-6.25 16.38 0 22.63l11.31 11.31zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z" class=""></path></svg><span><?php _e("Increase social engagement", "custom-facebook-feed"); ?></span></div>
|
272 |
-
<div><svg style="width: 16px; height: 16px;" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="search" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-search fa-w-16 fa-2x"><path fill="currentColor" d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" class=""></path></svg><span><?php _e("Add dynamic SEO content to your site.", "custom-facebook-feed"); ?></span></div>
|
273 |
-
</div>
|
274 |
-
<p>
|
275 |
-
<?php $check_svg = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-check fa-w-16 fa-2x"><path fill="currentColor" d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" class=""></path></svg>'; ?>
|
276 |
-
<?php echo $check_svg; ?><span><?php _e("Super simple to set up", "custom-facebook-feed"); ?></span>
|
277 |
-
<?php echo $check_svg; ?><span><?php _e("Works for Facebook pages or groups", "custom-facebook-feed"); ?></span>
|
278 |
-
<?php echo $check_svg; ?><span><?php _e("Lightning fast", "custom-facebook-feed"); ?></span>
|
279 |
-
<?php echo $check_svg; ?><span><?php _e("Completely customizable", "custom-facebook-feed"); ?></span>
|
280 |
-
</p>
|
281 |
-
<a href="?page=cff-top" class="button button-primary"><?php _e("Add a Facebook feed now", "custom-facebook-feed"); ?></a>
|
282 |
-
</div>
|
283 |
-
<?php } ?>
|
284 |
-
|
285 |
-
</div>
|
286 |
-
</div>
|
287 |
-
<?php }
|
288 |
-
|
289 |
-
function cff_social_wall_page() {
|
290 |
-
|
291 |
-
( is_plugin_active( 'social-wall/social-wall.php' ) ) ? $cff_sw_active = true : $cff_sw_active = false;
|
292 |
-
|
293 |
-
?>
|
294 |
-
|
295 |
-
<div id="cff-admin" class="wrap sw-landing-page">
|
296 |
-
|
297 |
-
<?php $plus_svg = '<span class="cff-sb-plus"><svg aria-hidden="true" focusable="false" data-prefix="fal" data-icon="plus" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-plus fa-w-12 fa-2x"><path fill="currentColor" d="M376 232H216V72c0-4.42-3.58-8-8-8h-32c-4.42 0-8 3.58-8 8v160H8c-4.42 0-8 3.58-8 8v32c0 4.42 3.58 8 8 8h160v160c0 4.42 3.58 8 8 8h32c4.42 0 8-3.58 8-8V280h160c4.42 0 8-3.58 8-8v-32c0-4.42-3.58-8-8-8z" class=""></path></svg></span>'; ?>
|
298 |
-
|
299 |
-
<div class="cff-sw-icons">
|
300 |
-
|
301 |
-
<span style="display: inline-block; padding: 0 0 12px 0; width: 360px; max-width: 100%;">
|
302 |
-
<svg viewBox="0 0 9161 1878" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2">
|
303 |
-
<path d="M671.51192 492.98498c-131.56765-59.12206-268.60859-147.41608-396.53319-188.5154 45.4516 108.39585 83.81326 223.88002 123.5099 338.03081-79.17849 59.49897-171.6647 105.68858-260.02357 156.01204C213.65642 872.8361 320.1446 915.85885 404.9893 980.52836c-67.96118 83.8619-201.48512 171.0179-234.02089 247.0198 140.6921-17.62678 304.63665-46.21028 435.53762-52.00414 28.76425 144.58318 43.59867 303.0974 84.5075 435.5368 60.92028-175.2656 116.0013-356.3729 188.5158-520.0447 111.90636 46.28566 248.28994 102.72599 357.52876 130.01178-76.6463-107.53462-146.59336-221.76932-214.51645-338.02878 100.51155-72.83872 202.17166-144.52441 299.02516-221.02077-136.89504-12.61227-278.73407-20.28825-422.53587-25.99863-22.85286-148.332-16.84825-325.5158-52.00496-461.53949-53.19323 111.48812-115.96685 213.3914-175.51405 318.52475m65.00509 1228.60643c-18.07949 77.37581 41.48757 109.11319 32.50294 156.01204-58.81404-20.26799-103.0575-30.6796-182.01552-19.50201 2.47017-60.37032 56.76657-68.90954 45.50428-143.0107-841.40803-95.6632-843.09804-1616.06909-6.50107-1709.64388C1672.04777-111.55711 1704.8713 1694.70523 736.517 1721.5914" fill="#e34f0e"/>
|
304 |
-
<path d="M847.02597 174.46023c35.15671 136.0237 29.1521 313.20749 52.00455 461.53544 143.80221 5.71443 285.63962 13.38636 422.53628 26.00268-96.8531 76.49636-198.51483 148.18205-299.02556 221.01874 67.92349 116.2623 137.87014 230.49416 214.51847 338.03-109.24085-27.2866-245.62443-83.72572-357.5308-130.0126-72.51448 163.67262-127.5955 344.77992-188.51538 520.04553-40.90924-132.4394-55.74325-290.95364-84.5079-435.53681-130.90057 5.79548-294.84472 34.37736-435.53722 52.00415 32.53577-76.0007 166.0589-163.15589 234.02008-247.02021-84.8451-64.67032-191.33207-107.69066-266.52343-182.01472 88.35886-50.32346 180.84346-96.51307 260.02276-156.01609-39.69705-114.14674-78.05668-229.63091-123.50868-338.02675C402.9013 345.5689 539.94427 433.86292 671.51192 492.98498c59.5468-105.13335 122.32082-207.03663 175.51405-318.52475" fill="#fff"/>
|
305 |
-
<path d="M1782.27033 1236.51938c41.18267 21.61921 126.79927 44.31938 214.58338 44.31938 213.49962 0 311.03752-107.01507 311.03752-232.40646 0-101.61027-58.52274-171.87269-189.65702-220.5159-92.11913-33.50977-131.13429-48.6432-131.13429-85.39586 0-32.4288 32.51263-54.04801 92.11913-54.04801 72.61154 0 126.79927 20.53824 158.22814 34.59073l41.18267-155.65828c-47.6852-21.6192-110.54295-37.83361-197.2433-37.83361-184.23826 0-293.69746 99.44834-293.69746 228.08262 0 108.09602 82.36534 176.19652 205.91335 219.43493 82.36533 28.10497 114.87797 48.64321 114.87797 84.3149 0 36.75265-32.51264 59.45282-99.70541 59.45282-73.6953 0-145.2231-22.70017-189.65703-45.40034l-36.84765 161.06308zM3019.37602 1270.02915h189.65702l-36.84765-728.56722h-256.8498l-55.27148 194.57285c-21.67508 76.74818-45.51768 179.4394-66.10902 268.07815h-3.25126c-15.17256-88.63875-36.84765-185.92517-57.43898-266.99719l-47.6852-195.6538h-263.35233l-45.51768 728.56721h179.90323l11.9213-260.51142c3.25127-83.23394 6.50253-191.32997 10.83755-294.0212h2.1675c17.34008 99.44835 39.01517 207.54438 58.52274 286.45448l60.69025 252.9447h152.80938l72.61154-254.02566c23.8426-79.99106 54.18773-189.16805 76.94657-285.37352h3.25126c0 113.50083 1.08376 210.78726 4.33502 294.0212l8.67004 260.51142zM3699.9738 1101.39935l46.60144 168.6298h211.33211l-217.83464-728.56722H3478.8879l-211.33211 728.56722h202.66208l41.18267-168.6298h188.57327zm-162.56317-143.76772l31.42888-130.79619c9.7538-41.07649 20.59134-101.61026 31.42888-143.76771h2.1675c11.9213 42.15745 26.01012 102.69122 36.84766 143.76771l33.59639 130.7962h-135.4693zM4016.4301 1236.51938c41.18266 21.61921 126.79926 44.31938 214.58337 44.31938 213.49962 0 311.03752-107.01507 311.03752-232.40646 0-101.61027-58.52274-171.87269-189.65702-220.5159-92.11913-33.50977-131.1343-48.6432-131.1343-85.39586 0-32.4288 32.51264-54.04801 92.11914-54.04801 72.61154 0 126.79926 20.53824 158.22814 34.59073l41.18267-155.65828c-47.6852-21.6192-110.54295-37.83361-197.2433-37.83361-184.23826 0-293.69746 99.44834-293.69746 228.08262 0 108.09602 82.36534 176.19652 205.91335 219.43493 82.36533 28.10497 114.87797 48.64321 114.87797 84.3149 0 36.75265-32.51264 59.45282-99.70541 59.45282-73.6953 0-145.2231-22.70017-189.65703-45.40034l-36.84765 161.06308zM4623.27688 541.46193v728.56722h196.15955V981.41276h237.34222v288.6164h196.15955V541.46192h-196.15955v269.1591h-237.34222v-269.1591h-196.15955z" fill="#282828" fill-rule="nonzero"/>
|
306 |
-
<g>
|
307 |
-
<path d="M6900.00785 293.7053c5.29-14.371 11.90999-24.77099 19.84998-31.19998 7.94-6.429 16.07-9.644 24.38998-9.644 8.32 0 15.7 2.08 22.12999 6.241 6.43 4.16 10.39999 9.265 11.90999 15.31599 2.27 43.86896 4.16 92.65493 5.67 146.35689 1.51 53.70296 2.65 109.86291 3.4 168.48187.76 58.61796 1.52 118.74891 2.26999 180.39386.76 61.64396 1.33 122.71991 1.71 183.22987.37 60.50695.56 119.1269.56 175.85686 0 56.72996.38 109.28992 1.14 157.69988-3.78 12.1-10.59 20.98999-20.41999 26.65998-9.83999 5.68-19.85998 8.14-30.06997 7.38-10.21-.76-19.28999-4.73-27.22998-11.91-7.94-7.18999-11.91-17.58998-11.91-31.19997l-3.4-983.66226zm173.57987 0c5.3-14.371 11.90999-24.77099 19.85998-31.19998 7.94-6.429 16.06999-9.644 24.38998-9.644 8.32 0 15.69 2.08 22.11999 6.241 6.43 4.16 10.39999 9.265 11.91999 15.31599 2.27 43.86896 4.15 92.65493 5.67 146.35689 1.51 53.70296 2.64 109.86291 3.4 168.48187.76 58.61796 1.51999 118.74891 2.26999 180.39386.76 61.64396 1.33 122.71991 1.7 183.22987.38 60.50695.57 119.1269.57 175.85686 0 56.72996.38 109.28992 1.13 157.69988-3.78 12.1-10.59 20.98999-20.41999 26.65998-9.82999 5.68-19.84998 8.14-30.05998 7.38-10.20999-.76-19.28998-4.73-27.22997-11.91-7.94-7.18999-11.92-17.58998-11.92-31.19997l-3.4-983.66226zm-419.49969 980.25225c-6.81-4.54-13.60999-12.66999-20.41998-24.38998-6.81-11.71999-13.61-24.57998-20.41999-38.57997-6.81-13.98999-13.61999-28.16998-20.41998-42.53997-6.81-14.36999-13.99999-26.84998-21.55998-37.43997-7.56-10.58999-15.51-18.33998-23.82999-23.25998-8.31999-4.92-17.38998-4.73-27.22998.57-15.11998 24.95998-30.43997 49.15996-45.93996 72.60994-15.50999 23.44999-32.52998 43.48997-51.05996 60.12996-18.52999 16.63999-39.70997 28.35998-63.52995 35.16997-23.82999 6.81-51.62997 6.05-83.38994-2.27-31.01998-8.31999-56.16996-24.57998-75.44994-48.77996-19.28999-24.20998-33.65998-52.94996-43.10997-86.22993-9.46-33.27998-14.19-69.77995-14.19-109.48992 0-39.70397 4.35-79.22394 13.05-118.55591 8.7-39.33097 21.36998-77.14894 38.00997-113.45492 16.63999-36.30597 36.67997-67.50595 60.12995-93.60093 23.44999-26.09398 50.10997-45.75996 79.98994-58.99595 29.86998-13.237 62.20996-16.82999 96.99993-10.779 32.51998 6.051 59.36996 19.855 80.54994 41.41198 21.17998 21.55598 38.76997 47.65096 52.75996 78.28394 13.98999 30.63297 24.95998 64.47995 32.89998 101.54192 7.93999 37.06197 15.12998 74.12394 21.55998 111.18692 6.43 37.06197 12.85999 72.42194 19.28999 106.08192 6.41999 33.65997 14.92998 62.58995 25.51998 86.78993 10.58999 24.20998 24.01998 41.97997 40.27997 53.32996 16.25998 11.34 37.62997 12.84999 64.09995 4.53 30.25997-31.00998 54.45996-51.61996 72.60994-61.82996 18.15999-10.20999 31.38998-13.60999 39.70997-10.20999 8.32 3.4 11.91 11.91 10.78 25.52998-1.13 13.61-6.05 28.73998-14.75 45.37997-8.69999 16.63999-20.60998 32.89997-35.73997 48.77996-15.11999 15.88999-32.32997 27.98998-51.61996 36.30997-19.28998 8.32-40.46997 11.16-63.52995 8.51-23.06998-2.65-47.08997-14.56-72.04995-35.73998zm2413.83818 6.81c-2.26-39.32997-5.67-82.25994-10.20999-128.7699-4.53-46.51997-10.58-92.84993-18.14999-138.9899-7.55999-46.13396-16.63998-89.81493-27.22998-131.0369-10.58999-41.22197-23.06998-76.01494-37.43997-104.37892-14.36999-28.36298-30.81997-48.21797-49.34996-59.56396-18.52999-11.34499-39.51997-9.83199-62.96995 4.539-23.44998 14.37099-49.34997 43.30197-77.71994 86.79293-28.35998 43.49097-59.93996 106.08092-94.72993 187.76786-3.03 6.05-7 15.88-11.91 29.49998-4.91999 13.60999-10.20999 28.92998-15.88998 45.94997-5.67 17.01998-11.91 34.97997-18.71999 53.88996-6.8 18.90998-13.03999 37.05997-18.71998 54.45995-5.67 17.4-10.78 32.89998-15.31 46.50997-4.53999 13.61999-7.56999 23.82998-9.07998 30.63998-6.05 15.11998-13.62 23.62998-22.68999 25.52998-9.08 1.89-18.14998.18-27.22998-5.11-9.07999-5.3-17.39998-12.47999-24.95998-21.55998-7.56-9.07-12.09999-17.01999-13.61999-23.81999 6.81-26.47998 12.86-55.96995 18.15999-88.49993 5.29-32.51997 9.45-69.57995 12.47999-111.17991 3.02-41.60397 4.16-88.68794 3.4-141.2559-.76-52.56696-4.54-112.13091-11.35-178.69186 8.32-17.39599 16.65-27.03998 24.96999-28.93098 8.31999-1.891 16.63998.756 24.94998 7.942 8.32 7.18499 16.07999 17.77498 23.25998 31.76697 7.19 13.99299 13.61999 28.17498 19.28999 42.54597 5.67 14.37099 10.20999 27.79698 13.61998 40.27697 3.4 12.47999 5.1 20.61098 5.1 24.39298 16.63999-14.371 31.95998-32.71298 45.94997-55.02596 13.98999-22.31298 28.35997-44.62597 43.10996-66.93895 14.75-22.31298 30.82998-42.16697 48.21997-59.56396 17.39998-17.39598 38.19997-27.98597 62.39995-31.76697 49.91996-9.077 92.27993-3.215 127.0699 17.58499 34.79998 20.79998 63.34996 50.67696 85.65994 89.62993 22.30998 38.95297 39.32997 84.14593 51.05996 135.5789 11.72 51.43296 20.03999 103.05492 24.95998 154.86588 4.91 51.80996 6.99 101.34992 6.24 148.62989-.76 47.26996-2.65 86.02993-5.68 116.2899-8.32 17.39-19.46998 26.08999-33.46997 26.08999-13.99 0-25.13998-8.7-33.46998-26.08998zm-1029.72922-9.08c-43.86997-18.14998-78.46994-41.97996-103.80992-71.46994-25.33998-29.49998-43.10997-61.83995-53.32996-97.00993-10.21-35.16997-13.61-72.03994-10.21-110.61791 3.41-38.57497 12.48-76.20395 27.22999-112.88792 14.74998-36.68397 34.41997-71.28794 58.99995-103.81092 24.57998-32.52398 52.56996-60.32095 83.95994-83.38994 31.38997-23.06898 65.79995-40.08797 103.23992-51.05496 37.43997-10.967 76.20994-13.42599 116.28991-7.375 33.27998 5.295 61.83995 20.99 85.65994 47.08397 23.82998 26.09498 42.73996 58.42996 56.72995 97.00493 13.99 38.57397 22.87999 80.93094 26.65998 127.0699 3.78 46.13797 1.7 91.70893-6.24 136.7079-7.93999 45.00996-21.55997 86.79993-40.83996 125.3699-19.28999 38.57998-44.62997 69.77995-76.01994 93.59993-31.38998 23.82999-69.39995 37.81998-114.01992 41.97997-44.62996 4.16-96.05992-6.24-154.29988-31.19997zm-642.42952 0c-43.86996-18.14998-78.46994-41.97996-103.80992-71.46994-25.33998-29.49998-43.10997-61.83995-53.31996-97.00993-10.20999-35.16997-13.61999-72.03994-10.20999-110.61791 3.4-38.57497 12.48-76.20395 27.21998-112.88792 14.74999-36.68397 34.41997-71.28794 58.99996-103.81092 24.57998-32.52398 52.56996-60.32095 83.95993-83.38994 31.38998-23.06898 65.79995-40.08797 103.23992-51.05496 37.43998-10.967 76.20995-13.42599 116.29992-7.375 33.27997 5.295 61.82995 20.99 85.64993 47.08397 23.82998 26.09498 42.73997 58.42996 56.72996 97.00493 13.98999 38.57397 22.87998 80.93094 26.65998 127.0699 3.79 46.13797 1.71 91.70893-6.24 136.7079-7.94 45.00996-21.54998 86.79993-40.83997 125.3699-19.28998 38.57998-44.62996 69.77995-76.01994 93.59993-31.38997 23.82999-69.38995 37.81998-114.01991 41.97997-44.61997 4.16-96.05993-6.24-154.29989-31.19997zm-1823.64862-14.69998c-5.29-34.31998-9.64-71.39995-13.04999-111.24992-3.4-39.85997-6.24-80.95994-8.5-123.2999-2.27-42.34497-3.79-85.24294-4.54-128.6939-.75999-43.45198-1.13999-86.07294-1.13999-127.86391 0-41.78997.38-81.91994 1.14-120.38991.75-38.46997 1.89-74.30995 3.4-107.52092 2.27-9.41 8.13-15.63699 17.58998-18.68199 9.45-3.044 19.65999-3.736 30.62998-2.075 10.97 1.66 20.98998 5.12 30.06998 10.378 9.07 5.259 13.98999 11.48599 14.73999 18.68198-1.51 31.54998-2.64 62.40896-3.4 92.57593-.76 30.16698-.57 59.91796.57 89.25494 1.13 29.33597 3.4 58.81095 6.81 88.42493 3.4 29.61298 8.12999 59.64095 14.17998 90.08493 35.54998-34.31797 72.03995-55.90596 109.47992-64.76195 37.43997-8.856 72.79995-8.441 106.07992 1.245 33.27998 9.687 63.72995 26.56898 91.32993 50.64796 27.60998 24.07798 49.54996 51.61496 65.80995 82.61194 16.25999 31.00198 25.89998 63.65195 28.92998 97.97192 3.02 34.31998-3.22 66.41995-18.71999 96.30993-15.50998 29.88998-41.40996 55.62996-77.71994 77.21994-36.29997 21.58999-85.46993 35.42998-147.48989 41.50997-27.22998 2.77-50.86996 4.99-70.90994 6.65-20.03999 1.66-38.94997 1.8-56.72996.41-17.76999-1.38-35.91997-5.12-54.45996-11.21-18.52998-6.08999-39.89997-15.49998-64.09995-28.22997zm85.08994-154.42989c-9.83 32.09998-11.34 58.25996-4.53 78.45994 6.8 20.20999 18.89998 35.00998 36.29997 44.41997 17.39999 9.41 38.57997 14.11999 63.53995 14.11999 24.95998 0 50.66997-3.74 77.13995-11.21 26.47998-7.46999 52.37996-18.12998 77.71994-31.96997 25.33998-13.83999 47.08996-30.15997 65.23995-48.97996 13.60999-13.83999 20.79998-30.58998 21.55998-50.23996.75-19.64999-2.84-39.70997-10.78-60.18996-7.94998-20.47998-19.85998-40.13097-35.73996-58.95095-15.88-18.81999-33.65998-34.31798-53.31996-46.49597-19.66999-12.17699-40.65997-19.64998-62.96996-22.41698-22.31998-2.768-44.24996 1.799-65.80995 13.69899-21.54998 11.90099-41.78996 32.10397-60.69995 60.61095-18.90999 28.50398-34.78997 68.22395-47.64996 119.14391zm2380.9882 74.95995c49.15996 31.76997 93.21993 45.00996 132.1799 39.70997 38.94997-5.29 71.65995-21.92999 98.12993-49.91997 26.47998-27.97997 46.32996-63.71995 59.56995-107.20991 13.24-43.48997 18.90999-87.92994 17.01999-133.3119-1.9-45.38197-11.73-87.54994-29.49998-126.5029-17.77999-38.95298-44.81997-68.26196-81.11994-87.92694-20.41998-10.59-44.24997-10.022-71.47994 1.701-27.22998 11.72399-53.88996 30.63297-79.97994 56.72795-26.09998 26.09498-49.73997 57.29496-70.90995 93.60093-21.17999 36.30498-35.54997 73.55695-43.11997 111.75292-7.56 38.19897-6.62 75.06894 2.84 110.61892 9.45 35.54997 31.57998 65.79995 66.36995 90.75993zm-642.42952 0c49.16997 31.76997 93.21993 45.00996 132.1799 39.70997 38.94997-5.29 71.65995-21.92999 98.13993-49.91997 26.46998-27.97997 46.31997-63.71995 59.55996-107.20991 13.23999-43.48997 18.90998-87.92994 17.01998-133.3119-1.89-45.38197-11.71999-87.54994-29.49998-126.5029-17.76998-38.95298-44.80996-68.26196-81.11993-87.92694-20.41999-10.59-44.24997-10.022-71.47995 1.701-27.22998 11.72399-53.88996 30.63297-79.97994 56.72795-26.09998 26.09498-49.72996 57.29496-70.90995 93.60093-21.17998 36.30498-35.54997 73.55695-43.10996 111.75292-7.57 38.19897-6.62 75.06894 2.83 110.61892 9.45999 35.54997 31.57997 65.79995 66.36994 90.75993zm-1159.18912-39.69997c19.65998 30.24997 40.26997 47.64996 61.82995 52.18996 21.55999 4.53 42.53997.56 62.96995-11.92 20.41999-12.47998 39.70997-31.00997 57.85996-55.58995 18.14999-24.57998 33.65998-50.86996 46.51997-78.84994 12.84999-27.98998 22.30998-55.40696 28.35997-82.25794 6.05-26.85098 7.56-48.97496 4.54-66.37095-3.78-18.15299-6.81-34.41497-9.08-48.78596-2.27-14.371-4.72999-27.22898-7.36999-38.57497-2.65-11.345-5.68-21.74599-9.07999-31.19998-3.4-9.455-8.13-19.09799-14.17999-28.93098-30.25998-21.17898-58.42996-29.49898-84.52994-24.95998-26.08998 4.538-49.53996 17.39599-70.33994 38.57397-20.79999 21.17898-38.18997 48.40796-52.18996 81.68794-13.99 33.27997-24.19998 68.07295-30.62998 104.37892-6.43 36.30597-8.51 71.47995-6.24 105.50992 2.27 34.03998 9.45 62.39995 21.55999 85.09994z" fill="#282828" fill-rule="nonzero"/>
|
308 |
-
<path d="M6892.93785 1141.07765l-2.93-847.33736c-.01-1.191.2-2.374.61-3.492 6.06-16.43098 13.87-28.16497 22.94999-35.51497 9.95999-8.065 20.24998-11.87199 30.67997-11.87199 10.37 0 19.54999 2.66 27.55998 7.845 8.86 5.732 14.1 12.94799 16.18 21.28698.16.625.25 1.264.29 1.908 2.26999 43.93997 4.15999 92.80393 5.67999 146.59289 1.51 53.75096 2.65 109.96191 3.4 168.63387.76 58.61996 1.52 118.75391 2.27 180.39986.76 61.66396 1.33 122.76091 1.71 183.28987.37 60.52995.56 119.1699.56 175.91986 0 56.66996.38 109.18992 1.13999 157.54988.01 1.06-.14 2.12-.46 3.13-4.6 14.73-12.99999 25.43998-24.96998 32.34998-11.7 6.75-23.64998 9.58-35.79997 8.68-12.44-.92-23.51999-5.71-33.19998-14.47-9.87-8.93-15.19999-21.69998-15.19999-38.57997l-.25-72.25994c-2.06 5.06-4.48 10.24999-7.27 15.58998-9.08998 17.41-21.52998 34.43998-37.35996 51.04997-16.08 16.88998-34.38998 29.74997-54.89996 38.58997-20.83999 8.98999-43.70997 12.12999-68.62995 9.25999-24.60998-2.82-50.33996-15.20999-76.94994-37.68997-7.62-5.23-15.41999-14.25-23.02998-27.34998-6.92-11.92-13.84-24.98998-20.75999-39.21997-6.83-14.02-13.64999-28.23998-20.46998-42.63997-6.53-13.77999-13.4-25.75998-20.65999-35.90997-6.62-9.27-13.48999-16.15999-20.76998-20.45999-4.67-2.76-9.71-2.7-15.12-.35-14.69998 24.18998-29.57997 47.66997-44.62996 70.42995-16.00999 24.20998-33.58997 44.87997-52.71996 62.05995-19.67998 17.66999-42.16997 30.11998-67.46995 37.34997-25.32998 7.23-54.88996 6.63-88.72993-2.23-33.15997-8.89999-60.03995-26.31997-80.66994-52.20995-20.07998-25.18998-35.06997-55.08996-44.90996-89.72994-9.7-34.10997-14.57-71.50994-14.57-112.21991 0-40.42697 4.43-80.66694 13.29-120.71491 8.84999-40.02697 21.73998-78.51394 38.67997-115.46191 17.08998-37.28898 37.69997-69.31695 61.77995-96.11793 24.43998-27.19398 52.23996-47.66197 83.36994-61.45595 31.65997-14.024 65.90995-17.899 102.88992-11.467 34.67997 6.452 63.26995 21.24799 85.85994 44.23397 21.94998 22.34798 40.20996 49.38096 54.70995 81.13794 14.28 31.25498 25.48998 65.78695 33.58998 103.60192 7.97 37.19097 15.17999 74.38195 21.62998 111.57192 6.42 37.00197 12.84 72.31194 19.25999 105.91192 6.27 32.82997 14.53999 61.05995 24.85998 84.65993 9.73 22.24999 21.89998 38.70997 36.83997 49.12997 13.55 9.45999 31.25998 10.32999 53.02996 3.92 30.31998-30.90998 54.72996-51.40997 73.05995-61.72996 12.16999-6.84 22.40998-10.8 30.62997-12.17 7.06-1.17999 12.97-.53999 17.76999 1.42 3.08 1.26 5.82 2.97 8.15 5.15zm171.26987-850.82935c-.41 1.118-.62 2.301-.62 3.492l3.4 983.65725c0 16.87999 5.34 29.64998 15.21 38.57997 9.67998 8.76 20.75997 13.55 33.19997 14.47 12.14999.9 24.09998-1.93 35.79997-8.68 11.95999-6.91 20.36998-17.61999 24.96998-32.34998.32-1.01.47-2.07.45-3.13-.75-48.35996-1.13-100.87992-1.13-157.54988 0-56.74995-.19-115.3899-.57-175.91986-.38-60.52896-.94-121.62591-1.7-183.28987-.76-61.64595-1.51-121.7799-2.27-180.39986-.76-58.67196-1.89-114.88291-3.41-168.63387-1.51-53.78896-3.4-102.65292-5.67999-146.5929-.03-.644-.13-1.283-.28-1.90799-2.09-8.339-7.32-15.55499-16.17999-21.28698-8.02-5.185-17.18998-7.845-27.55998-7.845-10.43999 0-20.71998 3.807-30.68997 11.872-9.08 7.34999-16.88999 19.08398-22.93999 35.51497zm1588.0788 521.3466c11.02-11.49199 21.36999-24.98198 31.06998-40.44997 14.03-22.37998 28.44998-44.75996 43.23997-67.13995 15.13999-22.89798 31.63998-43.26796 49.48996-61.12095 18.93999-18.93699 41.57997-30.45998 67.67995-34.53497 52.65996-9.574 97.29993-3.098 133.9899 18.84098 36.21997 21.64899 65.98995 52.69896 89.20993 93.24193 22.76999 39.74697 40.15997 85.84694 52.12996 138.3279 11.82 51.85696 20.20999 103.90492 25.15998 156.14788 4.96 52.18996 7.05 102.09992 6.29 149.72989-.77 47.60996-2.68 86.64993-5.73 117.1199-.11 1.16-.43 2.28-.92 3.32-10.40999 21.74999-24.99998 31.77998-42.49996 31.77998-17.48999 0-32.07998-10.03-42.48997-31.77997-.56-1.17-.88-2.44-.96-3.73-2.26-39.21997-5.65-82.00994-10.18-128.3799-4.51999-46.29997-10.53998-92.40994-18.06998-138.3399-7.51-45.82997-16.51999-89.21993-27.03998-130.1689-10.38999-40.41497-22.58998-74.53795-36.67997-102.34693-13.35999-26.36698-28.42998-45.00796-45.64997-55.55495-15.47998-9.474-32.93997-7.465-52.51996 4.536-22.56998 13.82998-47.26996 41.87496-74.56994 83.72993-28.12998 43.12897-59.40996 105.21592-93.90993 186.22486-.08.19-.17.37-.26.55-2.91 5.83-6.71 15.30999-11.45 28.42998-4.88999 13.53999-10.15998 28.77998-15.79998 45.70996-5.7 17.09-11.95999 35.12998-18.79998 54.11996-6.77 18.80999-12.98 36.85997-18.61999 54.16996-5.68 17.41999-10.79 32.93998-15.33999 46.57997-4.39 13.16999-7.33 23.04998-8.8 29.63997-.12.52-.28 1.04-.48 1.54-7.70999 19.27999-18.35998 29.19998-29.92997 31.59998-11.43 2.39-22.87998.41-34.30997-6.25-10.03-5.85-19.24999-13.76999-27.59998-23.78998-8.86-10.63999-13.93-20.08998-15.7-28.05998-.33999-1.54-.30999-3.14.08-4.66 6.74-26.20997 12.73-55.41995 17.97-87.60993 5.25-32.26997 9.36999-69.03995 12.36999-110.30991 3.01-41.34297 4.13-88.13794 3.38-140.3819-.75-52.31096-4.52-111.58291-11.29-177.81786-.19-1.829.13-3.674.92-5.332 10.19-21.30698 21.57999-32.05198 31.76998-34.36797 11.17999-2.541 22.52998.468 33.70997 10.12499 9.13 7.881 17.73999 19.41898 25.61998 34.76697 7.34 14.288 13.9 28.76898 19.68999 43.44197 5.82 14.74199 10.46999 28.51598 13.95999 41.31797.7 2.54 1.32 4.919 1.87 7.135zm-1260.43904 469.29265c-45.43997-18.81999-81.21994-43.59997-107.46992-74.15995-26.30998-30.62997-44.73997-64.20995-55.34996-100.72992-10.55-36.33997-14.07999-74.42994-10.56-114.28691 3.48-39.54797 12.79-78.12894 27.90999-115.73892 15.06999-37.49597 35.16997-72.86794 60.28995-106.11092 25.18998-33.31797 53.85996-61.78595 86.01994-85.41793 32.32997-23.76398 67.77995-41.29597 106.34992-52.59396 38.82997-11.373 79.02994-13.941 120.6799-7.653 35.51998 5.652 66.02996 22.35899 91.46994 50.21697 24.64998 26.99898 44.25996 60.42495 58.73995 100.33692 14.28 39.36297 23.36998 82.58094 27.22998 129.6629 3.85 46.99997 1.73 93.42293-6.36 139.2649-8.10999 45.98996-22.03998 88.68993-41.74996 128.1099-20.00999 40.01997-46.33997 72.36995-78.90994 97.08993-32.80998 24.89998-72.49995 39.61997-119.13991 43.96996-46.01997 4.29-99.08993-6.22-159.14988-31.95997zm642.41951 0c-45.43996-18.81999-81.21994-43.59997-107.46992-74.15995-26.30998-30.62997-44.73996-64.20995-55.33995-100.72992-10.55-36.33997-14.08-74.42994-10.57-114.28691 3.49-39.54797 12.79-78.12894 27.90998-115.73892 15.08-37.49597 35.17998-72.86794 60.29996-106.11092 25.17998-33.31797 53.85996-61.78595 86.00993-85.41793 32.33998-23.76398 67.78995-41.29597 106.35992-52.59396 38.82997-11.373 79.01994-13.941 120.66991-7.653 35.52997 5.652 66.03995 22.35899 91.47993 50.21697 24.64998 26.99898 44.25997 60.42495 58.73996 100.33692 14.27999 39.36297 23.36998 82.58094 27.22998 129.6629 3.85 46.99997 1.73 93.42293-6.36 139.2649-8.12 45.98996-22.03998 88.68993-41.74997 128.1099-20.00998 40.01997-46.33996 72.36995-78.90994 97.08993-32.80997 24.89998-72.49994 39.61997-119.1399 43.96996-46.01997 4.29-99.09993-6.22-159.15989-31.95997zM6968.3578 276.0543c-1.1-3.399-3.7-6.152-7.41999-8.557-4.84-3.135-10.41999-4.636-16.68999-4.636-6.2 0-12.17999 2.622-18.09998 7.417-6.5 5.259-11.73 13.762-16.13999 25.24198l3.4 981.84726c0 10.31 2.6 18.33999 8.62 23.77998 6.20999 5.62 13.27998 8.76 21.25998 9.36 8.26999.61 16.35998-1.47 24.32998-6.07 7.31-4.21 12.36999-10.78 15.39999-19.52998-.75-47.98997-1.12-100.04993-1.12-156.16989 0-56.70995-.19-115.30991-.56-175.79486-.38-60.48896-.95-121.54591-1.7-183.16987-.76-61.64195-1.52-121.7709-2.27-180.38686-.76-58.56596-1.89-114.67491-3.4-168.32887-1.5-53.15996-3.37-101.49493-5.61-145.0029zm173.57988 0c-1.1-3.399-3.69-6.152-7.41-8.557-4.84-3.135-10.42-4.636-16.68999-4.636-6.21 0-12.17999 2.622-18.09998 7.417-6.5 5.259-11.74 13.762-16.14 25.24198l3.39 981.84726c0 10.31 2.61 18.33999 8.63 23.77998 6.2 5.62 13.27999 8.76 21.25998 9.36 8.27.61 16.36-1.47 24.31999-6.07 7.31-4.21 12.36999-10.78 15.39998-19.52998-.74-47.98997-1.11-100.04993-1.11-156.16989 0-56.70995-.19-115.30991-.57-175.79486-.37-60.48896-.94-121.54591-1.7-183.16987-.75-61.64195-1.51-121.7709-2.27-180.38686-.75-58.56596-1.88999-114.67491-3.39999-168.32887-1.49-53.15996-3.36-101.49493-5.61-145.0029zm-1474.8589 611.05154c32.78998-28.61098 66.40996-46.87097 100.71993-54.98596 39.23997-9.282 76.29994-8.777 111.17992 1.375 34.64997 10.08599 66.35995 27.64098 95.10993 52.71196 28.56997 24.91798 51.24996 53.42596 68.07995 85.50393 16.88998 32.18698 26.89997 66.10695 30.03997 101.73693 3.2 36.27997-3.42 70.20994-19.80998 101.79992-16.27999 31.37997-43.34997 58.53995-81.47994 81.19994-37.32997 22.19998-87.83993 36.60997-151.58989 42.86996-27.29998 2.78-50.99996 5-71.08994 6.66-20.60999 1.71-40.05997 1.84-58.32996.42-18.53999-1.44-37.47997-5.33-56.80996-11.68-18.96998-6.22999-40.84997-15.83998-65.62995-28.87997-2.81-1.47-4.75-4.19-5.23-7.32-5.32999-34.52997-9.70999-71.83994-13.12998-111.92991-3.41-39.95997-6.26-81.15994-8.53-123.6199-2.28-42.45897-3.79-85.47694-4.55-129.0499-.76-43.51098-1.14-86.18994-1.14-128.03791 0-41.85797.38-82.05394 1.14-120.58691.76-38.56197 1.89-74.48795 3.41-107.77892.03-.637.12-1.27.27-1.889 3.13-12.99999 11.18-21.65098 24.23999-25.85598 10.86999-3.498 22.58998-4.353 35.19997-2.445 12.24999 1.856 23.43998 5.739 33.57997 11.614 12.52 7.25499 18.62999 16.35998 19.67999 26.28797.05.506.07 1.016.04 1.524-1.51 31.47298-2.64 62.25596-3.39 92.34793-.75 29.95198-.57 59.49096.56 88.61794 1.12 29.08597 3.37 58.30895 6.75 87.66993 2.72 23.63898 6.28 47.54596 10.70999 71.71995zm992.55926 378.53171c-5.84-3.89-11.48-11.03-17.31999-21.08998-6.7-11.53-13.38999-24.16999-20.07998-37.92998-6.79-13.95998-13.58-28.10997-20.37999-42.44996-7.08-14.97-14.57999-27.94998-22.44998-38.97997-8.51-11.9-17.51999-20.51999-26.87998-26.04998-11.32-6.69-23.67998-6.83-37.05997.37-1.57.85-2.88 2.1-3.81 3.62-15.05999 24.84997-30.29998 48.93996-45.73996 72.27994-15 22.68998-31.45998 42.10997-49.38997 58.20995-17.37998 15.61-37.24997 26.60998-59.59995 32.99998-22.31999 6.37-48.34997 5.46-78.10994-2.33-28.79998-7.73-52.21996-22.82998-70.15995-45.34996-18.49999-23.20999-32.24998-50.79997-41.31997-82.71994-9.21-32.44998-13.79999-68.03995-13.79999-106.75992 0-38.98097 4.27-77.78094 12.81-116.39591 8.54998-38.63497 20.98998-75.78495 37.33996-111.44792 16.19-35.32397 35.65998-65.69495 58.47996-91.08393 22.45998-24.99598 47.97996-43.85797 76.59994-56.53696 28.08998-12.44899 58.50996-15.75999 91.23993-10.069 30.24998 5.628 55.35996 18.44 75.12995 38.56698 20.39998 20.76598 37.30997 45.92097 50.78996 75.43094 13.70999 30.00998 24.43998 63.17396 32.21997 99.48293 7.92 36.93297 15.08 73.86594 21.48999 110.79991 6.43 37.12298 12.86999 72.53295 19.30998 106.24292 6.59 34.48998 15.34 64.12996 26.18998 88.92994 11.45 26.16998 26.13998 45.24996 43.71997 57.51995 18.48999 12.9 42.71997 15.33 72.81994 5.87 1.58-.49 3.01-1.37 4.16-2.55 29.34998-30.08998 52.73996-50.19996 70.35995-60.09995 8.15-4.59 15.17999-7.72 21.11998-9.24 4.06-1.05 7.35-1.48 9.9-.44 4.83 1.98 5.26 7.53 4.6 15.45-1.04 12.47998-5.67 26.31997-13.65 41.57996-8.3 15.86999-19.68998 31.36998-34.11997 46.51997-14.17 14.87998-30.26998 26.22998-48.33997 34.01997-17.73998 7.65-37.21997 10.19-58.42995 7.76-21.40999-2.46-43.55997-13.78-66.71995-33.42998l-.92-.7zm2465.44814 12.35c2.91-29.76999 4.72-67.65996 5.46-113.66992.75-46.92997-1.32-96.09993-6.2-147.5199-4.87-51.38895-13.12999-102.58491-24.74998-153.59388-11.49-50.38496-28.12998-94.67092-49.98996-132.8309-21.39999-37.36197-48.73997-66.06595-82.10994-86.01693-32.88998-19.65999-72.95995-24.90898-120.38991-16.28799-22.05998 3.447-41.01997 13.102-56.87996 28.95798-16.93999 16.93999-32.57997 36.27997-46.93996 58.00796-14.71 22.24498-29.03998 44.49096-42.98997 66.73695-14.56999 23.23798-30.54998 42.31396-47.87996 57.28095-2.96 2.557-7.14 3.153-10.7 1.525-3.56-1.628-5.84-5.181-5.84-9.093 0-3.38099-1.70999-10.60698-4.74999-21.76198-3.32-12.15799-7.74-25.23598-13.26999-39.23597-5.55-14.06799-11.84999-27.95098-18.87998-41.64996-6.49-12.637-13.39-22.27799-20.89999-28.76698-5.47-4.718-10.73999-7-16.20999-5.759-2.45.558-4.67 2.587-7.11999 5.432-3.3 3.817-6.54 9.02999-9.82 15.58699 6.66 65.73995 10.36 124.6399 11.11 176.70886.76 52.89196-.39 100.26493-3.43 142.1199-3.05 41.92996-7.25 79.28994-12.57999 112.06991-5.18 31.79998-11.08 60.72995-17.68999 86.79993 1.68 5.13 5.45 10.9 10.96 17.51 6.77 8.11999 14.18999 14.57998 22.31998 19.31998 6.72 3.93 13.41999 5.36 20.14998 3.96 6.46-1.35 10.86-8.16 15.16-18.77 1.62-7.01999 4.65999-17.27998 9.15999-30.76997 4.53-13.58999 9.62999-29.07998 15.29998-46.44996 5.7-17.48999 11.97-35.73998 18.80999-54.74996 6.78-18.82999 12.99999-36.71997 18.63999-53.65996 5.71-17.10999 11.02999-32.49998 15.96998-46.18997 5.02-13.88999 9.11-23.97298 12.22-30.26797 35.04997-82.24394 66.88994-145.2539 95.45992-189.06286 29.42998-45.12797 56.52996-74.94494 80.85994-89.85593 27.31998-16.744 51.82996-17.75999 73.41995-4.541 19.83998 12.144 37.66997 33.21197 53.04996 63.57295 14.64998 28.91898 27.40998 64.38095 38.20997 106.40992 10.65999 41.49597 19.79998 85.46594 27.40998 131.9149 7.6 46.34997 13.67999 92.88993 18.23998 139.6299 4.47 45.84996 7.84 88.22993 10.12 127.1199 6.08999 12 13.56998 18.70999 23.59998 18.70999 10.08999 0 17.58998-6.77 23.68998-18.86999zm-1725.4887-15.54c-42.25997-17.47998-75.64994-40.33997-100.04992-68.74995-24.36999-28.36997-41.48997-59.44995-51.30996-93.27993-9.87-33.99997-13.14-69.64994-9.85-106.94891 3.31-37.60098 12.17-74.27895 26.53998-110.03592 14.43-35.87297 33.65998-69.70795 57.69996-101.51292 23.97998-31.72998 51.27996-58.85496 81.89994-81.36094 30.43997-22.37399 63.81995-38.87897 100.12992-49.51597 36.05997-10.56199 73.38995-12.91099 111.98992-7.084 30.95997 4.925 57.54995 19.607 79.76994 43.93898 22.99998 25.18998 41.19997 56.43395 54.70996 93.67193 13.70999 37.78597 22.38998 79.28094 26.09998 124.4769 3.71 45.27597 1.67 89.99593-6.12 134.1609-7.77 44.01997-21.07998 84.89994-39.94997 122.6299-18.55999 37.11998-42.89997 67.17996-73.10994 90.10994-29.96998 22.74998-66.29995 36.00997-108.90992 39.98997-43.22997 4.03-93.00993-6.26-149.42989-30.43998l-.11-.05zm642.41952 0c-42.24997-17.47998-75.63995-40.33997-100.04993-68.74995-24.35998-28.36997-41.47997-59.44995-51.29996-93.27993-9.87-33.99997-13.14999-69.64994-9.86-106.94891 3.32-37.60098 12.17-74.27895 26.54999-110.03592 14.41999-35.87297 33.65997-69.70795 57.69995-101.51292 23.97999-31.72998 51.27997-58.85496 81.89994-81.36094 30.43998-22.37399 63.81995-38.87897 100.12993-49.51597 36.05997-10.56199 73.38994-12.91099 111.98991-7.084 30.94998 4.925 57.54996 19.607 79.76994 43.93898 22.99999 25.18998 41.19997 56.43395 54.70996 93.67193 13.7 37.78597 22.38998 79.28094 26.08998 124.4769 3.71 45.27597 1.68 89.99593-6.12 134.1609-7.76999 44.01997-21.06998 84.89994-39.93996 122.6299-18.55999 37.11998-42.90997 67.17996-73.10995 90.10994-29.96998 22.74998-66.29995 36.00997-108.90992 39.98997-43.22996 4.03-93.00993-6.26-149.42988-30.43998l-.12-.05zM5632.4288 546.7151c-.72-4.174-4.34-7.351-9.72999-10.47199-8.01-4.642-16.86999-7.678-26.54998-9.144-9.33-1.413-18.01998-.883-26.06998 1.707-5.56 1.792-9.16 5.322-10.71 10.675-1.47999 32.83197-2.59999 68.23495-3.33999 106.20592-.76 38.40597-1.14 78.47094-1.14 120.1929 0 41.73398.38 84.29694 1.14 127.68891.75 43.32997 2.26 86.10694 4.52 128.3289 2.26 42.23997 5.09 83.22994 8.49 122.97991 3.21999 37.68997 7.27999 72.88995 12.20998 105.58992 21.78999 11.26 41.14997 19.67999 58.09996 25.24998 17.72999 5.83 35.09997 9.42 52.10996 10.74 17.26999 1.35 35.64997 1.2 55.11996-.41 19.99998-1.66 43.56997-3.87 70.75994-6.63 60.26996-5.91 108.08992-19.17999 143.3599-40.15997 34.48997-20.49998 59.21995-44.82997 73.94994-73.21994 14.61999-28.18998 20.48999-58.46996 17.63999-90.82994-2.91-32.99997-12.19-64.39995-27.82998-94.20593-15.68999-29.91597-36.86997-56.48395-63.51995-79.72193-26.46998-23.08499-55.63996-39.29498-87.54994-48.58197-31.67997-9.221-65.34995-9.546-100.98992-1.115-35.87997 8.488-70.76995 29.33298-104.83992 62.22396-2.63 2.541-6.44 3.442-9.93 2.349-3.49-1.093-6.10999-4.005-6.81999-7.594-6.11-30.71598-10.88-61.01395-14.30999-90.89293-3.43-29.86598-5.72-59.59296-6.86-89.17993-1.15-29.54598-1.34-59.50996-.58-89.89194.75-29.94797 1.88-60.57595 3.37-91.88193zm15.14 553.17259c13.18998-52.14997 29.57997-92.78993 48.95996-122.00191 19.95998-30.08698 41.44996-51.27696 64.19995-63.83695 23.53998-12.994 47.49996-17.891 71.86994-14.869 23.73999 2.944 46.07997 10.883 66.99995 23.83899 20.53999 12.71799 39.10997 28.89298 55.69996 48.54796 16.63999 19.71899 29.09998 40.32097 37.41997 61.78096 8.47 21.83998 12.25 43.24996 11.45 64.19995-.86 22.23998-9.01 41.18997-24.34999 56.78995-18.82998 19.51999-41.36997 36.46998-67.63995 50.81997-26.01998 14.20999-52.61996 25.13998-79.79994 32.80997-27.39998 7.74-54.02996 11.59-79.85994 11.59-26.84998 0-49.58996-5.2-68.29994-15.32-19.60999-10.60999-33.33998-27.23998-41.01997-50.02996-7.32-21.70998-6.15-49.83996 4.37-84.31993zm19.33998 5.12c12.51999-49.58997 27.86998-88.30994 46.28996-116.06692 17.85999-26.92498 36.82998-46.14197 57.19996-57.38296 19.56999-10.80799 39.46997-15.04399 59.73996-12.52999 20.87998 2.59 40.51996 9.597 58.92995 20.99499 18.78999 11.63699 35.76997 26.45898 50.94996 44.44396 15.12 17.92099 26.48998 36.61097 34.04998 56.11096 7.42 19.12999 10.81999 37.84997 10.10999 56.19996-.65 17.04998-6.87 31.58997-18.68999 43.59996-17.54998 18.2-38.49997 33.89998-62.89995 47.22997-24.65998 13.46999-49.86996 23.83998-75.63994 31.10998-25.53998 7.20999-50.34996 10.83999-74.42995 10.83999-23.07998 0-42.69996-4.21-58.77995-12.91-15.18-8.20999-25.64998-21.19998-31.58998-38.81996-6.28-18.63999-4.44-42.72997 4.63-72.33995l.13-.48zm1723.4387 80.90993c51.62996 33.36998 98.03992 46.77997 138.9499 41.21997 41.29996-5.61 75.97994-23.27998 104.04991-52.95996 27.45998-29.02998 48.13997-66.05995 61.86996-111.16992 13.55999-44.57996 19.37998-90.12293 17.43998-136.6379-1.95-46.72396-12.08999-90.13293-30.38997-130.2379-18.71999-41.02096-47.21997-71.85994-85.45994-92.56893-23.01998-11.93999-49.70996-11.81599-80.18994 1.31-28.27998 12.173-56.00995 31.74398-83.09993 58.84096-26.66998 26.66498-50.83997 58.53395-72.47995 95.63293-21.75998 37.30897-36.50997 75.59694-44.27997 114.84991-7.87999 39.75097-6.86 78.13094 2.98 115.13091 10.02 37.67997 33.31998 69.85995 70.19995 96.31993l.41.27zm642.41951 0c51.62996 33.36998 98.04993 46.77997 138.9499 41.21997 41.30997-5.61 75.98994-23.27998 104.05992-52.95996 27.45998-29.02998 48.12996-66.05995 61.86995-111.16992 13.56-44.57996 19.37999-90.12293 17.43999-136.6379-1.95-46.72396-12.09-90.13293-30.38998-130.2379-18.71998-41.02096-47.22996-71.85994-85.45993-92.56893-23.01998-11.93999-49.70996-11.81599-80.18994 1.31-28.27998 12.173-56.00996 31.74398-83.10994 58.84096-26.65998 26.66498-50.82996 58.53395-72.46994 95.63293-21.76999 37.30897-36.51998 75.59694-44.28997 114.84991-7.87 39.75097-6.86 78.13094 2.98 115.13091 10.02999 37.67997 33.32997 69.85995 70.20994 96.31993l.4.27zm11.07-16.65999c46.60996 30.07998 88.23993 43.08997 125.1899 38.06997 36.59997-4.98 67.34995-20.58998 92.21993-46.88996 25.47998-26.93998 44.51997-61.38995 57.25996-103.24992 12.90999-42.40997 18.43998-85.73594 16.58999-129.9859-1.83-44.03997-11.35-84.96594-28.59998-122.76691-16.82999-36.88497-42.40997-64.66495-76.62995-83.20194-17.97998-9.323-38.93997-8.313-62.91995 2.009-26.17998 11.274-51.76996 29.52098-76.85994 54.61396-25.52998 25.52498-48.62996 56.05596-69.34995 91.56793-20.58998 35.30297-34.57997 71.51695-41.93997 108.65792-7.24999 36.63597-6.38 72.00594 2.69 106.10592 8.87 33.34997 29.74998 61.62995 62.34996 85.06993zm-642.42952 0c46.60996 30.07998 88.24993 43.08997 125.1899 38.06997 36.59998-4.98 67.34995-20.58998 92.21994-46.88996 25.48998-26.93998 44.51996-61.38995 57.25995-103.24992 12.91-42.40997 18.43999-85.73594 16.59999-129.9859-1.84-44.03997-11.36-84.96594-28.60998-122.76691-16.82999-36.88497-42.39997-64.66495-76.61994-83.20194-17.97999-9.323-38.94997-8.313-62.91995 2.009-26.18998 11.274-51.77996 29.52098-76.86995 54.61396-25.52998 25.52498-48.62996 56.05596-69.33994 91.56793-20.59999 35.30297-34.58998 71.51695-41.94997 108.65792-7.25 36.63597-6.37 72.00594 2.7 106.10592 8.86999 33.34997 29.73997 61.62995 62.33995 85.06993zm-1173.21912-25.98998c21.51999 33.09998 44.56997 51.54996 68.15995 56.51996 24.03999 5.06 47.46997.75 70.23995-13.16999 21.39998-13.06999 41.66997-32.41998 60.68995-58.17996 18.56-25.12998 34.41998-52.00996 47.55997-80.61994 13.16999-28.64997 22.83998-56.73495 29.03998-84.22993 6.4-28.42898 7.83-51.86396 4.63-70.28295l-.06-.326c-3.75-17.97399-6.74-34.07597-8.99-48.30596-2.31-14.636-4.82-27.73198-7.52-39.28697-2.74-11.752-5.86999-22.52199-9.39999-32.31498-3.62-10.059-8.64-20.32498-15.06999-30.78498-.72-1.164-1.67-2.168-2.79-2.952-32.86997-23.00798-63.61995-31.54997-91.96992-26.61997-28.08998 4.885-53.36996 18.62598-75.75995 41.41997-21.60998 21.99998-39.73997 50.24796-54.27996 84.81893-14.26999 33.96098-24.69998 69.46395-31.25997 106.51092-6.57 37.13497-8.69 73.11395-6.37 107.92392 2.38 35.65997 10.03 65.34995 22.70999 89.12993l.44.75zm223.31984-388.7207c-26.98998-18.50399-52.01996-26.18998-75.36995-22.12799-24.10998 4.192-45.70996 16.16699-64.91995 35.72898-19.99998 20.35698-36.65997 46.56796-50.10996 78.55694-13.70999 32.59997-23.70998 66.68295-29.99998 102.24692-6.29 35.47697-8.33 69.84595-6.11 103.10592 2.15 32.21998 8.8 59.13996 20.2 80.67994 17.73998 27.17998 35.82996 43.38997 55.26995 47.47996 19.06999 4.02 37.61997.38 55.68996-10.65999 19.44998-11.87999 37.74997-29.59997 55.02996-52.99996 17.74998-24.02998 32.90997-49.72996 45.47996-77.08994 12.55-27.30998 21.78999-54.06896 27.68998-80.27594 5.69-25.21598 7.29-45.98996 4.46-62.34495-3.79-18.24499-6.83-34.59698-9.12-49.05396-2.22-14.106-4.63-26.72698-7.22999-37.86298-2.55-10.93899-5.47-20.96898-8.75-30.08497-2.98-8.28-7.05999-16.709-12.20998-25.29798z" fill="#fff"/>
|
309 |
-
</g>
|
310 |
-
</svg>
|
311 |
-
</span>
|
312 |
-
<br />
|
313 |
-
|
314 |
-
<span style="width: 34px; top: -5px;"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-facebook fa-w-16 fa-2x"><path fill="#475e8f" d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z" class=""></path></svg></span>
|
315 |
-
|
316 |
-
<?php echo $plus_svg; ?>
|
317 |
-
|
318 |
-
<span><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-instagram fa-w-14 fa-2x"><path fill="#e15073" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z" class=""></path></svg></span>
|
319 |
-
|
320 |
-
<?php echo $plus_svg; ?>
|
321 |
-
|
322 |
-
<span style="top: -4px;"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-twitter fa-w-16 fa-2x"><path fill="#1a92dc" d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z" class=""></path></svg></span>
|
323 |
-
|
324 |
-
<?php echo $plus_svg; ?>
|
325 |
-
|
326 |
-
<span style="width: 35px; top: -5px;"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="svg-inline--fa fa-youtube fa-w-18 fa-2x"><path fill="#f5413d" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z" class=""></path></svg></span>
|
327 |
-
</div>
|
328 |
-
|
329 |
-
<h1>Combine all your social media channels into one single wall.</h1>
|
330 |
-
<h2>Maximize your social content and get more followers.</h2>
|
331 |
-
|
332 |
-
<div style="text-align: center;">
|
333 |
-
<a href="https://smashballoon.com/social-wall/?utm_source=plugin-pro&utm_campaign=cff&utm_medium=sw-cta-1" target="_blank" class="cta button button-primary">Get the Social Wall plugin</a>
|
334 |
-
</div>
|
335 |
-
|
336 |
-
<div class="cff-sw-info">
|
337 |
-
<div class="cff-sw-features">
|
338 |
-
<p><span>A dash of Instagram</span>Add posts from your profile, public hashtag posts, or posts you're tagged in.</p>
|
339 |
-
<p><span>A sprinkle of Facebook</span>Include posts from your page or group timeline, or from your photos, videos, albums, and events pages.</p>
|
340 |
-
<p><span>A spoonful of Twitter</span>Add Tweets from any Twitter account, hashtag Tweets, mentions, and more.</p>
|
341 |
-
<p><span>And a dollop of YouTube</span>Embed videos from any public YouTube channel, playlists, searches, and more.</p>
|
342 |
-
<p><span>All in the same feed</span>Combine feeds from all of our Smash Balloon Pro plugins into one single wall feed, and show off all your social media content in one place.</p>
|
343 |
-
</div>
|
344 |
-
<a class="cff-sw-screenshot" href="https://smashballoon.com/social-wall/demo?utm_source=plugin-pro&utm_campaign=cff&utm_medium=sw-demo" target="_blank">
|
345 |
-
<span class="cta">View Demo</span>
|
346 |
-
|
347 |
-
<img src="<?php echo CFF_PLUGIN_URL . 'img/sw-screenshot.png'; ?>" alt="Smash Balloon Social Wall plugin screenshot showing Facebook, Instagram, Twitter, and YouTube posts combined into one wall.">
|
348 |
-
</a>
|
349 |
-
</div>
|
350 |
-
|
351 |
-
<div class="cff-sw-footer-cta">
|
352 |
-
<a href="https://smashballoon.com/social-wall/?utm_source=plugin-pro&utm_campaign=cff&utm_medium=sw-cta-2" target="_blank"><span>🚀</span>Get Social Wall and Increase Engagement >></a>
|
353 |
-
</div>
|
354 |
-
|
355 |
-
</div>
|
356 |
-
|
357 |
-
<?php
|
358 |
-
}
|
359 |
-
|
360 |
-
//Create Settings page
|
361 |
-
function cff_settings_page() {
|
362 |
-
//Declare variables for fields
|
363 |
-
$hidden_field_name = 'cff_submit_hidden';
|
364 |
-
$show_access_token = 'cff_show_access_token';
|
365 |
-
$access_token = 'cff_access_token';
|
366 |
-
$page_id = 'cff_page_id';
|
367 |
-
$cff_connected_accounts = 'cff_connected_accounts';
|
368 |
-
$cff_page_type = 'cff_page_type';
|
369 |
-
$num_show = 'cff_num_show';
|
370 |
-
$cff_post_limit = 'cff_post_limit';
|
371 |
-
$cff_show_others = 'cff_show_others';
|
372 |
-
$cff_cache_time = 'cff_cache_time';
|
373 |
-
$cff_cache_time_unit = 'cff_cache_time_unit';
|
374 |
-
$cff_locale = 'cff_locale';
|
375 |
-
// Read in existing option value from database
|
376 |
-
$show_access_token_val = true;
|
377 |
-
$access_token_val = get_option( $access_token );
|
378 |
-
$page_id_val = get_option( $page_id );
|
379 |
-
$cff_connected_accounts_val = get_option( $cff_connected_accounts );
|
380 |
-
|
381 |
-
$cff_page_type_val = get_option( $cff_page_type, 'page' );
|
382 |
-
$num_show_val = get_option( $num_show, '5' );
|
383 |
-
$cff_post_limit_val = get_option( $cff_post_limit );
|
384 |
-
$cff_show_others_val = get_option( $cff_show_others );
|
385 |
-
$cff_cache_time_val = get_option( $cff_cache_time, '1' );
|
386 |
-
$cff_cache_time_unit_val = get_option( $cff_cache_time_unit, 'hours' );
|
387 |
-
$cff_locale_val = get_option( $cff_locale, 'en_US' );
|
388 |
-
|
389 |
-
//Timezone
|
390 |
-
$defaults = array(
|
391 |
-
'cff_timezone' => 'America/Chicago',
|
392 |
-
'cff_num_mobile' => ''
|
393 |
-
);
|
394 |
-
$options = wp_parse_args(get_option('cff_style_settings'), $defaults);
|
395 |
-
$cff_timezone = $options[ 'cff_timezone' ];
|
396 |
-
$cff_num_mobile = $options[ 'cff_num_mobile' ];
|
397 |
-
|
398 |
-
|
399 |
-
//Check nonce before saving data
|
400 |
-
if ( ! isset( $_POST['cff_settings_nonce'] ) || ! wp_verify_nonce( $_POST['cff_settings_nonce'], 'cff_saving_settings' ) ) {
|
401 |
-
//Nonce did not verify
|
402 |
-
} else {
|
403 |
-
// See if the user has posted us some information. If they did, this hidden field will be set to 'Y'.
|
404 |
-
if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) {
|
405 |
-
// Read their posted value
|
406 |
-
isset( $_POST[ $show_access_token ] ) ? $show_access_token_val = true : $show_access_token_val = true;
|
407 |
-
isset( $_POST[ $access_token ] ) ? $access_token_val = sanitize_text_field( $_POST[ $access_token ] ) : $access_token_val = '';
|
408 |
-
isset( $_POST[ $page_id ] ) ? $page_id_val = sanitize_text_field( $_POST[ $page_id ] ) : $page_id_val = '';
|
409 |
-
isset( $_POST[ $cff_connected_accounts ] ) ? $cff_connected_accounts_val = $_POST[ $cff_connected_accounts ] : $cff_connected_accounts_val = '';
|
410 |
-
isset( $_POST[ $cff_page_type ] ) ? $cff_page_type_val = sanitize_text_field( $_POST[ $cff_page_type ] ) : $cff_page_type_val = '';
|
411 |
-
isset( $_POST[ $num_show ] ) ? $num_show_val = sanitize_text_field( $_POST[ $num_show ] ) : $num_show_val = '';
|
412 |
-
isset( $_POST[ 'cff_num_mobile' ] ) ? $cff_num_mobile = sanitize_text_field( $_POST[ 'cff_num_mobile' ] ) : $cff_num_mobile = '';
|
413 |
-
isset( $_POST[ $cff_post_limit ] ) ? $cff_post_limit_val = sanitize_text_field( $_POST[ $cff_post_limit ] ) : $cff_post_limit_val = '';
|
414 |
-
isset( $_POST[ $cff_show_others ] ) ? $cff_show_others_val = sanitize_text_field( $_POST[ $cff_show_others ] ) : $cff_show_others_val = '';
|
415 |
-
isset( $_POST[ $cff_cache_time ] ) ? $cff_cache_time_val = sanitize_text_field( $_POST[ $cff_cache_time ] ) : $cff_cache_time_val = '';
|
416 |
-
isset( $_POST[ $cff_cache_time_unit ] ) ? $cff_cache_time_unit_val = sanitize_text_field( $_POST[ $cff_cache_time_unit ] ) : $cff_cache_time_unit_val = '';
|
417 |
-
isset( $_POST[ $cff_locale ] ) ? $cff_locale_val = sanitize_text_field( $_POST[ $cff_locale ] ) : $cff_locale_val = '';
|
418 |
-
if (isset($_POST[ 'cff_timezone' ]) ) $cff_timezone = sanitize_text_field( $_POST[ 'cff_timezone' ] );
|
419 |
-
|
420 |
-
// Save the posted value in the database
|
421 |
-
update_option( $show_access_token, true );
|
422 |
-
update_option( $access_token, $access_token_val );
|
423 |
-
update_option( $page_id, $page_id_val );
|
424 |
-
update_option( $cff_connected_accounts, $cff_connected_accounts_val );
|
425 |
-
|
426 |
-
update_option( $cff_page_type, $cff_page_type_val );
|
427 |
-
update_option( $num_show, $num_show_val );
|
428 |
-
update_option( $cff_post_limit, $cff_post_limit_val );
|
429 |
-
update_option( $cff_show_others, $cff_show_others_val );
|
430 |
-
update_option( $cff_cache_time, $cff_cache_time_val );
|
431 |
-
update_option( $cff_cache_time_unit, $cff_cache_time_unit_val );
|
432 |
-
update_option( $cff_locale, $cff_locale_val );
|
433 |
-
|
434 |
-
$options[ 'cff_timezone' ] = $cff_timezone;
|
435 |
-
$options[ 'cff_num_mobile' ] = $cff_num_mobile;
|
436 |
-
update_option( 'cff_style_settings', $options );
|
437 |
-
|
438 |
-
//Delete ALL transients
|
439 |
-
cff_delete_cache();
|
440 |
-
// Put an settings updated message on the screen
|
441 |
-
?>
|
442 |
-
<div class="updated"><p><strong><?php _e('Settings saved.', 'custom-facebook-feed' ); ?></strong></p></div>
|
443 |
-
<?php } ?>
|
444 |
-
|
445 |
-
<?php } //End nonce check ?>
|
446 |
-
|
447 |
-
<div id="cff-admin" class="wrap">
|
448 |
-
|
449 |
-
<?php
|
450 |
-
$lite_notice_dismissed = get_transient( 'facebook_feed_dismiss_lite' );
|
451 |
-
|
452 |
-
if ( ! $lite_notice_dismissed ) :
|
453 |
-
?>
|
454 |
-
<div id="cff-notice-bar" style="display:none">
|
455 |
-
<span class="cff-notice-bar-message"><?php _e( 'You\'re using Custom Facebook Feed Lite. To unlock more features consider <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=notices&utm_medium=lite" target="_blank" rel="noopener noreferrer">upgrading to Pro</a>.', 'custom-facebook-feed'); ?></span>
|
456 |
-
<button type="button" class="dismiss" title="<?php _e( 'Dismiss this message.', 'custom-facebook-feed'); ?>" data-page="overview">
|
457 |
-
</button>
|
458 |
-
</div>
|
459 |
-
<?php endif; ?>
|
460 |
-
<?php do_action( 'cff_admin_overview_before_table' ); ?>
|
461 |
-
|
462 |
-
<div id="header">
|
463 |
-
<h1><?php _e('Custom Facebook Feed', 'custom-facebook-feed'); ?></h1>
|
464 |
-
</div>
|
465 |
-
|
466 |
-
<?php
|
467 |
-
$cff_active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'configuration';
|
468 |
-
?>
|
469 |
-
<h2 class="nav-tab-wrapper">
|
470 |
-
<a href="?page=cff-top&tab=configuration" class="nav-tab <?php echo $cff_active_tab == 'configuration' ? 'nav-tab-active' : ''; ?>"><?php _e('Configuration', 'custom-facebook-feed'); ?></a>
|
471 |
-
<a href="?page=cff-style" class="nav-tab <?php echo $cff_active_tab == 'customize' ? 'nav-tab-active' : ''; ?>"><?php _e('Customize', 'custom-facebook-feed'); ?></a>
|
472 |
-
<a href="?page=cff-top&tab=support" class="nav-tab <?php echo $cff_active_tab == 'support' ? 'nav-tab-active' : ''; ?>"><?php _e('Support', 'custom-facebook-feed'); ?></a>
|
473 |
-
<a href="?page=cff-top&tab=more" class="nav-tab <?php echo $cff_active_tab == 'more' ? 'nav-tab-active' : ''; ?>"><?php _e('More Social Feeds', 'custom-facebook-feed'); ?>
|
474 |
-
<?php
|
475 |
-
$seen_more_plugins_page = get_user_meta(get_current_user_id(), 'seen_more_plugins_page_1', true);
|
476 |
-
if( !$seen_more_plugins_page ) echo '<span class="cff-alert-bubble">1</span>';
|
477 |
-
?>
|
478 |
-
</a>
|
479 |
-
</h2>
|
480 |
-
|
481 |
-
<?php if( $cff_active_tab == 'configuration' ) { //Start tab ?>
|
482 |
-
|
483 |
-
<form name="form1" method="post" action="">
|
484 |
-
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
485 |
-
<?php wp_nonce_field( 'cff_saving_settings', 'cff_settings_nonce' ); ?>
|
486 |
-
|
487 |
-
<br />
|
488 |
-
<h3><?php _e('Configuration', 'custom-facebook-feed'); ?></h3>
|
489 |
-
|
490 |
-
|
491 |
-
<div id="cff_fb_login_modal">
|
492 |
-
<div class="cff_modal_box">
|
493 |
-
|
494 |
-
<p>Log into your Facebook account using the button below and approve the plugin to connect your account.</p>
|
495 |
-
|
496 |
-
|
497 |
-
<div class="cff-login-options">
|
498 |
-
<label for="cff_login_type">Would you like to display a Facebook Page or Group?</label>
|
499 |
-
<select id="cff_login_type">
|
500 |
-
<option value="page">Facebook Page</option>
|
501 |
-
<option value="group">Facebook Group</option>
|
502 |
-
</select>
|
503 |
-
|
504 |
-
<p>
|
505 |
-
<a href="javascript:void(0);" id="cff_admin_cancel_btn" class="cff-admin-cancel-btn">Cancel</a>
|
506 |
-
|
507 |
-
<?php
|
508 |
-
$admin_url_state = admin_url('admin.php?page=cff-top');
|
509 |
-
//If the admin_url isn't returned correctly then use a fallback
|
510 |
-
if( $admin_url_state == '/wp-admin/admin.php?page=cff-top' || $admin_url_state == '/wp-admin/admin.php?page=cff-top&tab=configuration' ){
|
511 |
-
$admin_url_state = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
|
512 |
-
}
|
513 |
-
?>
|
514 |
-
<a href="https://api.smashballoon.com/facebook-login.php?state=<?php echo $admin_url_state; ?>" class="cff_admin_btn" id="cff_page_app"><i class="fa fa-facebook-square"></i> <?php _e( 'Continue', 'custom-facebook-feed' ); ?></a>
|
515 |
-
|
516 |
-
<a href="https://api.smashballoon.com/facebook-group-login.php?state=<?php echo $admin_url_state; ?>" class="cff_admin_btn" id="cff_group_app"><i class="fa fa-facebook-square"></i> <?php _e( 'Continue', 'custom-facebook-feed' ); ?></a>
|
517 |
-
|
518 |
-
</p>
|
519 |
-
</div>
|
520 |
-
|
521 |
-
<p style="font-size: 11px; margin-top: 25px;"><b>Please note:</b> this does not give us permission to manage your Facebook pages or groups, it simply allows the plugin to see a list that you manage and retrieve an Access Token.</p>
|
522 |
-
|
523 |
-
</div>
|
524 |
-
</div>
|
525 |
-
|
526 |
-
<a href="JavaScript:void(0);" class="cff_admin_btn" id="cff_fb_login"><i class="fa fa-facebook-square"></i> <?php _e( 'Connect a Facebook account', 'custom-facebook-feed' ); ?></a>
|
527 |
-
|
528 |
-
|
529 |
-
<?php
|
530 |
-
if( isset($_GET['access_token']) && isset($_GET['final_response']) ){
|
531 |
-
|
532 |
-
if( $_GET['final_response'] == 'true' ){
|
533 |
-
global $cff_error_reporter;
|
534 |
-
|
535 |
-
$cff_error_reporter->remove_error( 'accesstoken' );
|
536 |
-
|
537 |
-
$access_token = $_GET['access_token'];
|
538 |
-
$cff_is_groups = false;
|
539 |
-
$pages_data_arr = '';
|
540 |
-
$groups_data_arr = '';
|
541 |
-
|
542 |
-
if( isset($_GET['group']) ){
|
543 |
-
//Get Groups
|
544 |
-
|
545 |
-
$cff_is_groups = true;
|
546 |
-
$groups_data_arr = '';
|
547 |
-
|
548 |
-
//Extend the user token by making a call to /me/accounts. User must be an admin of a page for this to work as won't work if the response is empty.
|
549 |
-
$url = 'https://graph.facebook.com/me/accounts?limit=500&access_token='.$access_token;
|
550 |
-
|
551 |
-
$accounts_data = cff_fetchUrl($url);
|
552 |
-
$accounts_data_arr = json_decode($accounts_data);
|
553 |
-
$cff_token_expiration = 'never';
|
554 |
-
if( empty($accounts_data_arr->data) ){
|
555 |
-
$cff_token_expiration = '60 days';
|
556 |
-
}
|
557 |
-
|
558 |
-
//Get User ID
|
559 |
-
$user_url = 'https://graph.facebook.com/me?fields=id&access_token='.$access_token;
|
560 |
-
$user_id_data = cff_fetchUrl($user_url);
|
561 |
-
|
562 |
-
if( !empty($user_id_data) ){
|
563 |
-
$user_id_data_arr = json_decode($user_id_data);
|
564 |
-
$user_id = $user_id_data_arr->id;
|
565 |
-
|
566 |
-
//Get groups they're admin of
|
567 |
-
$groups_admin_url = 'https://graph.facebook.com/'.$user_id.'/groups?admin_only=true&fields=name,id,picture&access_token='.$access_token;
|
568 |
-
$groups_admin_data = cff_fetchUrl($groups_admin_url);
|
569 |
-
$groups_admin_data_arr = json_decode($groups_admin_data);
|
570 |
-
|
571 |
-
//Get member groups
|
572 |
-
$groups_url = 'https://graph.facebook.com/'.$user_id.'/groups?admin_only=false&fields=name,id,picture&access_token='.$access_token;
|
573 |
-
$groups_data = cff_fetchUrl($groups_url);
|
574 |
-
$groups_data_arr = json_decode($groups_data);
|
575 |
-
|
576 |
-
// $pages_data_arr = $groups_data_arr;
|
577 |
-
}
|
578 |
-
} else {
|
579 |
-
//Get Pages
|
580 |
-
|
581 |
-
$url = 'https://graph.facebook.com/me/accounts?limit=500&access_token='.$access_token;
|
582 |
-
$pages_data = cff_fetchUrl($url);
|
583 |
-
$pages_data_arr = json_decode($pages_data);
|
584 |
-
|
585 |
-
if( empty($pages_data_arr->data) ){
|
586 |
-
//If they don't manage any pages then just use the user token instead
|
587 |
-
?>
|
588 |
-
<script type='text/javascript'>
|
589 |
-
jQuery(document).ready(function($) {
|
590 |
-
$('#cff_access_token').val('<?php echo $access_token ?>').addClass('cff-success');
|
591 |
-
//Check the own access token setting so it reveals token field
|
592 |
-
if( $('#cff_show_access_token:checked').length < 1 ){
|
593 |
-
$("#cff_show_access_token").trigger("change").prop( "checked", true );
|
594 |
-
}
|
595 |
-
});
|
596 |
-
</script>
|
597 |
-
<?php
|
598 |
-
}
|
599 |
-
|
600 |
-
}
|
601 |
-
|
602 |
-
|
603 |
-
if( !empty($pages_data_arr->data) || $cff_is_groups ){
|
604 |
-
//Show the pages they manage
|
605 |
-
echo '<div id="cff_fb_login_modal" class="cff_modal_tokens cffnomodal">';
|
606 |
-
echo '<div class="cff_modal_box">';
|
607 |
-
echo '<div class="cff-managed-pages">';
|
608 |
-
|
609 |
-
if( $cff_is_groups ){
|
610 |
-
//GROUPS
|
611 |
-
|
612 |
-
if( empty($groups_data_arr->data) && empty($groups_admin_data_arr->data) ){
|
613 |
-
echo '<h3>No Groups Returned</h3>';
|
614 |
-
echo "<p>Facebook has not returned any groups for your user. It is only possible to display a feed from a group which you are either an admin or a member. Please note, if you are not an admin of the group then it is required that an admin add our app in the group settings in order to display a feed.</p><p>Please either create or join a Facebook group and then follow the directions when connecting your account on this page.</p>";
|
615 |
-
echo '<a href="JavaScript:void(0);" class="button button-primary" id="cff-close-modal-primary-button">Close</a>';
|
616 |
-
} else {
|
617 |
-
global $cff_error_reporter;
|
618 |
-
|
619 |
-
$cff_error_reporter->remove_error( 'accesstoken' );
|
620 |
-
echo '<div class="cff-groups-list">';
|
621 |
-
echo '<p style="margin-top: 0;"><i class="fa fa-check-circle" aria-hidden="true" style="font-size: 15px; margin: 0 8px 0 2px;"></i>Select a Facebook group below to get an Access Token.</p>';
|
622 |
-
|
623 |
-
echo '<div class="cff-pages-wrap">';
|
624 |
-
//Admin groups
|
625 |
-
foreach ( $groups_admin_data_arr->data as $page => $group_data ) {
|
626 |
-
echo '<div class="cff-managed-page cff-group-admin';
|
627 |
-
if( $group_data->id == $page_id_val ) echo ' cff-page-selected';
|
628 |
-
echo '" data-token="'.$access_token.'" data-page-id="'.$group_data->id.'" id="cff_'.$group_data->id.'" data-pagetype="group">';
|
629 |
-
echo '<p>';
|
630 |
-
if( isset( $group_data->picture->data->url ) ) echo '<img class="cff-page-avatar" border="0" height="50" width="50" src="'.$group_data->picture->data->url.'">';
|
631 |
-
echo '<b class="cff-page-info-name">'.$group_data->name.'</b><span class="cff-page-info">(Group ID: '.$group_data->id.')</span></p>';
|
632 |
-
echo '<div class="cff-group-admin-icon"><i class="fa fa-user" aria-hidden="true"></i> Admin</div>';
|
633 |
-
echo '</div>';
|
634 |
-
}
|
635 |
-
//Member groups
|
636 |
-
foreach ( $groups_data_arr->data as $page => $group_data ) {
|
637 |
-
echo '<div class="cff-managed-page';
|
638 |
-
if( $group_data->id == $page_id_val ) echo ' cff-page-selected';
|
639 |
-
echo '" data-token="'.$access_token.'" data-page-id="'.$group_data->id.'" id="cff_'.$group_data->id.'" data-pagetype="group">';
|
640 |
-
echo '<p>';
|
641 |
-
if( isset( $group_data->picture->data->url ) ) echo '<img class="cff-page-avatar" border="0" height="50" width="50" src="'.$group_data->picture->data->url.'">';
|
642 |
-
echo '<b class="cff-page-info-name">'.$group_data->name.'</b><span class="cff-page-info">(Group ID: '.$group_data->id.')</span></p>';
|
643 |
-
echo '</div>';
|
644 |
-
}
|
645 |
-
echo '</div>';
|
646 |
-
echo '<a href="JavaScript:void(0);" class="button button-primary cff-group-btn" id="cff-insert-token" disabled="disabled">Use token for this Group</a>';
|
647 |
-
if( $cff_token_expiration == "60 days" ) echo '<div id="cff_token_expiration_note" class="cff-error"><b>Important:</b> This token will expire in 60 days.<br /><a href="https://smashballoon.com/extending-a-group-access-token-so-it-never-expires/" target="_blank">Extend token so it never expires</a></div>';
|
648 |
-
echo '</div>';
|
649 |
-
|
650 |
-
echo '<div id="cff-group-installation">';
|
651 |
-
echo '<h3>Important</h3>';
|
652 |
-
|
653 |
-
echo '<div id="cff-group-admin-directions">';
|
654 |
-
echo '<p>To display a feed from your group you need to add our app in your Facebook group settings:</p>';
|
655 |
-
echo '<ul>';
|
656 |
-
echo '<li><b>1)</b> Go to your group settings page by clicking <a id="cff-group-edit" href="https://www.facebook.com/groups/" target="_blank">here<i class="fa fa-external-link" aria-hidden="true" style="font-size: 13px; position: relative; top: 2px; margin-left: 5px;"></i></a></li>';
|
657 |
-
echo '<li><b>2)</b> In the "Apps" section click "Add Apps".</li>';
|
658 |
-
echo '<li><b>3)</b> Search for "Smash Balloon" and select our app (<a id="cff-group-app-tooltip">screenshot</a>).<img id="cff-group-app-screenshot" src="'. plugins_url( "img/group-app.png" , __FILE__ ) .'" alt="Thumbnail Layout" /></li>';
|
659 |
-
echo '<li><b>4</b>) Click "Add".</li>';
|
660 |
-
echo '</ul>';
|
661 |
-
|
662 |
-
echo '<p style="margin-bottom: 10px;">You can now use the plugin to display a feed from your group.</p>';
|
663 |
-
echo '</div>';
|
664 |
-
|
665 |
-
echo '<div id="cff-group-member-directions">';
|
666 |
-
echo '<p>To display a feed from this group an admin needs to first add our app in the group settings. Please ask an admin to follow the directions <a href="https://smashballoon.com/adding-our-app-to-a-facebook-group/" target="_blank">here</a> to add our app.</p>';
|
667 |
-
echo '<p>Once this is done you will then be able to display a feed from this group.</p>';
|
668 |
-
echo '</div>';
|
669 |
-
|
670 |
-
echo '<a href="JavaScript:void(0);" class="button button-primary" id="cff-close-modal-primary-button">Done</a>';
|
671 |
-
echo '<a href="https://smashballoon.com/display-facebook-group-feed/" target="_blank" class="button button-secondary"><i class="fa fa-life-ring"></i> Help</a>';
|
672 |
-
echo '</div>';
|
673 |
-
|
674 |
-
}
|
675 |
-
|
676 |
-
} else {
|
677 |
-
//PAGES
|
678 |
-
global $cff_error_reporter;
|
679 |
-
|
680 |
-
$cff_error_reporter->remove_error( 'accesstoken' );
|
681 |
-
|
682 |
-
echo '<p class="cff-tokens-note"><i class="fa fa-check-circle" aria-hidden="true" style="font-size: 15px; margin: 0 8px 0 2px;"></i> Select a Facebook page below to connect it.</p>';
|
683 |
-
|
684 |
-
echo '<div class="cff-pages-wrap">';
|
685 |
-
foreach ( $pages_data_arr->data as $page => $page_data ) {
|
686 |
-
echo '<div class="cff-managed-page ';
|
687 |
-
if( $page_data->id == $page_id_val ) echo 'cff-page-selected';
|
688 |
-
echo '" data-token="'.$page_data->access_token.'" data-page-id="'.$page_data->id.'" data-pagetype="page">';
|
689 |
-
echo '<p><img class="cff-page-avatar" border="0" height="50" width="50" src="https://graph.facebook.com/'.$page_data->id.'/picture"><b class="cff-page-info-name">'.$page_data->name.'</b><span class="cff-page-info">(Page ID: '.$page_data->id.')</span></p>';
|
690 |
-
echo '</div>';
|
691 |
-
}
|
692 |
-
echo '</div>';
|
693 |
-
|
694 |
-
$cff_use_token_text = 'Connect this page';
|
695 |
-
echo '<a href="JavaScript:void(0);" id="cff-insert-token" class="button button-primary" disabled="disabled">'.$cff_use_token_text.'</a>';
|
696 |
-
echo '<a href="JavaScript:void(0);" id="cff-insert-all-tokens" class="button button-secondary cff_connect_all">Connect All</a>';
|
697 |
-
echo "<a href='https://smashballoon.com/facebook-pages-im-admin-of-arent-listed-after-authorizing-plugin/' target='_blank' class='cff-connection-note'>One of my pages isn't listed</a>";
|
698 |
-
|
699 |
-
}
|
700 |
-
|
701 |
-
echo '</div>';
|
702 |
-
echo '<a href="JavaScript:void(0);" class="cff-modal-close"><i class="fa fa-times"></i></a>';
|
703 |
-
echo '</div>';
|
704 |
-
echo '</div>';
|
705 |
-
|
706 |
-
echo '<a href="JavaScript:void(0);" class="cff_admin_btn" id="cff_fb_show_tokens"><i class="fa fa-th-list" aria-hidden="true" style="font-size: 14px; margin-right: 8px;"></i>';
|
707 |
-
$cff_is_groups ? _e( "Show Available Groups", "custom-facebook-feed" ) : _e( "Show Available Pages", "custom-facebook-feed" );
|
708 |
-
echo '</a>';
|
709 |
-
|
710 |
-
}
|
711 |
-
|
712 |
-
}
|
713 |
-
}
|
714 |
-
?>
|
715 |
-
|
716 |
-
<table class="form-table">
|
717 |
-
<tbody>
|
718 |
-
<tr valign="top">
|
719 |
-
<th scope="row"><label><?php _e('Facebook Page ID<br /><i style="font-weight: normal; font-size: 12px;">ID of your Facebook Page or Group</i>', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> id
|
720 |
-
Eg: id="YOUR_PAGE_OR_GROUP_ID"</code></th>
|
721 |
-
<td>
|
722 |
-
<p id="cff_primary_account_label"></p>
|
723 |
-
<input name="cff_page_id" id="cff_page_id" type="text" value="<?php esc_attr_e( $page_id_val, 'custom-facebook-feed' ); ?>" size="45" data-page-id="<?php esc_attr_e( $page_id_val ); ?>" />
|
724 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What\'s my Page ID?', 'custom-facebook-feed'); ?></a>
|
725 |
-
<br /><i style="color: #666; font-size: 11px;">Eg. 1234567890123 or smashballoon</i>
|
726 |
-
<div class="cff-tooltip cff-more-info">
|
727 |
-
<ul>
|
728 |
-
<li><?php _e('<b>Facebook Page</b><br />
|
729 |
-
You can find the ID of your Facebook <b>Page</b> from the URL. In each URL format, the ID is highlighted below:<br /><br />
|
730 |
-
URL Format 1: <code>https://www.facebook.com/<span class="cff-highlight">your_page_name</span></code>
|
731 |
-
<br />
|
732 |
-
URL Format 2: <code>https://www.facebook.com/your_page_name-<span class="cff-highlight">1234567890</span></code>
|
733 |
-
<br />
|
734 |
-
URL Format 3: <code>https://www.facebook.com/pages/your_page_name/<span class="cff-highlight">1234567890</span></code>
|
735 |
-
'); ?>
|
736 |
-
</li>
|
737 |
-
<li><?php _e('<b>Facebook Group</b><br />You can find the ID of your Facebook <b>Group</b> from the URL, like so: <code>https://www.facebook.com/groups/<span class="cff-highlight">1234567890</span></code>'); ?></li>
|
738 |
-
</ul>
|
739 |
-
</div>
|
740 |
-
</td>
|
741 |
-
</tr>
|
742 |
-
|
743 |
-
<?php
|
744 |
-
//When connecting an account check the current access token to see if it has an error. If so then add a class to the field and replace it automatically in JS when getting a new one.
|
745 |
-
$cff_replace_token = false;
|
746 |
-
if( isset($_GET['access_token']) && isset($_GET['final_response']) ){
|
747 |
-
|
748 |
-
if( $_GET['final_response'] == 'true' ){
|
749 |
-
$api_page_id = trim($page_id_val);
|
750 |
-
$url = 'https://graph.facebook.com/'.$api_page_id.'?limit=1&fields=id&access_token='.$access_token_val;
|
751 |
-
$accounts_data = cff_fetchUrl($url);
|
752 |
-
//If there's an error (and it's not the PPCA one) then mark the token as needing to be replaced
|
753 |
-
if (strpos($accounts_data, 'error') !== false && strpos($accounts_data, 'Public') == false) $cff_replace_token = true;
|
754 |
-
}
|
755 |
-
|
756 |
-
}
|
757 |
-
|
758 |
-
?>
|
759 |
-
|
760 |
-
<tr valign="top">
|
761 |
-
|
762 |
-
<?php
|
763 |
-
//Check to see whether we've already checked the token against the API. If so, then don't do it again until the settings are saved which clears this transient.
|
764 |
-
//This var is used to add an attr to the access token field below. If it's set then ana Ajax call is made in the admin JS file which checks the API to see if the token matches the ID.
|
765 |
-
$cff_check_api_for_ppca = false;
|
766 |
-
if( ! get_transient( 'cff_ppca_admin_token_check' ) ){
|
767 |
-
$cff_check_api_for_ppca = true;
|
768 |
-
set_transient( 'cff_ppca_admin_token_check', 1, YEAR_IN_SECONDS );
|
769 |
-
}
|
770 |
-
|
771 |
-
?>
|
772 |
-
<th scope="row" style="padding-bottom: 10px;"><?php _e('Facebook Access Token', 'custom-facebook-feed'); ?><br /><i style="font-weight: normal; font-size: 12px; color: red;"><?php _e('Required', 'custom-facebook-feed'); ?></i></th>
|
773 |
-
<td>
|
774 |
-
<textarea name="cff_access_token" id="cff_access_token" <?php if($cff_replace_token) echo 'class="cff-replace-token"' ?> style="min-width: 60%;" data-accesstoken="<?php esc_attr_e( $access_token_val ); ?>" <?php if($cff_check_api_for_ppca) echo 'data-check-ppca="true"'; ?>><?php esc_attr_e( $access_token_val ); ?></textarea>
|
775 |
-
|
776 |
-
<div class="cff-ppca-check-notice cff-error"><?php _e("<b>Important:</b> This Access Token does not match the Facebook ID used above. To check which Facebook Page this Access Token is for, <a href='https://smashballoon.com/checking-what-facebook-page-an-access-token-is-from/' target='_blank'>see here</a>.", 'custom-facebook-feed'); ?>
|
777 |
-
|
778 |
-
<span style="display: block; padding-top: 4px;"><i class="fa fa-question-circle" aria-hidden="true"></i> <a class="cff-tooltip-link" style="margin:0;" href="JavaScript:void(0);"><?php _e("Why am I seeing this?"); ?></a></span>
|
779 |
-
<p class="cff-tooltip cff-more-info"><?php _e("Due to <a href='https://smashballoon.com/facebook-api-changes-september-4-2020/' target='_blank'>Facebook API changes</a> on September 4, 2020, it is only possible to display Facebook feeds from a Facebook page you have admin permissions on. This Access Token doesn't appear to match the Facebook page specified above that you are trying to display a feed from. To troubleshoot this issue, please <a href='https://smashballoon.com/facebook-ppca-error-notice/' target='_blank'>see here</a>.", 'custom-facebook-feed'); ?></p>
|
780 |
-
</div>
|
781 |
-
|
782 |
-
<br /><a class="cff-tooltip-link" style="margin-left: 3px;" href="JavaScript:void(0);"><?php _e("What is this?", 'custom-facebook-feed'); ?></a>
|
783 |
-
<p class="cff-tooltip cff-more-info"><?php _e("In order to connect to Facebook and get a feed, you need to use an Access Token. To get one, simply use the blue button above to log into your Facebook account. You will then receive a token that will be used to connect to Facebook's API. If you already have an Access Token then you can enter it here.", 'custom-facebook-feed'); ?></p>
|
784 |
-
|
785 |
-
<div class="cff-notice cff-profile-error cff-access-token">
|
786 |
-
<?php _e("<p>This doesn't appear to be an Access Token. Please be sure that you didn't enter your App Secret instead of your Access Token.<br />Your App ID and App Secret are used to obtain your Access Token; simply paste them into the fields in the last step of the <a href='https://smashballoon.com/custom-facebook-feed/access-token/' target='_blank'>Access Token instructions</a> and click '<b>Get my Access Token</b>'.</p>", 'custom-facebook-feed'); ?>
|
787 |
-
</div>
|
788 |
-
</td>
|
789 |
-
</tr>
|
790 |
-
</tbody>
|
791 |
-
</table>
|
792 |
-
|
793 |
-
<div id="cff_accounts_section">
|
794 |
-
<a href="JavaScript:void(0);" class="button-secondary button" id="cff_manual_account_button">Manually connect account</a>
|
795 |
-
|
796 |
-
<div id="cff_manual_account">
|
797 |
-
<div id="cff_manual_account_step_1">
|
798 |
-
<label for="cff_manual_account_type"><?php _e('Is it a Facebook page or group?'); ?></label>
|
799 |
-
<select name="cff_manual_account_type" id="cff_manual_account_type">
|
800 |
-
<option value="" disabled selected><?php _e('- Select one -'); ?></option>
|
801 |
-
<option value="page"><?php _e('Page'); ?></option>
|
802 |
-
<option value="group"><?php _e('Group'); ?></option>
|
803 |
-
</select>
|
804 |
-
<a href="javascript:void(0);" class="cff_manual_forward button-primary"><i class="fa fa-chevron-right" aria-hidden="true"></i></a>
|
805 |
-
</div>
|
806 |
-
|
807 |
-
<div id="cff_manual_account_step_2" class="cff_account_type_page">
|
808 |
-
<div>
|
809 |
-
<label for="cff_manual_account_name"><span class="cff_page"><?php _e('Page'); ?></span><span class="cff_group"><?php _e('Group'); ?></span> <?php _e('Name'); ?> <span style="font-size: 11px;"><?php _e('(optional)'); ?></span></label>
|
810 |
-
<input name="cff_manual_account_name" id="cff_manual_account_name" type="text" value="" placeholder="Eg: John's Facebook Page" />
|
811 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
812 |
-
<p class="cff-tooltip cff-more-info"><?php _e('This is just for labeling the account here on this settings page'); ?></p>
|
813 |
-
</div>
|
814 |
-
|
815 |
-
<div>
|
816 |
-
<label for="cff_manual_account_id"><span class="cff_page"><?php _e('Page'); ?></span><span class="cff_group"><?php _e('Group'); ?></span> <?php _e('ID'); ?></label>
|
817 |
-
<input name="cff_manual_account_id" id="cff_manual_account_id" type="text" value="" placeholder="Eg: 1234567890123 or smashballoon" />
|
818 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
819 |
-
<p class="cff-tooltip cff-more-info"><?php _e('The ID of the Facebook'); ?> <span class="cff_page"><?php _e('Page'); ?></span><span class="cff_group"><?php _e('Group'); ?></span> <?php _e('you want to add.'); ?> <a href='https://smashballoon.com/custom-facebook-feed/id/' target='_blank'><?php _e("How do I find my Page ID?"); ?></a></p>
|
820 |
-
</div>
|
821 |
-
|
822 |
-
<div>
|
823 |
-
<label for="cff_manual_account_token"><?php _e('Access Token'); ?></label>
|
824 |
-
<input name="cff_manual_account_token" id="cff_manual_account_token" type="text" value="" />
|
825 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
826 |
-
<p class="cff-tooltip cff-more-info"><?php _e('The Access Token of the Facebook'); ?> <span class="cff_page"><?php _e('Page'); ?></span><span class="cff_group"><?php _e('Group'); ?></span> <?php _e('you want to add'); ?></p>
|
827 |
-
</div>
|
828 |
-
|
829 |
-
<?php
|
830 |
-
$cff_submit_btn_atts = array( 'disabled' => 'true' );
|
831 |
-
submit_button('Connect Account', 'primary', 'submit', true, $cff_submit_btn_atts);
|
832 |
-
?>
|
833 |
-
<a href="javascript:void(0);" class="cff_manual_back button-secondary">Back</a>
|
834 |
-
</div>
|
835 |
-
|
836 |
-
</div>
|
837 |
-
|
838 |
-
<h3 class="cff_connected_actions">Connected Accounts:</h3>
|
839 |
-
<div id="cff_connected_accounts_wrap"><?php //Add connected accounts here ?></div>
|
840 |
-
|
841 |
-
<div class="cff_connected_actions">
|
842 |
-
<a href="JavaScript:void(0);" id="cff_export_accounts">Show raw account data</a>
|
843 |
-
<div id="cff_export_accounts_wrap">
|
844 |
-
<textarea name="cff_connected_accounts" id="cff_connected_accounts" style="width: 100%;" rows="5" /><?php echo stripslashes( esc_attr( $cff_connected_accounts_val ) ); ?></textarea>
|
845 |
-
</div>
|
846 |
-
|
847 |
-
<?php submit_button('Save Settings'); ?>
|
848 |
-
</div>
|
849 |
-
|
850 |
-
</div>
|
851 |
-
|
852 |
-
<hr />
|
853 |
-
<table class="form-table">
|
854 |
-
<tbody>
|
855 |
-
<h3><?php _e('Settings', 'custom-facebook-feed'); ?></h3>
|
856 |
-
|
857 |
-
<tr valign="top" class="cff-page-type">
|
858 |
-
<th scope="row"><label><?php _e('Is it a page or group?'); ?></label><code class="cff_shortcode"> pagetype
|
859 |
-
Eg: pagetype=group</code></th>
|
860 |
-
<td>
|
861 |
-
<select name="cff_page_type" id="cff_page_type" style="width: 100px;">
|
862 |
-
<option value="page" <?php if($cff_page_type_val == "page") echo 'selected="selected"' ?> ><?php _e('Page'); ?></option>
|
863 |
-
<option value="group" <?php if($cff_page_type_val == "group") echo 'selected="selected"' ?> ><?php _e('Group'); ?></option>
|
864 |
-
<option value="profile" <?php if($cff_page_type_val == "profile") echo 'selected="selected"' ?> ><?php _e('Profile'); ?></option>
|
865 |
-
</select>
|
866 |
-
<div class="cff-notice cff-profile-error cff-page-type">
|
867 |
-
<?php _e("<p>Due to Facebook's privacy policy you're not able to display posts from a personal profile, only from a public Facebook Page.</p><p>If you're using a profile to represent a business, organization, product, public figure or the like, then Facebook recommends <a href='http://www.facebook.com/help/175644189234902/' target='_blank'>converting your profile to a page</a>. There are many advantages to using pages over profiles, and once you've converted then the plugin will be able to successfully retrieve and display all of your posts.</p>", 'custom-facebook-feed'); ?>
|
868 |
-
</div>
|
869 |
-
</td>
|
870 |
-
</tr>
|
871 |
-
|
872 |
-
<tr valign="top">
|
873 |
-
<th scope="row"><label><?php _e('Show posts on my page by:', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> showpostsby
|
874 |
-
Eg: showpostsby=others</code></th>
|
875 |
-
<td>
|
876 |
-
<select name="cff_show_others" id="cff_show_others" style="width: 250px;">
|
877 |
-
<option value="me" <?php if($cff_show_others_val == 'me') echo 'selected="selected"' ?> ><?php _e('Only the page owner (me)', 'custom-facebook-feed'); ?></option>
|
878 |
-
<option value="others" <?php if($cff_show_others_val == 'others' || $cff_show_others_val == 'on') echo 'selected="selected"' ?> ><?php _e('Page owner + other people', 'custom-facebook-feed'); ?></option>
|
879 |
-
<option value="onlyothers" <?php if($cff_show_others_val == 'onlyothers') echo 'selected="selected"' ?> ><?php _e('Only other people', 'custom-facebook-feed'); ?></option>
|
880 |
-
</select>
|
881 |
-
</td>
|
882 |
-
</tr>
|
883 |
-
|
884 |
-
<tr valign="top">
|
885 |
-
<th scope="row"><label><?php _e('Number of posts to display', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> num, nummobile
|
886 |
-
Eg: num=5
|
887 |
-
nummobile=3</code></th>
|
888 |
-
<td>
|
889 |
-
<input name="cff_num_show" type="text" value="<?php esc_attr_e( $num_show_val, 'custom-facebook-feed' ); ?>" size="4" />
|
890 |
-
<i style="color: #666; font-size: 11px;">Max 100</i>
|
891 |
-
<div style="margin: 8px 0 0 1px; font-size: 12px;">
|
892 |
-
<input type="checkbox" name="cff_show_num_mobile" id="cff_show_num_mobile" <?php if(! empty( $cff_num_mobile )) echo 'checked="checked"' ?> /> <label for="cff_show_num_mobile"><?php _e('Show different number for mobile'); ?></label>
|
893 |
-
<div class="cff-mobile-col-settings">
|
894 |
-
<div class="cff-row">
|
895 |
-
<label title="Click for shortcode option"><?php _e('Mobile Number', 'custom-facebook-feed'); ?>:</label><code class="cff_shortcode"> nummobile
|
896 |
-
Eg: nummobile=4</code>
|
897 |
-
<input type="text" name="cff_num_mobile" id="cff_num_mobile" size="4" value="<?php echo esc_attr( $cff_num_mobile ); ?>">
|
898 |
-
<i style="color: #666; font-size: 11px;"><?php _e('Leave blank for default', 'custom-facebook-feed'); ?></i>
|
899 |
-
</div>
|
900 |
-
</div>
|
901 |
-
</div>
|
902 |
-
</td>
|
903 |
-
</tr>
|
904 |
-
<tr valign="top">
|
905 |
-
<th scope="row"><label><?php _e('Facebook API post limit', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> limit
|
906 |
-
Eg: limit=10</code></th>
|
907 |
-
<td>
|
908 |
-
<select name="cff_limit_setting" id="cff_limit_setting" style="width: 90px;">
|
909 |
-
<option value="auto" selected="selected"><?php _e('Auto'); ?></option>
|
910 |
-
<option value="manual"><?php _e('Manual'); ?></option>
|
911 |
-
</select>
|
912 |
-
<div id="cff_limit_manual_settings">
|
913 |
-
<input name="cff_post_limit" id="cff_post_limit" type="text" value="<?php esc_attr_e( $cff_post_limit_val ); ?>" size="4" />
|
914 |
-
<i style="color: #666; font-size: 11px;">Eg. 10. Max 100.</i>
|
915 |
-
</div>
|
916 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
917 |
-
<p class="cff-tooltip cff-more-info"><?php _e("The post 'limit' is the number of posts retrieved from the Facebook API. Most users won't need to manually adjust this setting as by default the plugin automatically retrieves a few more posts from the Facebook API than you need, as some posts may be filtered out.", "custom-facebook-feed"); ?><br /><br />
|
918 |
-
|
919 |
-
<b><?php _e('Auto', 'custom-facebook-feed'); ?></b> (<?php _e('Recommended', 'custom-facebook-feed'); ?>)<br />
|
920 |
-
<?php _e("Allow the plugin to automatically decide how many posts to retrieve from Facebook's API.", "custom-facebook-feed"); ?><br /><br />
|
921 |
-
|
922 |
-
<b><?php _e('Manual', 'custom-facebook-feed'); ?></b><br />
|
923 |
-
<?php _e("Manually set how many posts to retrieve from Facebook's API.<br /><b>Note:</b> If you choose to retrieve a high number of posts then it will take longer for Facebook to return the posts when the plugin checks for new ones.", "custom-facebook-feed"); ?></p>
|
924 |
-
</td>
|
925 |
-
</tr>
|
926 |
-
<tr valign="top">
|
927 |
-
<th scope="row"><?php _e('Check for new posts every', 'custom-facebook-feed'); ?></th>
|
928 |
-
<td>
|
929 |
-
<input name="cff_cache_time" type="text" value="<?php esc_attr_e( $cff_cache_time_val, 'custom-facebook-feed' ); ?>" size="4" />
|
930 |
-
<select name="cff_cache_time_unit" style="width: 100px;">
|
931 |
-
<option value="minutes" <?php if($cff_cache_time_unit_val == "minutes") echo 'selected="selected"' ?> ><?php _e('Minutes', 'custom-facebook-feed'); ?></option>
|
932 |
-
<option value="hours" <?php if($cff_cache_time_unit_val == "hours") echo 'selected="selected"' ?> ><?php _e('Hours', 'custom-facebook-feed'); ?></option>
|
933 |
-
<option value="days" <?php if($cff_cache_time_unit_val == "days") echo 'selected="selected"' ?> ><?php _e('Days', 'custom-facebook-feed'); ?></option>
|
934 |
-
</select>
|
935 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
936 |
-
<p class="cff-tooltip cff-more-info"><?php _e('Your Facebook posts and comments data is temporarily cached by the plugin in your WordPress database. You can choose how long this data should be cached for. If you set the time to 60 minutes then the plugin will clear the cached data after that length of time, and the next time the page is viewed it will check for new data.', 'custom-facebook-feed'); ?></p>
|
937 |
-
</td>
|
938 |
-
</tr>
|
939 |
-
|
940 |
-
<tr valign="top">
|
941 |
-
<th scope="row"><label><?php _e('Localization', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> locale
|
942 |
-
Eg: locale=es_ES</code></th>
|
943 |
-
<td>
|
944 |
-
<select name="cff_locale">
|
945 |
-
<option value="af_ZA" <?php if($cff_locale_val == "af_ZA") echo 'selected="selected"' ?> ><?php _e('Afrikaans', 'custom-facebook-feed'); ?></option>
|
946 |
-
<option value="ar_AR" <?php if($cff_locale_val == "ar_AR") echo 'selected="selected"' ?> ><?php _e('Arabic', 'custom-facebook-feed'); ?></option>
|
947 |
-
<option value="az_AZ" <?php if($cff_locale_val == "az_AZ") echo 'selected="selected"' ?> ><?php _e('Azerbaijani', 'custom-facebook-feed'); ?></option>
|
948 |
-
<option value="be_BY" <?php if($cff_locale_val == "be_BY") echo 'selected="selected"' ?> ><?php _e('Belarusian', 'custom-facebook-feed'); ?></option>
|
949 |
-
<option value="bg_BG" <?php if($cff_locale_val == "bg_BG") echo 'selected="selected"' ?> ><?php _e('Bulgarian', 'custom-facebook-feed'); ?></option>
|
950 |
-
<option value="bn_IN" <?php if($cff_locale_val == "bn_IN") echo 'selected="selected"' ?> ><?php _e('Bengali', 'custom-facebook-feed'); ?></option>
|
951 |
-
<option value="bs_BA" <?php if($cff_locale_val == "bs_BA") echo 'selected="selected"' ?> ><?php _e('Bosnian', 'custom-facebook-feed'); ?></option>
|
952 |
-
<option value="ca_ES" <?php if($cff_locale_val == "ca_ES") echo 'selected="selected"' ?> ><?php _e('Catalan', 'custom-facebook-feed'); ?></option>
|
953 |
-
<option value="cs_CZ" <?php if($cff_locale_val == "cs_CZ") echo 'selected="selected"' ?> ><?php _e('Czech', 'custom-facebook-feed'); ?></option>
|
954 |
-
<option value="cy_GB" <?php if($cff_locale_val == "cy_GB") echo 'selected="selected"' ?> ><?php _e('Welsh', 'custom-facebook-feed'); ?></option>
|
955 |
-
<option value="da_DK" <?php if($cff_locale_val == "da_DK") echo 'selected="selected"' ?> ><?php _e('Danish', 'custom-facebook-feed'); ?></option>
|
956 |
-
<option value="de_DE" <?php if($cff_locale_val == "de_DE") echo 'selected="selected"' ?> ><?php _e('German', 'custom-facebook-feed'); ?></option>
|
957 |
-
<option value="el_GR" <?php if($cff_locale_val == "el_GR") echo 'selected="selected"' ?> ><?php _e('Greek', 'custom-facebook-feed'); ?></option>
|
958 |
-
<option value="en_GB" <?php if($cff_locale_val == "en_GB") echo 'selected="selected"' ?> ><?php _e('English (UK)', 'custom-facebook-feed'); ?></option>
|
959 |
-
<option value="en_PI" <?php if($cff_locale_val == "en_PI") echo 'selected="selected"' ?> ><?php _e('English (Pirate)', 'custom-facebook-feed'); ?></option>
|
960 |
-
<option value="en_UD" <?php if($cff_locale_val == "en_UD") echo 'selected="selected"' ?> ><?php _e('English (Upside Down)', 'custom-facebook-feed'); ?></option>
|
961 |
-
<option value="en_US" <?php if($cff_locale_val == "en_US") echo 'selected="selected"' ?> ><?php _e('English (US)', 'custom-facebook-feed'); ?></option>
|
962 |
-
<option value="eo_EO" <?php if($cff_locale_val == "eo_EO") echo 'selected="selected"' ?> ><?php _e('Esperanto', 'custom-facebook-feed'); ?></option>
|
963 |
-
<option value="es_ES" <?php if($cff_locale_val == "es_ES") echo 'selected="selected"' ?> ><?php _e('Spanish (Spain)', 'custom-facebook-feed'); ?></option>
|
964 |
-
<option value="es_LA" <?php if($cff_locale_val == "es_LA") echo 'selected="selected"' ?> ><?php _e('Spanish', 'custom-facebook-feed'); ?></option>
|
965 |
-
<option value="et_EE" <?php if($cff_locale_val == "et_EE") echo 'selected="selected"' ?> ><?php _e('Estonian', 'custom-facebook-feed'); ?></option>
|
966 |
-
<option value="eu_ES" <?php if($cff_locale_val == "eu_ES") echo 'selected="selected"' ?> ><?php _e('Basque', 'custom-facebook-feed'); ?></option>
|
967 |
-
<option value="fa_IR" <?php if($cff_locale_val == "fa_IR") echo 'selected="selected"' ?> ><?php _e('Persian', 'custom-facebook-feed'); ?></option>
|
968 |
-
<option value="fb_LT" <?php if($cff_locale_val == "fb_LT") echo 'selected="selected"' ?> ><?php _e('Leet Speak', 'custom-facebook-feed'); ?></option>
|
969 |
-
<option value="fi_FI" <?php if($cff_locale_val == "fi_FI") echo 'selected="selected"' ?> ><?php _e('Finnish', 'custom-facebook-feed'); ?></option>
|
970 |
-
<option value="fo_FO" <?php if($cff_locale_val == "fo_FO") echo 'selected="selected"' ?> ><?php _e('Faroese', 'custom-facebook-feed'); ?></option>
|
971 |
-
<option value="fr_CA" <?php if($cff_locale_val == "fr_CA") echo 'selected="selected"' ?> ><?php _e('French (Canada)', 'custom-facebook-feed'); ?></option>
|
972 |
-
<option value="fr_FR" <?php if($cff_locale_val == "fr_FR") echo 'selected="selected"' ?> ><?php _e('French (France)', 'custom-facebook-feed'); ?></option>
|
973 |
-
<option value="fy_NL" <?php if($cff_locale_val == "fy_NL") echo 'selected="selected"' ?> ><?php _e('Frisian', 'custom-facebook-feed'); ?></option>
|
974 |
-
<option value="ga_IE" <?php if($cff_locale_val == "ga_IE") echo 'selected="selected"' ?> ><?php _e('Irish', 'custom-facebook-feed'); ?></option>
|
975 |
-
<option value="gl_ES" <?php if($cff_locale_val == "gl_ES") echo 'selected="selected"' ?> ><?php _e('Galician', 'custom-facebook-feed'); ?></option>
|
976 |
-
<option value="he_IL" <?php if($cff_locale_val == "he_IL") echo 'selected="selected"' ?> ><?php _e('Hebrew', 'custom-facebook-feed'); ?></option>
|
977 |
-
<option value="hi_IN" <?php if($cff_locale_val == "hi_IN") echo 'selected="selected"' ?> ><?php _e('Hindi', 'custom-facebook-feed'); ?></option>
|
978 |
-
<option value="hr_HR" <?php if($cff_locale_val == "hr_HR") echo 'selected="selected"' ?> ><?php _e('Croatian', 'custom-facebook-feed'); ?></option>
|
979 |
-
<option value="hu_HU" <?php if($cff_locale_val == "hu_HU") echo 'selected="selected"' ?> ><?php _e('Hungarian', 'custom-facebook-feed'); ?></option>
|
980 |
-
<option value="hy_AM" <?php if($cff_locale_val == "hy_AM") echo 'selected="selected"' ?> ><?php _e('Armenian', 'custom-facebook-feed'); ?></option>
|
981 |
-
<option value="id_ID" <?php if($cff_locale_val == "id_ID") echo 'selected="selected"' ?> ><?php _e('Indonesian', 'custom-facebook-feed'); ?></option>
|
982 |
-
<option value="is_IS" <?php if($cff_locale_val == "is_IS") echo 'selected="selected"' ?> ><?php _e('Icelandic', 'custom-facebook-feed'); ?></option>
|
983 |
-
<option value="it_IT" <?php if($cff_locale_val == "it_IT") echo 'selected="selected"' ?> ><?php _e('Italian', 'custom-facebook-feed'); ?></option>
|
984 |
-
<option value="ja_JP" <?php if($cff_locale_val == "ja_JP") echo 'selected="selected"' ?> ><?php _e('Japanese', 'custom-facebook-feed'); ?></option>
|
985 |
-
<option value="ka_GE" <?php if($cff_locale_val == "ka_GE") echo 'selected="selected"' ?> ><?php _e('Georgian', 'custom-facebook-feed'); ?></option>
|
986 |
-
<option value="km_KH" <?php if($cff_locale_val == "km_KH") echo 'selected="selected"' ?> ><?php _e('Khmer', 'custom-facebook-feed'); ?></option>
|
987 |
-
<option value="ko_KR" <?php if($cff_locale_val == "ko_KR") echo 'selected="selected"' ?> ><?php _e('Korean', 'custom-facebook-feed'); ?></option>
|
988 |
-
<option value="ku_TR" <?php if($cff_locale_val == "ku_TR") echo 'selected="selected"' ?> ><?php _e('Kurdish', 'custom-facebook-feed'); ?></option>
|
989 |
-
<option value="la_VA" <?php if($cff_locale_val == "la_VA") echo 'selected="selected"' ?> ><?php _e('Latin', 'custom-facebook-feed'); ?></option>
|
990 |
-
<option value="lt_LT" <?php if($cff_locale_val == "lt_LT") echo 'selected="selected"' ?> ><?php _e('Lithuanian', 'custom-facebook-feed'); ?></option>
|
991 |
-
<option value="lv_LV" <?php if($cff_locale_val == "lv_LV") echo 'selected="selected"' ?> ><?php _e('Latvian', 'custom-facebook-feed'); ?></option>
|
992 |
-
<option value="mk_MK" <?php if($cff_locale_val == "mk_MK") echo 'selected="selected"' ?> ><?php _e('Macedonian', 'custom-facebook-feed'); ?></option>
|
993 |
-
<option value="ml_IN" <?php if($cff_locale_val == "ml_IN") echo 'selected="selected"' ?> ><?php _e('Malayalam', 'custom-facebook-feed'); ?></option>
|
994 |
-
<option value="ms_MY" <?php if($cff_locale_val == "ms_MY") echo 'selected="selected"' ?> ><?php _e('Malay', 'custom-facebook-feed'); ?></option>
|
995 |
-
<option value="nb_NO" <?php if($cff_locale_val == "nb_NO") echo 'selected="selected"' ?> ><?php _e('Norwegian (bokmal)', 'custom-facebook-feed'); ?></option>
|
996 |
-
<option value="ne_NP" <?php if($cff_locale_val == "ne_NP") echo 'selected="selected"' ?> ><?php _e('Nepali', 'custom-facebook-feed'); ?></option>
|
997 |
-
<option value="nl_NL" <?php if($cff_locale_val == "nl_NL") echo 'selected="selected"' ?> ><?php _e('Dutch', 'custom-facebook-feed'); ?></option>
|
998 |
-
<option value="nn_NO" <?php if($cff_locale_val == "nn_NO") echo 'selected="selected"' ?> ><?php _e('Norwegian (nynorsk)', 'custom-facebook-feed'); ?></option>
|
999 |
-
<option value="pa_IN" <?php if($cff_locale_val == "pa_IN") echo 'selected="selected"' ?> ><?php _e('Punjabi', 'custom-facebook-feed'); ?></option>
|
1000 |
-
<option value="pl_PL" <?php if($cff_locale_val == "pl_PL") echo 'selected="selected"' ?> ><?php _e('Polish', 'custom-facebook-feed'); ?></option>
|
1001 |
-
<option value="ps_AF" <?php if($cff_locale_val == "ps_AF") echo 'selected="selected"' ?> ><?php _e('Pashto', 'custom-facebook-feed'); ?></option>
|
1002 |
-
<option value="pt_BR" <?php if($cff_locale_val == "pt_BR") echo 'selected="selected"' ?> ><?php _e('Portuguese (Brazil)', 'custom-facebook-feed'); ?></option>
|
1003 |
-
<option value="pt_PT" <?php if($cff_locale_val == "pt_PT") echo 'selected="selected"' ?> ><?php _e('Portuguese (Portugal)', 'custom-facebook-feed'); ?></option>
|
1004 |
-
<option value="ro_RO" <?php if($cff_locale_val == "ro_RO") echo 'selected="selected"' ?> ><?php _e('Romanian', 'custom-facebook-feed'); ?></option>
|
1005 |
-
<option value="ru_RU" <?php if($cff_locale_val == "ru_RU") echo 'selected="selected"' ?> ><?php _e('Russian', 'custom-facebook-feed'); ?></option>
|
1006 |
-
<option value="sk_SK" <?php if($cff_locale_val == "sk_SK") echo 'selected="selected"' ?> ><?php _e('Slovak', 'custom-facebook-feed'); ?></option>
|
1007 |
-
<option value="sl_SI" <?php if($cff_locale_val == "sl_SI") echo 'selected="selected"' ?> ><?php _e('Slovenian', 'custom-facebook-feed'); ?></option>
|
1008 |
-
<option value="sq_AL" <?php if($cff_locale_val == "sq_AL") echo 'selected="selected"' ?> ><?php _e('Albanian', 'custom-facebook-feed'); ?></option>
|
1009 |
-
<option value="sr_RS" <?php if($cff_locale_val == "sr_RS") echo 'selected="selected"' ?> ><?php _e('Serbian', 'custom-facebook-feed'); ?></option>
|
1010 |
-
<option value="sv_SE" <?php if($cff_locale_val == "sv_SE") echo 'selected="selected"' ?> ><?php _e('Swedish', 'custom-facebook-feed'); ?></option>
|
1011 |
-
<option value="sw_KE" <?php if($cff_locale_val == "sw_KE") echo 'selected="selected"' ?> ><?php _e('Swahili', 'custom-facebook-feed'); ?></option>
|
1012 |
-
<option value="ta_IN" <?php if($cff_locale_val == "ta_IN") echo 'selected="selected"' ?> ><?php _e('Tamil', 'custom-facebook-feed'); ?></option>
|
1013 |
-
<option value="te_IN" <?php if($cff_locale_val == "te_IN") echo 'selected="selected"' ?> ><?php _e('Telugu', 'custom-facebook-feed'); ?></option>
|
1014 |
-
<option value="th_TH" <?php if($cff_locale_val == "th_TH") echo 'selected="selected"' ?> ><?php _e('Thai', 'custom-facebook-feed'); ?></option>
|
1015 |
-
<option value="tl_PH" <?php if($cff_locale_val == "tl_PH") echo 'selected="selected"' ?> ><?php _e('Filipino', 'custom-facebook-feed'); ?></option>
|
1016 |
-
<option value="tr_TR" <?php if($cff_locale_val == "tr_TR") echo 'selected="selected"' ?> ><?php _e('Turkish', 'custom-facebook-feed'); ?></option>
|
1017 |
-
<option value="uk_UA" <?php if($cff_locale_val == "uk_UA") echo 'selected="selected"' ?> ><?php _e('Ukrainian', 'custom-facebook-feed'); ?></option>
|
1018 |
-
<option value="vi_VN" <?php if($cff_locale_val == "vi_VN") echo 'selected="selected"' ?> ><?php _e('Vietnamese', 'custom-facebook-feed'); ?></option>
|
1019 |
-
<option value="zh_CN" <?php if($cff_locale_val == "zh_CN") echo 'selected="selected"' ?> ><?php _e('Simplified Chinese (China)', 'custom-facebook-feed'); ?></option>
|
1020 |
-
<option value="zh_HK" <?php if($cff_locale_val == "zh_HK") echo 'selected="selected"' ?> ><?php _e('Traditional Chinese (Hong Kong)', 'custom-facebook-feed'); ?></option>
|
1021 |
-
<option value="zh_TW" <?php if($cff_locale_val == "zh_TW") echo 'selected="selected"' ?> ><?php _e('Traditional Chinese (Taiwan)', 'custom-facebook-feed'); ?></option>
|
1022 |
-
</select>
|
1023 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
1024 |
-
<p class="cff-tooltip cff-more-info"><?php _e("This translates some of the text sent by Facebook, specifically, the descriptive post text (eg: Smash Balloon shared a link) and the text in the 'Like Box' widget. To find out how to translate the other text in the plugin see <a href='https://smashballoon.com/cff-how-does-the-plugin-handle-text-and-language-translation/' target='_blank'>this FAQ</a>."); ?></p>
|
1025 |
-
</td>
|
1026 |
-
</tr>
|
1027 |
-
|
1028 |
-
<tr>
|
1029 |
-
<th><label for="cff_timezone" class="bump-left"><?php _e('Timezone', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> timezone
|
1030 |
-
Eg: timezone="America/New_York"
|
1031 |
-
<a href="http://php.net/manual/en/timezones.php" target="_blank">See full list</a></code></th>
|
1032 |
-
<td>
|
1033 |
-
<select name="cff_timezone" style="width: 300px;">
|
1034 |
-
<option value="Pacific/Midway" <?php if($cff_timezone == "Pacific/Midway") echo 'selected="selected"' ?> ><?php _e('(GMT-11:00) Midway Island, Samoa', 'custom-facebook-feed'); ?></option>
|
1035 |
-
<option value="America/Adak" <?php if($cff_timezone == "America/Adak") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii-Aleutian', 'custom-facebook-feed'); ?></option>
|
1036 |
-
<option value="Etc/GMT+10" <?php if($cff_timezone == "Etc/GMT+10") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii', 'custom-facebook-feed'); ?></option>
|
1037 |
-
<option value="Pacific/Marquesas" <?php if($cff_timezone == "Pacific/Marquesas") echo 'selected="selected"' ?> ><?php _e('(GMT-09:30) Marquesas Islands', 'custom-facebook-feed'); ?></option>
|
1038 |
-
<option value="Pacific/Gambier" <?php if($cff_timezone == "Pacific/Gambier") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Gambier Islands', 'custom-facebook-feed'); ?></option>
|
1039 |
-
<option value="America/Anchorage" <?php if($cff_timezone == "America/Anchorage") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Alaska', 'custom-facebook-feed'); ?></option>
|
1040 |
-
<option value="America/Ensenada" <?php if($cff_timezone == "America/Ensenada") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Tijuana, Baja California', 'custom-facebook-feed'); ?></option>
|
1041 |
-
<option value="Etc/GMT+8" <?php if($cff_timezone == "Etc/GMT+8") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pitcairn Islands', 'custom-facebook-feed'); ?></option>
|
1042 |
-
<option value="America/Los_Angeles" <?php if($cff_timezone == "America/Los_Angeles") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pacific Time (US & Canada)', 'custom-facebook-feed'); ?></option>
|
1043 |
-
<option value="America/Denver" <?php if($cff_timezone == "America/Denver") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Mountain Time (US & Canada)', 'custom-facebook-feed'); ?></option>
|
1044 |
-
<option value="America/Chihuahua" <?php if($cff_timezone == "America/Chihuahua") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Chihuahua, La Paz, Mazatlan', 'custom-facebook-feed'); ?></option>
|
1045 |
-
<option value="America/Dawson_Creek" <?php if($cff_timezone == "America/Dawson_Creek") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Arizona', 'custom-facebook-feed'); ?></option>
|
1046 |
-
<option value="America/Belize" <?php if($cff_timezone == "America/Belize") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Saskatchewan, Central America', 'custom-facebook-feed'); ?></option>
|
1047 |
-
<option value="America/Cancun" <?php if($cff_timezone == "America/Cancun") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Guadalajara, Mexico City, Monterrey', 'custom-facebook-feed'); ?></option>
|
1048 |
-
<option value="Chile/EasterIsland" <?php if($cff_timezone == "Chile/EasterIsland") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Easter Island', 'custom-facebook-feed'); ?></option>
|
1049 |
-
<option value="America/Chicago" <?php if($cff_timezone == "America/Chicago") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Central Time (US & Canada)', 'custom-facebook-feed'); ?></option>
|
1050 |
-
<option value="America/New_York" <?php if($cff_timezone == "America/New_York") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Eastern Time (US & Canada)', 'custom-facebook-feed'); ?></option>
|
1051 |
-
<option value="America/Havana" <?php if($cff_timezone == "America/Havana") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Cuba', 'custom-facebook-feed'); ?></option>
|
1052 |
-
<option value="America/Bogota" <?php if($cff_timezone == "America/Bogota") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Bogota, Lima, Quito, Rio Branco', 'custom-facebook-feed'); ?></option>
|
1053 |
-
<option value="America/Caracas" <?php if($cff_timezone == "America/Caracas") echo 'selected="selected"' ?> ><?php _e('(GMT-04:30) Caracas', 'custom-facebook-feed'); ?></option>
|
1054 |
-
<option value="America/Santiago" <?php if($cff_timezone == "America/Santiago") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Santiago', 'custom-facebook-feed'); ?></option>
|
1055 |
-
<option value="America/La_Paz" <?php if($cff_timezone == "America/La_Paz") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) La Paz', 'custom-facebook-feed'); ?></option>
|
1056 |
-
<option value="Atlantic/Stanley" <?php if($cff_timezone == "Atlantic/Stanley") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Faukland Islands', 'custom-facebook-feed'); ?></option>
|
1057 |
-
<option value="America/Campo_Grande" <?php if($cff_timezone == "America/Campo_Grande") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Brazil', 'custom-facebook-feed'); ?></option>
|
1058 |
-
<option value="America/Goose_Bay" <?php if($cff_timezone == "America/Goose_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Goose Bay)', 'custom-facebook-feed'); ?></option>
|
1059 |
-
<option value="America/Glace_Bay" <?php if($cff_timezone == "America/Glace_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Canada)', 'custom-facebook-feed'); ?></option>
|
1060 |
-
<option value="America/St_Johns" <?php if($cff_timezone == "America/St_Johns") echo 'selected="selected"' ?> ><?php _e('(GMT-03:30) Newfoundland', 'custom-facebook-feed'); ?></option>
|
1061 |
-
<option value="America/Araguaina" <?php if($cff_timezone == "America/Araguaina") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) UTC-3', 'custom-facebook-feed'); ?></option>
|
1062 |
-
<option value="America/Montevideo" <?php if($cff_timezone == "America/Montevideo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Montevideo', 'custom-facebook-feed'); ?></option>
|
1063 |
-
<option value="America/Miquelon" <?php if($cff_timezone == "America/Miquelon") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Miquelon, St. Pierre', 'custom-facebook-feed'); ?></option>
|
1064 |
-
<option value="America/Godthab" <?php if($cff_timezone == "America/Godthab") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Greenland', 'custom-facebook-feed'); ?></option>
|
1065 |
-
<option value="America/Argentina/Buenos_Aires" <?php if($cff_timezone == "America/Argentina/Buenos_Aires") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Buenos Aires', 'custom-facebook-feed'); ?></option>
|
1066 |
-
<option value="America/Sao_Paulo" <?php if($cff_timezone == "America/Sao_Paulo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Brasilia', 'custom-facebook-feed'); ?></option>
|
1067 |
-
<option value="America/Noronha" <?php if($cff_timezone == "America/Noronha") echo 'selected="selected"' ?> ><?php _e('(GMT-02:00) Mid-Atlantic', 'custom-facebook-feed'); ?></option>
|
1068 |
-
<option value="Atlantic/Cape_Verde" <?php if($cff_timezone == "Atlantic/Cape_Verde") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Cape Verde Is.', 'custom-facebook-feed'); ?></option>
|
1069 |
-
<option value="Atlantic/Azores" <?php if($cff_timezone == "Atlantic/Azores") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Azores', 'custom-facebook-feed'); ?></option>
|
1070 |
-
<option value="Europe/Belfast" <?php if($cff_timezone == "Europe/Belfast") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Belfast', 'custom-facebook-feed'); ?></option>
|
1071 |
-
<option value="Europe/Dublin" <?php if($cff_timezone == "Europe/Dublin") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Dublin', 'custom-facebook-feed'); ?></option>
|
1072 |
-
<option value="Europe/Lisbon" <?php if($cff_timezone == "Europe/Lisbon") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Lisbon', 'custom-facebook-feed'); ?></option>
|
1073 |
-
<option value="Europe/London" <?php if($cff_timezone == "Europe/London") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : London', 'custom-facebook-feed'); ?></option>
|
1074 |
-
<option value="Africa/Abidjan" <?php if($cff_timezone == "Africa/Abidjan") echo 'selected="selected"' ?> ><?php _e('(GMT) Monrovia, Reykjavik', 'custom-facebook-feed'); ?></option>
|
1075 |
-
<option value="Europe/Amsterdam" <?php if($cff_timezone == "Europe/Amsterdam") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna', 'custom-facebook-feed'); ?></option>
|
1076 |
-
<option value="Europe/Belgrade" <?php if($cff_timezone == "Europe/Belgrade") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague', 'custom-facebook-feed'); ?></option>
|
1077 |
-
<option value="Europe/Brussels" <?php if($cff_timezone == "Europe/Brussels") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Brussels, Copenhagen, Madrid, Paris', 'custom-facebook-feed'); ?></option>
|
1078 |
-
<option value="Africa/Algiers" <?php if($cff_timezone == "Africa/Algiers") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) West Central Africa', 'custom-facebook-feed'); ?></option>
|
1079 |
-
<option value="Africa/Windhoek" <?php if($cff_timezone == "Africa/Windhoek") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Windhoek', 'custom-facebook-feed'); ?></option>
|
1080 |
-
<option value="Asia/Beirut" <?php if($cff_timezone == "Asia/Beirut") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Beirut', 'custom-facebook-feed'); ?></option>
|
1081 |
-
<option value="Africa/Cairo" <?php if($cff_timezone == "Africa/Cairo") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Cairo', 'custom-facebook-feed'); ?></option>
|
1082 |
-
<option value="Asia/Gaza" <?php if($cff_timezone == "Asia/Gaza") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Gaza', 'custom-facebook-feed'); ?></option>
|
1083 |
-
<option value="Africa/Blantyre" <?php if($cff_timezone == "Africa/Blantyre") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Harare, Pretoria', 'custom-facebook-feed'); ?></option>
|
1084 |
-
<option value="Asia/Jerusalem" <?php if($cff_timezone == "Asia/Jerusalem") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Jerusalem', 'custom-facebook-feed'); ?></option>
|
1085 |
-
<option value="Europe/Minsk" <?php if($cff_timezone == "Europe/Minsk") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Minsk', 'custom-facebook-feed'); ?></option>
|
1086 |
-
<option value="Asia/Damascus" <?php if($cff_timezone == "Asia/Damascus") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Syria', 'custom-facebook-feed'); ?></option>
|
1087 |
-
<option value="Europe/Moscow" <?php if($cff_timezone == "Europe/Moscow") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Moscow, St. Petersburg, Volgograd', 'custom-facebook-feed'); ?></option>
|
1088 |
-
<option value="Africa/Addis_Ababa" <?php if($cff_timezone == "Africa/Addis_Ababa") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Nairobi', 'custom-facebook-feed'); ?></option>
|
1089 |
-
<option value="Asia/Tehran" <?php if($cff_timezone == "Asia/Tehran") echo 'selected="selected"' ?> ><?php _e('(GMT+03:30) Tehran', 'custom-facebook-feed'); ?></option>
|
1090 |
-
<option value="Asia/Dubai" <?php if($cff_timezone == "Asia/Dubai") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Abu Dhabi, Muscat', 'custom-facebook-feed'); ?></option>
|
1091 |
-
<option value="Asia/Yerevan" <?php if($cff_timezone == "Asia/Yerevan") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Yerevan', 'custom-facebook-feed'); ?></option>
|
1092 |
-
<option value="Asia/Kabul" <?php if($cff_timezone == "Asia/Kabul") echo 'selected="selected"' ?> ><?php _e('(GMT+04:30) Kabul', 'custom-facebook-feed'); ?></option>
|
1093 |
-
<option value="Asia/Yekaterinburg" <?php if($cff_timezone == "Asia/Yekaterinburg") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Ekaterinburg', 'custom-facebook-feed'); ?></option>
|
1094 |
-
<option value="Asia/Tashkent" <?php if($cff_timezone == "Asia/Tashkent") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Tashkent', 'custom-facebook-feed'); ?></option>
|
1095 |
-
<option value="Asia/Kolkata" <?php if($cff_timezone == "Asia/Kolkata") echo 'selected="selected"' ?> ><?php _e('(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi', 'custom-facebook-feed'); ?></option>
|
1096 |
-
<option value="Asia/Katmandu" <?php if($cff_timezone == "Asia/Katmandu") echo 'selected="selected"' ?> ><?php _e('(GMT+05:45) Kathmandu', 'custom-facebook-feed'); ?></option>
|
1097 |
-
<option value="Asia/Dhaka" <?php if($cff_timezone == "Asia/Dhaka") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Astana, Dhaka', 'custom-facebook-feed'); ?></option>
|
1098 |
-
<option value="Asia/Novosibirsk" <?php if($cff_timezone == "Asia/Novosibirsk") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Novosibirsk', 'custom-facebook-feed'); ?></option>
|
1099 |
-
<option value="Asia/Rangoon" <?php if($cff_timezone == "Asia/Rangoon") echo 'selected="selected"' ?> ><?php _e('(GMT+06:30) Yangon (Rangoon)', 'custom-facebook-feed'); ?></option>
|
1100 |
-
<option value="Asia/Bangkok" <?php if($cff_timezone == "Asia/Bangkok") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Bangkok, Hanoi, Jakarta', 'custom-facebook-feed'); ?></option>
|
1101 |
-
<option value="Asia/Krasnoyarsk" <?php if($cff_timezone == "Asia/Krasnoyarsk") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Krasnoyarsk', 'custom-facebook-feed'); ?></option>
|
1102 |
-
<option value="Asia/Hong_Kong" <?php if($cff_timezone == "Asia/Hong_Kong") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi', 'custom-facebook-feed'); ?></option>
|
1103 |
-
<option value="Asia/Irkutsk" <?php if($cff_timezone == "Asia/Irkutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Irkutsk, Ulaan Bataar', 'custom-facebook-feed'); ?></option>
|
1104 |
-
<option value="Australia/Perth" <?php if($cff_timezone == "Australia/Perth") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Perth', 'custom-facebook-feed'); ?></option>
|
1105 |
-
<option value="Australia/Eucla" <?php if($cff_timezone == "Australia/Eucla") echo 'selected="selected"' ?> ><?php _e('(GMT+08:45) Eucla', 'custom-facebook-feed'); ?></option>
|
1106 |
-
<option value="Asia/Tokyo" <?php if($cff_timezone == "Asia/Tokyo") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Osaka, Sapporo, Tokyo', 'custom-facebook-feed'); ?></option>
|
1107 |
-
<option value="Asia/Seoul" <?php if($cff_timezone == "Asia/Seoul") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Seoul', 'custom-facebook-feed'); ?></option>
|
1108 |
-
<option value="Asia/Yakutsk" <?php if($cff_timezone == "Asia/Yakutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Yakutsk', 'custom-facebook-feed'); ?></option>
|
1109 |
-
<option value="Australia/Adelaide" <?php if($cff_timezone == "Australia/Adelaide") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Adelaide', 'custom-facebook-feed'); ?></option>
|
1110 |
-
<option value="Australia/Darwin" <?php if($cff_timezone == "Australia/Darwin") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Darwin', 'custom-facebook-feed'); ?></option>
|
1111 |
-
<option value="Australia/Brisbane" <?php if($cff_timezone == "Australia/Brisbane") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Brisbane', 'custom-facebook-feed'); ?></option>
|
1112 |
-
<option value="Australia/Hobart" <?php if($cff_timezone == "Australia/Hobart") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Sydney', 'custom-facebook-feed'); ?></option>
|
1113 |
-
<option value="Asia/Vladivostok" <?php if($cff_timezone == "Asia/Vladivostok") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Vladivostok', 'custom-facebook-feed'); ?></option>
|
1114 |
-
<option value="Australia/Lord_Howe" <?php if($cff_timezone == "Australia/Lord_Howe") echo 'selected="selected"' ?> ><?php _e('(GMT+10:30) Lord Howe Island', 'custom-facebook-feed'); ?></option>
|
1115 |
-
<option value="Etc/GMT-11" <?php if($cff_timezone == "Etc/GMT-11") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Solomon Is., New Caledonia', 'custom-facebook-feed'); ?></option>
|
1116 |
-
<option value="Asia/Magadan" <?php if($cff_timezone == "Asia/Magadan") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Magadan', 'custom-facebook-feed'); ?></option>
|
1117 |
-
<option value="Pacific/Norfolk" <?php if($cff_timezone == "Pacific/Norfolk") echo 'selected="selected"' ?> ><?php _e('(GMT+11:30) Norfolk Island', 'custom-facebook-feed'); ?></option>
|
1118 |
-
<option value="Asia/Anadyr" <?php if($cff_timezone == "Asia/Anadyr") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Anadyr, Kamchatka', 'custom-facebook-feed'); ?></option>
|
1119 |
-
<option value="Pacific/Auckland" <?php if($cff_timezone == "Pacific/Auckland") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Auckland, Wellington', 'custom-facebook-feed'); ?></option>
|
1120 |
-
<option value="Etc/GMT-12" <?php if($cff_timezone == "Etc/GMT-12") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Fiji, Kamchatka, Marshall Is.', 'custom-facebook-feed'); ?></option>
|
1121 |
-
<option value="Pacific/Chatham" <?php if($cff_timezone == "Pacific/Chatham") echo 'selected="selected"' ?> ><?php _e('(GMT+12:45) Chatham Islands', 'custom-facebook-feed'); ?></option>
|
1122 |
-
<option value="Pacific/Tongatapu" <?php if($cff_timezone == "Pacific/Tongatapu") echo 'selected="selected"' ?> ><?php _e('(GMT+13:00) Nuku\'alofa', 'custom-facebook-feed'); ?></option>
|
1123 |
-
<option value="Pacific/Kiritimati" <?php if($cff_timezone == "Pacific/Kiritimati") echo 'selected="selected"' ?> ><?php _e('(GMT+14:00) Kiritimati', 'custom-facebook-feed'); ?></option>
|
1124 |
-
</select>
|
1125 |
-
</td>
|
1126 |
-
</tr>
|
1127 |
-
|
1128 |
-
</tbody>
|
1129 |
-
</table>
|
1130 |
-
|
1131 |
-
<div class="cff-save-settings-btn">
|
1132 |
-
<?php submit_button('Save Settings & Clear Cache'); ?>
|
1133 |
-
|
1134 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);">Why is the cache cleared?</a>
|
1135 |
-
<p class="cff-tooltip cff-more-info"><?php _e("As the settings on this page directly affect the request made to Facebook to get data, then when these settings are changed the plugin cache is cleared in order for the plugin to check Facebook for data again using these new settings. The plugin will check Facebook for data the next time the page that the feed is on is loaded."); ?></p>
|
1136 |
-
</div>
|
1137 |
-
|
1138 |
-
<p style="padding-top: 5px;"><i class="fa fa-life-ring" aria-hidden="true"></i> <?php _e('Having trouble using the plugin? Check out the', 'custom-facebook-feed'); ?> <a href='admin.php?page=cff-top&tab=support'><?php _e('Support', 'custom-facebook-feed'); ?></a> <?php _e('tab', 'custom-facebook-feed'); ?>.</p>
|
1139 |
-
</form>
|
1140 |
-
|
1141 |
-
<div class="cff_quickstart">
|
1142 |
-
<h3><i class="fa fa-rocket" aria-hidden="true"></i> Display your feed</h3>
|
1143 |
-
<p>Copy and paste this shortcode directly into the page, post or widget where you'd like to display the feed: <input type="text" value="[custom-facebook-feed]" size="22" readonly="readonly" style="text-align: center;" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)."></p>
|
1144 |
-
<p>Find out how to display <a href="https://smashballoon.com/using-shortcode-options-customize-facebook-feeds/?utm_campaign=facebook-free&utm_source=settings&utm_medium=multiple" target="_blank"><b>multiple feeds</b></a>.</p>
|
1145 |
-
</div>
|
1146 |
-
|
1147 |
-
<a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo plugins_url( 'img/pro.png?2019' , __FILE__ ) ?>" /></a>
|
1148 |
-
|
1149 |
-
<p class="cff_plugins_promo dashicons-before dashicons-admin-plugins"> <?php _e('Check out our other free plugins for <a href="https://wordpress.org/plugins/instagram-feed/" target="_blank">Instagram</a>, <a href="https://wordpress.org/plugins/custom-twitter-feeds/" target="_blank">Twitter</a>, and <a href="https://wordpress.org/plugins/feeds-for-youtube/" target="_blank">YouTube</a>.', 'custom-facebook-feed' ); ?></p>
|
1150 |
-
|
1151 |
-
<div class="cff-share-plugin">
|
1152 |
-
<h3><?php _e('Like the plugin? Help spread the word!', 'custom-facebook-feed'); ?></h3>
|
1153 |
-
|
1154 |
-
<button id="cff-admin-show-share-links" class="button secondary" style="margin-bottom: 1px;"><i class="fa fa-share-alt" aria-hidden="true"></i> Share the plugin</button> <div id="cff-admin-share-links"></div>
|
1155 |
-
</div>
|
1156 |
-
|
1157 |
-
<?php } //End config tab ?>
|
1158 |
-
|
1159 |
-
|
1160 |
-
<?php if( $cff_active_tab == 'support' ) { //Start Support tab ?>
|
1161 |
-
|
1162 |
-
<div class="cff_support">
|
1163 |
-
|
1164 |
-
<br />
|
1165 |
-
<h3 style="padding-bottom: 10px;">Need help?</h3>
|
1166 |
-
|
1167 |
-
<p>
|
1168 |
-
<span class="cff-support-title"><i class="fa fa-life-ring" aria-hidden="true"></i> <a href="https://smashballoon.com/custom-facebook-feed/docs/free/?utm_campaign=facebook-free&utm_source=support&utm_medium=setup" target="_blank"><?php _e('Setup Directions'); ?></a></span>
|
1169 |
-
<?php _e('A step-by-step guide on how to setup and use the plugin.'); ?>
|
1170 |
-
</p>
|
1171 |
-
|
1172 |
-
<p>
|
1173 |
-
<span class="cff-support-title"><i class="fa fa-question-circle" aria-hidden="true"></i> <a href="https://smashballoon.com/custom-facebook-feed/faq/?utm_campaign=facebook-free&utm_source=support&utm_medium=faqs" target="_blank"><?php _e('FAQs and Docs'); ?></a></span>
|
1174 |
-
<?php _e('View our expansive library of FAQs and documentation to help solve your problem as quickly as possible.'); ?>
|
1175 |
-
</p>
|
1176 |
-
|
1177 |
-
<div class="cff-support-faqs">
|
1178 |
-
|
1179 |
-
<ul class="cff-faq-col-1">
|
1180 |
-
<li><b>FAQs</b></li>
|
1181 |
-
<li>• <?php _e('<a href="https://smashballoon.com/category/custom-facebook-feed/faq/?utm_campaign=facebook-free&utm_source=support&utm_medium=general" target="_blank">General Questions</a>'); ?></li>
|
1182 |
-
<li>• <?php _e('<a href="https://smashballoon.com/category/custom-facebook-feed/getting-started/?utm_campaign=facebook-free&utm_source=support&utm_medium=setup" target="_blank">Getting Started</a>'); ?></li>
|
1183 |
-
<li>• <?php _e('<a href="https://smashballoon.com/category/custom-facebook-feed/troubleshooting/?utm_campaign=facebook-free&utm_source=support&utm_medium=issues" target="_blank">Common Issues</a>'); ?></li>
|
1184 |
-
<li style="margin-top: 8px; font-size: 12px;"><a href="https://smashballoon.com/custom-facebook-feed/faq/?utm_campaign=facebook-free&utm_source=support&utm_medium=faqs" target="_blank">See all<i class="fa fa-chevron-right" aria-hidden="true"></i></a></li>
|
1185 |
-
|
1186 |
-
</ul>
|
1187 |
-
|
1188 |
-
<ul>
|
1189 |
-
<li><b>Documentation</b></li>
|
1190 |
-
<li>• <?php _e('<a href="http://smashballoon.com/custom-facebook-feed/docs/free/?utm_campaign=facebook-free&utm_source=support&utm_medium=setup" target="_blank">Installation and Configuration</a>'); ?></li>
|
1191 |
-
<li>• <?php _e('<a href="https://smashballoon.com/custom-facebook-feed/docs/shortcodes/?utm_campaign=facebook-free&utm_source=support&utm_medium=shortcode" target="_blank">Shortcode Reference</a>', 'custom-facebook-feed'); ?></li>
|
1192 |
-
<li>• <?php _e('<a href="https://smashballoon.com/snippets/?utm_campaign=facebook-free&utm_source=support&utm_medium=snippets" target="_blank">Custom CSS and JavaScript Snippets</a>'); ?></li>
|
1193 |
-
<li style="margin-top: 8px; font-size: 12px;"><a href="https://smashballoon.com/custom-facebook-feed/docs/?utm_campaign=facebook-free&utm_source=support&utm_medium=docs" target="_blank">See all<i class="fa fa-chevron-right" aria-hidden="true"></i></a></li>
|
1194 |
-
</ul>
|
1195 |
-
</div>
|
1196 |
-
|
1197 |
-
<p>
|
1198 |
-
<span class="cff-support-title"><i class="fa fa-envelope" aria-hidden="true"></i> <a href="http://smashballoon.com/custom-facebook-feed/support/?utm_campaign=facebook-free&utm_source=support&utm_medium=support" target="_blank"><?php _e('Request Support'); ?></a></span>
|
1199 |
-
<?php _e('Still need help? Submit a ticket and one of our support experts will get back to you as soon as possible.<br /><b>Important:</b> Please include your <b>System Info</b> below with all support requests.'); ?>
|
1200 |
-
</p>
|
1201 |
-
</div>
|
1202 |
-
|
1203 |
-
<hr />
|
1204 |
-
|
1205 |
-
<h3><?php _e('System Info <i style="color: #666; font-size: 11px; font-weight: normal;">Click the text below to select all</i>', 'custom-facebook-feed'); ?></h3>
|
1206 |
-
|
1207 |
-
<?php
|
1208 |
-
$cff_use_own_token = get_option( 'cff_show_access_token' );
|
1209 |
-
$access_token = get_option( $access_token );
|
1210 |
-
$posts_json = cff_fetchUrl("https://graph.facebook.com/".get_option( trim($page_id) )."/feed?access_token=". trim($access_token) ."&limit=1");
|
1211 |
-
?>
|
1212 |
-
|
1213 |
-
<textarea readonly="readonly" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)." style="width: 70%; height: 500px; white-space: pre; font-family: Menlo,Monaco,monospace;">
|
1214 |
-
## SITE/SERVER INFO: ##
|
1215 |
-
Site URL: <?php echo site_url() . "\n"; ?>
|
1216 |
-
Home URL: <?php echo home_url() . "\n"; ?>
|
1217 |
-
WordPress Version: <?php echo get_bloginfo( 'version' ) . "\n"; ?>
|
1218 |
-
PHP Version: <?php echo PHP_VERSION . "\n"; ?>
|
1219 |
-
Web Server Info: <?php echo $_SERVER['SERVER_SOFTWARE'] . "\n"; ?>
|
1220 |
-
PHP allow_url_fopen: <?php echo ini_get( 'allow_url_fopen' ) ? "Yes" . "\n" : "No" . "\n"; ?>
|
1221 |
-
PHP cURL: <?php echo is_callable('curl_init') ? "Yes" . "\n" : "No" . "\n"; ?>
|
1222 |
-
JSON: <?php echo function_exists("json_decode") ? "Yes" . "\n" : "No" . "\n" ?>
|
1223 |
-
SSL Stream: <?php echo in_array('https', stream_get_wrappers()) ? "Yes" . "\n" : "No" . "\n" ?>
|
1224 |
-
|
1225 |
-
## ACTIVE PLUGINS: ##
|
1226 |
-
<?php
|
1227 |
-
$plugins = get_plugins();
|
1228 |
-
$active_plugins = get_option( 'active_plugins', array() );
|
1229 |
-
|
1230 |
-
foreach ( $plugins as $plugin_path => $plugin ) {
|
1231 |
-
// If the plugin isn't active, don't show it.
|
1232 |
-
if ( ! in_array( $plugin_path, $active_plugins ) )
|
1233 |
-
continue;
|
1234 |
-
|
1235 |
-
echo $plugin['Name'] . ': ' . $plugin['Version'] ."\n";
|
1236 |
-
}
|
1237 |
-
?>
|
1238 |
-
|
1239 |
-
## PLUGIN SETTINGS: ##
|
1240 |
-
Access Token: <?php echo chunk_split( get_option( 'cff_access_token' ), 110 ); ?>
|
1241 |
-
Page ID: <?php echo get_option( 'cff_page_id' ) ."\n"; ?>
|
1242 |
-
Number of Posts: <?php echo get_option( 'cff_num_show' ) ."\n"; ?>
|
1243 |
-
Post Limit: <?php echo get_option( 'cff_post_limit' ) ."\n"; ?>
|
1244 |
-
Show Posts by: <?php echo get_option( 'cff_show_others' ) ."\n"; ?>
|
1245 |
-
Cache Time: <?php echo get_option( 'cff_cache_time' ) ." ".get_option( 'cff_cache_time_unit' )."\n"; ?>
|
1246 |
-
Locale: <?php echo get_option( 'cff_locale' ) ."\n"; ?>
|
1247 |
-
Timezone: <?php $options = get_option( 'cff_style_settings', array() );
|
1248 |
-
echo $options[ 'cff_timezone' ] ."\n"; ?>
|
1249 |
-
|
1250 |
-
<?php if( isset( $options[ 'cff_feed_width' ] ) ) { ?>
|
1251 |
-
## CUSTOMIZE ##
|
1252 |
-
Feed Width => <?php echo $options[ 'cff_feed_width' ] ."\n"; ?>
|
1253 |
-
Responsive => <?php echo $options[ 'cff_feed_width_resp' ] ."\n"; ?>
|
1254 |
-
Feed Height => <?php echo $options[ 'cff_feed_height' ] ."\n"; ?>
|
1255 |
-
Feed Padding => <?php echo $options[ 'cff_feed_padding' ] ."\n"; ?>
|
1256 |
-
Feed BG Color => <?php echo $options[ 'cff_bg_color' ] ."\n"; ?>
|
1257 |
-
CSS Class => <?php echo $options[ 'cff_class' ] ."\n"; ?>
|
1258 |
-
Feed Columns => <?php echo $options['cff_cols'] ."\n"; ?>
|
1259 |
-
Mobile Columns => <?php echo $options['cff_cols_mobile'] ."\n"; ?>
|
1260 |
-
|
1261 |
-
## HEADER: ##
|
1262 |
-
Show Header => <?php echo $options[ 'cff_show_header' ] ."\n"; ?>
|
1263 |
-
Header Type => <?php echo $options[ 'cff_header_type' ] ."\n"; ?>
|
1264 |
-
Header Cover => <?php echo $options[ 'cff_header_cover' ] ."\n"; ?>
|
1265 |
-
Header Name => <?php echo $options[ 'cff_header_name' ] ."\n"; ?>
|
1266 |
-
Header Bio => <?php echo $options[ 'cff_header_bio' ] ."\n"; ?>
|
1267 |
-
Header Cover Height => <?php echo $options[ 'cff_header_cover_height' ] ."\n"; ?>
|
1268 |
-
Text => <?php echo $options[ 'cff_header_text' ] ."\n"; ?>
|
1269 |
-
Header Outside => <?php echo $options[ 'cff_header_outside' ] ."\n"; ?>
|
1270 |
-
Background Color => <?php echo $options[ 'cff_header_bg_color' ] ."\n"; ?>
|
1271 |
-
Padding => <?php echo $options[ 'cff_header_padding' ] ."\n"; ?>
|
1272 |
-
Text Size => <?php echo $options[ 'cff_header_text_size' ] ."\n"; ?>
|
1273 |
-
Text Weight => <?php echo $options[ 'cff_header_text_weight' ] ."\n"; ?>
|
1274 |
-
Text Color => <?php echo $options[ 'cff_header_text_color' ] ."\n"; ?>
|
1275 |
-
Icon => <?php echo $options[ 'cff_header_icon' ] ."\n"; ?>
|
1276 |
-
Icon Color => <?php echo $options[ 'cff_header_icon_color' ] ."\n"; ?>
|
1277 |
-
Icon Size => <?php echo $options[ 'cff_header_icon_size' ] ."\n"; ?>
|
1278 |
-
|
1279 |
-
## LIKE BOX: ##
|
1280 |
-
Position => <?php echo $options[ 'cff_like_box_position' ] ."\n"; ?>
|
1281 |
-
Display Outside => <?php echo $options[ 'cff_like_box_outside' ] ."\n"; ?>
|
1282 |
-
Show Fans => <?php echo $options[ 'cff_like_box_faces' ] ."\n"; ?>
|
1283 |
-
Cover Photo => <?php echo $options[ 'cff_like_box_cover' ] ."\n"; ?>
|
1284 |
-
Small Header => <?php echo $options[ 'cff_like_box_small_header' ] ."\n"; ?>
|
1285 |
-
Hide CTA => <?php echo $options[ 'cff_like_box_hide_cta' ] ."\n"; ?>
|
1286 |
-
Custom Width => <?php echo $options[ 'cff_likebox_width' ] ."\n"; ?>
|
1287 |
-
|
1288 |
-
## SHOW/HIDE: ##
|
1289 |
-
Show => <?php if( $options[ 'cff_show_author' ] ) echo 'Author, ';
|
1290 |
-
if( $options[ 'cff_show_text' ] ) echo 'Post Text, ';
|
1291 |
-
if( $options[ 'cff_show_desc' ] ) echo 'Description, ';
|
1292 |
-
if( $options[ 'cff_show_shared_links' ] ) echo 'Shared Links, ';
|
1293 |
-
if( $options[ 'cff_show_date' ] ) echo 'Date, ';
|
1294 |
-
if( $options[ 'cff_show_media' ] ) echo 'Photos/Videos, ';
|
1295 |
-
if( $options[ 'cff_show_event_title' ] ) echo 'Event Title, ';
|
1296 |
-
if( $options[ 'cff_show_event_details' ] ) echo 'Event Details, ';
|
1297 |
-
if( $options[ 'cff_show_meta' ] ) echo 'Comments Box, ';
|
1298 |
-
if( $options[ 'cff_show_link' ] ) echo 'Post Link';
|
1299 |
-
echo "\n"; ?>
|
1300 |
-
Hide => <?php if( !$options[ 'cff_show_author' ] ) echo 'Author, ';
|
1301 |
-
if( !$options[ 'cff_show_text' ] ) echo 'Post Text, ';
|
1302 |
-
if( !$options[ 'cff_show_desc' ] ) echo 'Description, ';
|
1303 |
-
if( !$options[ 'cff_show_shared_links' ] ) echo 'Shared Links, ';
|
1304 |
-
if( !$options[ 'cff_show_date' ] ) echo 'Date, ';
|
1305 |
-
if( !$options[ 'cff_show_media' ] ) echo 'Photos/Videos, ';
|
1306 |
-
if( !$options[ 'cff_show_event_title' ] ) echo 'Event Title, ';
|
1307 |
-
if( !$options[ 'cff_show_event_details' ] ) echo 'Event Details, ';
|
1308 |
-
if( !$options[ 'cff_show_meta' ] ) echo 'Comments Box, ';
|
1309 |
-
if( !$options[ 'cff_show_link' ] ) echo 'Post Link';
|
1310 |
-
echo "\n"; ?>
|
1311 |
-
|
1312 |
-
## STYLE POSTS: ##
|
1313 |
-
Post Style => <?php echo $options[ 'cff_post_style' ] ."\n"; ?>
|
1314 |
-
Background Color => <?php echo $options[ 'cff_post_bg_color' ] ."\n"; ?>
|
1315 |
-
Rounded => <?php echo $options[ 'cff_post_rounded' ] ."\n"; ?>
|
1316 |
-
Seperator Color => <?php echo $options[ 'cff_sep_color' ] ."\n"; ?>
|
1317 |
-
Seperator Size => <?php echo $options[ 'cff_sep_size' ] ."\n"; ?>
|
1318 |
-
Box Shadow => <?php echo $options[ 'cff_box_shadow' ] ."\n"; ?>
|
1319 |
-
|
1320 |
-
## POST AUTHOR: ##
|
1321 |
-
Text Size => <?php echo $options[ 'cff_author_size' ] ."\n"; ?>
|
1322 |
-
Text Color => <?php echo $options[ 'cff_author_color' ] ."\n"; ?>
|
1323 |
-
|
1324 |
-
## POST TEXT: ##
|
1325 |
-
Text Length => <?php echo get_option('cff_title_length') ."\n"; ?>
|
1326 |
-
Format => <?php echo $options['cff_title_format'] ."\n"; ?>
|
1327 |
-
Text Size => <?php echo $options['cff_title_size'] ."\n"; ?>
|
1328 |
-
Text Weight => <?php echo $options['cff_title_weight'] ."\n"; ?>
|
1329 |
-
Text Color => <?php echo $options['cff_title_color'] ."\n"; ?>
|
1330 |
-
Link Color => <?php echo $options['cff_link_color'] ."\n"; ?>
|
1331 |
-
Link Text To Facebook => <?php echo $options['cff_link_to_timeline'] ."\n"; ?>
|
1332 |
-
Link Post Tags => <?php echo $options['cff_post_tags'] ."\n"; ?>
|
1333 |
-
Link Hashags => <?php echo $options['cff_link_hashtags'] ."\n"; ?>
|
1334 |
-
|
1335 |
-
## SHARED POST DESCRIPTION: ##
|
1336 |
-
Text Size => <?php echo $options['cff_body_size'] ."\n"; ?>
|
1337 |
-
Text Weight => <?php echo $options['cff_body_weight'] ."\n"; ?>
|
1338 |
-
Text Color => <?php echo $options['cff_body_color'] ."\n"; ?>
|
1339 |
-
|
1340 |
-
## POST DATE: ##
|
1341 |
-
Position => <?php echo $options['cff_date_position'] ."\n"; ?>
|
1342 |
-
Text Size => <?php echo $options['cff_date_size'] ."\n"; ?>
|
1343 |
-
Text Weight => <?php echo $options['cff_date_weight'] ."\n"; ?>
|
1344 |
-
Text Color => <?php echo $options['cff_date_color'] ."\n"; ?>
|
1345 |
-
Date Formatting => <?php echo $options['cff_date_formatting'] ."\n"; ?>
|
1346 |
-
Timezone => <?php echo $options['cff_timezone'] ."\n"; ?>
|
1347 |
-
Custom Format => <?php echo $options['cff_date_custom'] ."\n"; ?>
|
1348 |
-
Text Before Date => <?php echo $options['cff_date_before'] ."\n"; ?>
|
1349 |
-
Text After Date => <?php echo $options['cff_date_after'] ."\n"; ?>
|
1350 |
-
|
1351 |
-
## SHARED LINK BOXES: ##
|
1352 |
-
Link Box BG Color => <?php echo $options['cff_link_bg_color'] ."\n"; ?>
|
1353 |
-
Link Box Border Color => <?php echo $options['cff_link_border_color'] ."\n"; ?>
|
1354 |
-
Remove Background/Border => <?php echo $options['cff_disable_link_box'] ."\n"; ?>
|
1355 |
-
Link Title Format => <?php echo $options['cff_link_title_format'] ."\n"; ?>
|
1356 |
-
Link Title Color => <?php echo $options['cff_link_title_color'] ."\n"; ?>
|
1357 |
-
Link Title Size => <?php echo $options['cff_link_title_size'] ."\n"; ?>
|
1358 |
-
Link URL Size => <?php echo $options['cff_link_url_size'] ."\n"; ?>
|
1359 |
-
Link URL Color => <?php echo $options['cff_link_url_color'] ."\n"; ?>
|
1360 |
-
Link Description Size => <?php echo $options['cff_link_desc_size'] ."\n"; ?>
|
1361 |
-
Link Description Color => <?php echo $options['cff_link_desc_color'] ."\n"; ?>
|
1362 |
-
Max Length => <?php echo get_option('cff_body_length') ."\n"; ?>
|
1363 |
-
|
1364 |
-
## EVENT TITLE: ##
|
1365 |
-
Format => <?php echo $options['cff_event_title_format'] ."\n"; ?>
|
1366 |
-
Text Size => <?php echo $options['cff_event_title_size'] ."\n"; ?>
|
1367 |
-
Text Weight => <?php echo $options['cff_event_title_weight'] ."\n"; ?>
|
1368 |
-
Text Color => <?php echo $options['cff_event_title_color'] ."\n"; ?>
|
1369 |
-
Link To Facebook => <?php echo $options['cff_event_title_link'] ."\n"; ?>
|
1370 |
-
|
1371 |
-
## EVENT DATE: ##
|
1372 |
-
Text Size => <?php echo $options['cff_event_date_size'] ."\n"; ?>
|
1373 |
-
Text Weight => <?php echo $options['cff_event_date_weight'] ."\n"; ?>
|
1374 |
-
Text Color => <?php echo $options['cff_event_date_color'] ."\n"; ?>
|
1375 |
-
Date Position => <?php echo $options['cff_event_date_position'] ."\n"; ?>
|
1376 |
-
Date Formatting => <?php echo $options['cff_event_date_formatting'] ."\n"; ?>
|
1377 |
-
Custom Format => <?php echo $options['cff_event_date_custom'] ."\n"; ?>
|
1378 |
-
|
1379 |
-
## EVENT DETAILS: ##
|
1380 |
-
Text Size => <?php echo $options['cff_event_details_size'] ."\n"; ?>
|
1381 |
-
Text Weight => <?php echo $options['cff_event_details_weight'] ."\n"; ?>
|
1382 |
-
Text Color => <?php echo $options['cff_event_details_color'] ."\n"; ?>
|
1383 |
-
Link Color => <?php echo $options['cff_event_link_color'] ."\n"; ?>
|
1384 |
-
|
1385 |
-
## POST ACTION LINKS: ##
|
1386 |
-
Text Size => <?php echo $options['cff_link_size'] ."\n"; ?>
|
1387 |
-
Text Weight => <?php echo $options['cff_link_weight'] ."\n"; ?>
|
1388 |
-
Text Color => <?php echo $options['cff_link_color'] ."\n"; ?>
|
1389 |
-
View on Facebook Text => <?php echo $options['cff_facebook_link_text'] ."\n"; ?>
|
1390 |
-
Share Text => <?php echo $options['cff_facebook_share_text'] ."\n"; ?>
|
1391 |
-
Show View on Facebook Text => <?php echo $options['cff_show_facebook_link'] ."\n"; ?>
|
1392 |
-
Show Share Text => <?php echo $options['cff_show_facebook_share'] ."\n"; ?>
|
1393 |
-
|
1394 |
-
## CUSTOM CSS/JS: ##
|
1395 |
-
Custom CSS => <?php echo $options['cff_custom_css'] ."\n"; ?>
|
1396 |
-
Custom JavaScript => <?php echo $options['cff_custom_js'] ."\n"; ?>
|
1397 |
-
|
1398 |
-
## MISC SETTINGS: ##
|
1399 |
-
Loading via AJAX => <?php echo get_option('cff_ajax') ."\n"; ?>
|
1400 |
-
Preserve Settings => <?php echo get_option('cff_preserve_settings') ."\n"; ?>
|
1401 |
-
Credit Link => <?php echo $options['cff_show_credit'] ."\n"; ?>
|
1402 |
-
Minify CSS/JS => <?php echo $options['cff_minify'] ."\n"; ?>
|
1403 |
-
Restricted Page => <?php echo $options['cff_restricted_page'] ."\n"; ?>
|
1404 |
-
Icon Font Source Method => <?php echo $options['cff_font_source'] ."\n"; ?>
|
1405 |
-
Force Cache To Clear => <?php echo $options['cff_cron'] ."\n"; ?>
|
1406 |
-
Request Method => <?php echo $options['cff_request_method'] ."\n"; ?>
|
1407 |
-
Fix Text Shortening => <?php echo $options['cff_format_issue'] ."\n"; ?>
|
1408 |
-
Disable Default Styles => <?php echo $options['cff_disable_styles'] ."\n"; ?>
|
1409 |
-
Disable Frontend Error Notice => <?php if ( isset( $options['disable_admin_notice'] ) ) echo $options['disable_admin_notice']; echo "\n"; ?>
|
1410 |
-
Enable Email => <?php if ( isset( $options['enable_email_report'] ) ) echo $options['enable_email_report']; echo "\n" ?>
|
1411 |
-
Email Addresses => <?php if ( isset( $options['enable_email_report'] ) ) echo $options['email_notification_addresses']; echo "\n"; ?>
|
1412 |
-
|
1413 |
-
## CUSTOM TEXT/TRANSLATE: ##
|
1414 |
-
Modified text strings:
|
1415 |
-
<?php if($options['cff_see_more_text'] != 'See More'){ ?>See More => <?php echo $options['cff_see_more_text'] ."\n"; ?><?php } ?>
|
1416 |
-
<?php if($options['cff_see_less_text'] != 'See Less'){ ?>See Less => <?php echo $options['cff_see_less_text'] ."\n"; ?><?php } ?>
|
1417 |
-
<?php if($options['cff_facebook_link_text'] != 'View on Facebook'){ ?>View on Facebook => <?php echo $options['cff_facebook_link_text'] ."\n"; ?><?php } ?>
|
1418 |
-
<?php if($options['cff_facebook_share_text'] != 'Share'){ ?>Share => <?php echo $options['cff_facebook_share_text'] ."\n"; ?><?php } ?>
|
1419 |
-
<?php if($options['cff_translate_photos_text'] != 'photos'){ ?>Photos => <?php echo $options['cff_translate_photos_text'] ."\n"; ?><?php } ?>
|
1420 |
-
<?php if($options['cff_translate_photo_text'] != 'Photo'){ ?>Photo => <?php echo $options['cff_translate_photo_text'] ."\n"; ?><?php } ?>
|
1421 |
-
<?php if($options['cff_translate_video_text'] != 'Video'){ ?>Video => <?php echo $options['cff_translate_video_text'] ."\n"; ?><?php } ?>
|
1422 |
-
<?php if($options['cff_translate_learn_more_text'] != 'Learn More'){ ?>Learn More => <?php echo $options['cff_translate_learn_more_text'] ."\n"; ?><?php } ?>
|
1423 |
-
<?php if($options['cff_translate_shop_now_text'] != 'Shop Now'){ ?>Shop Now => <?php echo $options['cff_translate_shop_now_text'] ."\n"; ?><?php } ?>
|
1424 |
-
<?php if($options['cff_translate_message_page_text'] != 'Message Page'){ ?>Message Page => <?php echo $options['cff_translate_message_page_text'] ."\n"; ?><?php } ?>
|
1425 |
-
<?php if($options['cff_translate_second'] != 'second'){ ?>Second => <?php echo $options['cff_translate_second'] ."\n"; ?><?php } ?>
|
1426 |
-
<?php if($options['cff_translate_seconds'] != 'seconds'){ ?>Seconds => <?php echo $options['cff_translate_seconds'] ."\n"; ?><?php } ?>
|
1427 |
-
<?php if($options['cff_translate_minute'] != 'minute'){ ?>Minute => <?php echo $options['cff_translate_minute'] ."\n"; ?><?php } ?>
|
1428 |
-
<?php if($options['cff_translate_minutes'] != 'minutes'){ ?>Minutes => <?php echo $options['cff_translate_minutes'] ."\n"; ?><?php } ?>
|
1429 |
-
<?php if($options['cff_translate_hour'] != 'hour'){ ?>Hour => <?php echo $options['cff_translate_hour'] ."\n"; ?><?php } ?>
|
1430 |
-
<?php if($options['cff_translate_hours'] != 'hours'){ ?>Hours => <?php echo $options['cff_translate_hours'] ."\n"; ?><?php } ?>
|
1431 |
-
<?php if($options['cff_translate_day'] != 'day'){ ?>Day => <?php echo $options['cff_translate_day'] ."\n"; ?><?php } ?>
|
1432 |
-
<?php if($options['cff_translate_days'] != 'days'){ ?>Days => <?php echo $options['cff_translate_days'] ."\n"; ?><?php } ?>
|
1433 |
-
<?php if($options['cff_translate_week'] != 'week'){ ?>Week => <?php echo $options['cff_translate_week'] ."\n"; ?><?php } ?>
|
1434 |
-
<?php if($options['cff_translate_weeks'] != 'weeks'){ ?>Weeks => <?php echo $options['cff_translate_weeks'] ."\n"; ?><?php } ?>
|
1435 |
-
<?php if($options['cff_translate_month'] != 'month'){ ?>Month => <?php echo $options['cff_translate_month'] ."\n"; ?><?php } ?>
|
1436 |
-
<?php if($options['cff_translate_months'] != 'months'){ ?>Months => <?php echo $options['cff_translate_months'] ."\n"; ?><?php } ?>
|
1437 |
-
<?php if($options['cff_translate_year'] != 'year'){ ?>Year => <?php echo $options['cff_translate_year'] ."\n"; ?><?php } ?>
|
1438 |
-
<?php if($options['cff_translate_years'] != 'years'){ ?>Years => <?php echo $options['cff_translate_years'] ."\n"; ?><?php } ?>
|
1439 |
-
<?php if($options['cff_translate_ago'] != 'ago'){ ?>Ago => <?php echo $options['cff_translate_ago'] ."\n"; ?><?php } ?>
|
1440 |
-
<?php } else {
|
1441 |
-
echo "\n"."## CUSTOMIZE ##"."\n";
|
1442 |
-
echo '-----------------------------'."\n";
|
1443 |
-
echo "Customize Settings not saved."."\n";
|
1444 |
-
echo '-----------------------------'."\n";
|
1445 |
-
} ?>
|
1446 |
-
|
1447 |
-
## FACEBOOK API RESPONSE: ##
|
1448 |
-
<?php
|
1449 |
-
$api_response_json = json_decode($posts_json);
|
1450 |
-
if( isset( $api_response_json->error ) ) echo $posts_json;
|
1451 |
-
if( isset( $api_response_json->data ) ){
|
1452 |
-
$posts_json_split = explode(',"paging":{', $posts_json);
|
1453 |
-
echo $posts_json_split[0];
|
1454 |
-
} ?>
|
1455 |
-
|
1456 |
-
|
1457 |
-
## CRON EVENTS: ##
|
1458 |
-
<?php
|
1459 |
-
$cron = _get_cron_array();
|
1460 |
-
foreach ( $cron as $key => $data ) {
|
1461 |
-
$is_target = false;
|
1462 |
-
foreach ( $data as $key2 => $val ) {
|
1463 |
-
if ( strpos( $key2, 'cff' ) !== false ) {
|
1464 |
-
$is_target = true;
|
1465 |
-
echo $key2;
|
1466 |
-
echo "\n";
|
1467 |
-
}
|
1468 |
-
}
|
1469 |
-
if ( $is_target) {
|
1470 |
-
echo date( "Y-m-d H:i:s", $key );
|
1471 |
-
echo "\n";
|
1472 |
-
echo 'Next Scheduled: ' . ((int)$key - time())/60 . ' minutes';
|
1473 |
-
echo "\n\n";
|
1474 |
-
}
|
1475 |
-
}
|
1476 |
-
?>
|
1477 |
-
|
1478 |
-
## Error Log: ##
|
1479 |
-
<?php
|
1480 |
-
global $cff_error_reporter;
|
1481 |
-
$errors = $cff_error_reporter->get_errors();
|
1482 |
-
if ( ! empty( $errors ) ) :
|
1483 |
-
foreach ( $errors as $error ) :
|
1484 |
-
echo $error['admin_message']."\n";
|
1485 |
-
echo 'Feed with error: ' . esc_url( get_the_permalink( $error['post_id'] ) )."\n";
|
1486 |
-
|
1487 |
-
endforeach;
|
1488 |
-
endif;
|
1489 |
-
|
1490 |
-
?>
|
1491 |
-
|
1492 |
-
## oEmbed: ##
|
1493 |
-
<?php
|
1494 |
-
$oembed_token_settings = get_option( 'cff_oembed_token', array() );
|
1495 |
-
foreach( $oembed_token_settings as $key => $value ) {
|
1496 |
-
echo $key . ': ' . esc_attr( $value ) . "\n";
|
1497 |
-
}
|
1498 |
-
|
1499 |
-
?>
|
1500 |
-
</textarea>
|
1501 |
-
|
1502 |
-
<?php } //End support tab
|
1503 |
-
|
1504 |
-
|
1505 |
-
if( $cff_active_tab == 'more' ) { //Start More Social Feeds tab
|
1506 |
-
|
1507 |
-
add_user_meta(get_current_user_id(), 'seen_more_plugins_page_1', 'true', true); //Iterate when adding a new plugin
|
1508 |
-
?>
|
1509 |
-
|
1510 |
-
<div class="cff_more_plugins" id="cff-admin-about">
|
1511 |
-
|
1512 |
-
<div class="cff-more-plugins-intro">
|
1513 |
-
<h3><?php _e( "Here's some more <span>free</span> plugins you might like!", 'custom-facebook-feed' ); ?></h3>
|
1514 |
-
<p><?php _e( "As you're already using one of our free plugins we thought we'd suggest some others you might like to. Check out our other free plugins below:", 'custom-facebook-feed' ); ?></p>
|
1515 |
-
</div>
|
1516 |
-
|
1517 |
-
<?php function get_am_plugins() {
|
1518 |
-
|
1519 |
-
$images_url = CFF_PLUGIN_URL . 'img/about/';
|
1520 |
-
|
1521 |
-
return array(
|
1522 |
-
'instagram-feed/instagram-feed.php' => array(
|
1523 |
-
'icon' => $images_url . 'plugin-if.png',
|
1524 |
-
'name' => esc_html__( 'Instagram Feed', 'custom-facebook-feed' ),
|
1525 |
-
'desc' => esc_html__( 'Instagram Feed is a clean and beautiful way to add your Instagram posts to your website. Grab your visitors attention and keep them engaged with your site longer.', 'custom-facebook-feed' ),
|
1526 |
-
'url' => 'https://downloads.wordpress.org/plugin/instagram-feed.zip',
|
1527 |
-
'pro' => array(
|
1528 |
-
'plug' => 'instagram-feed-pro/instagram-feed.php',
|
1529 |
-
'icon' => $images_url . 'plugin-if.png',
|
1530 |
-
'name' => esc_html__( 'Instagram Feed Pro', 'custom-facebook-feed' ),
|
1531 |
-
'desc' => esc_html__( 'Instagram Feed is a clean and beautiful way to add your Instagram posts to your website. Grab your visitors attention and keep them engaged with your site longer.', 'custom-facebook-feed' ),
|
1532 |
-
'url' => 'https://smashballoon.com/instagram-feed/?utm_campaign=facebook-free&utm_source=cross&utm_medium=cffinstaller',
|
1533 |
-
'act' => 'go-to-url',
|
1534 |
-
),
|
1535 |
-
),
|
1536 |
-
'custom-facebook-feed/custom-facebook-feed.php' => array(
|
1537 |
-
'icon' => $images_url . 'plugin-fb.png',
|
1538 |
-
'name' => esc_html__( 'Custom Facebook Feed', 'custom-facebook-feed' ),
|
1539 |
-
'desc' => esc_html__( 'Custom Facebook Feed makes displaying your Facebook posts easy. Keep your site visitors informed and increase engagement with your Facebook page by displaying a feed on your website.', 'custom-facebook-feed' ),
|
1540 |
-
'url' => 'https://downloads.wordpress.org/plugin/custom-facebook-feed.zip',
|
1541 |
-
'pro' => array(
|
1542 |
-
'plug' => 'custom-facebook-feed-pro/custom-facebook-feed.php',
|
1543 |
-
'icon' => $images_url . 'plugin-fb.png',
|
1544 |
-
'name' => esc_html__( 'Custom Facebook Feed Pro', 'custom-facebook-feed' ),
|
1545 |
-
'desc' => esc_html__( 'Custom Facebook Feed makes displaying your Facebook posts easy. Keep your site visitors informed and increase engagement with your Facebook page by displaying a feed on your website.', 'custom-facebook-feed' ),
|
1546 |
-
'url' => 'https://smashballoon.com/custom-facebook-feed/?utm_campaign=instagram-free&utm_source=cross&utm_medium=cffinstaller',
|
1547 |
-
'act' => 'go-to-url',
|
1548 |
-
)
|
1549 |
-
),
|
1550 |
-
|
1551 |
-
'custom-twitter-feeds/custom-twitter-feed.php' => array(
|
1552 |
-
'icon' => $images_url . 'plugin-tw.jpg',
|
1553 |
-
'name' => esc_html__( 'Custom Twitter Feeds', 'custom-facebook-feed' ),
|
1554 |
-
'desc' => esc_html__( 'Custom Twitter Feeds is a highly customizable way to display tweets from your Twitter account. Promote your latest content and update your site content automatically.', 'custom-facebook-feed' ),
|
1555 |
-
'url' => 'https://downloads.wordpress.org/plugin/custom-twitter-feeds.zip',
|
1556 |
-
'pro' => array(
|
1557 |
-
'plug' => 'custom-twitter-feeds-pro/custom-twitter-feed.php',
|
1558 |
-
'icon' => $images_url . 'plugin-tw.jpg',
|
1559 |
-
'name' => esc_html__( 'Custom Twitter Feeds Pro', 'custom-facebook-feed' ),
|
1560 |
-
'desc' => esc_html__( 'Custom Twitter Feeds is a highly customizable way to display tweets from your Twitter account. Promote your latest content and update your site content automatically.', 'custom-facebook-feed' ),
|
1561 |
-
'url' => 'https://smashballoon.com/custom-twitter-feeds/?utm_campaign=instagram-free&utm_source=cross&utm_medium=ctfinstaller',
|
1562 |
-
'act' => 'go-to-url',
|
1563 |
-
)
|
1564 |
-
),
|
1565 |
-
|
1566 |
-
'feeds-for-youtube/youtube-feed.php' => array(
|
1567 |
-
'icon' => $images_url . 'plugin-yt.png',
|
1568 |
-
'name' => esc_html__( 'Feeds for YouTube', 'custom-facebook-feed' ),
|
1569 |
-
'desc' => esc_html__( 'Feeds for YouTube is a simple yet powerful way to display videos from YouTube on your website. Increase engagement with your channel while keeping visitors on your website.', 'custom-facebook-feed' ),
|
1570 |
-
'url' => 'https://downloads.wordpress.org/plugin/feeds-for-youtube.zip',
|
1571 |
-
'pro' => array(
|
1572 |
-
'plug' => 'youtube-feed-pro/youtube-feed.php',
|
1573 |
-
'icon' => $images_url . 'plugin-yt.png',
|
1574 |
-
'name' => esc_html__( 'Feeds for YouTube Pro', 'custom-facebook-feed' ),
|
1575 |
-
'desc' => esc_html__( 'Feeds for YouTube is a simple yet powerful way to display videos from YouTube on your website. Increase engagement with your channel while keeping visitors on your website.', 'custom-facebook-feed' ),
|
1576 |
-
'url' => 'https://smashballoon.com/youtube-feed/?utm_campaign=instagram-free&utm_source=cross&utm_medium=sbyinstaller',
|
1577 |
-
'act' => 'go-to-url',
|
1578 |
-
)
|
1579 |
-
),
|
1580 |
-
);
|
1581 |
-
|
1582 |
-
}
|
1583 |
-
|
1584 |
-
function output_about_addons() {
|
1585 |
-
|
1586 |
-
if ( version_compare( PHP_VERSION, '5.3.0' ) <= 0
|
1587 |
-
|| version_compare( get_bloginfo('version'), '4.6' , '<' ) ){
|
1588 |
-
return;
|
1589 |
-
}
|
1590 |
-
|
1591 |
-
$all_plugins = get_plugins();
|
1592 |
-
$am_plugins = get_am_plugins();
|
1593 |
-
$has_all_plugins = true;
|
1594 |
-
|
1595 |
-
?>
|
1596 |
-
<div id="cff-admin-addons">
|
1597 |
-
<div class="addons-container">
|
1598 |
-
<?php
|
1599 |
-
foreach ( $am_plugins as $plugin => $details ) :
|
1600 |
-
|
1601 |
-
$free_only = true;
|
1602 |
-
$plugin_data = get_the_plugin_data( $plugin, $details, $all_plugins, $free_only );
|
1603 |
-
$plugin_slug = strtolower( str_replace( ' ', '_', $plugin_data['details']['name'] ) );
|
1604 |
-
|
1605 |
-
//Only show the plugin if both free/pro versions aren't already active
|
1606 |
-
isset( $plugin_data['details']['plug'] ) ? $pro_plugin_source = $plugin_data['details']['plug'] : $pro_plugin_source = '';
|
1607 |
-
|
1608 |
-
if( !is_plugin_active( $plugin ) && !is_plugin_active( $pro_plugin_source ) ){
|
1609 |
-
$has_all_plugins = false;
|
1610 |
-
?>
|
1611 |
-
<div class="addon-container" id="install_<?php echo $plugin_slug; ?>">
|
1612 |
-
<div class="addon-item">
|
1613 |
-
<div class="details cff-clear">
|
1614 |
-
<img src="<?php echo esc_url( $plugin_data['details']['icon'] ); ?>">
|
1615 |
-
<h5 class="addon-name">
|
1616 |
-
<?php echo esc_html( $plugin_data['details']['name'] ); ?>
|
1617 |
-
</h5>
|
1618 |
-
<p class="addon-desc">
|
1619 |
-
<?php echo wp_kses_post( $plugin_data['details']['desc'] ); ?>
|
1620 |
-
</p>
|
1621 |
-
</div>
|
1622 |
-
<div class="actions cff-clear">
|
1623 |
-
<div class="status">
|
1624 |
-
<strong>
|
1625 |
-
<?php _e( 'Price:', 'custom-facebook-feed' );
|
1626 |
-
echo ' <span style="color: green;">';
|
1627 |
-
_e( 'Free', 'custom-facebook-feed' );
|
1628 |
-
echo '</span>'; ?>
|
1629 |
-
</strong>
|
1630 |
-
</div>
|
1631 |
-
<div class="action-button">
|
1632 |
-
<button class="<?php echo esc_attr( $plugin_data['action_class'] ); ?>" data-plugin="<?php echo esc_attr( $plugin_data['plugin_src'] ); ?>" data-type="plugin">
|
1633 |
-
<?php echo wp_kses_post( $plugin_data['action_text'] ); ?>
|
1634 |
-
</button>
|
1635 |
-
</div>
|
1636 |
-
</div>
|
1637 |
-
</div>
|
1638 |
-
</div>
|
1639 |
-
|
1640 |
-
<?php } ?>
|
1641 |
-
|
1642 |
-
<?php endforeach;
|
1643 |
-
|
1644 |
-
if( $has_all_plugins == true ){ ?>
|
1645 |
-
|
1646 |
-
<style type="text/css">.cff-more-plugins-intro{display:none;}</style>
|
1647 |
-
<h2><?php _e( 'You already have all of our free plugins. Awesome!', 'custom-facebook-feed' ); ?></h2>
|
1648 |
-
|
1649 |
-
<p><?php _e( 'Thank you so much for using our plugins. We appreciate you trusting us to power your social media feeds.', 'custom-facebook-feed' ); ?></p>
|
1650 |
-
<p><?php _e( 'If you want to support us in our mission to make bringing social media content to your website both easy and reliable, then consider upgrading to one of our Pro plugins.', 'custom-facebook-feed' ); ?></p>
|
1651 |
-
|
1652 |
-
<div class="cff-cols-4">
|
1653 |
-
<?php //Show a list of Pro plugins which aren't currently active ?>
|
1654 |
-
<?php foreach ( $am_plugins as $plugin => $details ) :
|
1655 |
-
|
1656 |
-
$plugin_data = get_the_plugin_data( $plugin, $details, $all_plugins );
|
1657 |
-
$plugin_slug = strtolower( str_replace( ' ', '_', $plugin_data['details']['name'] ) );
|
1658 |
-
|
1659 |
-
isset( $plugin_data['details']['plug'] ) ? $pro_plugin_source = $plugin_data['details']['plug'] : $pro_plugin_source = '';
|
1660 |
-
if( !is_plugin_active( $pro_plugin_source ) ){
|
1661 |
-
?>
|
1662 |
-
|
1663 |
-
<div class="addon-container" id="install_<?php echo $plugin_slug; ?>">
|
1664 |
-
<div class="addon-item">
|
1665 |
-
<div class="details cff-clear">
|
1666 |
-
<img src="<?php echo esc_url( $plugin_data['details']['icon'] ); ?>">
|
1667 |
-
<h5 class="addon-name">
|
1668 |
-
<?php echo esc_html( $plugin_data['details']['name'] ); ?>
|
1669 |
-
</h5>
|
1670 |
-
<p class="addon-desc">
|
1671 |
-
<?php echo wp_kses_post( $plugin_data['details']['desc'] ); ?>
|
1672 |
-
</p>
|
1673 |
-
</div>
|
1674 |
-
<div class="actions cff-clear">
|
1675 |
-
<div class="action-button">
|
1676 |
-
<a href="<?php echo esc_attr( $details['pro']['url'] ); ?>" target="_blank" class="status-go-to-url button button-primary">
|
1677 |
-
<?php _e( 'Upgrade to Pro', 'custom-facebook-feed' ); ?>
|
1678 |
-
</a>
|
1679 |
-
</div>
|
1680 |
-
</div>
|
1681 |
-
</div>
|
1682 |
-
</div>
|
1683 |
-
|
1684 |
-
<?php } ?>
|
1685 |
-
|
1686 |
-
<?php endforeach; ?>
|
1687 |
-
</div>
|
1688 |
-
|
1689 |
-
<?php } ?>
|
1690 |
-
|
1691 |
-
</div>
|
1692 |
-
</div>
|
1693 |
-
<?php
|
1694 |
-
}
|
1695 |
-
|
1696 |
-
|
1697 |
-
function get_the_plugin_data( $plugin, $details, $all_plugins, $free_only = false ) {
|
1698 |
-
|
1699 |
-
$have_pro = ( ! empty( $details['pro'] ) && ! empty( $details['pro']['plug'] ) );
|
1700 |
-
$show_pro = false;
|
1701 |
-
|
1702 |
-
$plugin_data = array();
|
1703 |
-
|
1704 |
-
if( $free_only ) $have_pro = false;
|
1705 |
-
|
1706 |
-
if ( $have_pro ) {
|
1707 |
-
if ( array_key_exists( $plugin, $all_plugins ) ) {
|
1708 |
-
if ( is_plugin_active( $plugin ) ) {
|
1709 |
-
$show_pro = true;
|
1710 |
-
}
|
1711 |
-
}
|
1712 |
-
if ( array_key_exists( $details['pro']['plug'], $all_plugins ) ) {
|
1713 |
-
$show_pro = true;
|
1714 |
-
}
|
1715 |
-
if ( $show_pro ) {
|
1716 |
-
$plugin = $details['pro']['plug'];
|
1717 |
-
$details = $details['pro'];
|
1718 |
-
}
|
1719 |
-
}
|
1720 |
-
|
1721 |
-
if( $free_only ) $show_pro = false;
|
1722 |
-
|
1723 |
-
if ( array_key_exists( $plugin, $all_plugins ) ) {
|
1724 |
-
if ( is_plugin_active( $plugin ) ) {
|
1725 |
-
// Status text/status.
|
1726 |
-
$plugin_data['status_class'] = 'status-active';
|
1727 |
-
$plugin_data['status_text'] = esc_html__( 'Active', 'custom-facebook-feed' );
|
1728 |
-
// Button text/status.
|
1729 |
-
$plugin_data['action_class'] = $plugin_data['status_class'] . ' button button-secondary disabled';
|
1730 |
-
$plugin_data['action_text'] = esc_html__( 'Activated', 'custom-facebook-feed' );
|
1731 |
-
$plugin_data['plugin_src'] = esc_attr( $plugin );
|
1732 |
-
} else {
|
1733 |
-
// Status text/status.
|
1734 |
-
$plugin_data['status_class'] = 'status-inactive';
|
1735 |
-
$plugin_data['status_text'] = esc_html__( 'Inactive', 'custom-facebook-feed' );
|
1736 |
-
// Button text/status.
|
1737 |
-
$plugin_data['action_class'] = $plugin_data['status_class'] . ' button button-secondary';
|
1738 |
-
$plugin_data['action_text'] = esc_html__( 'Activate', 'custom-facebook-feed' );
|
1739 |
-
$plugin_data['plugin_src'] = esc_attr( $plugin );
|
1740 |
-
}
|
1741 |
-
} else {
|
1742 |
-
// Doesn't exist, install.
|
1743 |
-
// Status text/status.
|
1744 |
-
$plugin_data['status_class'] = 'status-download';
|
1745 |
-
if ( isset( $details['act'] ) && 'go-to-url' === $details['act'] ) {
|
1746 |
-
$plugin_data['status_class'] = 'status-go-to-url';
|
1747 |
-
}
|
1748 |
-
$plugin_data['status_text'] = esc_html__( 'Not Installed', 'custom-facebook-feed' );
|
1749 |
-
// Button text/status.
|
1750 |
-
$plugin_data['action_class'] = $plugin_data['status_class'] . ' button button-primary';
|
1751 |
-
$plugin_data['action_text'] = esc_html__( 'Install Plugin', 'custom-facebook-feed' );
|
1752 |
-
$plugin_data['plugin_src'] = esc_url( $details['url'] );
|
1753 |
-
}
|
1754 |
-
|
1755 |
-
$plugin_data['details'] = $details;
|
1756 |
-
|
1757 |
-
return $plugin_data;
|
1758 |
-
}
|
1759 |
-
|
1760 |
-
|
1761 |
-
output_about_addons();
|
1762 |
-
|
1763 |
-
?>
|
1764 |
-
<style>.cff_quickstart, .cff-pro-notice, .cff_plugins_promo, .cff_share_plugin{ display: none !Important; }</style>
|
1765 |
-
</div>
|
1766 |
-
|
1767 |
-
<?php
|
1768 |
-
} //End More tab
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
} //End Settings_Page
|
1774 |
-
|
1775 |
-
|
1776 |
-
//Create Style page
|
1777 |
-
function cff_style_page() {
|
1778 |
-
//Declare variables for fields
|
1779 |
-
$style_hidden_field_name = 'cff_style_submit_hidden';
|
1780 |
-
$style_general_hidden_field_name = 'cff_style_general_submit_hidden';
|
1781 |
-
$style_post_layout_hidden_field_name = 'cff_style_post_layout_submit_hidden';
|
1782 |
-
$style_typography_hidden_field_name = 'cff_style_typography_submit_hidden';
|
1783 |
-
$style_misc_hidden_field_name = 'cff_style_misc_submit_hidden';
|
1784 |
-
$style_custom_text_hidden_field_name = 'cff_style_custom_text_submit_hidden';
|
1785 |
-
|
1786 |
-
//Defaults need to be here on the Settings page so that they're saved when the initial settings are saved
|
1787 |
-
$defaults = array(
|
1788 |
-
//Post types
|
1789 |
-
'cff_show_links_type' => true,
|
1790 |
-
'cff_show_event_type' => true,
|
1791 |
-
'cff_show_video_type' => true,
|
1792 |
-
'cff_show_photos_type' => true,
|
1793 |
-
'cff_show_status_type' => true,
|
1794 |
-
//Layout
|
1795 |
-
'cff_preset_layout' => 'thumb',
|
1796 |
-
//Include
|
1797 |
-
'cff_show_text' => true,
|
1798 |
-
'cff_show_desc' => true,
|
1799 |
-
'cff_show_shared_links' => true,
|
1800 |
-
'cff_show_date' => true,
|
1801 |
-
'cff_show_media' => true,
|
1802 |
-
'cff_show_media_link' => true,
|
1803 |
-
'cff_show_event_title' => true,
|
1804 |
-
'cff_show_event_details' => true,
|
1805 |
-
'cff_show_meta' => true,
|
1806 |
-
'cff_show_link' => true,
|
1807 |
-
'cff_show_like_box' => true,
|
1808 |
-
//Post Style
|
1809 |
-
'cff_post_style' => '',
|
1810 |
-
'cff_post_bg_color' => '',
|
1811 |
-
'cff_post_rounded' => '0',
|
1812 |
-
'cff_box_shadow' => false,
|
1813 |
-
//Typography
|
1814 |
-
'cff_title_format' => 'p',
|
1815 |
-
'cff_title_size' => 'inherit',
|
1816 |
-
'cff_title_weight' => 'inherit',
|
1817 |
-
'cff_title_color' => '',
|
1818 |
-
'cff_posttext_link_color' => '',
|
1819 |
-
'cff_body_size' => '12',
|
1820 |
-
'cff_body_weight' => 'inherit',
|
1821 |
-
'cff_body_color' => '',
|
1822 |
-
'cff_link_title_format' => 'p',
|
1823 |
-
'cff_link_title_size' => 'inherit',
|
1824 |
-
'cff_link_url_size' => '12',
|
1825 |
-
'cff_link_desc_size' => 'inherit',
|
1826 |
-
'cff_link_desc_color' => '',
|
1827 |
-
'cff_link_title_color' => '',
|
1828 |
-
'cff_link_url_color' => '',
|
1829 |
-
'cff_link_bg_color' => '',
|
1830 |
-
'cff_link_border_color' => '',
|
1831 |
-
'cff_disable_link_box' => '',
|
1832 |
-
//Event title
|
1833 |
-
'cff_event_title_format' => 'p',
|
1834 |
-
'cff_event_title_size' => 'inherit',
|
1835 |
-
'cff_event_title_weight' => 'inherit',
|
1836 |
-
'cff_event_title_color' => '',
|
1837 |
-
//Event date
|
1838 |
-
'cff_event_date_size' => 'inherit',
|
1839 |
-
'cff_event_date_weight' => 'inherit',
|
1840 |
-
'cff_event_date_color' => '',
|
1841 |
-
'cff_event_date_position' => 'below',
|
1842 |
-
'cff_event_date_formatting' => '1',
|
1843 |
-
'cff_event_date_custom' => '',
|
1844 |
-
//Event details
|
1845 |
-
'cff_event_details_size' => 'inherit',
|
1846 |
-
'cff_event_details_weight' => 'inherit',
|
1847 |
-
'cff_event_details_color' => '',
|
1848 |
-
'cff_event_link_color' => '',
|
1849 |
-
//Date
|
1850 |
-
'cff_date_position' => 'author',
|
1851 |
-
'cff_date_size' => 'inherit',
|
1852 |
-
'cff_date_weight' => 'inherit',
|
1853 |
-
'cff_date_color' => '',
|
1854 |
-
'cff_date_formatting' => '1',
|
1855 |
-
'cff_date_custom' => '',
|
1856 |
-
'cff_date_before' => '',
|
1857 |
-
'cff_date_after' => '',
|
1858 |
-
'cff_timezone' => 'America/Chicago',
|
1859 |
-
|
1860 |
-
//Link to Facebook
|
1861 |
-
'cff_link_size' => 'inherit',
|
1862 |
-
'cff_link_weight' => 'inherit',
|
1863 |
-
'cff_link_color' => '',
|
1864 |
-
'cff_facebook_link_text' => 'View on Facebook',
|
1865 |
-
'cff_view_link_text' => 'View Link',
|
1866 |
-
'cff_link_to_timeline' => false,
|
1867 |
-
//Meta
|
1868 |
-
'cff_icon_style' => 'light',
|
1869 |
-
'cff_meta_text_color' => '',
|
1870 |
-
'cff_meta_bg_color' => '',
|
1871 |
-
'cff_nocomments_text' => 'No comments yet',
|
1872 |
-
'cff_hide_comments' => '',
|
1873 |
-
//Misc
|
1874 |
-
'cff_feed_width' => '100%',
|
1875 |
-
'cff_feed_width_resp' => false,
|
1876 |
-
'cff_feed_height' => '',
|
1877 |
-
'cff_feed_padding' => '',
|
1878 |
-
'cff_like_box_position' => 'bottom',
|
1879 |
-
'cff_like_box_outside' => false,
|
1880 |
-
'cff_likebox_width' => '',
|
1881 |
-
'cff_likebox_height' => '',
|
1882 |
-
'cff_like_box_faces' => false,
|
1883 |
-
'cff_like_box_border' => false,
|
1884 |
-
'cff_like_box_cover' => true,
|
1885 |
-
'cff_like_box_small_header' => false,
|
1886 |
-
'cff_like_box_hide_cta' => false,
|
1887 |
-
|
1888 |
-
'cff_bg_color' => '',
|
1889 |
-
'cff_likebox_bg_color' => '',
|
1890 |
-
'cff_like_box_text_color' => 'blue',
|
1891 |
-
'cff_video_height' => '',
|
1892 |
-
'cff_show_author' => true,
|
1893 |
-
'cff_class' => '',
|
1894 |
-
'cff_open_links' => true,
|
1895 |
-
'cff_cron' => 'unset',
|
1896 |
-
'cff_request_method' => 'auto',
|
1897 |
-
'cff_disable_styles' => false,
|
1898 |
-
'cff_format_issue' => false,
|
1899 |
-
'cff_restricted_page' => false,
|
1900 |
-
'cff_cols' => 1,
|
1901 |
-
'cff_cols_mobile' => 1,
|
1902 |
-
|
1903 |
-
//New
|
1904 |
-
'cff_custom_css' => '',
|
1905 |
-
'cff_custom_js' => '',
|
1906 |
-
'cff_title_link' => false,
|
1907 |
-
'cff_post_tags' => true,
|
1908 |
-
'cff_link_hashtags' => true,
|
1909 |
-
'cff_event_title_link' => true,
|
1910 |
-
'cff_video_action' => 'post',
|
1911 |
-
'cff_app_id' => '',
|
1912 |
-
'cff_show_credit' => '',
|
1913 |
-
'cff_font_source' => '',
|
1914 |
-
'cff_minify' => false,
|
1915 |
-
'disable_admin_notice' => false,
|
1916 |
-
'cff_sep_color' => '',
|
1917 |
-
'cff_sep_size' => '1',
|
1918 |
-
|
1919 |
-
//Feed Header
|
1920 |
-
'cff_show_header' => '',
|
1921 |
-
'cff_header_type' => '',
|
1922 |
-
'cff_header_cover' => true,
|
1923 |
-
'cff_header_name' => true,
|
1924 |
-
'cff_header_bio' => true,
|
1925 |
-
'cff_header_outside' => false,
|
1926 |
-
'cff_header_cover_height' => '300',
|
1927 |
-
'cff_header_text' => 'Facebook Posts',
|
1928 |
-
'cff_header_bg_color' => '',
|
1929 |
-
'cff_header_padding' => '',
|
1930 |
-
'cff_header_text_size' => '',
|
1931 |
-
'cff_header_text_weight' => '',
|
1932 |
-
'cff_header_text_color' => '',
|
1933 |
-
'cff_header_icon' => '',
|
1934 |
-
'cff_header_icon_color' => '',
|
1935 |
-
'cff_header_icon_size' => '28',
|
1936 |
-
|
1937 |
-
//Author
|
1938 |
-
'cff_author_size' => 'inherit',
|
1939 |
-
'cff_author_color' => '',
|
1940 |
-
|
1941 |
-
//Translate - general
|
1942 |
-
'cff_see_more_text' => 'See More',
|
1943 |
-
'cff_see_less_text' => 'See Less',
|
1944 |
-
'cff_facebook_link_text' => 'View on Facebook',
|
1945 |
-
'cff_facebook_share_text' => 'Share',
|
1946 |
-
'cff_show_facebook_link' => true,
|
1947 |
-
'cff_show_facebook_share' => true,
|
1948 |
-
|
1949 |
-
'cff_translate_photos_text' => 'photos',
|
1950 |
-
'cff_translate_photo_text' => 'Photo',
|
1951 |
-
'cff_translate_video_text' => 'Video',
|
1952 |
-
|
1953 |
-
'cff_translate_learn_more_text' => 'Learn More',
|
1954 |
-
'cff_translate_shop_now_text' => 'Shop Now',
|
1955 |
-
'cff_translate_message_page_text' => 'Message Page',
|
1956 |
-
|
1957 |
-
//Translate - date
|
1958 |
-
'cff_translate_second' => 'second',
|
1959 |
-
'cff_translate_seconds' => 'seconds',
|
1960 |
-
'cff_translate_minute' => 'minute',
|
1961 |
-
'cff_translate_minutes' => 'minutes',
|
1962 |
-
'cff_translate_hour' => 'hour',
|
1963 |
-
'cff_translate_hours' => 'hours',
|
1964 |
-
'cff_translate_day' => 'day',
|
1965 |
-
'cff_translate_days' => 'days',
|
1966 |
-
'cff_translate_week' => 'week',
|
1967 |
-
'cff_translate_weeks' => 'weeks',
|
1968 |
-
'cff_translate_month' => 'month',
|
1969 |
-
'cff_translate_months' => 'months',
|
1970 |
-
'cff_translate_year' => 'year',
|
1971 |
-
'cff_translate_years' => 'years',
|
1972 |
-
'cff_translate_ago' => 'ago',
|
1973 |
-
|
1974 |
-
// email
|
1975 |
-
'enable_email_report' => 'on',
|
1976 |
-
'email_notification' => 'monday',
|
1977 |
-
'email_notification_addresses' => get_option( 'admin_email' )
|
1978 |
-
);
|
1979 |
-
//Save layout option in an array
|
1980 |
-
$options = wp_parse_args(get_option('cff_style_settings'), $defaults);
|
1981 |
-
add_option( 'cff_style_settings', $options );
|
1982 |
-
|
1983 |
-
//Set the page variables
|
1984 |
-
//Post types
|
1985 |
-
$cff_show_links_type = $options[ 'cff_show_links_type' ];
|
1986 |
-
$cff_show_event_type = $options[ 'cff_show_event_type' ];
|
1987 |
-
$cff_show_video_type = $options[ 'cff_show_video_type' ];
|
1988 |
-
$cff_show_photos_type = $options[ 'cff_show_photos_type' ];
|
1989 |
-
$cff_show_status_type = $options[ 'cff_show_status_type' ];
|
1990 |
-
//Layout
|
1991 |
-
$cff_preset_layout = $options[ 'cff_preset_layout' ];
|
1992 |
-
//Include
|
1993 |
-
$cff_show_text = $options[ 'cff_show_text' ];
|
1994 |
-
$cff_show_desc = $options[ 'cff_show_desc' ];
|
1995 |
-
$cff_show_shared_links = $options[ 'cff_show_shared_links' ];
|
1996 |
-
$cff_show_date = $options[ 'cff_show_date' ];
|
1997 |
-
$cff_show_media = $options[ 'cff_show_media' ];
|
1998 |
-
$cff_show_media_link = $options[ 'cff_show_media_link' ];
|
1999 |
-
$cff_show_event_title = $options[ 'cff_show_event_title' ];
|
2000 |
-
$cff_show_event_details = $options[ 'cff_show_event_details' ];
|
2001 |
-
$cff_show_meta = $options[ 'cff_show_meta' ];
|
2002 |
-
$cff_show_link = $options[ 'cff_show_link' ];
|
2003 |
-
$cff_show_like_box = $options[ 'cff_show_like_box' ];
|
2004 |
-
//Post Style
|
2005 |
-
$cff_post_style = $options[ 'cff_post_style' ];
|
2006 |
-
$cff_post_bg_color = $options[ 'cff_post_bg_color' ];
|
2007 |
-
$cff_post_rounded = $options[ 'cff_post_rounded' ];
|
2008 |
-
$cff_box_shadow = $options[ 'cff_box_shadow' ];
|
2009 |
-
|
2010 |
-
//Typography
|
2011 |
-
$cff_see_more_text = $options[ 'cff_see_more_text' ];
|
2012 |
-
$cff_see_less_text = $options[ 'cff_see_less_text' ];
|
2013 |
-
$cff_title_format = $options[ 'cff_title_format' ];
|
2014 |
-
$cff_title_size = $options[ 'cff_title_size' ];
|
2015 |
-
$cff_title_weight = $options[ 'cff_title_weight' ];
|
2016 |
-
$cff_title_color = $options[ 'cff_title_color' ];
|
2017 |
-
$cff_posttext_link_color = $options[ 'cff_posttext_link_color' ];
|
2018 |
-
$cff_body_size = $options[ 'cff_body_size' ];
|
2019 |
-
$cff_body_weight = $options[ 'cff_body_weight' ];
|
2020 |
-
$cff_body_color = $options[ 'cff_body_color' ];
|
2021 |
-
$cff_link_title_format = $options[ 'cff_link_title_format' ];
|
2022 |
-
$cff_link_title_size = $options[ 'cff_link_title_size' ];
|
2023 |
-
$cff_link_url_size = $options[ 'cff_link_url_size' ];
|
2024 |
-
$cff_link_desc_size = $options[ 'cff_link_desc_size' ];
|
2025 |
-
$cff_link_desc_color = $options[ 'cff_link_desc_color' ];
|
2026 |
-
$cff_link_title_color = $options[ 'cff_link_title_color' ];
|
2027 |
-
$cff_link_url_color = $options[ 'cff_link_url_color' ];
|
2028 |
-
$cff_link_bg_color = $options[ 'cff_link_bg_color' ];
|
2029 |
-
$cff_link_border_color = $options[ 'cff_link_border_color' ];
|
2030 |
-
$cff_disable_link_box = $options[ 'cff_disable_link_box' ];
|
2031 |
-
|
2032 |
-
//Event title
|
2033 |
-
$cff_event_title_format = $options[ 'cff_event_title_format' ];
|
2034 |
-
$cff_event_title_size = $options[ 'cff_event_title_size' ];
|
2035 |
-
$cff_event_title_weight = $options[ 'cff_event_title_weight' ];
|
2036 |
-
$cff_event_title_color = $options[ 'cff_event_title_color' ];
|
2037 |
-
//Event date
|
2038 |
-
$cff_event_date_size = $options[ 'cff_event_date_size' ];
|
2039 |
-
$cff_event_date_weight = $options[ 'cff_event_date_weight' ];
|
2040 |
-
$cff_event_date_color = $options[ 'cff_event_date_color' ];
|
2041 |
-
$cff_event_date_position = $options[ 'cff_event_date_position' ];
|
2042 |
-
$cff_event_date_formatting = $options[ 'cff_event_date_formatting' ];
|
2043 |
-
$cff_event_date_custom = $options[ 'cff_event_date_custom' ];
|
2044 |
-
//Event details
|
2045 |
-
$cff_event_details_size = $options[ 'cff_event_details_size' ];
|
2046 |
-
$cff_event_details_weight = $options[ 'cff_event_details_weight' ];
|
2047 |
-
$cff_event_details_color = $options[ 'cff_event_details_color' ];
|
2048 |
-
$cff_event_link_color = $options[ 'cff_event_link_color' ];
|
2049 |
-
//Date
|
2050 |
-
$cff_date_position = $options[ 'cff_date_position' ];
|
2051 |
-
$cff_date_size = $options[ 'cff_date_size' ];
|
2052 |
-
$cff_date_weight = $options[ 'cff_date_weight' ];
|
2053 |
-
$cff_date_color = $options[ 'cff_date_color' ];
|
2054 |
-
$cff_date_formatting = $options[ 'cff_date_formatting' ];
|
2055 |
-
$cff_date_custom = $options[ 'cff_date_custom' ];
|
2056 |
-
$cff_date_before = $options[ 'cff_date_before' ];
|
2057 |
-
$cff_date_after = $options[ 'cff_date_after' ];
|
2058 |
-
$cff_timezone = $options[ 'cff_timezone' ];
|
2059 |
-
|
2060 |
-
//Date translate
|
2061 |
-
$cff_translate_second = $options[ 'cff_translate_second' ];
|
2062 |
-
$cff_translate_seconds = $options[ 'cff_translate_seconds' ];
|
2063 |
-
$cff_translate_minute = $options[ 'cff_translate_minute' ];
|
2064 |
-
$cff_translate_minutes = $options[ 'cff_translate_minutes' ];
|
2065 |
-
$cff_translate_hour = $options[ 'cff_translate_hour' ];
|
2066 |
-
$cff_translate_hours = $options[ 'cff_translate_hours' ];
|
2067 |
-
$cff_translate_day = $options[ 'cff_translate_day' ];
|
2068 |
-
$cff_translate_days = $options[ 'cff_translate_days' ];
|
2069 |
-
$cff_translate_week = $options[ 'cff_translate_week' ];
|
2070 |
-
$cff_translate_weeks = $options[ 'cff_translate_weeks' ];
|
2071 |
-
$cff_translate_month = $options[ 'cff_translate_month' ];
|
2072 |
-
$cff_translate_months = $options[ 'cff_translate_months' ];
|
2073 |
-
$cff_translate_year = $options[ 'cff_translate_year' ];
|
2074 |
-
$cff_translate_years = $options[ 'cff_translate_years' ];
|
2075 |
-
$cff_translate_ago = $options[ 'cff_translate_ago' ];
|
2076 |
-
//Photos translate
|
2077 |
-
$cff_translate_photos_text = $options[ 'cff_translate_photos_text' ];
|
2078 |
-
$cff_translate_photo_text = $options[ 'cff_translate_photo_text' ];
|
2079 |
-
$cff_translate_video_text = $options[ 'cff_translate_video_text' ];
|
2080 |
-
|
2081 |
-
$cff_translate_learn_more_text = $options[ 'cff_translate_learn_more_text' ];
|
2082 |
-
$cff_translate_shop_now_text = $options[ 'cff_translate_shop_now_text' ];
|
2083 |
-
$cff_translate_message_page_text = $options[ 'cff_translate_message_page_text' ];
|
2084 |
-
|
2085 |
-
//View on Facebook link
|
2086 |
-
$cff_link_size = $options[ 'cff_link_size' ];
|
2087 |
-
$cff_link_weight = $options[ 'cff_link_weight' ];
|
2088 |
-
$cff_link_color = $options[ 'cff_link_color' ];
|
2089 |
-
$cff_facebook_link_text = $options[ 'cff_facebook_link_text' ];
|
2090 |
-
$cff_view_link_text = $options[ 'cff_view_link_text' ];
|
2091 |
-
$cff_link_to_timeline = $options[ 'cff_link_to_timeline' ];
|
2092 |
-
$cff_facebook_share_text = $options[ 'cff_facebook_share_text' ];
|
2093 |
-
$cff_show_facebook_link = $options[ 'cff_show_facebook_link' ];
|
2094 |
-
$cff_show_facebook_share = $options[ 'cff_show_facebook_share' ];
|
2095 |
-
//Meta
|
2096 |
-
$cff_icon_style = $options[ 'cff_icon_style' ];
|
2097 |
-
$cff_meta_text_color = $options[ 'cff_meta_text_color' ];
|
2098 |
-
$cff_meta_bg_color = $options[ 'cff_meta_bg_color' ];
|
2099 |
-
$cff_nocomments_text = $options[ 'cff_nocomments_text' ];
|
2100 |
-
$cff_hide_comments = $options[ 'cff_hide_comments' ];
|
2101 |
-
//Misc
|
2102 |
-
$cff_feed_width = $options[ 'cff_feed_width' ];
|
2103 |
-
$cff_feed_width_resp = $options[ 'cff_feed_width_resp' ];
|
2104 |
-
$cff_feed_height = $options[ 'cff_feed_height' ];
|
2105 |
-
$cff_feed_padding = $options[ 'cff_feed_padding' ];
|
2106 |
-
$cff_like_box_position = $options[ 'cff_like_box_position' ];
|
2107 |
-
$cff_like_box_outside = $options[ 'cff_like_box_outside' ];
|
2108 |
-
$cff_likebox_width = $options[ 'cff_likebox_width' ];
|
2109 |
-
$cff_likebox_height = $options[ 'cff_likebox_height' ];
|
2110 |
-
$cff_like_box_faces = $options[ 'cff_like_box_faces' ];
|
2111 |
-
$cff_like_box_border = $options[ 'cff_like_box_border' ];
|
2112 |
-
$cff_like_box_cover = $options[ 'cff_like_box_cover' ];
|
2113 |
-
$cff_like_box_small_header = $options[ 'cff_like_box_small_header' ];
|
2114 |
-
$cff_like_box_hide_cta = $options[ 'cff_like_box_hide_cta' ];
|
2115 |
-
|
2116 |
-
|
2117 |
-
$cff_show_media = $options[ 'cff_show_media' ];
|
2118 |
-
$cff_bg_color = $options[ 'cff_bg_color' ];
|
2119 |
-
$cff_likebox_bg_color = $options[ 'cff_likebox_bg_color' ];
|
2120 |
-
$cff_like_box_text_color = $options[ 'cff_like_box_text_color' ];
|
2121 |
-
$cff_video_height = $options[ 'cff_video_height' ];
|
2122 |
-
$cff_show_author = $options[ 'cff_show_author' ];
|
2123 |
-
$cff_class = $options[ 'cff_class' ];
|
2124 |
-
$cff_open_links = $options[ 'cff_open_links' ];
|
2125 |
-
$cff_app_id = $options[ 'cff_app_id' ];
|
2126 |
-
$cff_show_credit = $options[ 'cff_show_credit' ];
|
2127 |
-
$cff_font_source = $options[ 'cff_font_source' ];
|
2128 |
-
$cff_preserve_settings = 'cff_preserve_settings';
|
2129 |
-
$cff_preserve_settings_val = get_option( $cff_preserve_settings );
|
2130 |
-
$cff_cron = $options[ 'cff_cron' ];
|
2131 |
-
$cff_request_method = $options[ 'cff_request_method' ];
|
2132 |
-
$cff_disable_styles = $options[ 'cff_disable_styles' ];
|
2133 |
-
$cff_format_issue = $options[ 'cff_format_issue' ];
|
2134 |
-
$cff_restricted_page = $options[ 'cff_restricted_page' ];
|
2135 |
-
$cff_minify = $options[ 'cff_minify' ];
|
2136 |
-
$cff_cols = $options[ 'cff_cols' ];
|
2137 |
-
$cff_cols_mobile = $options[ 'cff_cols_mobile' ];
|
2138 |
-
$cff_disable_admin_notice = $options[ 'disable_admin_notice' ];
|
2139 |
-
$cff_enable_email_report = $options[ 'enable_email_report' ];
|
2140 |
-
$cff_email_notification = $options[ 'email_notification' ];
|
2141 |
-
$cff_email_notification_addresses = $options[ 'email_notification_addresses' ];
|
2142 |
-
|
2143 |
-
//Page Header
|
2144 |
-
$cff_show_header = $options[ 'cff_show_header' ];
|
2145 |
-
$cff_header_type = $options[ 'cff_header_type' ];
|
2146 |
-
$cff_header_cover = $options[ 'cff_header_cover' ];
|
2147 |
-
$cff_header_name = $options[ 'cff_header_name' ];
|
2148 |
-
$cff_header_bio = $options[ 'cff_header_bio' ];
|
2149 |
-
$cff_header_cover_height = $options[ 'cff_header_cover_height' ];
|
2150 |
-
$cff_header_outside = $options[ 'cff_header_outside' ];
|
2151 |
-
$cff_header_text = $options[ 'cff_header_text' ];
|
2152 |
-
$cff_header_bg_color = $options[ 'cff_header_bg_color' ];
|
2153 |
-
$cff_header_padding = $options[ 'cff_header_padding' ];
|
2154 |
-
$cff_header_text_size = $options[ 'cff_header_text_size' ];
|
2155 |
-
$cff_header_text_weight = $options[ 'cff_header_text_weight' ];
|
2156 |
-
$cff_header_text_color = $options[ 'cff_header_text_color' ];
|
2157 |
-
$cff_header_icon = $options[ 'cff_header_icon' ];
|
2158 |
-
$cff_header_icon_color = $options[ 'cff_header_icon_color' ];
|
2159 |
-
$cff_header_icon_size = $options[ 'cff_header_icon_size' ];
|
2160 |
-
|
2161 |
-
//Author
|
2162 |
-
$cff_author_size = $options[ 'cff_author_size' ];
|
2163 |
-
$cff_author_color = $options[ 'cff_author_color' ];
|
2164 |
-
|
2165 |
-
//New
|
2166 |
-
$cff_custom_css = $options[ 'cff_custom_css' ];
|
2167 |
-
$cff_custom_js = $options[ 'cff_custom_js' ];
|
2168 |
-
$cff_title_link = $options[ 'cff_title_link' ];
|
2169 |
-
$cff_post_tags = $options[ 'cff_post_tags' ];
|
2170 |
-
$cff_link_hashtags = $options[ 'cff_link_hashtags' ];
|
2171 |
-
$cff_event_title_link = $options[ 'cff_event_title_link' ];
|
2172 |
-
$cff_video_action = $options[ 'cff_video_action' ];
|
2173 |
-
$cff_sep_color = $options[ 'cff_sep_color' ];
|
2174 |
-
$cff_sep_size = $options[ 'cff_sep_size' ];
|
2175 |
-
|
2176 |
-
// Texts lengths
|
2177 |
-
$cff_title_length = 'cff_title_length';
|
2178 |
-
$cff_body_length = 'cff_body_length';
|
2179 |
-
// Read in existing option value from database
|
2180 |
-
$cff_title_length_val = get_option( $cff_title_length, '400' );
|
2181 |
-
$cff_body_length_val = get_option( $cff_body_length, '200' );
|
2182 |
-
|
2183 |
-
//Ajax
|
2184 |
-
$cff_ajax = 'cff_ajax';
|
2185 |
-
$cff_ajax_val = get_option( $cff_ajax );
|
2186 |
-
|
2187 |
-
|
2188 |
-
//Check nonce before saving data
|
2189 |
-
if ( ! isset( $_POST['cff_customize_nonce'] ) || ! wp_verify_nonce( $_POST['cff_customize_nonce'], 'cff_saving_customize' ) ) {
|
2190 |
-
//Nonce did not verify
|
2191 |
-
} else {
|
2192 |
-
// See if the user has posted us some information. If they did, this hidden field will be set to 'Y'.
|
2193 |
-
if( isset($_POST[ $style_hidden_field_name ]) && $_POST[ $style_hidden_field_name ] == 'Y' ) {
|
2194 |
-
//Update the General options
|
2195 |
-
if( isset($_POST[ $style_general_hidden_field_name ]) && $_POST[ $style_general_hidden_field_name ] == 'Y' ) {
|
2196 |
-
//General
|
2197 |
-
if (isset($_POST[ 'cff_feed_width' ]) ) $cff_feed_width = sanitize_text_field( $_POST[ 'cff_feed_width' ] );
|
2198 |
-
(isset($_POST[ 'cff_feed_width_resp' ]) ) ? $cff_feed_width_resp = sanitize_text_field( $_POST[ 'cff_feed_width_resp' ] ) : $cff_feed_width_resp = '';
|
2199 |
-
if (isset($_POST[ 'cff_feed_height' ]) ) $cff_feed_height = sanitize_text_field( $_POST[ 'cff_feed_height' ] );
|
2200 |
-
if (isset($_POST[ 'cff_feed_padding' ]) ) $cff_feed_padding = sanitize_text_field( $_POST[ 'cff_feed_padding' ] );
|
2201 |
-
if (isset($_POST[ 'cff_bg_color' ]) ) $cff_bg_color = sanitize_text_field( $_POST[ 'cff_bg_color' ] );
|
2202 |
-
if (isset($_POST[ 'cff_class' ]) ) $cff_class = sanitize_text_field( $_POST[ 'cff_class' ] );
|
2203 |
-
if (isset($_POST[ 'cff_cols' ])) $cff_cols = sanitize_text_field( $_POST[ 'cff_cols' ] );
|
2204 |
-
if (isset($_POST[ 'cff_cols_mobile' ])) $cff_cols_mobile = sanitize_text_field( $_POST[ 'cff_cols_mobile' ] );
|
2205 |
-
|
2206 |
-
//Page Header
|
2207 |
-
(isset($_POST[ 'cff_show_header' ])) ? $cff_show_header = sanitize_text_field( $_POST[ 'cff_show_header' ] ) : $cff_show_header = '';
|
2208 |
-
(isset($_POST[ 'cff_header_type' ])) ? $cff_header_type = $_POST[ 'cff_header_type' ] : $cff_header_type = '';
|
2209 |
-
(isset($_POST[ 'cff_header_cover' ])) ? $cff_header_cover = $_POST[ 'cff_header_cover' ] : $cff_header_cover = '';
|
2210 |
-
(isset($_POST[ 'cff_header_name' ])) ? $cff_header_name = $_POST[ 'cff_header_name' ] : $cff_header_name = '';
|
2211 |
-
(isset($_POST[ 'cff_header_bio' ])) ? $cff_header_bio = $_POST[ 'cff_header_bio' ] : $cff_header_bio = '';
|
2212 |
-
(isset($_POST[ 'cff_header_cover_height' ])) ? $cff_header_cover_height = $_POST[ 'cff_header_cover_height' ] : $cff_header_cover_height = '';
|
2213 |
-
(isset($_POST[ 'cff_header_outside' ])) ? $cff_header_outside = sanitize_text_field( $_POST[ 'cff_header_outside' ] ) : $cff_header_outside = '';
|
2214 |
-
if (isset($_POST[ 'cff_header_text' ])) $cff_header_text = sanitize_text_field( $_POST[ 'cff_header_text' ] );
|
2215 |
-
if (isset($_POST[ 'cff_header_bg_color' ])) $cff_header_bg_color = sanitize_text_field( $_POST[ 'cff_header_bg_color' ] );
|
2216 |
-
if (isset($_POST[ 'cff_header_padding' ])) $cff_header_padding = sanitize_text_field( $_POST[ 'cff_header_padding' ] );
|
2217 |
-
if (isset($_POST[ 'cff_header_text_size' ])) $cff_header_text_size = sanitize_text_field( $_POST[ 'cff_header_text_size' ] );
|
2218 |
-
if (isset($_POST[ 'cff_header_text_weight' ])) $cff_header_text_weight = sanitize_text_field( $_POST[ 'cff_header_text_weight' ] );
|
2219 |
-
if (isset($_POST[ 'cff_header_text_color' ])) $cff_header_text_color = sanitize_text_field( $_POST[ 'cff_header_text_color' ] );
|
2220 |
-
if (isset($_POST[ 'cff_header_icon' ])) $cff_header_icon = sanitize_text_field( $_POST[ 'cff_header_icon' ] );
|
2221 |
-
if (isset($_POST[ 'cff_header_icon_color' ])) $cff_header_icon_color = sanitize_text_field( $_POST[ 'cff_header_icon_color' ] );
|
2222 |
-
if (isset($_POST[ 'cff_header_icon_size' ])) $cff_header_icon_size = sanitize_text_field( $_POST[ 'cff_header_icon_size' ] );
|
2223 |
-
|
2224 |
-
//Like Box
|
2225 |
-
(isset($_POST[ 'cff_show_like_box' ])) ? $cff_show_like_box = sanitize_text_field( $_POST[ 'cff_show_like_box' ] ) : $cff_show_like_box = '';
|
2226 |
-
if (isset($_POST[ 'cff_like_box_position' ])) $cff_like_box_position = sanitize_text_field( $_POST[ 'cff_like_box_position' ] );
|
2227 |
-
(isset($_POST[ 'cff_like_box_outside' ])) ? $cff_like_box_outside = sanitize_text_field( $_POST[ 'cff_like_box_outside' ] ) : $cff_like_box_outside = '';
|
2228 |
-
if (isset($_POST[ 'cff_likebox_bg_color' ])) $cff_likebox_bg_color = sanitize_text_field( $_POST[ 'cff_likebox_bg_color' ] );
|
2229 |
-
if (isset($_POST[ 'cff_like_box_text_color' ])) $cff_like_box_text_color = sanitize_text_field( $_POST[ 'cff_like_box_text_color' ] );
|
2230 |
-
if (isset($_POST[ 'cff_likebox_width' ])) $cff_likebox_width = sanitize_text_field( $_POST[ 'cff_likebox_width' ] );
|
2231 |
-
if (isset($_POST[ 'cff_likebox_height' ])) $cff_likebox_height = sanitize_text_field( $_POST[ 'cff_likebox_height' ] );
|
2232 |
-
(isset($_POST[ 'cff_like_box_faces' ])) ? $cff_like_box_faces = sanitize_text_field( $_POST[ 'cff_like_box_faces' ] ) : $cff_like_box_faces = '';
|
2233 |
-
(isset($_POST[ 'cff_like_box_border' ])) ? $cff_like_box_border = sanitize_text_field( $_POST[ 'cff_like_box_border' ] ) : $cff_like_box_border = '';
|
2234 |
-
(isset($_POST[ 'cff_like_box_cover' ])) ? $cff_like_box_cover = sanitize_text_field( $_POST[ 'cff_like_box_cover' ] ) : $cff_like_box_cover = '';
|
2235 |
-
(isset($_POST[ 'cff_like_box_small_header' ])) ? $cff_like_box_small_header = sanitize_text_field( $_POST[ 'cff_like_box_small_header' ] ) : $cff_like_box_small_header = '';
|
2236 |
-
(isset($_POST[ 'cff_like_box_hide_cta' ])) ? $cff_like_box_hide_cta = sanitize_text_field( $_POST[ 'cff_like_box_hide_cta' ] ) : $cff_like_box_hide_cta = '';
|
2237 |
-
|
2238 |
-
//Post types
|
2239 |
-
if (isset($_POST[ 'cff_show_links_type' ]) ) $cff_show_links_type = sanitize_text_field( $_POST[ 'cff_show_links_type' ] );
|
2240 |
-
if (isset($_POST[ 'cff_show_event_type' ]) ) $cff_show_event_type = sanitize_text_field( $_POST[ 'cff_show_event_type' ] );
|
2241 |
-
if (isset($_POST[ 'cff_show_video_type' ]) ) $cff_show_video_type = sanitize_text_field( $_POST[ 'cff_show_video_type' ] );
|
2242 |
-
if (isset($_POST[ 'cff_show_photos_type' ]) ) $cff_show_photos_type = sanitize_text_field( $_POST[ 'cff_show_photos_type' ] );
|
2243 |
-
if (isset($_POST[ 'cff_show_status_type' ]) ) $cff_show_status_type = sanitize_text_field( $_POST[ 'cff_show_status_type' ] );
|
2244 |
-
//General
|
2245 |
-
$options[ 'cff_feed_width' ] = $cff_feed_width;
|
2246 |
-
$options[ 'cff_feed_width_resp' ] = $cff_feed_width_resp;
|
2247 |
-
$options[ 'cff_feed_height' ] = $cff_feed_height;
|
2248 |
-
$options[ 'cff_feed_padding' ] = $cff_feed_padding;
|
2249 |
-
$options[ 'cff_bg_color' ] = $cff_bg_color;
|
2250 |
-
$options[ 'cff_class' ] = $cff_class;
|
2251 |
-
$options[ 'cff_cols' ] = $cff_cols;
|
2252 |
-
$options[ 'cff_cols_mobile' ] = $cff_cols_mobile;
|
2253 |
-
|
2254 |
-
//Page Header
|
2255 |
-
$options[ 'cff_show_header' ] = $cff_show_header;
|
2256 |
-
$options[ 'cff_header_type' ] = $cff_header_type;
|
2257 |
-
$options[ 'cff_header_cover' ] = $cff_header_cover;
|
2258 |
-
$options[ 'cff_header_name' ] = $cff_header_name;
|
2259 |
-
$options[ 'cff_header_bio' ] = $cff_header_bio;
|
2260 |
-
$options[ 'cff_header_cover_height' ] = $cff_header_cover_height;
|
2261 |
-
$options[ 'cff_header_outside' ] = $cff_header_outside;
|
2262 |
-
$options[ 'cff_header_text' ] = $cff_header_text;
|
2263 |
-
$options[ 'cff_header_bg_color' ] = $cff_header_bg_color;
|
2264 |
-
$options[ 'cff_header_padding' ] = $cff_header_padding;
|
2265 |
-
$options[ 'cff_header_text_size' ] = $cff_header_text_size;
|
2266 |
-
$options[ 'cff_header_text_weight' ] = $cff_header_text_weight;
|
2267 |
-
$options[ 'cff_header_text_color' ] = $cff_header_text_color;
|
2268 |
-
$options[ 'cff_header_icon' ] = $cff_header_icon;
|
2269 |
-
$options[ 'cff_header_icon_color' ] = $cff_header_icon_color;
|
2270 |
-
$options[ 'cff_header_icon_size' ] = $cff_header_icon_size;
|
2271 |
-
|
2272 |
-
//Misc
|
2273 |
-
$options[ 'cff_show_like_box' ] = $cff_show_like_box;
|
2274 |
-
$options[ 'cff_like_box_position' ] = $cff_like_box_position;
|
2275 |
-
$options[ 'cff_like_box_outside' ] = $cff_like_box_outside;
|
2276 |
-
$options[ 'cff_likebox_bg_color' ] = $cff_likebox_bg_color;
|
2277 |
-
$options[ 'cff_like_box_text_color' ] = $cff_like_box_text_color;
|
2278 |
-
$options[ 'cff_likebox_width' ] = $cff_likebox_width;
|
2279 |
-
$options[ 'cff_likebox_height' ] = $cff_likebox_height;
|
2280 |
-
$options[ 'cff_like_box_faces' ] = $cff_like_box_faces;
|
2281 |
-
$options[ 'cff_like_box_border' ] = $cff_like_box_border;
|
2282 |
-
$options[ 'cff_like_box_cover' ] = $cff_like_box_cover;
|
2283 |
-
$options[ 'cff_like_box_small_header' ] = $cff_like_box_small_header;
|
2284 |
-
$options[ 'cff_like_box_hide_cta' ] = $cff_like_box_hide_cta;
|
2285 |
-
|
2286 |
-
//Post types
|
2287 |
-
$options[ 'cff_show_links_type' ] = $cff_show_links_type;
|
2288 |
-
$options[ 'cff_show_event_type' ] = $cff_show_event_type;
|
2289 |
-
$options[ 'cff_show_video_type' ] = $cff_show_video_type;
|
2290 |
-
$options[ 'cff_show_photos_type' ] = $cff_show_photos_type;
|
2291 |
-
$options[ 'cff_show_status_type' ] = $cff_show_status_type;
|
2292 |
-
}
|
2293 |
-
//Update the Post Layout options
|
2294 |
-
if( isset($_POST[ $style_post_layout_hidden_field_name ]) && $_POST[ $style_post_layout_hidden_field_name ] == 'Y' ) {
|
2295 |
-
//Layout
|
2296 |
-
if (isset($_POST[ 'cff_preset_layout' ]) ) $cff_preset_layout = sanitize_text_field( $_POST[ 'cff_preset_layout' ] );
|
2297 |
-
//Include
|
2298 |
-
(isset($_POST[ 'cff_show_author' ]) ) ? $cff_show_author = sanitize_text_field( $_POST[ 'cff_show_author' ] ) : $cff_show_author = '';
|
2299 |
-
(isset($_POST[ 'cff_show_text' ]) ) ? $cff_show_text = sanitize_text_field( $_POST[ 'cff_show_text' ] ) : $cff_show_text = '';
|
2300 |
-
(isset($_POST[ 'cff_show_desc' ]) ) ? $cff_show_desc = sanitize_text_field( $_POST[ 'cff_show_desc' ] ) : $cff_show_desc = '';
|
2301 |
-
(isset($_POST[ 'cff_show_shared_links' ]) ) ? $cff_show_shared_links = sanitize_text_field( $_POST[ 'cff_show_shared_links' ] ) : $cff_show_shared_links = '';
|
2302 |
-
(isset($_POST[ 'cff_show_date' ]) ) ? $cff_show_date = sanitize_text_field( $_POST[ 'cff_show_date' ] ) : $cff_show_date = '';
|
2303 |
-
(isset($_POST[ 'cff_show_media' ]) ) ? $cff_show_media = sanitize_text_field( $_POST[ 'cff_show_media' ] ) : $cff_show_media = '';
|
2304 |
-
(isset($_POST[ 'cff_show_media_link' ]) ) ? $cff_show_media_link = sanitize_text_field( $_POST[ 'cff_show_media_link' ] ) : $cff_show_media_link = '';
|
2305 |
-
(isset($_POST[ 'cff_show_event_title' ]) ) ? $cff_show_event_title = sanitize_text_field( $_POST[ 'cff_show_event_title' ] ) : $cff_show_event_title = '';
|
2306 |
-
(isset($_POST[ 'cff_show_event_details' ]) ) ? $cff_show_event_details = sanitize_text_field( $_POST[ 'cff_show_event_details' ] ) : $cff_show_event_details = '';
|
2307 |
-
(isset($_POST[ 'cff_show_meta' ]) ) ? $cff_show_meta = sanitize_text_field( $_POST[ 'cff_show_meta' ] ) : $cff_show_meta = '';
|
2308 |
-
(isset($_POST[ 'cff_show_link' ]) ) ? $cff_show_link = sanitize_text_field( $_POST[ 'cff_show_link' ] ) : $cff_show_link = '';
|
2309 |
-
|
2310 |
-
//Layout
|
2311 |
-
$options[ 'cff_preset_layout' ] = $cff_preset_layout;
|
2312 |
-
//Include
|
2313 |
-
$options[ 'cff_show_author' ] = $cff_show_author;
|
2314 |
-
$options[ 'cff_show_text' ] = $cff_show_text;
|
2315 |
-
$options[ 'cff_show_desc' ] = $cff_show_desc;
|
2316 |
-
$options[ 'cff_show_shared_links' ] = $cff_show_shared_links;
|
2317 |
-
$options[ 'cff_show_date' ] = $cff_show_date;
|
2318 |
-
$options[ 'cff_show_media' ] = $cff_show_media;
|
2319 |
-
$options[ 'cff_show_media_link' ] = $cff_show_media_link;
|
2320 |
-
$options[ 'cff_show_event_title' ] = $cff_show_event_title;
|
2321 |
-
$options[ 'cff_show_event_details' ] = $cff_show_event_details;
|
2322 |
-
$options[ 'cff_show_meta' ] = $cff_show_meta;
|
2323 |
-
$options[ 'cff_show_link' ] = $cff_show_link;
|
2324 |
-
|
2325 |
-
}
|
2326 |
-
//Update the Typography options
|
2327 |
-
if( isset($_POST[ $style_typography_hidden_field_name ]) && $_POST[ $style_typography_hidden_field_name ] == 'Y' ) {
|
2328 |
-
//Character limits
|
2329 |
-
if (isset($_POST[ 'cff_title_length' ]) ) $cff_title_length_val = sanitize_text_field( $_POST[ $cff_title_length ] );
|
2330 |
-
if (isset($_POST[ 'cff_body_length' ]) ) $cff_body_length_val = sanitize_text_field( $_POST[ $cff_body_length ] );
|
2331 |
-
|
2332 |
-
//Post Style
|
2333 |
-
if (isset($_POST[ 'cff_post_style' ]) ) $cff_post_style = $_POST[ 'cff_post_style' ];
|
2334 |
-
(isset($_POST[ 'cff_post_bg_color' ]) ) ? $cff_post_bg_color = $_POST[ 'cff_post_bg_color' ] : $cff_post_bg_color = '';
|
2335 |
-
(isset($_POST[ 'cff_post_rounded' ]) ) ? $cff_post_rounded = $_POST[ 'cff_post_rounded' ] : $cff_post_rounded = '';
|
2336 |
-
if (isset($_POST[ 'cff_sep_color' ])) $cff_sep_color = $_POST[ 'cff_sep_color' ];
|
2337 |
-
if (isset($_POST[ 'cff_sep_size' ])) $cff_sep_size = $_POST[ 'cff_sep_size' ];
|
2338 |
-
(isset($_POST[ 'cff_box_shadow' ]) ) ? $cff_box_shadow = $_POST[ 'cff_box_shadow' ] : $cff_box_shadow = '';
|
2339 |
-
|
2340 |
-
//Author
|
2341 |
-
if (isset($_POST[ 'cff_author_size' ])) $cff_author_size = sanitize_text_field( $_POST[ 'cff_author_size' ] );
|
2342 |
-
if (isset($_POST[ 'cff_author_color' ])) $cff_author_color = sanitize_text_field( $_POST[ 'cff_author_color' ] );
|
2343 |
-
|
2344 |
-
//Typography
|
2345 |
-
if (isset($_POST[ 'cff_title_format' ]) ) $cff_title_format = sanitize_text_field( $_POST[ 'cff_title_format' ] );
|
2346 |
-
if (isset($_POST[ 'cff_title_size' ]) ) $cff_title_size = sanitize_text_field( $_POST[ 'cff_title_size' ] );
|
2347 |
-
if (isset($_POST[ 'cff_title_weight' ]) ) $cff_title_weight = sanitize_text_field( $_POST[ 'cff_title_weight' ] );
|
2348 |
-
if (isset($_POST[ 'cff_title_color' ]) ) $cff_title_color = sanitize_text_field( $_POST[ 'cff_title_color' ] );
|
2349 |
-
if (isset($_POST[ 'cff_posttext_link_color' ]) ) $cff_posttext_link_color = sanitize_text_field( $_POST[ 'cff_posttext_link_color' ] );
|
2350 |
-
|
2351 |
-
(isset($_POST[ 'cff_title_link' ]) ) ? $cff_title_link = sanitize_text_field( $_POST[ 'cff_title_link' ] ) : $cff_title_link = '';
|
2352 |
-
(isset($_POST[ 'cff_post_tags' ]) ) ? $cff_post_tags = sanitize_text_field( $_POST[ 'cff_post_tags' ] ) : $cff_post_tags = '';
|
2353 |
-
(isset($_POST[ 'cff_link_hashtags' ]) ) ? $cff_link_hashtags = sanitize_text_field( $_POST[ 'cff_link_hashtags' ] ) : $cff_link_hashtags = '';
|
2354 |
-
|
2355 |
-
$cff_body_size = $_POST[ 'cff_body_size' ];
|
2356 |
-
if (isset($_POST[ 'cff_body_weight' ]) ) $cff_body_weight = sanitize_text_field( $_POST[ 'cff_body_weight' ] );
|
2357 |
-
if (isset($_POST[ 'cff_body_color' ]) ) $cff_body_color = sanitize_text_field( $_POST[ 'cff_body_color' ] );
|
2358 |
-
if (isset($_POST[ 'cff_link_title_format' ]) ) $cff_link_title_format = sanitize_text_field( $_POST[ 'cff_link_title_format' ] );
|
2359 |
-
if (isset($_POST[ 'cff_link_title_size' ]) ) $cff_link_title_size = $_POST[ 'cff_link_title_size' ];
|
2360 |
-
if (isset($_POST[ 'cff_link_url_size' ]) ) $cff_link_url_size = $_POST[ 'cff_link_url_size' ];
|
2361 |
-
if (isset($_POST[ 'cff_link_desc_size' ]) ) $cff_link_desc_size = $_POST[ 'cff_link_desc_size' ];
|
2362 |
-
if (isset($_POST[ 'cff_link_desc_color' ]) ) $cff_link_desc_color = $_POST[ 'cff_link_desc_color' ];
|
2363 |
-
if (isset($_POST[ 'cff_link_title_color' ]) ) $cff_link_title_color = $_POST[ 'cff_link_title_color' ];
|
2364 |
-
if (isset($_POST[ 'cff_link_url_color' ]) ) $cff_link_url_color = $_POST[ 'cff_link_url_color' ];
|
2365 |
-
if (isset($_POST[ 'cff_link_bg_color' ]) ) $cff_link_bg_color = $_POST[ 'cff_link_bg_color' ];
|
2366 |
-
if (isset($_POST[ 'cff_link_border_color' ]) ) $cff_link_border_color = $_POST[ 'cff_link_border_color' ];
|
2367 |
-
(isset($_POST[ 'cff_disable_link_box' ])) ? $cff_disable_link_box = $_POST[ 'cff_disable_link_box' ] : $cff_disable_link_box = '';
|
2368 |
-
|
2369 |
-
|
2370 |
-
//Event title
|
2371 |
-
if (isset($_POST[ 'cff_event_title_format' ]) ) $cff_event_title_format = sanitize_text_field( $_POST[ 'cff_event_title_format' ] );
|
2372 |
-
if (isset($_POST[ 'cff_event_title_size' ]) ) $cff_event_title_size = sanitize_text_field( $_POST[ 'cff_event_title_size' ] );
|
2373 |
-
if (isset($_POST[ 'cff_event_title_weight' ]) ) $cff_event_title_weight = sanitize_text_field( $_POST[ 'cff_event_title_weight' ] );
|
2374 |
-
if (isset($_POST[ 'cff_event_title_color' ]) ) $cff_event_title_color = sanitize_text_field( $_POST[ 'cff_event_title_color' ] );
|
2375 |
-
(isset($_POST[ 'cff_event_title_link' ]) ) ? $cff_event_title_link = sanitize_text_field( $_POST[ 'cff_event_title_link' ] ) : $cff_event_title_link = '';
|
2376 |
-
//Event date
|
2377 |
-
if (isset($_POST[ 'cff_event_date_size' ]) ) $cff_event_date_size = sanitize_text_field( $_POST[ 'cff_event_date_size' ] );
|
2378 |
-
if (isset($_POST[ 'cff_event_date_weight' ]) ) $cff_event_date_weight = sanitize_text_field( $_POST[ 'cff_event_date_weight' ] );
|
2379 |
-
if (isset($_POST[ 'cff_event_date_color' ]) ) $cff_event_date_color = sanitize_text_field( $_POST[ 'cff_event_date_color' ] );
|
2380 |
-
if (isset($_POST[ 'cff_event_date_position' ]) ) $cff_event_date_position = sanitize_text_field( $_POST[ 'cff_event_date_position' ] );
|
2381 |
-
if (isset($_POST[ 'cff_event_date_formatting' ]) ) $cff_event_date_formatting = sanitize_text_field( $_POST[ 'cff_event_date_formatting' ] );
|
2382 |
-
if (isset($_POST[ 'cff_event_date_custom' ]) ) $cff_event_date_custom = sanitize_text_field( $_POST[ 'cff_event_date_custom' ] );
|
2383 |
-
//Event details
|
2384 |
-
if (isset($_POST[ 'cff_event_details_size' ]) ) $cff_event_details_size = sanitize_text_field( $_POST[ 'cff_event_details_size' ] );
|
2385 |
-
if (isset($_POST[ 'cff_event_details_weight' ]) ) $cff_event_details_weight = sanitize_text_field( $_POST[ 'cff_event_details_weight' ] );
|
2386 |
-
if (isset($_POST[ 'cff_event_details_color' ]) ) $cff_event_details_color = sanitize_text_field( $_POST[ 'cff_event_details_color' ] );
|
2387 |
-
if (isset($_POST[ 'cff_event_link_color' ]) ) $cff_event_link_color = sanitize_text_field( $_POST[ 'cff_event_link_color' ] );
|
2388 |
-
//Date
|
2389 |
-
if (isset($_POST[ 'cff_date_position' ]) ) $cff_date_position = sanitize_text_field( $_POST[ 'cff_date_position' ] );
|
2390 |
-
if (isset($_POST[ 'cff_date_size' ]) ) $cff_date_size = sanitize_text_field( $_POST[ 'cff_date_size' ] );
|
2391 |
-
if (isset($_POST[ 'cff_date_weight' ]) ) $cff_date_weight = sanitize_text_field( $_POST[ 'cff_date_weight' ] );
|
2392 |
-
if (isset($_POST[ 'cff_date_color' ]) ) $cff_date_color = sanitize_text_field( $_POST[ 'cff_date_color' ] );
|
2393 |
-
if (isset($_POST[ 'cff_date_formatting' ]) ) $cff_date_formatting = sanitize_text_field( $_POST[ 'cff_date_formatting' ] );
|
2394 |
-
if (isset($_POST[ 'cff_date_custom' ]) ) $cff_date_custom = sanitize_text_field( $_POST[ 'cff_date_custom' ] );
|
2395 |
-
if (isset($_POST[ 'cff_date_before' ]) ) $cff_date_before = sanitize_text_field( $_POST[ 'cff_date_before' ] );
|
2396 |
-
if (isset($_POST[ 'cff_date_after' ]) ) $cff_date_after = sanitize_text_field( $_POST[ 'cff_date_after' ] );
|
2397 |
-
if (isset($_POST[ 'cff_timezone' ]) ) $cff_timezone = sanitize_text_field( $_POST[ 'cff_timezone' ] );
|
2398 |
-
|
2399 |
-
//Date translate
|
2400 |
-
if (isset($_POST[ 'cff_translate_second' ]) ) $cff_translate_second = sanitize_text_field( $_POST[ 'cff_translate_second' ] );
|
2401 |
-
if (isset($_POST[ 'cff_translate_seconds' ]) ) $cff_translate_seconds = sanitize_text_field( $_POST[ 'cff_translate_seconds' ] );
|
2402 |
-
if (isset($_POST[ 'cff_translate_minute' ]) ) $cff_translate_minute = sanitize_text_field( $_POST[ 'cff_translate_minute' ] );
|
2403 |
-
if (isset($_POST[ 'cff_translate_minutes' ]) ) $cff_translate_minutes = sanitize_text_field( $_POST[ 'cff_translate_minutes' ] );
|
2404 |
-
if (isset($_POST[ 'cff_translate_hour' ]) ) $cff_translate_hour = sanitize_text_field( $_POST[ 'cff_translate_hour' ] );
|
2405 |
-
if (isset($_POST[ 'cff_translate_hours' ]) ) $cff_translate_hours = sanitize_text_field( $_POST[ 'cff_translate_hours' ] );
|
2406 |
-
if (isset($_POST[ 'cff_translate_day' ]) ) $cff_translate_day = sanitize_text_field( $_POST[ 'cff_translate_day' ] );
|
2407 |
-
if (isset($_POST[ 'cff_translate_days' ]) ) $cff_translate_days = sanitize_text_field( $_POST[ 'cff_translate_days' ] );
|
2408 |
-
if (isset($_POST[ 'cff_translate_week' ]) ) $cff_translate_week = sanitize_text_field( $_POST[ 'cff_translate_week' ] );
|
2409 |
-
if (isset($_POST[ 'cff_translate_weeks' ]) ) $cff_translate_weeks = sanitize_text_field( $_POST[ 'cff_translate_weeks' ] );
|
2410 |
-
if (isset($_POST[ 'cff_translate_month' ]) ) $cff_translate_month = sanitize_text_field( $_POST[ 'cff_translate_month' ] );
|
2411 |
-
if (isset($_POST[ 'cff_translate_months' ]) ) $cff_translate_months = sanitize_text_field( $_POST[ 'cff_translate_months' ] );
|
2412 |
-
if (isset($_POST[ 'cff_translate_year' ]) ) $cff_translate_year = sanitize_text_field( $_POST[ 'cff_translate_year' ] );
|
2413 |
-
if (isset($_POST[ 'cff_translate_years' ]) ) $cff_translate_years = sanitize_text_field( $_POST[ 'cff_translate_years' ] );
|
2414 |
-
if (isset($_POST[ 'cff_translate_ago' ]) ) $cff_translate_ago = sanitize_text_field( $_POST[ 'cff_translate_ago' ] );
|
2415 |
-
|
2416 |
-
//Meta
|
2417 |
-
if (isset($_POST[ 'cff_icon_style' ])) $cff_icon_style = sanitize_text_field( $_POST[ 'cff_icon_style' ] );
|
2418 |
-
if (isset($_POST[ 'cff_meta_text_color' ])) $cff_meta_text_color = sanitize_text_field( $_POST[ 'cff_meta_text_color' ] );
|
2419 |
-
if (isset($_POST[ 'cff_meta_bg_color' ])) $cff_meta_bg_color = sanitize_text_field( $_POST[ 'cff_meta_bg_color' ] );
|
2420 |
-
if (isset($_POST[ 'cff_nocomments_text' ])) $cff_nocomments_text = sanitize_text_field( $_POST[ 'cff_nocomments_text' ] );
|
2421 |
-
if (isset($_POST[ 'cff_hide_comments' ])) $cff_hide_comments = sanitize_text_field( $_POST[ 'cff_hide_comments' ] );
|
2422 |
-
|
2423 |
-
//View on Facebook link
|
2424 |
-
if (isset($_POST[ 'cff_link_size' ]) ) $cff_link_size = sanitize_text_field( $_POST[ 'cff_link_size' ] );
|
2425 |
-
if (isset($_POST[ 'cff_link_weight' ]) ) $cff_link_weight = sanitize_text_field( $_POST[ 'cff_link_weight' ] );
|
2426 |
-
if (isset($_POST[ 'cff_link_color' ]) ) $cff_link_color = sanitize_text_field( $_POST[ 'cff_link_color' ] );
|
2427 |
-
if (isset($_POST[ 'cff_facebook_link_text' ]) ) $cff_facebook_link_text = sanitize_text_field( $_POST[ 'cff_facebook_link_text' ] );
|
2428 |
-
if (isset($_POST[ 'cff_facebook_share_text' ]) ) $cff_facebook_share_text = sanitize_text_field( $_POST[ 'cff_facebook_share_text' ] );
|
2429 |
-
(isset($_POST[ 'cff_show_facebook_link' ]) ) ? $cff_show_facebook_link = sanitize_text_field( $_POST[ 'cff_show_facebook_link' ] ) : $cff_show_facebook_link = '';
|
2430 |
-
(isset($_POST[ 'cff_show_facebook_share' ]) ) ? $cff_show_facebook_share = sanitize_text_field( $_POST[ 'cff_show_facebook_share' ] ) : $cff_show_facebook_share = '';
|
2431 |
-
if (isset($_POST[ 'cff_view_link_text' ]) ) $cff_view_link_text = sanitize_text_field( $_POST[ 'cff_view_link_text' ] );
|
2432 |
-
if (isset($_POST[ 'cff_link_to_timeline' ]) ) $cff_link_to_timeline = sanitize_text_field( $_POST[ 'cff_link_to_timeline' ] );
|
2433 |
-
|
2434 |
-
//Character limits
|
2435 |
-
update_option( $cff_title_length, $cff_title_length_val );
|
2436 |
-
update_option( $cff_body_length, $cff_body_length_val );
|
2437 |
-
//Author
|
2438 |
-
$options[ 'cff_author_size' ] = $cff_author_size;
|
2439 |
-
$options[ 'cff_author_color' ] = $cff_author_color;
|
2440 |
-
|
2441 |
-
//Post Style
|
2442 |
-
$options[ 'cff_post_style' ] = $cff_post_style;
|
2443 |
-
$options[ 'cff_post_bg_color' ] = $cff_post_bg_color;
|
2444 |
-
$options[ 'cff_post_rounded' ] = $cff_post_rounded;
|
2445 |
-
$options[ 'cff_sep_color' ] = $cff_sep_color;
|
2446 |
-
$options[ 'cff_sep_size' ] = $cff_sep_size;
|
2447 |
-
$options[ 'cff_box_shadow' ] = $cff_box_shadow;
|
2448 |
-
|
2449 |
-
//Typography
|
2450 |
-
$options[ 'cff_title_format' ] = $cff_title_format;
|
2451 |
-
$options[ 'cff_title_size' ] = $cff_title_size;
|
2452 |
-
$options[ 'cff_title_weight' ] = $cff_title_weight;
|
2453 |
-
$options[ 'cff_title_color' ] = $cff_title_color;
|
2454 |
-
$options[ 'cff_posttext_link_color' ] = $cff_posttext_link_color;
|
2455 |
-
$options[ 'cff_title_link' ] = $cff_title_link;
|
2456 |
-
$options[ 'cff_post_tags' ] = $cff_post_tags;
|
2457 |
-
$options[ 'cff_link_hashtags' ] = $cff_link_hashtags;
|
2458 |
-
$options[ 'cff_body_size' ] = $cff_body_size;
|
2459 |
-
$options[ 'cff_body_weight' ] = $cff_body_weight;
|
2460 |
-
$options[ 'cff_body_color' ] = $cff_body_color;
|
2461 |
-
$options[ 'cff_link_title_format' ] = $cff_link_title_format;
|
2462 |
-
$options[ 'cff_link_title_size' ] = $cff_link_title_size;
|
2463 |
-
$options[ 'cff_link_url_size' ] = $cff_link_url_size;
|
2464 |
-
$options[ 'cff_link_desc_size' ] = $cff_link_desc_size;
|
2465 |
-
$options[ 'cff_link_desc_color' ] = $cff_link_desc_color;
|
2466 |
-
$options[ 'cff_link_title_color' ] = $cff_link_title_color;
|
2467 |
-
$options[ 'cff_link_url_color' ] = $cff_link_url_color;
|
2468 |
-
$options[ 'cff_link_bg_color' ] = $cff_link_bg_color;
|
2469 |
-
$options[ 'cff_link_border_color' ] = $cff_link_border_color;
|
2470 |
-
$options[ 'cff_disable_link_box' ] = $cff_disable_link_box;
|
2471 |
-
|
2472 |
-
//Event title
|
2473 |
-
$options[ 'cff_event_title_format' ] = $cff_event_title_format;
|
2474 |
-
$options[ 'cff_event_title_size' ] = $cff_event_title_size;
|
2475 |
-
$options[ 'cff_event_title_weight' ] = $cff_event_title_weight;
|
2476 |
-
$options[ 'cff_event_title_color' ] = $cff_event_title_color;
|
2477 |
-
$options[ 'cff_event_title_link' ] = $cff_event_title_link;
|
2478 |
-
//Event date
|
2479 |
-
$options[ 'cff_event_date_size' ] = $cff_event_date_size;
|
2480 |
-
$options[ 'cff_event_date_weight' ] = $cff_event_date_weight;
|
2481 |
-
$options[ 'cff_event_date_color' ] = $cff_event_date_color;
|
2482 |
-
$options[ 'cff_event_date_position' ] = $cff_event_date_position;
|
2483 |
-
$options[ 'cff_event_date_formatting' ] = $cff_event_date_formatting;
|
2484 |
-
$options[ 'cff_event_date_custom' ] = $cff_event_date_custom;
|
2485 |
-
//Event details
|
2486 |
-
$options[ 'cff_event_details_size' ] = $cff_event_details_size;
|
2487 |
-
$options[ 'cff_event_details_weight' ] = $cff_event_details_weight;
|
2488 |
-
$options[ 'cff_event_details_color' ] = $cff_event_details_color;
|
2489 |
-
$options[ 'cff_event_link_color' ] = $cff_event_link_color;
|
2490 |
-
//Date
|
2491 |
-
$options[ 'cff_date_position' ] = $cff_date_position;
|
2492 |
-
$options[ 'cff_date_size' ] = $cff_date_size;
|
2493 |
-
$options[ 'cff_date_weight' ] = $cff_date_weight;
|
2494 |
-
$options[ 'cff_date_color' ] = $cff_date_color;
|
2495 |
-
$options[ 'cff_date_formatting' ] = $cff_date_formatting;
|
2496 |
-
$options[ 'cff_date_custom' ] = $cff_date_custom;
|
2497 |
-
$options[ 'cff_date_before' ] = $cff_date_before;
|
2498 |
-
$options[ 'cff_date_after' ] = $cff_date_after;
|
2499 |
-
$options[ 'cff_timezone' ] = $cff_timezone;
|
2500 |
-
|
2501 |
-
//Date translate
|
2502 |
-
$options[ 'cff_translate_second' ] = $cff_translate_second;
|
2503 |
-
$options[ 'cff_translate_seconds' ] = $cff_translate_seconds;
|
2504 |
-
$options[ 'cff_translate_minute' ] = $cff_translate_minute;
|
2505 |
-
$options[ 'cff_translate_minutes' ] = $cff_translate_minutes;
|
2506 |
-
$options[ 'cff_translate_hour' ] = $cff_translate_hour;
|
2507 |
-
$options[ 'cff_translate_hours' ] = $cff_translate_hours;
|
2508 |
-
$options[ 'cff_translate_day' ] = $cff_translate_day;
|
2509 |
-
$options[ 'cff_translate_days' ] = $cff_translate_days;
|
2510 |
-
$options[ 'cff_translate_week' ] = $cff_translate_week;
|
2511 |
-
$options[ 'cff_translate_weeks' ] = $cff_translate_weeks;
|
2512 |
-
$options[ 'cff_translate_month' ] = $cff_translate_month;
|
2513 |
-
$options[ 'cff_translate_months' ] = $cff_translate_months;
|
2514 |
-
$options[ 'cff_translate_year' ] = $cff_translate_year;
|
2515 |
-
$options[ 'cff_translate_years' ] = $cff_translate_years;
|
2516 |
-
$options[ 'cff_translate_ago' ] = $cff_translate_ago;
|
2517 |
-
|
2518 |
-
//Meta
|
2519 |
-
$options[ 'cff_icon_style' ] = $cff_icon_style;
|
2520 |
-
$options[ 'cff_meta_text_color' ] = $cff_meta_text_color;
|
2521 |
-
$options[ 'cff_meta_bg_color' ] = $cff_meta_bg_color;
|
2522 |
-
$options[ 'cff_nocomments_text' ] = $cff_nocomments_text;
|
2523 |
-
$options[ 'cff_hide_comments' ] = $cff_hide_comments;
|
2524 |
-
|
2525 |
-
//View on Facebook link
|
2526 |
-
$options[ 'cff_link_size' ] = $cff_link_size;
|
2527 |
-
$options[ 'cff_link_weight' ] = $cff_link_weight;
|
2528 |
-
$options[ 'cff_link_color' ] = $cff_link_color;
|
2529 |
-
$options[ 'cff_facebook_link_text' ] = $cff_facebook_link_text;
|
2530 |
-
$options[ 'cff_facebook_share_text' ] = $cff_facebook_share_text;
|
2531 |
-
$options[ 'cff_show_facebook_link' ] = $cff_show_facebook_link;
|
2532 |
-
$options[ 'cff_show_facebook_share' ] = $cff_show_facebook_share;
|
2533 |
-
$options[ 'cff_view_link_text' ] = $cff_view_link_text;
|
2534 |
-
$options[ 'cff_link_to_timeline' ] = $cff_link_to_timeline;
|
2535 |
-
}
|
2536 |
-
//Update the Misc options
|
2537 |
-
if( isset($_POST[ $style_misc_hidden_field_name ]) && $_POST[ $style_misc_hidden_field_name ] == 'Y' ) {
|
2538 |
-
//Custom CSS
|
2539 |
-
if (isset($_POST[ 'cff_custom_css' ])) $cff_custom_css = $_POST[ 'cff_custom_css' ];
|
2540 |
-
if (isset($_POST[ 'cff_custom_js' ])) $cff_custom_js = $_POST[ 'cff_custom_js' ];
|
2541 |
-
|
2542 |
-
if (isset($_POST[ 'cff_video_height' ])) $cff_video_height = sanitize_text_field( $_POST[ 'cff_video_height' ] );
|
2543 |
-
if (isset($_POST[ 'cff_video_action' ])) $cff_video_action = sanitize_text_field( $_POST[ 'cff_video_action' ] );
|
2544 |
-
if (isset($_POST[ 'cff_open_links' ])) $cff_open_links = sanitize_text_field( $_POST[ 'cff_open_links' ] );
|
2545 |
-
|
2546 |
-
(isset($_POST[ $cff_ajax ])) ? $cff_ajax_val = sanitize_text_field( $_POST[ 'cff_ajax' ] ) : $cff_ajax_val = '';
|
2547 |
-
if (isset($_POST[ 'cff_app_id' ])) $cff_app_id = sanitize_text_field( $_POST[ 'cff_app_id' ] );
|
2548 |
-
(isset($_POST[ 'cff_show_credit' ])) ? $cff_show_credit = sanitize_text_field( $_POST[ 'cff_show_credit' ] ) : $cff_show_credit = '';
|
2549 |
-
(isset($_POST[ 'cff_font_source' ])) ? $cff_font_source = sanitize_text_field( $_POST[ 'cff_font_source' ] ) : $cff_font_source = '';
|
2550 |
-
(isset($_POST[ $cff_preserve_settings ])) ? $cff_preserve_settings_val = sanitize_text_field( $_POST[ 'cff_preserve_settings' ] ) : $cff_preserve_settings_val = '';
|
2551 |
-
if (isset($_POST[ 'cff_cron' ])) $cff_cron = sanitize_text_field( $_POST[ 'cff_cron' ] );
|
2552 |
-
if (isset($_POST[ 'cff_request_method' ])) $cff_request_method = sanitize_text_field( $_POST[ 'cff_request_method' ] );
|
2553 |
-
(isset($_POST[ 'cff_disable_styles' ])) ? $cff_disable_styles = sanitize_text_field( $_POST[ 'cff_disable_styles' ] ) : $cff_disable_styles = '';
|
2554 |
-
(isset($_POST[ 'cff_format_issue' ])) ? $cff_format_issue = sanitize_text_field( $_POST[ 'cff_format_issue' ] ) : $cff_format_issue = '';
|
2555 |
-
(isset($_POST[ 'cff_restricted_page' ])) ? $cff_restricted_page = sanitize_text_field( $_POST[ 'cff_restricted_page' ] ) : $cff_restricted_page = '';
|
2556 |
-
(isset($_POST[ 'cff_minify' ])) ? $cff_minify = sanitize_text_field( $_POST[ 'cff_minify' ] ) : $cff_minify = '';
|
2557 |
-
(isset($_POST[ 'cff_disable_admin_notice' ])) ? $cff_disable_admin_notice = sanitize_text_field( $_POST[ 'cff_disable_admin_notice' ] ) : $cff_disable_admin_notice = '';
|
2558 |
-
|
2559 |
-
//Custom CSS
|
2560 |
-
$options[ 'cff_custom_css' ] = $cff_custom_css;
|
2561 |
-
$options[ 'cff_custom_js' ] = $cff_custom_js;
|
2562 |
-
|
2563 |
-
$options[ 'cff_video_height' ] = $cff_video_height;
|
2564 |
-
$options[ 'cff_video_action' ] = $cff_video_action;
|
2565 |
-
$options[ 'cff_open_links' ] = $cff_open_links;
|
2566 |
-
|
2567 |
-
update_option( $cff_ajax, $cff_ajax_val );
|
2568 |
-
$options[ 'cff_app_id' ] = $cff_app_id;
|
2569 |
-
$options[ 'cff_show_credit' ] = $cff_show_credit;
|
2570 |
-
$options[ 'cff_font_source' ] = $cff_font_source;
|
2571 |
-
update_option( $cff_preserve_settings, $cff_preserve_settings_val );
|
2572 |
-
|
2573 |
-
$options[ 'cff_cron' ] = $cff_cron;
|
2574 |
-
$options[ 'cff_request_method' ] = $cff_request_method;
|
2575 |
-
$options[ 'cff_disable_styles' ] = $cff_disable_styles;
|
2576 |
-
$options[ 'cff_format_issue' ] = $cff_format_issue;
|
2577 |
-
$options[ 'cff_restricted_page' ] = $cff_restricted_page;
|
2578 |
-
$options[ 'cff_minify' ] = $cff_minify;
|
2579 |
-
$options[ 'disable_admin_notice' ] = $cff_disable_admin_notice;
|
2580 |
-
|
2581 |
-
if( $cff_cron == 'no' ) wp_clear_scheduled_hook('cff_cron_job');
|
2582 |
-
|
2583 |
-
//Run cron when Misc settings are saved
|
2584 |
-
if( $cff_cron == 'yes' ){
|
2585 |
-
//Clear the existing cron event
|
2586 |
-
wp_clear_scheduled_hook('cff_cron_job');
|
2587 |
-
|
2588 |
-
$cff_cache_time = get_option( 'cff_cache_time' );
|
2589 |
-
$cff_cache_time_unit = get_option( 'cff_cache_time_unit' );
|
2590 |
-
|
2591 |
-
//Set the event schedule based on what the caching time is set to
|
2592 |
-
$cff_cron_schedule = 'hourly';
|
2593 |
-
if( $cff_cache_time_unit == 'hours' && $cff_cache_time > 5 ) $cff_cron_schedule = 'twicedaily';
|
2594 |
-
if( $cff_cache_time_unit == 'days' ) $cff_cron_schedule = 'daily';
|
2595 |
-
|
2596 |
-
wp_schedule_event(time(), $cff_cron_schedule, 'cff_cron_job');
|
2597 |
-
}
|
2598 |
-
|
2599 |
-
isset($_POST[ 'cff_enable_email_report' ]) ? $cff_enable_email_report = $_POST[ 'cff_enable_email_report' ] : $cff_enable_email_report = '';
|
2600 |
-
$options['enable_email_report'] = $cff_enable_email_report;
|
2601 |
-
isset($_POST[ 'cff_email_notification' ]) ? $cff_email_notification = $_POST[ 'cff_email_notification' ] : $cff_email_notification = '';
|
2602 |
-
$original = $options['email_notification'];
|
2603 |
-
$options['email_notification'] = $cff_email_notification;
|
2604 |
-
isset($_POST[ 'cff_email_notification_addresses' ]) ? $cff_email_notification_addresses = $_POST[ 'cff_email_notification_addresses' ] : $cff_email_notification_addresses = get_option( 'admin_email' );
|
2605 |
-
$options['email_notification_addresses'] = $cff_email_notification_addresses;
|
2606 |
-
|
2607 |
-
if ( $original !== $cff_email_notification && $cff_enable_email_report === 'on' ){
|
2608 |
-
//Clear the existing cron event
|
2609 |
-
wp_clear_scheduled_hook('cff_feed_issue_email');
|
2610 |
-
|
2611 |
-
$input = sanitize_text_field($_POST[ 'cff_email_notification' ] );
|
2612 |
-
$timestamp = strtotime( 'next ' . $input );
|
2613 |
-
|
2614 |
-
if ( $timestamp - (3600 * 1) < time() ) {
|
2615 |
-
$timestamp = $timestamp + (3600 * 24 * 7);
|
2616 |
-
}
|
2617 |
-
$six_am_local = $timestamp + cff_get_utc_offset() + (6*60*60);
|
2618 |
-
|
2619 |
-
wp_schedule_event( $six_am_local, 'cffweekly', 'cff_feed_issue_email' );
|
2620 |
-
}
|
2621 |
-
|
2622 |
-
}
|
2623 |
-
//Update the Custom Text / Translate options
|
2624 |
-
if( isset($_POST[ $style_custom_text_hidden_field_name ]) && $_POST[ $style_custom_text_hidden_field_name ] == 'Y' ) {
|
2625 |
-
|
2626 |
-
//Translate
|
2627 |
-
if (isset($_POST[ 'cff_see_more_text' ])) $cff_see_more_text = sanitize_text_field( $_POST[ 'cff_see_more_text' ] );
|
2628 |
-
if (isset($_POST[ 'cff_see_less_text' ])) $cff_see_less_text = sanitize_text_field( $_POST[ 'cff_see_less_text' ] );
|
2629 |
-
if (isset($_POST[ 'cff_facebook_link_text' ])) $cff_facebook_link_text = sanitize_text_field( $_POST[ 'cff_facebook_link_text' ] );
|
2630 |
-
if (isset($_POST[ 'cff_facebook_share_text' ])) $cff_facebook_share_text = sanitize_text_field( $_POST[ 'cff_facebook_share_text' ] );
|
2631 |
-
|
2632 |
-
//Social translate
|
2633 |
-
if (isset($_POST[ 'cff_translate_photos_text' ])) $cff_translate_photos_text = sanitize_text_field( $_POST[ 'cff_translate_photos_text' ] );
|
2634 |
-
if (isset($_POST[ 'cff_translate_photo_text' ])) $cff_translate_photo_text = sanitize_text_field( $_POST[ 'cff_translate_photo_text' ] );
|
2635 |
-
if (isset($_POST[ 'cff_translate_video_text' ])) $cff_translate_video_text = sanitize_text_field( $_POST[ 'cff_translate_video_text' ] );
|
2636 |
-
|
2637 |
-
if (isset($_POST[ 'cff_translate_learn_more_text' ])) $cff_translate_learn_more_text = sanitize_text_field( $_POST[ 'cff_translate_learn_more_text' ] );
|
2638 |
-
if (isset($_POST[ 'cff_translate_shop_now_text' ])) $cff_translate_shop_now_text = sanitize_text_field( $_POST[ 'cff_translate_shop_now_text' ] );
|
2639 |
-
if (isset($_POST[ 'cff_translate_message_page_text' ])) $cff_translate_message_page_text = sanitize_text_field( $_POST[ 'cff_translate_message_page_text' ] );
|
2640 |
-
|
2641 |
-
//Date translate
|
2642 |
-
if (isset($_POST[ 'cff_translate_second' ])) $cff_translate_second = sanitize_text_field( $_POST[ 'cff_translate_second' ] );
|
2643 |
-
if (isset($_POST[ 'cff_translate_seconds' ])) $cff_translate_seconds = sanitize_text_field( $_POST[ 'cff_translate_seconds' ] );
|
2644 |
-
if (isset($_POST[ 'cff_translate_minute' ])) $cff_translate_minute = sanitize_text_field( $_POST[ 'cff_translate_minute' ] );
|
2645 |
-
if (isset($_POST[ 'cff_translate_minutes' ])) $cff_translate_minutes = sanitize_text_field( $_POST[ 'cff_translate_minutes' ] );
|
2646 |
-
if (isset($_POST[ 'cff_translate_hour' ])) $cff_translate_hour = sanitize_text_field( $_POST[ 'cff_translate_hour' ] );
|
2647 |
-
if (isset($_POST[ 'cff_translate_hours' ])) $cff_translate_hours = sanitize_text_field( $_POST[ 'cff_translate_hours' ] );
|
2648 |
-
if (isset($_POST[ 'cff_translate_day' ])) $cff_translate_day = sanitize_text_field( $_POST[ 'cff_translate_day' ] );
|
2649 |
-
if (isset($_POST[ 'cff_translate_days' ])) $cff_translate_days = sanitize_text_field( $_POST[ 'cff_translate_days' ] );
|
2650 |
-
if (isset($_POST[ 'cff_translate_week' ])) $cff_translate_week = sanitize_text_field( $_POST[ 'cff_translate_week' ] );
|
2651 |
-
if (isset($_POST[ 'cff_translate_weeks' ])) $cff_translate_weeks = sanitize_text_field( $_POST[ 'cff_translate_weeks' ] );
|
2652 |
-
if (isset($_POST[ 'cff_translate_month' ])) $cff_translate_month = sanitize_text_field( $_POST[ 'cff_translate_month' ] );
|
2653 |
-
if (isset($_POST[ 'cff_translate_months' ])) $cff_translate_months = sanitize_text_field( $_POST[ 'cff_translate_months' ] );
|
2654 |
-
if (isset($_POST[ 'cff_translate_year' ])) $cff_translate_year = sanitize_text_field( $_POST[ 'cff_translate_year' ] );
|
2655 |
-
if (isset($_POST[ 'cff_translate_years' ])) $cff_translate_years = sanitize_text_field( $_POST[ 'cff_translate_years' ] );
|
2656 |
-
if (isset($_POST[ 'cff_translate_ago' ])) $cff_translate_ago = sanitize_text_field( $_POST[ 'cff_translate_ago' ] );
|
2657 |
-
|
2658 |
-
//Translate
|
2659 |
-
$options[ 'cff_see_more_text' ] = $cff_see_more_text;
|
2660 |
-
$options[ 'cff_see_less_text' ] = $cff_see_less_text;
|
2661 |
-
$options[ 'cff_facebook_link_text' ] = $cff_facebook_link_text;
|
2662 |
-
$options[ 'cff_facebook_share_text' ] = $cff_facebook_share_text;
|
2663 |
-
|
2664 |
-
//Social translate
|
2665 |
-
$options[ 'cff_translate_photos_text' ] = $cff_translate_photos_text;
|
2666 |
-
$options[ 'cff_translate_photo_text' ] = $cff_translate_photo_text;
|
2667 |
-
$options[ 'cff_translate_video_text' ] = $cff_translate_video_text;
|
2668 |
-
|
2669 |
-
$options[ 'cff_translate_learn_more_text' ] = $cff_translate_learn_more_text;
|
2670 |
-
$options[ 'cff_translate_shop_now_text' ] = $cff_translate_shop_now_text;
|
2671 |
-
$options[ 'cff_translate_message_page_text' ] = $cff_translate_message_page_text;
|
2672 |
-
|
2673 |
-
//Date translate
|
2674 |
-
$options[ 'cff_translate_second' ] = $cff_translate_second;
|
2675 |
-
$options[ 'cff_translate_seconds' ] = $cff_translate_seconds;
|
2676 |
-
$options[ 'cff_translate_minute' ] = $cff_translate_minute;
|
2677 |
-
$options[ 'cff_translate_minutes' ] = $cff_translate_minutes;
|
2678 |
-
$options[ 'cff_translate_hour' ] = $cff_translate_hour;
|
2679 |
-
$options[ 'cff_translate_hours' ] = $cff_translate_hours;
|
2680 |
-
$options[ 'cff_translate_day' ] = $cff_translate_day;
|
2681 |
-
$options[ 'cff_translate_days' ] = $cff_translate_days;
|
2682 |
-
$options[ 'cff_translate_week' ] = $cff_translate_week;
|
2683 |
-
$options[ 'cff_translate_weeks' ] = $cff_translate_weeks;
|
2684 |
-
$options[ 'cff_translate_month' ] = $cff_translate_month;
|
2685 |
-
$options[ 'cff_translate_months' ] = $cff_translate_months;
|
2686 |
-
$options[ 'cff_translate_year' ] = $cff_translate_year;
|
2687 |
-
$options[ 'cff_translate_years' ] = $cff_translate_years;
|
2688 |
-
$options[ 'cff_translate_ago' ] = $cff_translate_ago;
|
2689 |
-
|
2690 |
-
}
|
2691 |
-
//Update the array
|
2692 |
-
update_option( 'cff_style_settings', $options );
|
2693 |
-
// Put an settings updated message on the screen
|
2694 |
-
?>
|
2695 |
-
<div class="updated"><p><strong><?php _e('Settings saved.', 'custom-facebook-feed' ); ?></strong></p></div>
|
2696 |
-
<?php } ?>
|
2697 |
-
|
2698 |
-
<?php } //End nonce check ?>
|
2699 |
-
|
2700 |
-
<?php
|
2701 |
-
$lite_notice_dismissed = get_transient( 'facebook_feed_dismiss_lite' );
|
2702 |
-
|
2703 |
-
if ( ! $lite_notice_dismissed ) :
|
2704 |
-
?>
|
2705 |
-
<div id="cff-notice-bar" style="display:none">
|
2706 |
-
<span class="cff-notice-bar-message"><?php _e( 'You\'re using Custom Facebook Feed Lite. To unlock more features consider <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=notices&utm_medium=lite" target="_blank" rel="noopener noreferrer">upgrading to Pro</a>.', 'custom-facebook-feed'); ?></span>
|
2707 |
-
<button type="button" class="dismiss" title="<?php _e( 'Dismiss this message.', 'custom-facebook-feed'); ?>" data-page="overview">
|
2708 |
-
</button>
|
2709 |
-
</div>
|
2710 |
-
<?php endif; ?>
|
2711 |
-
|
2712 |
-
<div id="cff-admin" class="wrap">
|
2713 |
-
<div id="header">
|
2714 |
-
<h1><?php _e('Custom Facebook Feed', 'custom-facebook-feed'); ?></h1>
|
2715 |
-
</div>
|
2716 |
-
|
2717 |
-
<form name="form1" method="post" action="">
|
2718 |
-
<input type="hidden" name="<?php echo $style_hidden_field_name; ?>" value="Y">
|
2719 |
-
<?php wp_nonce_field( 'cff_saving_customize', 'cff_customize_nonce' ); ?>
|
2720 |
-
|
2721 |
-
<?php
|
2722 |
-
$cff_active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'general';
|
2723 |
-
?>
|
2724 |
-
|
2725 |
-
<h2 class="nav-tab-wrapper">
|
2726 |
-
<a href="?page=cff-top&tab=configuration" class="nav-tab <?php echo $cff_active_tab == 'configuration' ? 'nav-tab-active' : ''; ?>"><?php _e('Configuration'); ?></a>
|
2727 |
-
<a href="?page=cff-style" class="nav-tab nav-tab-active"><?php _e('Customize'); ?></a>
|
2728 |
-
<a href="?page=cff-top&tab=support" class="nav-tab <?php echo $cff_active_tab == 'support' ? 'nav-tab-active' : ''; ?>"><?php _e('Support'); ?></a>
|
2729 |
-
<a href="?page=cff-top&tab=more" class="nav-tab <?php echo $cff_active_tab == 'more' ? 'nav-tab-active' : ''; ?>"><?php _e('More Social Feeds', 'custom-facebook-feed'); ?>
|
2730 |
-
<?php
|
2731 |
-
$seen_more_plugins_page = get_user_meta(get_current_user_id(), 'seen_more_plugins_page_1', true);
|
2732 |
-
if( !$seen_more_plugins_page ) echo '<span class="cff-alert-bubble">1</span>';
|
2733 |
-
?>
|
2734 |
-
</a>
|
2735 |
-
</h2>
|
2736 |
-
|
2737 |
-
<h2 class="nav-tab-wrapper cff-subtabs">
|
2738 |
-
<a href="?page=cff-style&tab=general" class="nav-tab <?php echo $cff_active_tab == 'general' ? 'nav-tab-active' : ''; ?>"><?php _e('General'); ?></a>
|
2739 |
-
<a href="?page=cff-style&tab=post_layout" class="nav-tab <?php echo $cff_active_tab == 'post_layout' ? 'nav-tab-active' : ''; ?>"><?php _e('Post Layout'); ?></a>
|
2740 |
-
<a href="?page=cff-style&tab=typography" class="nav-tab <?php echo $cff_active_tab == 'typography' ? 'nav-tab-active' : ''; ?>"><?php _e('Style Posts'); ?></a>
|
2741 |
-
<a href="?page=cff-style&tab=misc" class="nav-tab <?php echo $cff_active_tab == 'misc' ? 'nav-tab-active' : ''; ?>"><?php _e('Misc'); ?></a>
|
2742 |
-
<a href="?page=cff-style&tab=custom_text" class="nav-tab <?php echo $cff_active_tab == 'custom_text' ? 'nav-tab-active' : ''; ?>"><?php _e('Custom Text / Translate'); ?></a>
|
2743 |
-
</h2>
|
2744 |
-
<?php if( $cff_active_tab == 'general' ) { //Start General tab ?>
|
2745 |
-
|
2746 |
-
<p class="cff_contents_links" id="general">
|
2747 |
-
<span>Jump to: </span>
|
2748 |
-
<a href="#general"><?php _e('General', 'custom-facebook-feed'); ?></a>
|
2749 |
-
<a href="#header"><?php _e('Header', 'custom-facebook-feed'); ?></a>
|
2750 |
-
<a href="#likebox"><?php _e('Like Box', 'custom-facebook-feed'); ?></a>
|
2751 |
-
</p>
|
2752 |
-
|
2753 |
-
<input type="hidden" name="<?php echo $style_general_hidden_field_name; ?>" value="Y">
|
2754 |
-
<br />
|
2755 |
-
<table class="form-table">
|
2756 |
-
<tbody>
|
2757 |
-
<h3><?php _e('General', 'custom-facebook-feed'); ?></h3>
|
2758 |
-
<tr valign="top">
|
2759 |
-
<th class="bump-left" scope="row"><label><?php _e('Feed Width', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> width
|
2760 |
-
Eg: width=500px</code></th>
|
2761 |
-
<td>
|
2762 |
-
<input name="cff_feed_width" id="cff_feed_width" type="text" value="<?php esc_attr_e( $cff_feed_width, 'custom-facebook-feed' ); ?>" size="6" />
|
2763 |
-
<i style="color: #666; font-size: 11px;">Eg. 100% or 500px</i>
|
2764 |
-
<div id="cff_width_options">
|
2765 |
-
<input name="cff_feed_width_resp" type="checkbox" id="cff_feed_width_resp" <?php if($cff_feed_width_resp == true) echo "checked"; ?> /><label for="cff_feed_width_resp"><?php _e('Set to be 100% width on mobile?', 'custom-facebook-feed'); ?></label>
|
2766 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?', 'custom-facebook-feed'); ?></a>
|
2767 |
-
<p class="cff-tooltip cff-more-info"><?php _e("If you set a width on the feed then this will be used on mobile as well as desktop. Check this setting to set the feed width to be 100% on mobile so that it is responsive.", 'custom-facebook-feed'); ?></p>
|
2768 |
-
</div>
|
2769 |
-
</td>
|
2770 |
-
</tr>
|
2771 |
-
<tr valign="top">
|
2772 |
-
<th class="bump-left" scope="row"><label><?php _e('Feed Height', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> height
|
2773 |
-
Eg: height=500px</code></th>
|
2774 |
-
<td>
|
2775 |
-
<input name="cff_feed_height" type="text" value="<?php esc_attr_e( $cff_feed_height, 'custom-facebook-feed' ); ?>" size="6" />
|
2776 |
-
<i style="color: #666; font-size: 11px;">Eg. 500px</i>
|
2777 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
2778 |
-
<p class="cff-tooltip cff-more-info"><?php _e("Use this to set a fixed height on the feed. If the feed exceeds this height then a scroll bar will be used. Leave it empty to set no maximum height."); ?></p>
|
2779 |
-
</td>
|
2780 |
-
</tr>
|
2781 |
-
<th class="bump-left" scope="row"><label><?php _e('Feed Padding', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> padding
|
2782 |
-
Eg: padding=20px</code></th>
|
2783 |
-
<td>
|
2784 |
-
<input name="cff_feed_padding" type="text" value="<?php esc_attr_e( $cff_feed_padding, 'custom-facebook-feed' ); ?>" size="6" />
|
2785 |
-
<i style="color: #666; font-size: 11px;">Eg. 20px or 2%</i>
|
2786 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
2787 |
-
<p class="cff-tooltip cff-more-info"><?php _e("This is the amount of padding/spacing that goes around the feed. This is particularly useful if you intend to set a background color on the feed."); ?></p>
|
2788 |
-
</td>
|
2789 |
-
</tr>
|
2790 |
-
<tr valign="top">
|
2791 |
-
<th class="bump-left" scope="row"><label><?php _e('Feed Background Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> bgcolor
|
2792 |
-
Eg: bgcolor=FF0000</code></th>
|
2793 |
-
<td>
|
2794 |
-
<input name="cff_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_bg_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
|
2795 |
-
</td>
|
2796 |
-
</tr>
|
2797 |
-
<tr valign="top">
|
2798 |
-
<th class="bump-left" scope="row"><label><?php _e('Add CSS class to feed', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> class
|
2799 |
-
Eg: class=myfeed</code></th>
|
2800 |
-
<td>
|
2801 |
-
<input name="cff_class" type="text" value="<?php esc_attr_e( $cff_class, 'custom-facebook-feed' ); ?>" size="25" />
|
2802 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
2803 |
-
<p class="cff-tooltip cff-more-info"><?php _e("You can add your own CSS classes to the feed here. To add multiple classes separate each with a space, Eg. classone classtwo classthree"); ?></p>
|
2804 |
-
</td>
|
2805 |
-
</tr>
|
2806 |
-
|
2807 |
-
<tr valign="top">
|
2808 |
-
<th class="bump-left" scope="row"><label for="cff_cols">Feed Columns</label><code class="cff_shortcode"> cols
|
2809 |
-
Eg: cols=3</code></th>
|
2810 |
-
<td class="cff-short">
|
2811 |
-
<select name="cff_cols" id="cff_cols">
|
2812 |
-
<option value="1" <?php if( $cff_cols == 1 ) { echo 'selected'; } ?>>1</option>
|
2813 |
-
<option value="2" <?php if( $cff_cols == 2 ) { echo 'selected'; } ?>>2</option>
|
2814 |
-
<option value="3" <?php if( $cff_cols == 3 ) { echo 'selected'; } ?>>3</option>
|
2815 |
-
<option value="4" <?php if( $cff_cols == 4 ) { echo 'selected'; } ?>>4</option>
|
2816 |
-
<option value="5" <?php if( $cff_cols == 5 ) { echo 'selected'; } ?>>5</option>
|
2817 |
-
<option value="6" <?php if( $cff_cols == 6 ) { echo 'selected'; } ?>>6</option>
|
2818 |
-
</select>
|
2819 |
-
|
2820 |
-
<br />
|
2821 |
-
<div class="cff-mobile-col-settings" <?php if( intval($cff_cols) > 1 ) echo 'style="display:block;"' ?>>
|
2822 |
-
<div class="cff-row">
|
2823 |
-
<label title="Click for shortcode option">Mobile Columns:</label><code class="cff_shortcode"> colsmobile
|
2824 |
-
Eg: colsmobile=2</code>
|
2825 |
-
<select name="cff_cols_mobile" id="cff_cols_mobile">
|
2826 |
-
<option value="1" <?php if( $cff_cols_mobile == 1 ) { echo 'selected'; } ?>>1</option>
|
2827 |
-
<option value="2" <?php if( $cff_cols_mobile == 2 ) { echo 'selected'; } ?>>2</option>
|
2828 |
-
</select>
|
2829 |
-
</div>
|
2830 |
-
</div>
|
2831 |
-
|
2832 |
-
</td>
|
2833 |
-
</tr>
|
2834 |
-
|
2835 |
-
</tbody>
|
2836 |
-
</table>
|
2837 |
-
|
2838 |
-
<?php submit_button(); ?>
|
2839 |
-
|
2840 |
-
<hr id="types" />
|
2841 |
-
<table class="form-table">
|
2842 |
-
<tbody>
|
2843 |
-
<h3><?php _e('Post Types', 'custom-facebook-feed'); ?></h3>
|
2844 |
-
<tr valign="top">
|
2845 |
-
<th scope="row"><?php _e('Only show these types of posts:', 'custom-facebook-feed'); ?><br />
|
2846 |
-
<i style="color: #666; font-size: 11px;"><a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=types" target="_blank"><?php _e('Upgrade to Pro to enable post types, photos, videos and more', 'custom-facebook-feed'); ?></a></i></th>
|
2847 |
-
<td>
|
2848 |
-
<div>
|
2849 |
-
<input name="cff_show_status_type" type="checkbox" id="cff_show_status_type" disabled checked />
|
2850 |
-
<label for="cff_show_status_type"><?php _e('Statuses', 'custom-facebook-feed'); ?></label>
|
2851 |
-
</div>
|
2852 |
-
<div>
|
2853 |
-
<input type="checkbox" name="cff_show_event_type" id="cff_show_event_type" disabled checked />
|
2854 |
-
<label for="cff_show_event_type"><?php _e('Events', 'custom-facebook-feed'); ?></label>
|
2855 |
-
</div>
|
2856 |
-
<div>
|
2857 |
-
<input type="checkbox" name="cff_show_photos_type" id="cff_show_photos_type" disabled checked />
|
2858 |
-
<label for="cff_show_photos_type"><?php _e('Photos', 'custom-facebook-feed'); ?></label>
|
2859 |
-
</div>
|
2860 |
-
<div>
|
2861 |
-
<input type="checkbox" name="cff_show_video_type" id="cff_show_video_type" disabled checked />
|
2862 |
-
<label for="cff_show_video_type"><?php _e('Videos', 'custom-facebook-feed'); ?></label>
|
2863 |
-
</div>
|
2864 |
-
<div>
|
2865 |
-
<input type="checkbox" name="cff_show_links_type" id="cff_show_links_type" disabled checked />
|
2866 |
-
<label for="cff_show_links_type"><?php _e('Links', 'custom-facebook-feed'); ?></label>
|
2867 |
-
</div>
|
2868 |
-
<div>
|
2869 |
-
<input type="checkbox" name="cff_show_links_type" id="cff_show_links_type" disabled checked />
|
2870 |
-
<label for="cff_show_links_type"><?php _e('Albums', 'custom-facebook-feed'); ?></label>
|
2871 |
-
</div>
|
2872 |
-
</td>
|
2873 |
-
</tr>
|
2874 |
-
</tbody>
|
2875 |
-
</table>
|
2876 |
-
|
2877 |
-
<hr />
|
2878 |
-
|
2879 |
-
<table class="form-table">
|
2880 |
-
<tbody>
|
2881 |
-
<h3><?php _e('Header', 'custom-facebook-feed'); ?></h3>
|
2882 |
-
<tr valign="top">
|
2883 |
-
<th class="bump-left" scope="row"><label><?php _e('Show Feed Header', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> showheader
|
2884 |
-
Eg: showheader=true</code></th>
|
2885 |
-
<td>
|
2886 |
-
<input type="checkbox" name="cff_show_header" id="cff_show_header" <?php if($cff_show_header == true) echo 'checked="checked"' ?> />
|
2887 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is the header?', 'custom-facebook-feed'); ?></a>
|
2888 |
-
<p class="cff-tooltip cff-more-info"><?php _e("The header allows you to display text and an icon at the top of your feed. Customize the text, style, and layout of the header using the settings below.", "custom-facebook-feed"); ?></p>
|
2889 |
-
</td>
|
2890 |
-
</tr>
|
2891 |
-
|
2892 |
-
<tbody>
|
2893 |
-
|
2894 |
-
<tr valign="top" class="cff-header-type">
|
2895 |
-
<th class="bump-left" scope="row"><label><?php _e('Header Type'); ?></label><code class="cff_shortcode"> headertype
|
2896 |
-
Eg: headertype=visual</code></th>
|
2897 |
-
<td>
|
2898 |
-
<select name="cff_header_type" id="cff_header_type" style="width: 100px;">
|
2899 |
-
<option value="text" <?php if($cff_header_type == "text") echo 'selected="selected"' ?> ><?php _e('Text'); ?></option>
|
2900 |
-
<option value="visual" <?php if($cff_header_type == "visual") echo 'selected="selected"' ?> ><?php _e('Visual'); ?></option>
|
2901 |
-
</select>
|
2902 |
-
|
2903 |
-
<div class="cff-header-options">
|
2904 |
-
<table>
|
2905 |
-
<tbody class="cff-facebook-header">
|
2906 |
-
<tr valign="top">
|
2907 |
-
<th class="bump-left" scope="row"><label><?php _e('Facebook Header Elements', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> include exclude
|
2908 |
-
Eg: headerinc=cover,name
|
2909 |
-
Eg: headerexclude=about
|
2910 |
-
|
2911 |
-
Options: cover,name,about</code></th>
|
2912 |
-
<td>
|
2913 |
-
<div>
|
2914 |
-
<input name="cff_header_cover" type="checkbox" id="cff_header_cover" <?php if($cff_header_cover == true) echo "checked"; ?> />
|
2915 |
-
<label for="cff_header_cover">
|
2916 |
-
<?php _e('Cover Photo', 'custom-facebook-feed'); ?>
|
2917 |
-
</label>
|
2918 |
-
</div>
|
2919 |
-
<div>
|
2920 |
-
<input name="cff_header_name" type="checkbox" id="cff_header_name" <?php if($cff_header_name == true) echo "checked"; ?> />
|
2921 |
-
<label for="cff_header_name">
|
2922 |
-
<?php _e('Name and Avatar', 'custom-facebook-feed'); ?>
|
2923 |
-
</label>
|
2924 |
-
</div>
|
2925 |
-
<div>
|
2926 |
-
<input name="cff_header_bio" type="checkbox" id="cff_header_bio" <?php if($cff_header_bio == true) echo "checked"; ?> />
|
2927 |
-
<label for="cff_header_bio">
|
2928 |
-
<?php _e('About Info (bio and likes)', 'custom-facebook-feed'); ?>
|
2929 |
-
</label>
|
2930 |
-
</div>
|
2931 |
-
</td>
|
2932 |
-
</tr>
|
2933 |
-
<tr valign="top">
|
2934 |
-
<th class="bump-left" scope="row"><label><?php _e('Cover Photo Height', 'custom-facebook-feed'); ?></label></th>
|
2935 |
-
<td>
|
2936 |
-
<input style="width:70px" name="cff_header_cover_height" type="text" id="cff_header_cover_height" value="<?php echo $cff_header_cover_height; ?>"/> px
|
2937 |
-
</td>
|
2938 |
-
</tr>
|
2939 |
-
</tbody>
|
2940 |
-
<tbody class="cff-text-header">
|
2941 |
-
<tr>
|
2942 |
-
<th class="bump-left cff-text-header" scope="row"><label><?php _e('Header Text'); ?></label><code class="cff_shortcode"> headertext
|
2943 |
-
Eg: headertext='Facebook Feed'</code></th>
|
2944 |
-
<td>
|
2945 |
-
<input name="cff_header_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_header_text ) ); ?>" size="30" />
|
2946 |
-
</td>
|
2947 |
-
</tr>
|
2948 |
-
<tr valign="top">
|
2949 |
-
<th class="bump-left" scope="row"><label><?php _e('Background Color'); ?></label><code class="cff_shortcode"> headerbg
|
2950 |
-
Eg: headerbg=DDD</code></th>
|
2951 |
-
<td>
|
2952 |
-
<input name="cff_header_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_bg_color) ); ?>" class="cff-colorpicker" />
|
2953 |
-
</td>
|
2954 |
-
</tr>
|
2955 |
-
</tr>
|
2956 |
-
<th class="bump-left" scope="row"><label><?php _e('Padding/Spacing'); ?></label><code class="cff_shortcode"> headerpadding
|
2957 |
-
Eg: headerpadding=20px</code></th>
|
2958 |
-
<td>
|
2959 |
-
<input name="cff_header_padding" type="text" value="<?php esc_attr_e( $cff_header_padding ); ?>" size="6" />
|
2960 |
-
<i style="color: #666; font-size: 11px;">Eg. 20px</i>
|
2961 |
-
</td>
|
2962 |
-
</tr>
|
2963 |
-
<tr>
|
2964 |
-
<th class="bump-left" scope="row"><label><?php _e('Icon Type'); ?></label><code class="cff_shortcode"> headericon
|
2965 |
-
Eg: headericon=facebook</code></th>
|
2966 |
-
<td>
|
2967 |
-
<select name="cff_header_icon" id="cff-header-icon">
|
2968 |
-
<option value="facebook-square" <?php if($cff_header_icon == "facebook-square") echo 'selected="selected"' ?> >Facebook 1</option>
|
2969 |
-
<option value="facebook" <?php if($cff_header_icon == "facebook") echo 'selected="selected"' ?> >Facebook 2</option>
|
2970 |
-
<option value="calendar" <?php if($cff_header_icon == "calendar") echo 'selected="selected"' ?> >Events 1</option>
|
2971 |
-
<option value="calendar-o" <?php if($cff_header_icon == "calendar-o") echo 'selected="selected"' ?> >Events 2</option>
|
2972 |
-
<option value="picture-o" <?php if($cff_header_icon == "picture-o") echo 'selected="selected"' ?> >Photos</option>
|
2973 |
-
<option value="users" <?php if($cff_header_icon == "users") echo 'selected="selected"' ?> >People</option>
|
2974 |
-
<option value="thumbs-o-up" <?php if($cff_header_icon == "thumbs-o-up") echo 'selected="selected"' ?> >Thumbs Up 1</option>
|
2975 |
-
<option value="thumbs-up" <?php if($cff_header_icon == "thumbs-up") echo 'selected="selected"' ?> >Thumbs Up 2</option>
|
2976 |
-
<option value="comment-o" <?php if($cff_header_icon == "comment-o") echo 'selected="selected"' ?> >Speech Bubble 1</option>
|
2977 |
-
<option value="comment" <?php if($cff_header_icon == "comment") echo 'selected="selected"' ?> >Speech Bubble 2</option>
|
2978 |
-
<option value="ticket" <?php if($cff_header_icon == "ticket") echo 'selected="selected"' ?> >Ticket</option>
|
2979 |
-
<option value="list-alt" <?php if($cff_header_icon == "list-alt") echo 'selected="selected"' ?> >News List</option>
|
2980 |
-
<option value="file" <?php if($cff_header_icon == "file") echo 'selected="selected"' ?> >File 1</option>
|
2981 |
-
<option value="file-o" <?php if($cff_header_icon == "file-o") echo 'selected="selected"' ?> >File 2</option>
|
2982 |
-
<option value="file-text" <?php if($cff_header_icon == "file-text") echo 'selected="selected"' ?> >File 3</option>
|
2983 |
-
<option value="file-text-o" <?php if($cff_header_icon == "file-text-o") echo 'selected="selected"' ?> >File 4</option>
|
2984 |
-
<option value="youtube-play" <?php if($cff_header_icon == "youtube-play") echo 'selected="selected"' ?> >Video</option>
|
2985 |
-
<option value="youtube" <?php if($cff_header_icon == "youtube") echo 'selected="selected"' ?> >YouTube</option>
|
2986 |
-
<option value="vimeo-square" <?php if($cff_header_icon == "vimeo-square") echo 'selected="selected"' ?> >Vimeo</option>
|
2987 |
-
</select>
|
2988 |
-
|
2989 |
-
<i id="cff-header-icon-example" class="fa fa-facebook-square"></i>
|
2990 |
-
</td>
|
2991 |
-
</tr>
|
2992 |
-
<tr>
|
2993 |
-
<th class="bump-left" scope="row"><label><?php _e('Icon Color'); ?></label><code class="cff_shortcode"> headericoncolor
|
2994 |
-
Eg: headericoncolor=FFF</code></th>
|
2995 |
-
<td>
|
2996 |
-
<input name="cff_header_icon_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_icon_color) ); ?>" class="cff-colorpicker" />
|
2997 |
-
</td>
|
2998 |
-
</tr>
|
2999 |
-
<tr>
|
3000 |
-
<th class="bump-left" scope="row"><label><?php _e('Icon Size'); ?></label><code class="cff_shortcode"> headericonsize
|
3001 |
-
Eg: headericonsize=28</code></th>
|
3002 |
-
<td>
|
3003 |
-
<select name="cff_header_icon_size" id="cff-header-icon-size" style="width: 80px;">
|
3004 |
-
<option value="10" <?php if($cff_header_icon_size == "10") echo 'selected="selected"' ?> >10px</option>
|
3005 |
-
<option value="11" <?php if($cff_header_icon_size == "11") echo 'selected="selected"' ?> >11px</option>
|
3006 |
-
<option value="12" <?php if($cff_header_icon_size == "12") echo 'selected="selected"' ?> >12px</option>
|
3007 |
-
<option value="13" <?php if($cff_header_icon_size == "13") echo 'selected="selected"' ?> >13px</option>
|
3008 |
-
<option value="14" <?php if($cff_header_icon_size == "14") echo 'selected="selected"' ?> >14px</option>
|
3009 |
-
<option value="16" <?php if($cff_header_icon_size == "16") echo 'selected="selected"' ?> >16px</option>
|
3010 |
-
<option value="18" <?php if($cff_header_icon_size == "18") echo 'selected="selected"' ?> >18px</option>
|
3011 |
-
<option value="20" <?php if($cff_header_icon_size == "20") echo 'selected="selected"' ?> >20px</option>
|
3012 |
-
<option value="24" <?php if($cff_header_icon_size == "24") echo 'selected="selected"' ?> >24px</option>
|
3013 |
-
<option value="28" <?php if($cff_header_icon_size == "28") echo 'selected="selected"' ?> >28px</option>
|
3014 |
-
<option value="32" <?php if($cff_header_icon_size == "32") echo 'selected="selected"' ?> >32px</option>
|
3015 |
-
<option value="36" <?php if($cff_header_icon_size == "36") echo 'selected="selected"' ?> >36px</option>
|
3016 |
-
<option value="42" <?php if($cff_header_icon_size == "42") echo 'selected="selected"' ?> >42px</option>
|
3017 |
-
<option value="48" <?php if($cff_header_icon_size == "48") echo 'selected="selected"' ?> >48px</option>
|
3018 |
-
<option value="54" <?php if($cff_header_icon_size == "54") echo 'selected="selected"' ?> >54px</option>
|
3019 |
-
<option value="60" <?php if($cff_header_icon_size == "60") echo 'selected="selected"' ?> >60px</option>
|
3020 |
-
</select>
|
3021 |
-
</td>
|
3022 |
-
</tr>
|
3023 |
-
</tbody>
|
3024 |
-
</table>
|
3025 |
-
</div>
|
3026 |
-
</td>
|
3027 |
-
</tr>
|
3028 |
-
</tbody>
|
3029 |
-
|
3030 |
-
<tbody class="cff-header-text-styles">
|
3031 |
-
<tr valign="top">
|
3032 |
-
<th class="bump-left" scope="row"><label><?php _e('Display outside scrollable area'); ?></label><code class="cff_shortcode"> headeroutside
|
3033 |
-
Eg: headeroutside=true</code></th>
|
3034 |
-
<td>
|
3035 |
-
<input type="checkbox" name="cff_header_outside" id="cff_header_outside" <?php if($cff_header_outside == true) echo 'checked="checked"' ?> />
|
3036 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3037 |
-
<p class="cff-tooltip cff-more-info"><?php _e("This positions the Header outside of the feed container. It is useful if your feed has a vertical scrollbar as it places it outside of the scrollable area and fixes it at the top."); ?></p>
|
3038 |
-
</td>
|
3039 |
-
</tr>
|
3040 |
-
<tr>
|
3041 |
-
<th class="bump-left" scope="row"><label><?php _e('Text Size'); ?></label><code class="cff_shortcode"> headertextsize
|
3042 |
-
Eg: headertextsize=28</code></th>
|
3043 |
-
<td>
|
3044 |
-
<select name="cff_header_text_size" class="cff-text-size-setting">
|
3045 |
-
<option value="inherit" <?php if($cff_header_text_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
3046 |
-
<option value="10" <?php if($cff_header_text_size == "10") echo 'selected="selected"' ?> >10px</option>
|
3047 |
-
<option value="11" <?php if($cff_header_text_size == "11") echo 'selected="selected"' ?> >11px</option>
|
3048 |
-
<option value="12" <?php if($cff_header_text_size == "12") echo 'selected="selected"' ?> >12px</option>
|
3049 |
-
<option value="13" <?php if($cff_header_text_size == "13") echo 'selected="selected"' ?> >13px</option>
|
3050 |
-
<option value="14" <?php if($cff_header_text_size == "14") echo 'selected="selected"' ?> >14px</option>
|
3051 |
-
<option value="16" <?php if($cff_header_text_size == "16") echo 'selected="selected"' ?> >16px</option>
|
3052 |
-
<option value="18" <?php if($cff_header_text_size == "18") echo 'selected="selected"' ?> >18px</option>
|
3053 |
-
<option value="20" <?php if($cff_header_text_size == "20") echo 'selected="selected"' ?> >20px</option>
|
3054 |
-
<option value="24" <?php if($cff_header_text_size == "24") echo 'selected="selected"' ?> >24px</option>
|
3055 |
-
<option value="28" <?php if($cff_header_text_size == "28") echo 'selected="selected"' ?> >28px</option>
|
3056 |
-
<option value="32" <?php if($cff_header_text_size == "32") echo 'selected="selected"' ?> >32px</option>
|
3057 |
-
<option value="36" <?php if($cff_header_text_size == "36") echo 'selected="selected"' ?> >36px</option>
|
3058 |
-
<option value="42" <?php if($cff_header_text_size == "42") echo 'selected="selected"' ?> >42px</option>
|
3059 |
-
<option value="48" <?php if($cff_header_text_size == "48") echo 'selected="selected"' ?> >48px</option>
|
3060 |
-
<option value="54" <?php if($cff_header_text_size == "54") echo 'selected="selected"' ?> >54px</option>
|
3061 |
-
<option value="60" <?php if($cff_header_text_size == "60") echo 'selected="selected"' ?> >60px</option>
|
3062 |
-
</select>
|
3063 |
-
</td>
|
3064 |
-
</tr>
|
3065 |
-
<tr>
|
3066 |
-
<th class="bump-left" scope="row"><label><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> headertextweight
|
3067 |
-
Eg: headertextweight=bold</code></th>
|
3068 |
-
<td>
|
3069 |
-
<select name="cff_header_text_weight" class="cff-text-size-setting">
|
3070 |
-
<option value="inherit" <?php if($cff_header_text_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
3071 |
-
<option value="normal" <?php if($cff_header_text_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
3072 |
-
<option value="bold" <?php if($cff_header_text_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
3073 |
-
</select>
|
3074 |
-
</td>
|
3075 |
-
</tr>
|
3076 |
-
<tr>
|
3077 |
-
<th class="bump-left" scope="row"><label><?php _e('Text Color'); ?></label><code class="cff_shortcode"> headertextcolor
|
3078 |
-
Eg: headertextcolor=333</code></th>
|
3079 |
-
<td>
|
3080 |
-
<input name="cff_header_text_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_text_color) ); ?>" class="cff-colorpicker" />
|
3081 |
-
</td>
|
3082 |
-
</tr>
|
3083 |
-
<tr id="author"><!-- Quick link --></tr>
|
3084 |
-
</tbody>
|
3085 |
-
</table>
|
3086 |
-
|
3087 |
-
<?php submit_button(); ?>
|
3088 |
-
|
3089 |
-
<hr id="likebox" /><!-- Quick link -->
|
3090 |
-
|
3091 |
-
<h3><?php _e('Like Box / Page Plugin', 'custom-facebook-feed'); ?></h3>
|
3092 |
-
<table class="form-table">
|
3093 |
-
<tbody>
|
3094 |
-
<tr valign="top">
|
3095 |
-
<th class="bump-left" scope="row"><label><?php _e('Show the Like Box', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> include exclude
|
3096 |
-
Eg: include/exclude=likebox</code></th>
|
3097 |
-
<td>
|
3098 |
-
<input type="checkbox" name="cff_show_like_box" id="cff_show_like_box" <?php if($cff_show_like_box == true) echo 'checked="checked"' ?> /> <?php _e('Yes', 'custom-facebook-feed'); ?>
|
3099 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is the Like Box?'); ?></a>
|
3100 |
-
<p class="cff-tooltip cff-more-info"><?php _e("The Like Box is an official Facebook widget that we include at the bottom or top of the feed. It contains information about your Facebook Page and allows users to 'like' it directly on your site."); ?></p>
|
3101 |
-
</td>
|
3102 |
-
</tr>
|
3103 |
-
<tr valign="top">
|
3104 |
-
<th class="bump-left" scope="row"><label><?php _e('Position', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxpos
|
3105 |
-
Eg: likeboxpos=top</code></th>
|
3106 |
-
<td>
|
3107 |
-
<select name="cff_like_box_position">
|
3108 |
-
<option value="bottom" <?php if($cff_like_box_position == "bottom") echo 'selected="selected"' ?> ><?php _e('Bottom of feed', 'custom-facebook-feed'); ?></option>
|
3109 |
-
<option value="top" <?php if($cff_like_box_position == "top") echo 'selected="selected"' ?> ><?php _e('Top of feed', 'custom-facebook-feed'); ?></option>
|
3110 |
-
</select>
|
3111 |
-
</td>
|
3112 |
-
</tr>
|
3113 |
-
<tr valign="top">
|
3114 |
-
<th class="bump-left" scope="row"><label><?php _e('Display outside the scrollable area', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxoutside
|
3115 |
-
Eg: likeboxoutside=true</code></th>
|
3116 |
-
<td>
|
3117 |
-
<input type="checkbox" name="cff_like_box_outside" id="cff_like_box_outside" <?php if($cff_like_box_outside == true) echo 'checked="checked"' ?> />
|
3118 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3119 |
-
<p class="cff-tooltip cff-more-info"><?php _e("This positions the Like Box widget outside of the feed container. It is useful if your feed has a vertical scrollbar as it places it outside of the scrollable area and fixes it at the top or bottom."); ?></p>
|
3120 |
-
</td>
|
3121 |
-
</tr>
|
3122 |
-
|
3123 |
-
<tr valign="top">
|
3124 |
-
<th class="bump-left" scope="row"><label><?php _e('Show faces of fans', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxfaces
|
3125 |
-
Eg: likeboxfaces=true</code></th>
|
3126 |
-
<td>
|
3127 |
-
<input type="checkbox" name="cff_like_box_faces" id="cff_like_box_faces" <?php if($cff_like_box_faces == true) echo 'checked="checked"' ?> />
|
3128 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3129 |
-
<p class="cff-tooltip cff-more-info"><?php _e("This will display thumbnail photos within the Like Box of some of the people who like your page."); ?></p>
|
3130 |
-
</td>
|
3131 |
-
</tr>
|
3132 |
-
<tr valign="top">
|
3133 |
-
<th class="bump-left" scope="row"><label><?php _e('Include the Cover Photo', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxcover
|
3134 |
-
Eg: likeboxcover=true</code></th>
|
3135 |
-
<td>
|
3136 |
-
<input type="checkbox" name="cff_like_box_cover" id="cff_like_box_cover" <?php if($cff_like_box_cover == true) echo 'checked="checked"' ?> />
|
3137 |
-
</td>
|
3138 |
-
</tr>
|
3139 |
-
<tr valign="top">
|
3140 |
-
<th class="bump-left" scope="row"><label><?php _e('Use a small header', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxsmallheader
|
3141 |
-
Eg: likeboxsmallheader=true</code></th>
|
3142 |
-
<td>
|
3143 |
-
<input type="checkbox" name="cff_like_box_small_header" id="cff_like_box_small_header" <?php if($cff_like_box_small_header == true) echo 'checked="checked"' ?> />
|
3144 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3145 |
-
<p class="cff-tooltip cff-more-info"><?php _e("This will display a shorter version of the Like Box with a slimmer cover photo and less information."); ?></p>
|
3146 |
-
</td>
|
3147 |
-
</tr>
|
3148 |
-
<tr valign="top">
|
3149 |
-
<th class="bump-left" scope="row"><label><?php _e('Hide custom call to action button', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxhidebtn
|
3150 |
-
Eg: likeboxhidebtn=true</code></th>
|
3151 |
-
<td>
|
3152 |
-
<input type="checkbox" name="cff_like_box_hide_cta" id="cff_like_box_hide_cta" <?php if($cff_like_box_hide_cta == true) echo 'checked="checked"' ?> />
|
3153 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3154 |
-
<p class="cff-tooltip cff-more-info"><?php _e("If you have a custom 'Call To Action' button for your Facebook Page then this will hide it and display the default Like Box button."); ?></p>
|
3155 |
-
</td>
|
3156 |
-
</tr>
|
3157 |
-
<tr valign="top">
|
3158 |
-
<th class="bump-left" for="cff_likebox_width" scope="row"><label><?php _e('Custom Like Box Width', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxwidth
|
3159 |
-
Eg: likeboxwidth=500</code></th>
|
3160 |
-
<td>
|
3161 |
-
<input name="cff_likebox_width" type="text" value="<?php esc_attr_e( $cff_likebox_width, 'custom-facebook-feed' ); ?>" size="3" /><span class="cff-pixel-label">px</span>
|
3162 |
-
<span><i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Default: 340, Min: 180, Max: 500', 'custom-facebook-feed'); ?></i></span>
|
3163 |
-
</td>
|
3164 |
-
</tr>
|
3165 |
-
</tbody>
|
3166 |
-
</table>
|
3167 |
-
|
3168 |
-
<?php submit_button(); ?>
|
3169 |
-
|
3170 |
-
<hr />
|
3171 |
-
|
3172 |
-
<h3><?php _e('"Load More" button'); ?></h3>
|
3173 |
-
<a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=loadmore" target="_blank">Upgrade to Pro to enable the Load More button</a>
|
3174 |
-
<p class="submit cff-expand-button">
|
3175 |
-
<a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
|
3176 |
-
</p>
|
3177 |
-
<table class="form-table cff-expandable-options">
|
3178 |
-
<tbody>
|
3179 |
-
<tr valign="top" class="cff-pro">
|
3180 |
-
<th class="bump-left" scope="row"><label><?php _e('Show "Load More" Button'); ?></label></th>
|
3181 |
-
<td>
|
3182 |
-
<input type="checkbox" name="cff_load_more" id="cff_load_more" disabled />
|
3183 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3184 |
-
<p class="cff-tooltip cff-more-info"><?php _e("The Load More button is added to the bottom of your feed and allows you to dynamically load more posts into your feed. Use the button below to reveal customization settings for the button."); ?></p>
|
3185 |
-
</td>
|
3186 |
-
</tr>
|
3187 |
-
<tr valign="top" class="cff-pro">
|
3188 |
-
<th class="bump-left" scope="row"><label><?php _e('Button Background Color'); ?></label></th>
|
3189 |
-
<td>
|
3190 |
-
<input name="cff_load_more_bg" type="text" class="cff-colorpicker" disabled />
|
3191 |
-
</td>
|
3192 |
-
</tr>
|
3193 |
-
<tr valign="top" class="cff-pro">
|
3194 |
-
<th class="bump-left" scope="row"><label><?php _e('Button Hover Color'); ?></label></th>
|
3195 |
-
<td>
|
3196 |
-
<input name="cff_load_more_bg_hover" type="text" class="cff-colorpicker" disabled />
|
3197 |
-
</td>
|
3198 |
-
</tr>
|
3199 |
-
<tr valign="top" class="cff-pro">
|
3200 |
-
<th class="bump-left" scope="row"><label><?php _e('Button Text Color'); ?></label></th>
|
3201 |
-
<td>
|
3202 |
-
<input name="cff_load_more_text_color" type="text" class="cff-colorpicker" disabled />
|
3203 |
-
</td>
|
3204 |
-
</tr>
|
3205 |
-
<tr valign="top" class="cff-pro">
|
3206 |
-
<th class="bump-left" scope="row"><label><?php _e('Button Text'); ?></label></th>
|
3207 |
-
<td>
|
3208 |
-
<input name="cff_load_more_text" type="text" size="30" disabled />
|
3209 |
-
</td>
|
3210 |
-
</tr>
|
3211 |
-
</tbody>
|
3212 |
-
</table>
|
3213 |
-
|
3214 |
-
<hr />
|
3215 |
-
|
3216 |
-
<h3><?php _e('Lightbox'); ?></h3>
|
3217 |
-
<a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=lightbox" target="_blank">Upgrade to Pro to enable the Lightbox</a>
|
3218 |
-
<p class="submit cff-expand-button">
|
3219 |
-
<a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
|
3220 |
-
</p>
|
3221 |
-
<table class="form-table cff-expandable-options">
|
3222 |
-
<tbody>
|
3223 |
-
<tr valign="top" class="cff-pro">
|
3224 |
-
<th class="bump-left" scope="row"><label><?php _e('Disable Popup Lightbox'); ?></label><code class="cff_shortcode"> disablelightbox
|
3225 |
-
Eg: disablelightbox=true</code></th>
|
3226 |
-
<td>
|
3227 |
-
<input name="cff_disable_lightbox" type="checkbox" id="cff_disable_lightbox" disabled />
|
3228 |
-
<label for="cff_disable_lightbox"><?php _e('Disable'); ?></label>
|
3229 |
-
</td>
|
3230 |
-
</tr>
|
3231 |
-
<tr valign="top" class="cff-pro">
|
3232 |
-
<th class="bump-left" scope="row"><label><?php _e('Background Color'); ?></label></th>
|
3233 |
-
<td>
|
3234 |
-
<input name="cff_lightbox_bg_color" type="text" class="cff-colorpicker" disabled />
|
3235 |
-
</td>
|
3236 |
-
</tr>
|
3237 |
-
<tr valign="top" class="cff-pro">
|
3238 |
-
<th class="bump-left" scope="row"><label><?php _e('Text Color'); ?></label></th>
|
3239 |
-
<td>
|
3240 |
-
<input name="cff_lightbox_text_color" type="text" class="cff-colorpicker" disabled />
|
3241 |
-
</td>
|
3242 |
-
</tr>
|
3243 |
-
<tr valign="top" class="cff-pro">
|
3244 |
-
<th class="bump-left" scope="row"><label><?php _e('Link Color'); ?></label></th>
|
3245 |
-
<td>
|
3246 |
-
<input name="cff_lightbox_link_color" type="text" class="cff-colorpicker" disabled />
|
3247 |
-
</td>
|
3248 |
-
</tr>
|
3249 |
-
<tr valign="top" class="cff-pro">
|
3250 |
-
<th class="bump-left" scope="row"><label><?php _e('Show Comments in Lightbox'); ?></label><code class="cff_shortcode"> lightboxcomments
|
3251 |
-
Eg: lightboxcomments=true</code></th>
|
3252 |
-
<td>
|
3253 |
-
<input type="checkbox" name="cff_lightbox_comments" id="cff_lightbox_comments" disabled/>
|
3254 |
-
<span><i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('For timeline posts only'); ?></i></span>
|
3255 |
-
</td>
|
3256 |
-
</tr>
|
3257 |
-
</tbody>
|
3258 |
-
</table>
|
3259 |
-
|
3260 |
-
<hr />
|
3261 |
-
|
3262 |
-
<h3><?php _e('Filter Content by String'); ?></h3>
|
3263 |
-
<a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=filtering" target="_blank">Upgrade to Pro to enable Filtering</a>
|
3264 |
-
<p class="submit cff-expand-button">
|
3265 |
-
<a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
|
3266 |
-
</p>
|
3267 |
-
<table class="form-table cff-expandable-options">
|
3268 |
-
<tbody>
|
3269 |
-
<tr valign="top" class="cff-pro">
|
3270 |
-
<th class="bump-left" scope="row"><label><?php _e('Only show posts containing:'); ?></label></th>
|
3271 |
-
<td>
|
3272 |
-
<input name="cff_filter_string" type="text" size="25" disabled />
|
3273 |
-
<i style="color: #666; font-size: 11px;">Eg. #smash, balloon </i>
|
3274 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3275 |
-
<p class="cff-tooltip cff-more-info"><?php _e("You can use this setting to only display posts containing these text strings. Separate multiple strings using commas. If only a few posts, or none at all, are displayed then you may need to increase the plugin's 'Post Limit' settings. See <a href='https://smashballoon.com/filtering-your-facebook-posts/' target='_blank'>this FAQ</a> to learn more about how filtering works."); ?></p>
|
3276 |
-
</td>
|
3277 |
-
</tr>
|
3278 |
-
<tr valign="top" class="cff-pro">
|
3279 |
-
<th class="bump-left" scope="row"><label><?php _e("Don't show posts containing:"); ?></label></th>
|
3280 |
-
<td>
|
3281 |
-
<input name="cff_exclude_string" type="text" size="25" disabled />
|
3282 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3283 |
-
<p class="cff-tooltip cff-more-info"><?php _e("You can use this setting to remove any posts containing these text strings. Separate multiple strings using commas."); ?></p>
|
3284 |
-
</td>
|
3285 |
-
</tr>
|
3286 |
-
</tbody>
|
3287 |
-
</table>
|
3288 |
-
|
3289 |
-
<hr />
|
3290 |
-
|
3291 |
-
<?php submit_button(); ?>
|
3292 |
-
|
3293 |
-
<p style="padding-top: 5px;"><i class="fa fa-life-ring" aria-hidden="true"></i> <?php _e('Having trouble using the plugin? Check out the', 'custom-facebook-feed'); ?> <a href='admin.php?page=cff-top&tab=support'><?php _e('Support', 'custom-facebook-feed'); ?></a> <?php _e('tab', 'custom-facebook-feed'); ?>.</p>
|
3294 |
-
|
3295 |
-
<div class="cff_quickstart">
|
3296 |
-
<h3><i class="fa fa-rocket" aria-hidden="true"></i> Display your feed</h3>
|
3297 |
-
<p>Copy and paste this shortcode directly into the page, post or widget where you'd like to display the feed: <input type="text" value="[custom-facebook-feed]" size="22" readonly="readonly" style="text-align: center;" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)."></p>
|
3298 |
-
<p>Find out how to display <a href="https://smashballoon.com/using-shortcode-options-customize-facebook-feeds/" target="_blank"><b>multiple feeds</b></a>.</p>
|
3299 |
-
</div>
|
3300 |
-
|
3301 |
-
|
3302 |
-
<a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo plugins_url( 'img/pro.png?2019' , __FILE__ ) ?>" /></a>
|
3303 |
-
|
3304 |
-
<?php } //End General tab ?>
|
3305 |
-
<?php if( $cff_active_tab == 'post_layout' ) { //Start Post Layout tab ?>
|
3306 |
-
|
3307 |
-
<p class="cff_contents_links" id="layout">
|
3308 |
-
<span>Jump to: </span>
|
3309 |
-
<a href="#showhide">Show/Hide</a>
|
3310 |
-
</p>
|
3311 |
-
|
3312 |
-
<input type="hidden" name="<?php echo $style_post_layout_hidden_field_name; ?>" value="Y">
|
3313 |
-
<br />
|
3314 |
-
<h3><?php _e('Post Layouts', 'custom-facebook-feed'); ?></h3>
|
3315 |
-
<a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=layouts" target="_blank"><?php _e('Upgrade to Pro to enable layouts', 'custom-facebook-feed'); ?></a>
|
3316 |
-
<p class="submit cff-expand-button">
|
3317 |
-
<a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
|
3318 |
-
</p>
|
3319 |
-
|
3320 |
-
<div class="form-table cff-expandable-options cff-pro">
|
3321 |
-
<p><?php _e("Choose a layout from the 3 below."); ?>
|
3322 |
-
|
3323 |
-
<div class="cff-layouts">
|
3324 |
-
<div class="cff-layout cff-thumb <?php if($cff_preset_layout == "thumb") echo "cff-layout-selected"; ?>">
|
3325 |
-
<h3><input type="radio" name="cff_preset_layout" id="cff_preset_layout" value="thumb" disabled /> <?php _e('Thumbnail'); ?></h3>
|
3326 |
-
<img src="<?php echo plugins_url( 'img/layout-thumb.png' , __FILE__ ) ?>" alt="Thumbnail Layout" />
|
3327 |
-
|
3328 |
-
</div>
|
3329 |
-
<div class="cff-layout cff-half <?php if($cff_preset_layout == "half") echo "cff-layout-selected"; ?>">
|
3330 |
-
<h3><input type="radio" name="cff_preset_layout" id="cff_preset_layout" value="half" disabled /> <?php _e('Half-width'); ?></h3>
|
3331 |
-
<img src="<?php echo plugins_url( 'img/layout-half.png' , __FILE__ ) ?>" alt="Half Width Layout" />
|
3332 |
-
|
3333 |
-
</div>
|
3334 |
-
<div class="cff-layout cff-full <?php if($cff_preset_layout == "full") echo "cff-layout-selected"; ?>">
|
3335 |
-
<h3><input type="radio" name="cff_preset_layout" id="cff_preset_layout" value="full" disabled /> <?php _e('Full-width'); ?></h3>
|
3336 |
-
<img src="<?php echo plugins_url( 'img/layout-full.png' , __FILE__ ) ?>" alt="Full Width Layout" />
|
3337 |
-
|
3338 |
-
</div>
|
3339 |
-
</div>
|
3340 |
-
|
3341 |
-
<table class="form-table">
|
3342 |
-
<tbody>
|
3343 |
-
<tr class="cff-media-position" class="cff-pro">
|
3344 |
-
<th><label for="cff_media_position" class="bump-left"><?php _e('Photo/Video Position'); ?></label></th>
|
3345 |
-
<td>
|
3346 |
-
<select name="cff_media_position" disabled>
|
3347 |
-
<option value="below">Below Text</option>
|
3348 |
-
<option value="above">Above Text</option>
|
3349 |
-
</select>
|
3350 |
-
</td>
|
3351 |
-
</tr>
|
3352 |
-
<tr class="cff-pro">
|
3353 |
-
<th><label for="cff_media_position" class="bump-left"><?php _e('Photo/Video Position'); ?></label></th>
|
3354 |
-
<td>
|
3355 |
-
<select name="cff_media_position" disabled>
|
3356 |
-
<option value="below">Below Text</option>
|
3357 |
-
<option value="above">Above Text</option>
|
3358 |
-
</select>
|
3359 |
-
<i style="color: #666; font-size: 11px; margin-left: 5px;">Only applies to Full-width layout</i>
|
3360 |
-
</td>
|
3361 |
-
</tr>
|
3362 |
-
<tr class="cff-pro">
|
3363 |
-
<th><label for="cff_enable_narrow" class="bump-left"><?php _e('Always use the Full-width layout when feed is narrow?'); ?></label></th>
|
3364 |
-
<td>
|
3365 |
-
<input name="cff_enable_narrow" type="checkbox" id="cff_enable_narrow" disabled />
|
3366 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3367 |
-
<p class="cff-tooltip cff-more-info"><?php _e("When displaying posts in either a narrow column or on a mobile device the plugin will automatically default to using the 'Full-width' layout as it's better suited to narrow sizes."); ?></p>
|
3368 |
-
</td>
|
3369 |
-
</tr>
|
3370 |
-
<tr class="cff-pro">
|
3371 |
-
<th><label for="cff_one_image" class="bump-left"><?php _e('Only show one image per post'); ?></label></th>
|
3372 |
-
<td>
|
3373 |
-
<input name="cff_one_image" type="checkbox" id="cff_one_image" disabled />
|
3374 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3375 |
-
<p class="cff-tooltip cff-more-info"><?php _e("If a Facebook post contains more than photo then enabling this setting means that only the first photo in the post is displayed."); ?></p>
|
3376 |
-
</td>
|
3377 |
-
</tr>
|
3378 |
-
</tbody>
|
3379 |
-
</table>
|
3380 |
-
</div>
|
3381 |
-
|
3382 |
-
|
3383 |
-
|
3384 |
-
<table class="form-table" id="showhide">
|
3385 |
-
|
3386 |
-
<hr />
|
3387 |
-
<h3><?php _e('Show/Hide'); ?></h3>
|
3388 |
-
<table class="form-table">
|
3389 |
-
<tbody>
|
3390 |
-
<tr valign="top">
|
3391 |
-
<th scope="row"><label><?php _e('Include the following in posts: <i style="font-size: 11px;">(when applicable)</i>'); ?></label><code class="cff_shortcode"> include exclude
|
3392 |
-
Eg: include=text,date,likebox
|
3393 |
-
Eg: exclude=likebox
|
3394 |
-
|
3395 |
-
Options: author, text, desc, sharedlinks, date, eventtitle, eventdetails, link, likebox</code></th>
|
3396 |
-
<td class="cff_show_hide_settings">
|
3397 |
-
<div>
|
3398 |
-
<input name="cff_show_author" type="checkbox" id="cff_show_author" <?php if($cff_show_author == true) echo "checked"; ?> />
|
3399 |
-
<label for="cff_show_author">
|
3400 |
-
<b><?php _e('Author Name and Avatar'); ?></b>
|
3401 |
-
<p class="cff-show-hide-desc"><?php _e("The author name and avatar image that's shown at the top of each timeline post"); ?></p>
|
3402 |
-
</label>
|
3403 |
-
|
3404 |
-
</div>
|
3405 |
-
<div>
|
3406 |
-
<input name="cff_show_text" type="checkbox" id="cff_show_text" <?php if($cff_show_text == true) echo "checked"; ?> />
|
3407 |
-
<label for="cff_show_text">
|
3408 |
-
<b><?php _e('Post Text'); ?></b>
|
3409 |
-
<p class="cff-show-hide-desc"><?php _e("The main text of the Facebook post"); ?></p>
|
3410 |
-
</label>
|
3411 |
-
</div>
|
3412 |
-
<div>
|
3413 |
-
<input type="checkbox" name="cff_show_desc" id="cff_show_desc" <?php if($cff_show_desc == true) echo 'checked="checked"' ?> />
|
3414 |
-
<label for="cff_show_desc">
|
3415 |
-
<b><?php _e('Description Text'); ?></b>
|
3416 |
-
<p class="cff-show-hide-desc"><?php _e("The description text associated with shared photos, videos, or links"); ?></p>
|
3417 |
-
</label>
|
3418 |
-
</div>
|
3419 |
-
<div>
|
3420 |
-
<input type="checkbox" name="cff_show_shared_links" id="cff_show_shared_links" <?php if($cff_show_shared_links == true) echo 'checked="checked"' ?> />
|
3421 |
-
<label for="cff_show_shared_links">
|
3422 |
-
<b><?php _e('Shared Link Box'); ?></b>
|
3423 |
-
<p class="cff-show-hide-desc"><?php _e("The link info box that's created when a link is shared in a Facebook post"); ?></p>
|
3424 |
-
</label>
|
3425 |
-
</div>
|
3426 |
-
<div>
|
3427 |
-
<input type="checkbox" name="cff_show_date" id="cff_show_date" <?php if($cff_show_date == true) echo 'checked="checked"' ?> />
|
3428 |
-
<label for="cff_show_date">
|
3429 |
-
<b><?php _e('Date'); ?></b>
|
3430 |
-
<p class="cff-show-hide-desc"><?php _e("The date of the post"); ?></p>
|
3431 |
-
</label>
|
3432 |
-
</div>
|
3433 |
-
<div class="cff-disabled">
|
3434 |
-
<input type="checkbox" name="cff_show_media" disabled />
|
3435 |
-
<label for="cff_show_media">
|
3436 |
-
<b><?php _e('Photos and Videos'); ?></b>
|
3437 |
-
<p class="cff-show-hide-desc"><?php _e("Any photos or videos in your posts"); ?></p>
|
3438 |
-
</label>
|
3439 |
-
</div>
|
3440 |
-
<div>
|
3441 |
-
<input type="checkbox" name="cff_show_media_link" id="cff_show_media_link" <?php if($cff_show_media_link == true) echo 'checked="checked"' ?> />
|
3442 |
-
<label for="cff_show_media_link">
|
3443 |
-
<b><?php _e('Media link', 'custom-facebook-feed'); ?></b>
|
3444 |
-
<p class="cff-show-hide-desc"><?php _e("Display an icon and link to Facebook if the post contains either a photo or video"); ?></p>
|
3445 |
-
</label>
|
3446 |
-
</div>
|
3447 |
-
<div>
|
3448 |
-
<input type="checkbox" name="cff_show_event_title" id="cff_show_event_title" <?php if($cff_show_event_title == true) echo 'checked="checked"' ?> />
|
3449 |
-
<label for="cff_show_event_title">
|
3450 |
-
<b><?php _e('Event Title'); ?></b>
|
3451 |
-
<p class="cff-show-hide-desc"><?php _e("The title of an event"); ?></p>
|
3452 |
-
</label>
|
3453 |
-
</div>
|
3454 |
-
<div>
|
3455 |
-
<input type="checkbox" name="cff_show_event_details" id="cff_show_event_details" <?php if($cff_show_event_details == true) echo 'checked="checked"' ?> />
|
3456 |
-
<label for="cff_show_event_details">
|
3457 |
-
<b><?php _e('Event Details'); ?></b>
|
3458 |
-
<p class="cff-show-hide-desc"><?php _e("The information associated with an event"); ?></p>
|
3459 |
-
</label>
|
3460 |
-
</div>
|
3461 |
-
<div class="cff-disabled">
|
3462 |
-
<input type="checkbox" name="cff_show_meta" disabled />
|
3463 |
-
<label for="cff_show_meta">
|
3464 |
-
<b><?php _e('Like, Shares, and Comments'); ?></b>
|
3465 |
-
<p class="cff-show-hide-desc"><?php _e("The comments box displayed at the bottom of each timeline post"); ?></p>
|
3466 |
-
</label>
|
3467 |
-
</div>
|
3468 |
-
<div>
|
3469 |
-
<input type="checkbox" name="cff_show_link" id="cff_show_link" <?php if($cff_show_link == true) echo 'checked="checked"' ?> />
|
3470 |
-
<label for="cff_show_link">
|
3471 |
-
<b><?php _e('Post Action Links'); ?></b>
|
3472 |
-
<p class="cff-show-hide-desc"><?php _e('The "View on Facebook" and "Share" links at the bottom of each post'); ?></p>
|
3473 |
-
</label>
|
3474 |
-
</div>
|
3475 |
-
</td>
|
3476 |
-
</tr>
|
3477 |
-
<tr id="poststyle"><!-- Quick link --></tr>
|
3478 |
-
</tbody>
|
3479 |
-
</table>
|
3480 |
-
|
3481 |
-
<?php submit_button(); ?>
|
3482 |
-
<a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
|
3483 |
-
<?php } //End Post Layout tab ?>
|
3484 |
-
<?php if( $cff_active_tab == 'typography' ) { //Start Typography tab ?>
|
3485 |
-
|
3486 |
-
<p class="cff_contents_links" id="postitem">
|
3487 |
-
<span>Jump to: </span>
|
3488 |
-
<a href="#postitem">Post Item</a>
|
3489 |
-
<a href="#author">Post Author</a>
|
3490 |
-
<a href="#text">Post Text</a>
|
3491 |
-
<a href="#description">Shared Post Description</a>
|
3492 |
-
<a href="#date">Post Date</a>
|
3493 |
-
<a href="#links">Shared Link Boxes</a>
|
3494 |
-
<a href="#eventtitle">Event Title</a>
|
3495 |
-
<a href="#eventdate">Event Date</a>
|
3496 |
-
<a href="#eventdetails">Event Details</a>
|
3497 |
-
<a href="#comments">Comments Box</a>
|
3498 |
-
<a href="#action">Post Action Links</a>
|
3499 |
-
</p>
|
3500 |
-
|
3501 |
-
<input type="hidden" name="<?php echo $style_typography_hidden_field_name; ?>" value="Y">
|
3502 |
-
<br />
|
3503 |
-
|
3504 |
-
<h3><?php _e('Post Item'); ?></h3>
|
3505 |
-
<table class="form-table">
|
3506 |
-
<tbody>
|
3507 |
-
<tr>
|
3508 |
-
<th class="bump-left" scope="row"><label><?php _e('Post Style'); ?></label><code class="cff_shortcode"> poststyle
|
3509 |
-
Eg: poststyle=regular/boxed</code></th>
|
3510 |
-
<td>
|
3511 |
-
<?php
|
3512 |
-
//If a post style isn't set (eg on initial update) then set it to be regular unless a bgcolor is set
|
3513 |
-
if( $cff_post_style == '' || empty($cff_post_style) ){
|
3514 |
-
$cff_post_style = 'regular';
|
3515 |
-
if( strlen($cff_post_bg_color) > 1 ) $cff_post_style = 'boxed';
|
3516 |
-
}
|
3517 |
-
|
3518 |
-
?>
|
3519 |
-
<div class="cff-layouts">
|
3520 |
-
<div class="cff-post-style cff-layout <?php if($cff_post_style == "regular") echo "cff-layout-selected"; ?>">
|
3521 |
-
<h3><input type="radio" name="cff_post_style" id="cff_post_style" class="cff_post_style" value="regular" <?php if($cff_post_style == "regular") echo "checked"; ?> /> <?php _e('Regular'); ?></h3>
|
3522 |
-
<img src="<?php echo plugins_url( 'img/post-style.png' , __FILE__ ) ?>" alt="Regular Post Style" />
|
3523 |
-
<img src="<?php echo plugins_url( 'img/post-style.png' , __FILE__ ) ?>" alt="Regular Post Style" />
|
3524 |
-
</div>
|
3525 |
-
|
3526 |
-
<div class="cff-post-style cff-boxed cff-layout <?php if($cff_post_style == "boxed") echo "cff-layout-selected"; ?>">
|
3527 |
-
<h3><input type="radio" name="cff_post_style" id="cff_post_style" class="cff_post_style" value="boxed" <?php if($cff_post_style == "boxed") echo "checked"; ?> /> <?php _e('Boxed'); ?></h3>
|
3528 |
-
<img src="<?php echo plugins_url( 'img/post-style.png' , __FILE__ ) ?>" alt="Box Post Style" style="margin-top: -2px;" />
|
3529 |
-
<img src="<?php echo plugins_url( 'img/post-style.png' , __FILE__ ) ?>" alt="Box Post Style" style="margin-top: 2px;" />
|
3530 |
-
</div>
|
3531 |
-
|
3532 |
-
<div class="cff-post-style-settings cff-regular">
|
3533 |
-
|
3534 |
-
<div class="cff-row">
|
3535 |
-
<label><?php _e('Separating Line Color'); ?></label><code class="cff_shortcode"> sepcolor
|
3536 |
-
Eg: sepcolor=CFCFCF</code>
|
3537 |
-
<br />
|
3538 |
-
<input name="cff_sep_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_sep_color) ); ?>" class="cff-colorpicker" />
|
3539 |
-
</div>
|
3540 |
-
<div class="cff-row">
|
3541 |
-
<label><?php _e('Separating Line Thickness'); ?></label><code class="cff_shortcode"> sepsize
|
3542 |
-
Eg: sepsize=3</code>
|
3543 |
-
<br />
|
3544 |
-
<input name="cff_sep_size" type="text" value="<?php esc_attr_e( $cff_sep_size ); ?>" size="1" /><span class="cff-pixel-label">px</span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Leave empty to hide'); ?></i>
|
3545 |
-
</div>
|
3546 |
-
</div>
|
3547 |
-
|
3548 |
-
<div class="cff-post-style-settings cff-boxed">
|
3549 |
-
<div class="cff-row">
|
3550 |
-
<label><?php _e('Background Color'); ?></label><code class="cff_shortcode"> postbgcolor
|
3551 |
-
Eg: postbgcolor=ff0000</code>
|
3552 |
-
<br />
|
3553 |
-
<input name="cff_post_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_post_bg_color) ); ?>" class="cff-colorpicker" />
|
3554 |
-
</div>
|
3555 |
-
<div class="cff-row">
|
3556 |
-
<label><?php _e('Rounded Corner Size'); ?></label><code class="cff_shortcode"> postcorners
|
3557 |
-
Eg: postcorners=10</code>
|
3558 |
-
<br />
|
3559 |
-
<input name="cff_post_rounded" type="text" value="<?php esc_attr_e( $cff_post_rounded ); ?>" size="3" /><span class="cff-pixel-label">px</span> <span><i style="color: #666; font-size: 11px; margin-left: 5px;">Eg. 5</i></span>
|
3560 |
-
</div>
|
3561 |
-
<div class="cff-row">
|
3562 |
-
<label><?php _e('Box Shadow'); ?></label><code class="cff_shortcode"> boxshadow
|
3563 |
-
Eg: boxshadow=true</code>
|
3564 |
-
<br />
|
3565 |
-
<input type="checkbox" name="cff_box_shadow" id="cff_box_shadow" <?php if($cff_box_shadow == true) echo 'checked="checked"' ?> /> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Adds a subtle shadow around the post'); ?></i>
|
3566 |
-
</div>
|
3567 |
-
</div>
|
3568 |
-
|
3569 |
-
</div>
|
3570 |
-
</td>
|
3571 |
-
</tr>
|
3572 |
-
</tbody>
|
3573 |
-
</table>
|
3574 |
-
<hr />
|
3575 |
-
|
3576 |
-
<h3><?php _e('Post Author'); ?></h3>
|
3577 |
-
<table class="form-table">
|
3578 |
-
<tbody>
|
3579 |
-
<tr>
|
3580 |
-
<th class="bump-left"><label for="cff_author_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> authorsize
|
3581 |
-
Eg: authorsize=20</code></th>
|
3582 |
-
<td>
|
3583 |
-
<select name="cff_author_size" class="cff-text-size-setting">
|
3584 |
-
<option value="inherit" <?php if($cff_author_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
3585 |
-
<option value="10" <?php if($cff_author_size == "10") echo 'selected="selected"' ?> >10px</option>
|
3586 |
-
<option value="11" <?php if($cff_author_size == "11") echo 'selected="selected"' ?> >11px</option>
|
3587 |
-
<option value="12" <?php if($cff_author_size == "12") echo 'selected="selected"' ?> >12px</option>
|
3588 |
-
<option value="13" <?php if($cff_author_size == "13") echo 'selected="selected"' ?> >13px</option>
|
3589 |
-
<option value="14" <?php if($cff_author_size == "14") echo 'selected="selected"' ?> >14px</option>
|
3590 |
-
<option value="16" <?php if($cff_author_size == "16") echo 'selected="selected"' ?> >16px</option>
|
3591 |
-
<option value="18" <?php if($cff_author_size == "18") echo 'selected="selected"' ?> >18px</option>
|
3592 |
-
<option value="20" <?php if($cff_author_size == "20") echo 'selected="selected"' ?> >20px</option>
|
3593 |
-
<option value="24" <?php if($cff_author_size == "24") echo 'selected="selected"' ?> >24px</option>
|
3594 |
-
<option value="28" <?php if($cff_author_size == "28") echo 'selected="selected"' ?> >28px</option>
|
3595 |
-
<option value="32" <?php if($cff_author_size == "32") echo 'selected="selected"' ?> >32px</option>
|
3596 |
-
<option value="36" <?php if($cff_author_size == "36") echo 'selected="selected"' ?> >36px</option>
|
3597 |
-
<option value="42" <?php if($cff_author_size == "42") echo 'selected="selected"' ?> >42px</option>
|
3598 |
-
<option value="48" <?php if($cff_author_size == "48") echo 'selected="selected"' ?> >48px</option>
|
3599 |
-
<option value="54" <?php if($cff_author_size == "54") echo 'selected="selected"' ?> >54px</option>
|
3600 |
-
<option value="60" <?php if($cff_author_size == "60") echo 'selected="selected"' ?> >60px</option>
|
3601 |
-
</select>
|
3602 |
-
</td>
|
3603 |
-
</tr>
|
3604 |
-
<tr>
|
3605 |
-
<th class="bump-left"><label for="cff_author_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> authorcolor
|
3606 |
-
Eg: authorcolor=ff0000</code></th>
|
3607 |
-
<td>
|
3608 |
-
<input name="cff_author_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_author_color) ); ?>" class="cff-colorpicker" />
|
3609 |
-
</td>
|
3610 |
-
</tr>
|
3611 |
-
<tr id="text"><!-- Quick link --></tr>
|
3612 |
-
</tbody>
|
3613 |
-
</table>
|
3614 |
-
|
3615 |
-
<div style="margin-top: -15px;">
|
3616 |
-
<?php submit_button(); ?>
|
3617 |
-
</div>
|
3618 |
-
|
3619 |
-
<hr />
|
3620 |
-
|
3621 |
-
<h3><?php _e('Post Text'); ?></h3>
|
3622 |
-
<table class="form-table">
|
3623 |
-
<tbody>
|
3624 |
-
<tr valign="top">
|
3625 |
-
<th class="bump-left" scope="row"><label class="bump-left"><?php _e('Maximum Post Text Length'); ?></label><code class="cff_shortcode"> textlength
|
3626 |
-
Eg: textlength=200</code></th>
|
3627 |
-
<td>
|
3628 |
-
<input name="cff_title_length" type="text" value="<?php esc_attr_e( $cff_title_length_val ); ?>" size="4" /><span class="cff-pixel-label"><?php _e('Characters'); ?></span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Eg. 200'); ?></i>
|
3629 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3630 |
-
<p class="cff-tooltip cff-more-info"><?php _e("If the post text exceeds this length then a 'See More' link will be added. Leave empty to set no maximum length."); ?></p>
|
3631 |
-
</td>
|
3632 |
-
</tr>
|
3633 |
-
<tr>
|
3634 |
-
<th class="bump-left"><label for="cff_title_format" class="bump-left"><?php _e('Format'); ?></label><code class="cff_shortcode"> textformat
|
3635 |
-
Eg: textformat=h4</code></th>
|
3636 |
-
<td>
|
3637 |
-
<select name="cff_title_format" class="cff-text-size-setting">
|
3638 |
-
<option value="p" <?php if($cff_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
|
3639 |
-
<option value="h3" <?php if($cff_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
|
3640 |
-
<option value="h4" <?php if($cff_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
|
3641 |
-
<option value="h5" <?php if($cff_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
|
3642 |
-
<option value="h6" <?php if($cff_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
|
3643 |
-
</select>
|
3644 |
-
</td>
|
3645 |
-
</tr>
|
3646 |
-
<tr>
|
3647 |
-
<th class="bump-left"><label for="cff_title_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> textsize
|
3648 |
-
Eg: textsize=12</code></th>
|
3649 |
-
<td>
|
3650 |
-
<select name="cff_title_size" class="cff-text-size-setting">
|
3651 |
-
<option value="inherit" <?php if($cff_title_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
3652 |
-
<option value="10" <?php if($cff_title_size == "10") echo 'selected="selected"' ?> >10px</option>
|
3653 |
-
<option value="11" <?php if($cff_title_size == "11") echo 'selected="selected"' ?> >11px</option>
|
3654 |
-
<option value="12" <?php if($cff_title_size == "12") echo 'selected="selected"' ?> >12px</option>
|
3655 |
-
<option value="13" <?php if($cff_title_size == "13") echo 'selected="selected"' ?> >13px</option>
|
3656 |
-
<option value="14" <?php if($cff_title_size == "14") echo 'selected="selected"' ?> >14px</option>
|
3657 |
-
<option value="16" <?php if($cff_title_size == "16") echo 'selected="selected"' ?> >16px</option>
|
3658 |
-
<option value="18" <?php if($cff_title_size == "18") echo 'selected="selected"' ?> >18px</option>
|
3659 |
-
<option value="20" <?php if($cff_title_size == "20") echo 'selected="selected"' ?> >20px</option>
|
3660 |
-
<option value="24" <?php if($cff_title_size == "24") echo 'selected="selected"' ?> >24px</option>
|
3661 |
-
<option value="28" <?php if($cff_title_size == "28") echo 'selected="selected"' ?> >28px</option>
|
3662 |
-
<option value="32" <?php if($cff_title_size == "32") echo 'selected="selected"' ?> >32px</option>
|
3663 |
-
<option value="36" <?php if($cff_title_size == "36") echo 'selected="selected"' ?> >36px</option>
|
3664 |
-
<option value="42" <?php if($cff_title_size == "42") echo 'selected="selected"' ?> >42px</option>
|
3665 |
-
<option value="48" <?php if($cff_title_size == "48") echo 'selected="selected"' ?> >48px</option>
|
3666 |
-
<option value="54" <?php if($cff_title_size == "54") echo 'selected="selected"' ?> >54px</option>
|
3667 |
-
<option value="60" <?php if($cff_title_size == "60") echo 'selected="selected"' ?> >60px</option>
|
3668 |
-
</select>
|
3669 |
-
</td>
|
3670 |
-
</tr>
|
3671 |
-
<tr>
|
3672 |
-
<th class="bump-left"><label for="cff_title_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> textweight
|
3673 |
-
Eg: textweight=bold</code></th>
|
3674 |
-
<td>
|
3675 |
-
<select name="cff_title_weight" class="cff-text-size-setting">
|
3676 |
-
<option value="inherit" <?php if($cff_title_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
3677 |
-
<option value="normal" <?php if($cff_title_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
3678 |
-
<option value="bold" <?php if($cff_title_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
3679 |
-
</select>
|
3680 |
-
</td>
|
3681 |
-
</tr>
|
3682 |
-
<tr>
|
3683 |
-
<th class="bump-left"><label for="cff_title_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> textcolor
|
3684 |
-
Eg: textcolor=333</code></th>
|
3685 |
-
<td>
|
3686 |
-
<input name="cff_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_title_color) ); ?>" class="cff-colorpicker" />
|
3687 |
-
</td>
|
3688 |
-
</tr>
|
3689 |
-
<tr>
|
3690 |
-
<th class="bump-left"><label for="cff_posttext_link_color" class="bump-left"><?php _e('Link Color'); ?></label><code class="cff_shortcode"> textlinkcolor
|
3691 |
-
Eg: textlinkcolor=E69100</code></th>
|
3692 |
-
<td>
|
3693 |
-
<input name="cff_posttext_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_posttext_link_color) ); ?>" class="cff-colorpicker" />
|
3694 |
-
</td>
|
3695 |
-
</tr>
|
3696 |
-
<tr>
|
3697 |
-
<th class="bump-left"><label for="cff_title_link" class="bump-left"><?php _e('Link Text to Facebook Post'); ?></label><code class="cff_shortcode"> textlink
|
3698 |
-
Eg: textlink=true</code></th>
|
3699 |
-
<td><input type="checkbox" name="cff_title_link" id="cff_title_link" <?php if($cff_title_link == true) echo 'checked="checked"' ?> /></td>
|
3700 |
-
</tr>
|
3701 |
-
|
3702 |
-
<tr>
|
3703 |
-
<th class="bump-left"><label for="cff_post_tags" class="bump-left"><?php _e('Link Post Tags'); ?></label><code class="cff_shortcode"> posttags
|
3704 |
-
Eg: posttags=false</code></th>
|
3705 |
-
<td>
|
3706 |
-
<input type="checkbox" name="cff_post_tags" id="cff_post_tags" <?php if($cff_post_tags == true) echo 'checked="checked"' ?> />
|
3707 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What are Post Tags?'); ?></a>
|
3708 |
-
<p class="cff-tooltip cff-more-info"><?php _e("When you tag another Facebook page or user in your post using the @ symbol it creates a post tag, which is a link to either that Facebook page or user profile."); ?></p>
|
3709 |
-
</td>
|
3710 |
-
</tr>
|
3711 |
-
|
3712 |
-
<tr>
|
3713 |
-
<th class="bump-left"><label for="cff_link_hashtags" class="bump-left"><?php _e('Link Hashtags'); ?></label><code class="cff_shortcode"> linkhashtags
|
3714 |
-
Eg: linkhashtags=false</code></th>
|
3715 |
-
<td>
|
3716 |
-
<input type="checkbox" name="cff_link_hashtags" id="cff_link_hashtags" <?php if($cff_link_hashtags == true) echo 'checked="checked"' ?> />
|
3717 |
-
</td>
|
3718 |
-
</tr>
|
3719 |
-
<tr id="description"><!-- Quick link --></tr>
|
3720 |
-
</tbody>
|
3721 |
-
</table>
|
3722 |
-
|
3723 |
-
<hr />
|
3724 |
-
|
3725 |
-
<h3><?php _e('Shared Post Description'); ?></h3>
|
3726 |
-
<table class="form-table">
|
3727 |
-
<tbody>
|
3728 |
-
<tr>
|
3729 |
-
<th class="bump-left"><label for="cff_body_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> descsize
|
3730 |
-
Eg: descsize=11</code></th>
|
3731 |
-
<td>
|
3732 |
-
<select name="cff_body_size" class="cff-text-size-setting">
|
3733 |
-
<option value="inherit" <?php if($cff_body_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
3734 |
-
<option value="10" <?php if($cff_body_size == "10") echo 'selected="selected"' ?> >10px</option>
|
3735 |
-
<option value="11" <?php if($cff_body_size == "11") echo 'selected="selected"' ?> >11px</option>
|
3736 |
-
<option value="12" <?php if($cff_body_size == "12") echo 'selected="selected"' ?> >12px</option>
|
3737 |
-
<option value="13" <?php if($cff_body_size == "13") echo 'selected="selected"' ?> >13px</option>
|
3738 |
-
<option value="14" <?php if($cff_body_size == "14") echo 'selected="selected"' ?> >14px</option>
|
3739 |
-
<option value="16" <?php if($cff_body_size == "16") echo 'selected="selected"' ?> >16px</option>
|
3740 |
-
<option value="18" <?php if($cff_body_size == "18") echo 'selected="selected"' ?> >18px</option>
|
3741 |
-
<option value="20" <?php if($cff_body_size == "20") echo 'selected="selected"' ?> >20px</option>
|
3742 |
-
<option value="24" <?php if($cff_body_size == "24") echo 'selected="selected"' ?> >24px</option>
|
3743 |
-
<option value="28" <?php if($cff_body_size == "28") echo 'selected="selected"' ?> >28px</option>
|
3744 |
-
<option value="32" <?php if($cff_body_size == "32") echo 'selected="selected"' ?> >32px</option>
|
3745 |
-
<option value="36" <?php if($cff_body_size == "36") echo 'selected="selected"' ?> >36px</option>
|
3746 |
-
<option value="42" <?php if($cff_body_size == "42") echo 'selected="selected"' ?> >42px</option>
|
3747 |
-
<option value="48" <?php if($cff_body_size == "48") echo 'selected="selected"' ?> >48px</option>
|
3748 |
-
<option value="54" <?php if($cff_body_size == "54") echo 'selected="selected"' ?> >54px</option>
|
3749 |
-
<option value="60" <?php if($cff_body_size == "60") echo 'selected="selected"' ?> >60px</option>
|
3750 |
-
</select>
|
3751 |
-
</td>
|
3752 |
-
</tr>
|
3753 |
-
<tr>
|
3754 |
-
<th class="bump-left"><label for="cff_body_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> descweight
|
3755 |
-
Eg: descweight=bold</code></th>
|
3756 |
-
<td>
|
3757 |
-
<select name="cff_body_weight" class="cff-text-size-setting">
|
3758 |
-
<option value="inherit" <?php if($cff_body_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
3759 |
-
<option value="normal" <?php if($cff_body_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
3760 |
-
<option value="bold" <?php if($cff_body_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
3761 |
-
</select>
|
3762 |
-
</td>
|
3763 |
-
</tr>
|
3764 |
-
<tr>
|
3765 |
-
<th class="bump-left"><label for="cff_body_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> desccolor
|
3766 |
-
Eg: desccolor=9F9F9F</code></th>
|
3767 |
-
|
3768 |
-
<td>
|
3769 |
-
<input name="cff_body_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_body_color) ); ?>" class="cff-colorpicker" />
|
3770 |
-
</td>
|
3771 |
-
</tr>
|
3772 |
-
<tr id="date"><!-- Quick link --></tr>
|
3773 |
-
</tbody>
|
3774 |
-
</table>
|
3775 |
-
|
3776 |
-
<div style="margin-top: -15px;">
|
3777 |
-
<?php submit_button(); ?>
|
3778 |
-
</div>
|
3779 |
-
<hr />
|
3780 |
-
|
3781 |
-
<h3><?php _e('Post Date'); ?></h3>
|
3782 |
-
<table class="form-table">
|
3783 |
-
<tbody>
|
3784 |
-
<tr>
|
3785 |
-
<th class="bump-left"><label for="cff_date_position" class="bump-left"><?php _e('Position'); ?></label><code class="cff_shortcode"> datepos
|
3786 |
-
Eg: datepos=below</code></th>
|
3787 |
-
<td>
|
3788 |
-
<select name="cff_date_position" style="width: 300px;">
|
3789 |
-
<option value="author" <?php if($cff_date_position == "author") echo 'selected="selected"' ?> >Immediately under the post author</option>
|
3790 |
-
<option value="above" <?php if($cff_date_position == "above") echo 'selected="selected"' ?> >At the top of the post</option>
|
3791 |
-
<option value="below" <?php if($cff_date_position == "below") echo 'selected="selected"' ?> >At the bottom of the post</option>
|
3792 |
-
</select>
|
3793 |
-
</td>
|
3794 |
-
</tr>
|
3795 |
-
<tr>
|
3796 |
-
<th class="bump-left"><label for="cff_date_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> datesize
|
3797 |
-
Eg: datesize=14</code></th>
|
3798 |
-
<td>
|
3799 |
-
<select name="cff_date_size" class="cff-text-size-setting">
|
3800 |
-
<option value="inherit" <?php if($cff_date_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
3801 |
-
<option value="10" <?php if($cff_date_size == "10") echo 'selected="selected"' ?> >10px</option>
|
3802 |
-
<option value="11" <?php if($cff_date_size == "11") echo 'selected="selected"' ?> >11px</option>
|
3803 |
-
<option value="12" <?php if($cff_date_size == "12") echo 'selected="selected"' ?> >12px</option>
|
3804 |
-
<option value="13" <?php if($cff_date_size == "13") echo 'selected="selected"' ?> >13px</option>
|
3805 |
-
<option value="14" <?php if($cff_date_size == "14") echo 'selected="selected"' ?> >14px</option>
|
3806 |
-
<option value="16" <?php if($cff_date_size == "16") echo 'selected="selected"' ?> >16px</option>
|
3807 |
-
<option value="18" <?php if($cff_date_size == "18") echo 'selected="selected"' ?> >18px</option>
|
3808 |
-
<option value="20" <?php if($cff_date_size == "20") echo 'selected="selected"' ?> >20px</option>
|
3809 |
-
<option value="24" <?php if($cff_date_size == "24") echo 'selected="selected"' ?> >24px</option>
|
3810 |
-
<option value="28" <?php if($cff_date_size == "28") echo 'selected="selected"' ?> >28px</option>
|
3811 |
-
<option value="32" <?php if($cff_date_size == "32") echo 'selected="selected"' ?> >32px</option>
|
3812 |
-
<option value="36" <?php if($cff_date_size == "36") echo 'selected="selected"' ?> >36px</option>
|
3813 |
-
<option value="42" <?php if($cff_date_size == "42") echo 'selected="selected"' ?> >42px</option>
|
3814 |
-
<option value="48" <?php if($cff_date_size == "48") echo 'selected="selected"' ?> >48px</option>
|
3815 |
-
<option value="54" <?php if($cff_date_size == "54") echo 'selected="selected"' ?> >54px</option>
|
3816 |
-
<option value="60" <?php if($cff_date_size == "60") echo 'selected="selected"' ?> >60px</option>
|
3817 |
-
</select>
|
3818 |
-
</td>
|
3819 |
-
</tr>
|
3820 |
-
<tr>
|
3821 |
-
<th class="bump-left"><label for="cff_date_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> dateweight
|
3822 |
-
Eg: dateweight=normal</code></th>
|
3823 |
-
<td>
|
3824 |
-
<select name="cff_date_weight" class="cff-text-size-setting">
|
3825 |
-
<option value="inherit" <?php if($cff_date_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
3826 |
-
<option value="normal" <?php if($cff_date_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
3827 |
-
<option value="bold" <?php if($cff_date_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
3828 |
-
</select>
|
3829 |
-
</td>
|
3830 |
-
</tr>
|
3831 |
-
<tr>
|
3832 |
-
<th class="bump-left"><label for="cff_date_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> datecolor
|
3833 |
-
Eg: datecolor=EAD114</code></th>
|
3834 |
-
<td>
|
3835 |
-
<input name="cff_date_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_date_color) ); ?>" class="cff-colorpicker" />
|
3836 |
-
</td>
|
3837 |
-
</tr>
|
3838 |
-
|
3839 |
-
<tr>
|
3840 |
-
<th class="bump-left"><label for="cff_date_formatting" class="bump-left"><?php _e('Date Formatting'); ?></label><code class="cff_shortcode"> dateformat
|
3841 |
-
Eg: dateformat=3</code></th>
|
3842 |
-
<td>
|
3843 |
-
<select name="cff_date_formatting" style="width: 300px;">
|
3844 |
-
<?php $original = strtotime('2016-07-25T17:30:00+0000'); ?>
|
3845 |
-
<option value="1" <?php if($cff_date_formatting == "1") echo 'selected="selected"' ?> ><?php _e('2 days ago'); ?></option>
|
3846 |
-
<option value="2" <?php if($cff_date_formatting == "2") echo 'selected="selected"' ?> ><?php echo date('F jS, g:i a', $original); ?></option>
|
3847 |
-
<option value="3" <?php if($cff_date_formatting == "3") echo 'selected="selected"' ?> ><?php echo date('F jS', $original); ?></option>
|
3848 |
-
<option value="4" <?php if($cff_date_formatting == "4") echo 'selected="selected"' ?> ><?php echo date('D F jS', $original); ?></option>
|
3849 |
-
<option value="5" <?php if($cff_date_formatting == "5") echo 'selected="selected"' ?> ><?php echo date('l F jS', $original); ?></option>
|
3850 |
-
<option value="6" <?php if($cff_date_formatting == "6") echo 'selected="selected"' ?> ><?php echo date('D M jS, Y', $original); ?></option>
|
3851 |
-
<option value="7" <?php if($cff_date_formatting == "7") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y', $original); ?></option>
|
3852 |
-
<option value="8" <?php if($cff_date_formatting == "8") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y - g:i a', $original); ?></option>
|
3853 |
-
<option value="9" <?php if($cff_date_formatting == "9") echo 'selected="selected"' ?> ><?php echo date("l M jS, 'y", $original); ?></option>
|
3854 |
-
<option value="10" <?php if($cff_date_formatting == "10") echo 'selected="selected"' ?> ><?php echo date('m.d.y', $original); ?></option>
|
3855 |
-
<option value="18" <?php if($cff_date_formatting == "18") echo 'selected="selected"' ?> ><?php echo date('m.d.y - G:i', $original); ?></option>
|
3856 |
-
<option value="11" <?php if($cff_date_formatting == "11") echo 'selected="selected"' ?> ><?php echo date('m/d/y', $original); ?></option>
|
3857 |
-
<option value="12" <?php if($cff_date_formatting == "12") echo 'selected="selected"' ?> ><?php echo date('d.m.y', $original); ?></option>
|
3858 |
-
<option value="19" <?php if($cff_date_formatting == "19") echo 'selected="selected"' ?> ><?php echo date('d.m.y - G:i', $original); ?></option>
|
3859 |
-
<option value="13" <?php if($cff_date_formatting == "13") echo 'selected="selected"' ?> ><?php echo date('d/m/y', $original); ?></option>
|
3860 |
-
|
3861 |
-
<option value="14" <?php if($cff_date_formatting == "14") echo 'selected="selected"' ?> ><?php echo date('d-m-Y, G:i', $original); ?></option>
|
3862 |
-
<option value="15" <?php if($cff_date_formatting == "15") echo 'selected="selected"' ?> ><?php echo date('jS F Y, G:i', $original); ?></option>
|
3863 |
-
<option value="16" <?php if($cff_date_formatting == "16") echo 'selected="selected"' ?> ><?php echo date('d M Y, G:i', $original); ?></option>
|
3864 |
-
<option value="17" <?php if($cff_date_formatting == "17") echo 'selected="selected"' ?> ><?php echo date('l jS F Y, G:i', $original); ?></option>
|
3865 |
-
</select>
|
3866 |
-
</tr>
|
3867 |
-
|
3868 |
-
<tr>
|
3869 |
-
<th class="bump-left"><label for="cff_timezone" class="bump-left"><?php _e('Timezone'); ?></label><code class="cff_shortcode"> timezone
|
3870 |
-
Eg: timezone="America/New_York"
|
3871 |
-
<a href="http://php.net/manual/en/timezones.php" target="_blank">See full list</a></code></th>
|
3872 |
-
<td>
|
3873 |
-
<select name="cff_timezone" style="width: 300px;">
|
3874 |
-
<option value="Pacific/Midway" <?php if($cff_timezone == "Pacific/Midway") echo 'selected="selected"' ?> ><?php _e('(GMT-11:00) Midway Island, Samoa'); ?></option>
|
3875 |
-
<option value="America/Adak" <?php if($cff_timezone == "America/Adak") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii-Aleutian'); ?></option>
|
3876 |
-
<option value="Etc/GMT+10" <?php if($cff_timezone == "Etc/GMT+10") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii'); ?></option>
|
3877 |
-
<option value="Pacific/Marquesas" <?php if($cff_timezone == "Pacific/Marquesas") echo 'selected="selected"' ?> ><?php _e('(GMT-09:30) Marquesas Islands'); ?></option>
|
3878 |
-
<option value="Pacific/Gambier" <?php if($cff_timezone == "Pacific/Gambier") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Gambier Islands'); ?></option>
|
3879 |
-
<option value="America/Anchorage" <?php if($cff_timezone == "America/Anchorage") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Alaska'); ?></option>
|
3880 |
-
<option value="America/Ensenada" <?php if($cff_timezone == "America/Ensenada") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Tijuana, Baja California'); ?></option>
|
3881 |
-
<option value="Etc/GMT+8" <?php if($cff_timezone == "Etc/GMT+8") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pitcairn Islands'); ?></option>
|
3882 |
-
<option value="America/Los_Angeles" <?php if($cff_timezone == "America/Los_Angeles") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pacific Time (US & Canada)'); ?></option>
|
3883 |
-
<option value="America/Denver" <?php if($cff_timezone == "America/Denver") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Mountain Time (US & Canada)'); ?></option>
|
3884 |
-
<option value="America/Chihuahua" <?php if($cff_timezone == "America/Chihuahua") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Chihuahua, La Paz, Mazatlan'); ?></option>
|
3885 |
-
<option value="America/Dawson_Creek" <?php if($cff_timezone == "America/Dawson_Creek") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Arizona'); ?></option>
|
3886 |
-
<option value="America/Belize" <?php if($cff_timezone == "America/Belize") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Saskatchewan, Central America'); ?></option>
|
3887 |
-
<option value="America/Cancun" <?php if($cff_timezone == "America/Cancun") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Guadalajara, Mexico City, Monterrey'); ?></option>
|
3888 |
-
<option value="Chile/EasterIsland" <?php if($cff_timezone == "Chile/EasterIsland") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Easter Island'); ?></option>
|
3889 |
-
<option value="America/Chicago" <?php if($cff_timezone == "America/Chicago") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Central Time (US & Canada)'); ?></option>
|
3890 |
-
<option value="America/New_York" <?php if($cff_timezone == "America/New_York") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Eastern Time (US & Canada)'); ?></option>
|
3891 |
-
<option value="America/Havana" <?php if($cff_timezone == "America/Havana") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Cuba'); ?></option>
|
3892 |
-
<option value="America/Bogota" <?php if($cff_timezone == "America/Bogota") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Bogota, Lima, Quito, Rio Branco'); ?></option>
|
3893 |
-
<option value="America/Caracas" <?php if($cff_timezone == "America/Caracas") echo 'selected="selected"' ?> ><?php _e('(GMT-04:30) Caracas'); ?></option>
|
3894 |
-
<option value="America/Santiago" <?php if($cff_timezone == "America/Santiago") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Santiago'); ?></option>
|
3895 |
-
<option value="America/La_Paz" <?php if($cff_timezone == "America/La_Paz") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) La Paz'); ?></option>
|
3896 |
-
<option value="Atlantic/Stanley" <?php if($cff_timezone == "Atlantic/Stanley") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Faukland Islands'); ?></option>
|
3897 |
-
<option value="America/Campo_Grande" <?php if($cff_timezone == "America/Campo_Grande") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Brazil'); ?></option>
|
3898 |
-
<option value="America/Goose_Bay" <?php if($cff_timezone == "America/Goose_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Goose Bay)'); ?></option>
|
3899 |
-
<option value="America/Glace_Bay" <?php if($cff_timezone == "America/Glace_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Canada)'); ?></option>
|
3900 |
-
<option value="America/St_Johns" <?php if($cff_timezone == "America/St_Johns") echo 'selected="selected"' ?> ><?php _e('(GMT-03:30) Newfoundland'); ?></option>
|
3901 |
-
<option value="America/Araguaina" <?php if($cff_timezone == "America/Araguaina") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) UTC-3'); ?></option>
|
3902 |
-
<option value="America/Montevideo" <?php if($cff_timezone == "America/Montevideo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Montevideo'); ?></option>
|
3903 |
-
<option value="America/Miquelon" <?php if($cff_timezone == "America/Miquelon") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Miquelon, St. Pierre'); ?></option>
|
3904 |
-
<option value="America/Godthab" <?php if($cff_timezone == "America/Godthab") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Greenland'); ?></option>
|
3905 |
-
<option value="America/Argentina/Buenos_Aires" <?php if($cff_timezone == "America/Argentina/Buenos_Aires") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Buenos Aires'); ?></option>
|
3906 |
-
<option value="America/Sao_Paulo" <?php if($cff_timezone == "America/Sao_Paulo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Brasilia'); ?></option>
|
3907 |
-
<option value="America/Noronha" <?php if($cff_timezone == "America/Noronha") echo 'selected="selected"' ?> ><?php _e('(GMT-02:00) Mid-Atlantic'); ?></option>
|
3908 |
-
<option value="Atlantic/Cape_Verde" <?php if($cff_timezone == "Atlantic/Cape_Verde") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Cape Verde Is.'); ?></option>
|
3909 |
-
<option value="Atlantic/Azores" <?php if($cff_timezone == "Atlantic/Azores") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Azores'); ?></option>
|
3910 |
-
<option value="Europe/Belfast" <?php if($cff_timezone == "Europe/Belfast") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Belfast'); ?></option>
|
3911 |
-
<option value="Europe/Dublin" <?php if($cff_timezone == "Europe/Dublin") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Dublin'); ?></option>
|
3912 |
-
<option value="Europe/Lisbon" <?php if($cff_timezone == "Europe/Lisbon") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Lisbon'); ?></option>
|
3913 |
-
<option value="Europe/London" <?php if($cff_timezone == "Europe/London") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : London'); ?></option>
|
3914 |
-
<option value="Africa/Abidjan" <?php if($cff_timezone == "Africa/Abidjan") echo 'selected="selected"' ?> ><?php _e('(GMT) Monrovia, Reykjavik'); ?></option>
|
3915 |
-
<option value="Europe/Amsterdam" <?php if($cff_timezone == "Europe/Amsterdam") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna'); ?></option>
|
3916 |
-
<option value="Europe/Belgrade" <?php if($cff_timezone == "Europe/Belgrade") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague'); ?></option>
|
3917 |
-
<option value="Europe/Brussels" <?php if($cff_timezone == "Europe/Brussels") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Brussels, Copenhagen, Madrid, Paris'); ?></option>
|
3918 |
-
<option value="Africa/Algiers" <?php if($cff_timezone == "Africa/Algiers") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) West Central Africa'); ?></option>
|
3919 |
-
<option value="Africa/Windhoek" <?php if($cff_timezone == "Africa/Windhoek") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Windhoek'); ?></option>
|
3920 |
-
<option value="Asia/Beirut" <?php if($cff_timezone == "Asia/Beirut") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Beirut'); ?></option>
|
3921 |
-
<option value="Africa/Cairo" <?php if($cff_timezone == "Africa/Cairo") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Cairo'); ?></option>
|
3922 |
-
<option value="Asia/Gaza" <?php if($cff_timezone == "Asia/Gaza") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Gaza'); ?></option>
|
3923 |
-
<option value="Africa/Blantyre" <?php if($cff_timezone == "Africa/Blantyre") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Harare, Pretoria'); ?></option>
|
3924 |
-
<option value="Asia/Jerusalem" <?php if($cff_timezone == "Asia/Jerusalem") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Jerusalem'); ?></option>
|
3925 |
-
<option value="Europe/Helsinki" <?php if($cff_timezone == "Europe/Helsinki") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Helsinki'); ?></option>
|
3926 |
-
<option value="Europe/Minsk" <?php if($cff_timezone == "Europe/Minsk") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Minsk'); ?></option>
|
3927 |
-
<option value="Asia/Damascus" <?php if($cff_timezone == "Asia/Damascus") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Syria'); ?></option>
|
3928 |
-
<option value="Europe/Moscow" <?php if($cff_timezone == "Europe/Moscow") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Moscow, St. Petersburg, Volgograd'); ?></option>
|
3929 |
-
<option value="Africa/Addis_Ababa" <?php if($cff_timezone == "Africa/Addis_Ababa") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Nairobi'); ?></option>
|
3930 |
-
<option value="Asia/Tehran" <?php if($cff_timezone == "Asia/Tehran") echo 'selected="selected"' ?> ><?php _e('(GMT+03:30) Tehran'); ?></option>
|
3931 |
-
<option value="Asia/Dubai" <?php if($cff_timezone == "Asia/Dubai") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Abu Dhabi, Muscat'); ?></option>
|
3932 |
-
<option value="Asia/Yerevan" <?php if($cff_timezone == "Asia/Yerevan") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Yerevan'); ?></option>
|
3933 |
-
<option value="Asia/Kabul" <?php if($cff_timezone == "Asia/Kabul") echo 'selected="selected"' ?> ><?php _e('(GMT+04:30) Kabul'); ?></option>
|
3934 |
-
<option value="Asia/Yekaterinburg" <?php if($cff_timezone == "Asia/Yekaterinburg") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Ekaterinburg'); ?></option>
|
3935 |
-
<option value="Asia/Tashkent" <?php if($cff_timezone == "Asia/Tashkent") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Tashkent'); ?></option>
|
3936 |
-
<option value="Asia/Kolkata" <?php if($cff_timezone == "Asia/Kolkata") echo 'selected="selected"' ?> ><?php _e('(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi'); ?></option>
|
3937 |
-
<option value="Asia/Katmandu" <?php if($cff_timezone == "Asia/Katmandu") echo 'selected="selected"' ?> ><?php _e('(GMT+05:45) Kathmandu'); ?></option>
|
3938 |
-
<option value="Asia/Dhaka" <?php if($cff_timezone == "Asia/Dhaka") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Astana, Dhaka'); ?></option>
|
3939 |
-
<option value="Asia/Novosibirsk" <?php if($cff_timezone == "Asia/Novosibirsk") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Novosibirsk'); ?></option>
|
3940 |
-
<option value="Asia/Rangoon" <?php if($cff_timezone == "Asia/Rangoon") echo 'selected="selected"' ?> ><?php _e('(GMT+06:30) Yangon (Rangoon)'); ?></option>
|
3941 |
-
<option value="Asia/Bangkok" <?php if($cff_timezone == "Asia/Bangkok") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Bangkok, Hanoi, Jakarta'); ?></option>
|
3942 |
-
<option value="Asia/Krasnoyarsk" <?php if($cff_timezone == "Asia/Krasnoyarsk") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Krasnoyarsk'); ?></option>
|
3943 |
-
<option value="Asia/Hong_Kong" <?php if($cff_timezone == "Asia/Hong_Kong") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi'); ?></option>
|
3944 |
-
<option value="Asia/Irkutsk" <?php if($cff_timezone == "Asia/Irkutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Irkutsk, Ulaan Bataar'); ?></option>
|
3945 |
-
<option value="Australia/Perth" <?php if($cff_timezone == "Australia/Perth") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Perth'); ?></option>
|
3946 |
-
<option value="Australia/Eucla" <?php if($cff_timezone == "Australia/Eucla") echo 'selected="selected"' ?> ><?php _e('(GMT+08:45) Eucla'); ?></option>
|
3947 |
-
<option value="Asia/Tokyo" <?php if($cff_timezone == "Asia/Tokyo") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Osaka, Sapporo, Tokyo'); ?></option>
|
3948 |
-
<option value="Asia/Seoul" <?php if($cff_timezone == "Asia/Seoul") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Seoul'); ?></option>
|
3949 |
-
<option value="Asia/Yakutsk" <?php if($cff_timezone == "Asia/Yakutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Yakutsk'); ?></option>
|
3950 |
-
<option value="Australia/Adelaide" <?php if($cff_timezone == "Australia/Adelaide") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Adelaide'); ?></option>
|
3951 |
-
<option value="Australia/Darwin" <?php if($cff_timezone == "Australia/Darwin") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Darwin'); ?></option>
|
3952 |
-
<option value="Australia/Brisbane" <?php if($cff_timezone == "Australia/Brisbane") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Brisbane'); ?></option>
|
3953 |
-
<option value="Australia/Hobart" <?php if($cff_timezone == "Australia/Hobart") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Hobart'); ?></option>
|
3954 |
-
<option value="Asia/Vladivostok" <?php if($cff_timezone == "Asia/Vladivostok") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Vladivostok'); ?></option>
|
3955 |
-
<option value="Australia/Lord_Howe" <?php if($cff_timezone == "Australia/Lord_Howe") echo 'selected="selected"' ?> ><?php _e('(GMT+10:30) Lord Howe Island'); ?></option>
|
3956 |
-
<option value="Etc/GMT-11" <?php if($cff_timezone == "Etc/GMT-11") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Solomon Is., New Caledonia'); ?></option>
|
3957 |
-
<option value="Asia/Magadan" <?php if($cff_timezone == "Asia/Magadan") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Magadan'); ?></option>
|
3958 |
-
<option value="Pacific/Norfolk" <?php if($cff_timezone == "Pacific/Norfolk") echo 'selected="selected"' ?> ><?php _e('(GMT+11:30) Norfolk Island'); ?></option>
|
3959 |
-
<option value="Asia/Anadyr" <?php if($cff_timezone == "Asia/Anadyr") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Anadyr, Kamchatka'); ?></option>
|
3960 |
-
<option value="Pacific/Auckland" <?php if($cff_timezone == "Pacific/Auckland") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Auckland, Wellington'); ?></option>
|
3961 |
-
<option value="Etc/GMT-12" <?php if($cff_timezone == "Etc/GMT-12") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Fiji, Kamchatka, Marshall Is.'); ?></option>
|
3962 |
-
<option value="Pacific/Chatham" <?php if($cff_timezone == "Pacific/Chatham") echo 'selected="selected"' ?> ><?php _e('(GMT+12:45) Chatham Islands'); ?></option>
|
3963 |
-
<option value="Pacific/Tongatapu" <?php if($cff_timezone == "Pacific/Tongatapu") echo 'selected="selected"' ?> ><?php _e('(GMT+13:00) Nuku\'alofa'); ?></option>
|
3964 |
-
<option value="Pacific/Kiritimati" <?php if($cff_timezone == "Pacific/Kiritimati") echo 'selected="selected"' ?> ><?php _e('(GMT+14:00) Kiritimati'); ?></option>
|
3965 |
-
</select>
|
3966 |
-
</td>
|
3967 |
-
</tr>
|
3968 |
-
|
3969 |
-
<tr>
|
3970 |
-
<th class="bump-left"><label for="cff_date_custom" class="bump-left"><?php _e('Custom Format'); ?></label><code class="cff_shortcode"> datecustom
|
3971 |
-
Eg: datecustom='D M jS, Y'</code></th>
|
3972 |
-
<td>
|
3973 |
-
<input name="cff_date_custom" type="text" value="<?php esc_attr_e( $cff_date_custom ); ?>" size="10" placeholder="Eg. F j, Y" />
|
3974 |
-
<a href="http://smashballoon.com/custom-facebook-feed/docs/date/" class="cff-external-link" target="_blank"><?php _e('Examples'); ?></a>
|
3975 |
-
</td>
|
3976 |
-
</tr>
|
3977 |
-
<tr>
|
3978 |
-
<th class="bump-left"><label for="cff_date_before" class="bump-left"><?php _e('Text Before Date'); ?></label><code class="cff_shortcode"> beforedate
|
3979 |
-
Eg: beforedate='Posted'</code></th>
|
3980 |
-
<td>
|
3981 |
-
<input name="cff_date_before" type="text" value="<?php esc_attr_e( $cff_date_before ); ?>" size="20" placeholder="Eg. Posted" />
|
3982 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3983 |
-
<p class="cff-tooltip cff-more-info"><?php _e('You can add custom text here to display immediately <b>before</b> the date text'); ?></p>
|
3984 |
-
</td>
|
3985 |
-
</tr>
|
3986 |
-
<tr>
|
3987 |
-
<th class="bump-left"><label for="cff_date_after" class="bump-left"><?php _e('Text After Date'); ?></label><code class="cff_shortcode"> afterdate
|
3988 |
-
Eg: afterdate='Ago'</code></th>
|
3989 |
-
<td>
|
3990 |
-
<input name="cff_date_after" type="text" value="<?php esc_attr_e( $cff_date_after ); ?>" size="20" placeholder="Eg. by ___" />
|
3991 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
3992 |
-
<p class="cff-tooltip cff-more-info"><?php _e('You can add custom text here to display immediately <b>after</b> the date text'); ?></p>
|
3993 |
-
</td>
|
3994 |
-
</tr>
|
3995 |
-
<tr id="links"><!-- Quick link --></tr>
|
3996 |
-
</tbody>
|
3997 |
-
</table>
|
3998 |
-
|
3999 |
-
<hr />
|
4000 |
-
|
4001 |
-
|
4002 |
-
<h3><?php _e('Shared Link Boxes'); ?></h3>
|
4003 |
-
<table class="form-table">
|
4004 |
-
<tbody>
|
4005 |
-
|
4006 |
-
<tr class="cff-settings-row-header"><th>Box Style</th></tr>
|
4007 |
-
<tr>
|
4008 |
-
<th class="bump-left"><label for="cff_link_bg_color" class="bump-left"><?php _e('Link Box Background Color'); ?></label><code class="cff_shortcode"> linkbgcolor
|
4009 |
-
Eg: linkbgcolor='EEE'</code></th>
|
4010 |
-
<td>
|
4011 |
-
<input name="cff_link_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_bg_color) ); ?>" class="cff-colorpicker" />
|
4012 |
-
</td>
|
4013 |
-
</tr>
|
4014 |
-
|
4015 |
-
<tr>
|
4016 |
-
<th class="bump-left"><label for="cff_link_border_color" class="bump-left"><?php _e('Link Box Border Color'); ?></label><code class="cff_shortcode"> linkbordercolor
|
4017 |
-
Eg: linkbordercolor='CCC'</code></th>
|
4018 |
-
<td>
|
4019 |
-
<input name="cff_link_border_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_border_color) ); ?>" class="cff-colorpicker" />
|
4020 |
-
</td>
|
4021 |
-
</tr>
|
4022 |
-
|
4023 |
-
<tr>
|
4024 |
-
<th class="bump-left"><label for="cff_disable_link_box" class="bump-left"><?php _e('Remove Background/Border'); ?></label><code class="cff_shortcode"> disablelinkbox
|
4025 |
-
Eg: disablelinkbox=true</code></th>
|
4026 |
-
<td><input type="checkbox" name="cff_disable_link_box" id="cff_disable_link_box" <?php if($cff_disable_link_box == true) echo 'checked="checked"' ?> /></td>
|
4027 |
-
</tr>
|
4028 |
-
|
4029 |
-
<tr class="cff-settings-row-header"><th>Link Title</th></tr>
|
4030 |
-
<tr>
|
4031 |
-
<th class="bump-left"><label for="cff_link_title_format" class="bump-left"><?php _e('Link Title Format'); ?></label><code class="cff_shortcode"> linktitleformat
|
4032 |
-
Eg: linktitleformat='h3'</code></th>
|
4033 |
-
<td>
|
4034 |
-
<select name="cff_link_title_format" class="cff-text-size-setting">
|
4035 |
-
<option value="p" <?php if($cff_link_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
|
4036 |
-
<option value="h3" <?php if($cff_link_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
|
4037 |
-
<option value="h4" <?php if($cff_link_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
|
4038 |
-
<option value="h5" <?php if($cff_link_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
|
4039 |
-
<option value="h6" <?php if($cff_link_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
|
4040 |
-
</select>
|
4041 |
-
</td>
|
4042 |
-
</tr>
|
4043 |
-
<tr>
|
4044 |
-
<th class="bump-left"><label for="cff_link_title_size" class="bump-left"><?php _e('Link Title Size'); ?></label><code class="cff_shortcode"> linktitlesize
|
4045 |
-
Eg: linktitlesize='18'</code></th>
|
4046 |
-
<td>
|
4047 |
-
<select name="cff_link_title_size" class="cff-text-size-setting">
|
4048 |
-
<option value="inherit" <?php if($cff_link_title_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
4049 |
-
<option value="10" <?php if($cff_link_title_size == "10") echo 'selected="selected"' ?> >10px</option>
|
4050 |
-
<option value="11" <?php if($cff_link_title_size == "11") echo 'selected="selected"' ?> >11px</option>
|
4051 |
-
<option value="12" <?php if($cff_link_title_size == "12") echo 'selected="selected"' ?> >12px</option>
|
4052 |
-
<option value="13" <?php if($cff_link_title_size == "13") echo 'selected="selected"' ?> >13px</option>
|
4053 |
-
<option value="14" <?php if($cff_link_title_size == "14") echo 'selected="selected"' ?> >14px</option>
|
4054 |
-
<option value="16" <?php if($cff_link_title_size == "16") echo 'selected="selected"' ?> >16px</option>
|
4055 |
-
<option value="18" <?php if($cff_link_title_size == "18") echo 'selected="selected"' ?> >18px</option>
|
4056 |
-
<option value="20" <?php if($cff_link_title_size == "20") echo 'selected="selected"' ?> >20px</option>
|
4057 |
-
<option value="24" <?php if($cff_link_title_size == "24") echo 'selected="selected"' ?> >24px</option>
|
4058 |
-
<option value="28" <?php if($cff_link_title_size == "28") echo 'selected="selected"' ?> >28px</option>
|
4059 |
-
<option value="32" <?php if($cff_link_title_size == "32") echo 'selected="selected"' ?> >32px</option>
|
4060 |
-
<option value="36" <?php if($cff_link_title_size == "36") echo 'selected="selected"' ?> >36px</option>
|
4061 |
-
<option value="42" <?php if($cff_link_title_size == "42") echo 'selected="selected"' ?> >42px</option>
|
4062 |
-
<option value="48" <?php if($cff_link_title_size == "48") echo 'selected="selected"' ?> >48px</option>
|
4063 |
-
<option value="54" <?php if($cff_link_title_size == "54") echo 'selected="selected"' ?> >54px</option>
|
4064 |
-
<option value="60" <?php if($cff_link_title_size == "60") echo 'selected="selected"' ?> >60px</option>
|
4065 |
-
</select>
|
4066 |
-
</td>
|
4067 |
-
</tr>
|
4068 |
-
<tr>
|
4069 |
-
<th class="bump-left"><label for="cff_link_title_color" class="bump-left"><?php _e('Link Title Color'); ?></label><code class="cff_shortcode"> linktitlecolor
|
4070 |
-
Eg: linktitlecolor='ff0000'</code></th>
|
4071 |
-
<td>
|
4072 |
-
<input name="cff_link_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_title_color) ); ?>" class="cff-colorpicker" />
|
4073 |
-
</td>
|
4074 |
-
</tr>
|
4075 |
-
|
4076 |
-
<tr class="cff-settings-row-header"><th>Link URL</th></tr>
|
4077 |
-
<tr>
|
4078 |
-
<th class="bump-left"><label for="cff_link_url_size" class="bump-left"><?php _e('Link URL Size'); ?></label><code class="cff_shortcode"> linkurlsize
|
4079 |
-
Eg: linkurlsize='12'</code></th>
|
4080 |
-
<td>
|
4081 |
-
<select name="cff_link_url_size" class="cff-text-size-setting">
|
4082 |
-
<option value="inherit" <?php if($cff_link_url_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
4083 |
-
<option value="10" <?php if($cff_link_url_size == "10") echo 'selected="selected"' ?> >10px</option>
|
4084 |
-
<option value="11" <?php if($cff_link_url_size == "11") echo 'selected="selected"' ?> >11px</option>
|
4085 |
-
<option value="12" <?php if($cff_link_url_size == "12") echo 'selected="selected"' ?> >12px</option>
|
4086 |
-
<option value="13" <?php if($cff_link_url_size == "13") echo 'selected="selected"' ?> >13px</option>
|
4087 |
-
<option value="14" <?php if($cff_link_url_size == "14") echo 'selected="selected"' ?> >14px</option>
|
4088 |
-
<option value="16" <?php if($cff_link_url_size == "16") echo 'selected="selected"' ?> >16px</option>
|
4089 |
-
<option value="18" <?php if($cff_link_url_size == "18") echo 'selected="selected"' ?> >18px</option>
|
4090 |
-
<option value="20" <?php if($cff_link_url_size == "20") echo 'selected="selected"' ?> >20px</option>
|
4091 |
-
<option value="24" <?php if($cff_link_url_size == "24") echo 'selected="selected"' ?> >24px</option>
|
4092 |
-
<option value="28" <?php if($cff_link_url_size == "28") echo 'selected="selected"' ?> >28px</option>
|
4093 |
-
<option value="32" <?php if($cff_link_url_size == "32") echo 'selected="selected"' ?> >32px</option>
|
4094 |
-
<option value="36" <?php if($cff_link_url_size == "36") echo 'selected="selected"' ?> >36px</option>
|
4095 |
-
<option value="42" <?php if($cff_link_url_size == "42") echo 'selected="selected"' ?> >42px</option>
|
4096 |
-
<option value="48" <?php if($cff_link_url_size == "48") echo 'selected="selected"' ?> >48px</option>
|
4097 |
-
<option value="54" <?php if($cff_link_url_size == "54") echo 'selected="selected"' ?> >54px</option>
|
4098 |
-
<option value="60" <?php if($cff_link_url_size == "60") echo 'selected="selected"' ?> >60px</option>
|
4099 |
-
</select>
|
4100 |
-
</td>
|
4101 |
-
</tr>
|
4102 |
-
<tr>
|
4103 |
-
<th class="bump-left"><label for="cff_link_url_color" class="bump-left"><?php _e('Link URL Color'); ?></label><code class="cff_shortcode"> linkurlcolor
|
4104 |
-
Eg: linkurlcolor='999999'</code></th>
|
4105 |
-
<td>
|
4106 |
-
<input name="cff_link_url_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_url_color) ); ?>" class="cff-colorpicker" />
|
4107 |
-
</td>
|
4108 |
-
</tr>
|
4109 |
-
|
4110 |
-
<tr class="cff-settings-row-header"><th>Link Description</th></tr>
|
4111 |
-
|
4112 |
-
<tr>
|
4113 |
-
<th class="bump-left"><label for="cff_link_desc_size" class="bump-left"><?php _e('Link Description Size'); ?></label><code class="cff_shortcode"> linkdescsize
|
4114 |
-
Eg: linkdescsize='14'</code></th>
|
4115 |
-
<td>
|
4116 |
-
<select name="cff_link_desc_size" class="cff-text-size-setting">
|
4117 |
-
<option value="inherit" <?php if($cff_link_desc_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
4118 |
-
<option value="10" <?php if($cff_link_desc_size == "10") echo 'selected="selected"' ?> >10px</option>
|
4119 |
-
<option value="11" <?php if($cff_link_desc_size == "11") echo 'selected="selected"' ?> >11px</option>
|
4120 |
-
<option value="12" <?php if($cff_link_desc_size == "12") echo 'selected="selected"' ?> >12px</option>
|
4121 |
-
<option value="13" <?php if($cff_link_desc_size == "13") echo 'selected="selected"' ?> >13px</option>
|
4122 |
-
<option value="14" <?php if($cff_link_desc_size == "14") echo 'selected="selected"' ?> >14px</option>
|
4123 |
-
<option value="16" <?php if($cff_link_desc_size == "16") echo 'selected="selected"' ?> >16px</option>
|
4124 |
-
<option value="18" <?php if($cff_link_desc_size == "18") echo 'selected="selected"' ?> >18px</option>
|
4125 |
-
<option value="20" <?php if($cff_link_desc_size == "20") echo 'selected="selected"' ?> >20px</option>
|
4126 |
-
<option value="24" <?php if($cff_link_desc_size == "24") echo 'selected="selected"' ?> >24px</option>
|
4127 |
-
<option value="28" <?php if($cff_link_desc_size == "28") echo 'selected="selected"' ?> >28px</option>
|
4128 |
-
<option value="32" <?php if($cff_link_desc_size == "32") echo 'selected="selected"' ?> >32px</option>
|
4129 |
-
<option value="36" <?php if($cff_link_desc_size == "36") echo 'selected="selected"' ?> >36px</option>
|
4130 |
-
<option value="42" <?php if($cff_link_desc_size == "42") echo 'selected="selected"' ?> >42px</option>
|
4131 |
-
<option value="48" <?php if($cff_link_desc_size == "48") echo 'selected="selected"' ?> >48px</option>
|
4132 |
-
<option value="54" <?php if($cff_link_desc_size == "54") echo 'selected="selected"' ?> >54px</option>
|
4133 |
-
<option value="60" <?php if($cff_link_desc_size == "60") echo 'selected="selected"' ?> >60px</option>
|
4134 |
-
</select>
|
4135 |
-
</td>
|
4136 |
-
</tr>
|
4137 |
-
|
4138 |
-
<tr>
|
4139 |
-
<th class="bump-left"><label for="cff_link_desc_color" class="bump-left"><?php _e('Link Description Color'); ?></label><code class="cff_shortcode"> linkdesccolor
|
4140 |
-
Eg: linkdesccolor='ff0000'</code></th>
|
4141 |
-
<td>
|
4142 |
-
<input name="cff_link_desc_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_desc_color) ); ?>" class="cff-colorpicker" />
|
4143 |
-
</td>
|
4144 |
-
</tr>
|
4145 |
-
|
4146 |
-
<tr valign="top">
|
4147 |
-
<th class="bump-left" scope="row"><label class="bump-left"><?php _e('Maximum Link Description Length'); ?></label><code class="cff_shortcode"> desclength
|
4148 |
-
Eg: desclength=150</code></th>
|
4149 |
-
<td>
|
4150 |
-
<input name="cff_body_length" type="text" value="<?php esc_attr_e( $cff_body_length_val ); ?>" size="4" /><span class="cff-pixel-label"><?php _e('Characters'); ?></span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Eg. 200'); ?></i>
|
4151 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
4152 |
-
<p class="cff-tooltip cff-more-info"><?php _e("If the link description text exceeds this length then it will be truncated with an ellipsis. Leave empty to set no maximum length."); ?></p>
|
4153 |
-
</td>
|
4154 |
-
</tr>
|
4155 |
-
<tr id="eventtitle"><!-- Quick link --></tr>
|
4156 |
-
</tbody>
|
4157 |
-
</table>
|
4158 |
-
|
4159 |
-
<div style="margin-top: -15px;">
|
4160 |
-
<?php submit_button(); ?>
|
4161 |
-
</div>
|
4162 |
-
<hr />
|
4163 |
-
|
4164 |
-
<h3><?php _e('Event Title'); ?></h3>
|
4165 |
-
<table class="form-table">
|
4166 |
-
<tbody>
|
4167 |
-
<tr>
|
4168 |
-
<th class="bump-left"><label for="cff_event_title_format" class="bump-left"><?php _e('Format'); ?></label><code class="cff_shortcode"> eventtitleformat
|
4169 |
-
Eg: eventtitleformat=h5</code></th>
|
4170 |
-
<td>
|
4171 |
-
<select name="cff_event_title_format" class="cff-text-size-setting">
|
4172 |
-
<option value="p" <?php if($cff_event_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
|
4173 |
-
<option value="h3" <?php if($cff_event_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
|
4174 |
-
<option value="h4" <?php if($cff_event_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
|
4175 |
-
<option value="h5" <?php if($cff_event_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
|
4176 |
-
<option value="h6" <?php if($cff_event_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
|
4177 |
-
</select>
|
4178 |
-
</td>
|
4179 |
-
</tr>
|
4180 |
-
|
4181 |
-
<tr>
|
4182 |
-
<th class="bump-left"><label for="cff_event_title_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> eventtitlesize
|
4183 |
-
Eg: eventtitlesize=12</code></th>
|
4184 |
-
<td>
|
4185 |
-
<select name="cff_event_title_size" class="cff-text-size-setting">
|
4186 |
-
<option value="inherit" <?php if($cff_event_title_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
4187 |
-
<option value="10" <?php if($cff_event_title_size == "10") echo 'selected="selected"' ?> >10px</option>
|
4188 |
-
<option value="11" <?php if($cff_event_title_size == "11") echo 'selected="selected"' ?> >11px</option>
|
4189 |
-
<option value="12" <?php if($cff_event_title_size == "12") echo 'selected="selected"' ?> >12px</option>
|
4190 |
-
<option value="13" <?php if($cff_event_title_size == "13") echo 'selected="selected"' ?> >13px</option>
|
4191 |
-
<option value="14" <?php if($cff_event_title_size == "14") echo 'selected="selected"' ?> >14px</option>
|
4192 |
-
<option value="16" <?php if($cff_event_title_size == "16") echo 'selected="selected"' ?> >16px</option>
|
4193 |
-
<option value="18" <?php if($cff_event_title_size == "18") echo 'selected="selected"' ?> >18px</option>
|
4194 |
-
<option value="20" <?php if($cff_event_title_size == "20") echo 'selected="selected"' ?> >20px</option>
|
4195 |
-
<option value="24" <?php if($cff_event_title_size == "24") echo 'selected="selected"' ?> >24px</option>
|
4196 |
-
<option value="28" <?php if($cff_event_title_size == "28") echo 'selected="selected"' ?> >28px</option>
|
4197 |
-
<option value="32" <?php if($cff_event_title_size == "32") echo 'selected="selected"' ?> >32px</option>
|
4198 |
-
<option value="36" <?php if($cff_event_title_size == "36") echo 'selected="selected"' ?> >36px</option>
|
4199 |
-
<option value="42" <?php if($cff_event_title_size == "42") echo 'selected="selected"' ?> >42px</option>
|
4200 |
-
<option value="48" <?php if($cff_event_title_size == "48") echo 'selected="selected"' ?> >48px</option>
|
4201 |
-
<option value="54" <?php if($cff_event_title_size == "54") echo 'selected="selected"' ?> >54px</option>
|
4202 |
-
<option value="60" <?php if($cff_event_title_size == "60") echo 'selected="selected"' ?> >60px</option>
|
4203 |
-
</select>
|
4204 |
-
</td>
|
4205 |
-
</tr>
|
4206 |
-
<tr>
|
4207 |
-
<th class="bump-left"><label for="cff_event_title_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> eventtitleweight
|
4208 |
-
Eg: eventtitleweight=bold</code></th>
|
4209 |
-
<td>
|
4210 |
-
<select name="cff_event_title_weight" class="cff-text-size-setting">
|
4211 |
-
<option value="inherit" <?php if($cff_event_title_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
4212 |
-
<option value="normal" <?php if($cff_event_title_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
4213 |
-
<option value="bold" <?php if($cff_event_title_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
4214 |
-
</select>
|
4215 |
-
</td>
|
4216 |
-
</tr>
|
4217 |
-
<tr>
|
4218 |
-
<th class="bump-left"><label for="cff_event_title_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> eventtitlecolor
|
4219 |
-
Eg: eventtitlecolor=666</code></th>
|
4220 |
-
<td>
|
4221 |
-
<input name="cff_event_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_title_color) ); ?>" class="cff-colorpicker" />
|
4222 |
-
</td>
|
4223 |
-
</tr>
|
4224 |
-
<tr>
|
4225 |
-
<th class="bump-left"><label for="cff_event_title_link" class="bump-left"><?php _e('Link Title to Event on Facebook'); ?></label><code class="cff_shortcode"> eventtitlelink
|
4226 |
-
Eg: eventtitlelink=true</code></th>
|
4227 |
-
<td><input type="checkbox" name="cff_event_title_link" id="cff_event_title_link" <?php if($cff_event_title_link == true) echo 'checked="checked"' ?> /></td>
|
4228 |
-
</tr>
|
4229 |
-
<tr id="eventdate"><!-- Quick link --></tr>
|
4230 |
-
</tbody>
|
4231 |
-
</table>
|
4232 |
-
<hr />
|
4233 |
-
|
4234 |
-
<h3><?php _e('Event Date'); ?></h3>
|
4235 |
-
<table class="form-table">
|
4236 |
-
<tbody>
|
4237 |
-
<tr>
|
4238 |
-
<th class="bump-left"><label for="cff_event_date_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> eventdatesize
|
4239 |
-
Eg: eventdatesize=18</code></th>
|
4240 |
-
<td>
|
4241 |
-
<select name="cff_event_date_size" class="cff-text-size-setting">
|
4242 |
-
<option value="inherit" <?php if($cff_event_date_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
4243 |
-
<option value="10" <?php if($cff_event_date_size == "10") echo 'selected="selected"' ?> >10px</option>
|
4244 |
-
<option value="11" <?php if($cff_event_date_size == "11") echo 'selected="selected"' ?> >11px</option>
|
4245 |
-
<option value="12" <?php if($cff_event_date_size == "12") echo 'selected="selected"' ?> >12px</option>
|
4246 |
-
<option value="13" <?php if($cff_event_date_size == "13") echo 'selected="selected"' ?> >13px</option>
|
4247 |
-
<option value="14" <?php if($cff_event_date_size == "14") echo 'selected="selected"' ?> >14px</option>
|
4248 |
-
<option value="16" <?php if($cff_event_date_size == "16") echo 'selected="selected"' ?> >16px</option>
|
4249 |
-
<option value="18" <?php if($cff_event_date_size == "18") echo 'selected="selected"' ?> >18px</option>
|
4250 |
-
<option value="20" <?php if($cff_event_date_size == "20") echo 'selected="selected"' ?> >20px</option>
|
4251 |
-
<option value="24" <?php if($cff_event_date_size == "24") echo 'selected="selected"' ?> >24px</option>
|
4252 |
-
<option value="28" <?php if($cff_event_date_size == "28") echo 'selected="selected"' ?> >28px</option>
|
4253 |
-
<option value="32" <?php if($cff_event_date_size == "32") echo 'selected="selected"' ?> >32px</option>
|
4254 |
-
<option value="36" <?php if($cff_event_date_size == "36") echo 'selected="selected"' ?> >36px</option>
|
4255 |
-
<option value="42" <?php if($cff_event_date_size == "42") echo 'selected="selected"' ?> >42px</option>
|
4256 |
-
<option value="48" <?php if($cff_event_date_size == "48") echo 'selected="selected"' ?> >48px</option>
|
4257 |
-
<option value="54" <?php if($cff_event_date_size == "54") echo 'selected="selected"' ?> >54px</option>
|
4258 |
-
<option value="60" <?php if($cff_event_date_size == "60") echo 'selected="selected"' ?> >60px</option>
|
4259 |
-
</select>
|
4260 |
-
</td>
|
4261 |
-
</tr>
|
4262 |
-
<tr>
|
4263 |
-
<th class="bump-left"><label for="cff_event_date_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> eventdateweight
|
4264 |
-
Eg: eventdateweight=bold</code></th>
|
4265 |
-
<td>
|
4266 |
-
<select name="cff_event_date_weight" class="cff-text-size-setting">
|
4267 |
-
<option value="inherit" <?php if($cff_event_date_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
4268 |
-
<option value="normal" <?php if($cff_event_date_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
4269 |
-
<option value="bold" <?php if($cff_event_date_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
4270 |
-
</select>
|
4271 |
-
</td>
|
4272 |
-
</tr>
|
4273 |
-
<tr>
|
4274 |
-
<th class="bump-left"><label for="cff_event_date_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> eventdatecolor
|
4275 |
-
Eg: eventdatecolor=EB6A00</code></th>
|
4276 |
-
<td>
|
4277 |
-
<input name="cff_event_date_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_date_color) ); ?>" class="cff-colorpicker" />
|
4278 |
-
</td>
|
4279 |
-
</tr>
|
4280 |
-
<tr valign="top">
|
4281 |
-
<th class="bump-left" scope="row"><label class="bump-left"><?php _e('Date Position'); ?></label><code class="cff_shortcode"> eventdatepos
|
4282 |
-
Eg: eventdatepos=below</code></th>
|
4283 |
-
<td>
|
4284 |
-
<select name="cff_event_date_position">
|
4285 |
-
<option value="below" <?php if($cff_event_date_position == "below") echo 'selected="selected"' ?> ><?php _e('Below event title'); ?></option>
|
4286 |
-
<option value="above" <?php if($cff_event_date_position == "above") echo 'selected="selected"' ?> ><?php _e('Above event title'); ?></option>
|
4287 |
-
</select>
|
4288 |
-
</td>
|
4289 |
-
</tr>
|
4290 |
-
<tr>
|
4291 |
-
<th class="bump-left"><label for="cff_event_date_formatting" class="bump-left"><?php _e('Event Date Formatting'); ?></label><code class="cff_shortcode"> eventdateformat
|
4292 |
-
Eg: eventdateformat=12</code></th>
|
4293 |
-
<td>
|
4294 |
-
<select name="cff_event_date_formatting" style="width: 280px;">
|
4295 |
-
<?php $original = strtotime('2016-07-25T17:30:00+0000'); ?>
|
4296 |
-
<option value="14" <?php if($cff_event_date_formatting == "14") echo 'selected="selected"' ?> ><?php echo date('M j, g:ia', $original); ?></option>
|
4297 |
-
<option value="15" <?php if($cff_event_date_formatting == "15") echo 'selected="selected"' ?> ><?php echo date('M j, G:i', $original); ?></option>
|
4298 |
-
<option value="1" <?php if($cff_event_date_formatting == "1") echo 'selected="selected"' ?> ><?php echo date('F j, Y, g:ia', $original); ?></option>
|
4299 |
-
<option value="2" <?php if($cff_event_date_formatting == "2") echo 'selected="selected"' ?> ><?php echo date('F jS, g:ia', $original); ?></option>
|
4300 |
-
<option value="3" <?php if($cff_event_date_formatting == "3") echo 'selected="selected"' ?> ><?php echo date('g:ia - F jS', $original); ?></option>
|
4301 |
-
<option value="4" <?php if($cff_event_date_formatting == "4") echo 'selected="selected"' ?> ><?php echo date('g:ia, F jS', $original); ?></option>
|
4302 |
-
<option value="5" <?php if($cff_event_date_formatting == "5") echo 'selected="selected"' ?> ><?php echo date('l F jS - g:ia', $original); ?></option>
|
4303 |
-
<option value="6" <?php if($cff_event_date_formatting == "6") echo 'selected="selected"' ?> ><?php echo date('D M jS, Y, g:iA', $original); ?></option>
|
4304 |
-
<option value="7" <?php if($cff_event_date_formatting == "7") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y, g:iA', $original); ?></option>
|
4305 |
-
<option value="8" <?php if($cff_event_date_formatting == "8") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y - g:ia', $original); ?></option>
|
4306 |
-
<option value="9" <?php if($cff_event_date_formatting == "9") echo 'selected="selected"' ?> ><?php echo date("l M jS, 'y", $original); ?></option>
|
4307 |
-
<option value="10" <?php if($cff_event_date_formatting == "10") echo 'selected="selected"' ?> ><?php echo date('m.d.y - g:iA', $original); ?></option>
|
4308 |
-
<option value="20" <?php if($cff_event_date_formatting == "20") echo 'selected="selected"' ?> ><?php echo date('m.d.y - G:i', $original); ?></option>
|
4309 |
-
<option value="11" <?php if($cff_event_date_formatting == "11") echo 'selected="selected"' ?> ><?php echo date('m/d/y, g:ia', $original); ?></option>
|
4310 |
-
<option value="12" <?php if($cff_event_date_formatting == "12") echo 'selected="selected"' ?> ><?php echo date('d.m.y - g:iA', $original); ?></option>
|
4311 |
-
<option value="21" <?php if($cff_event_date_formatting == "21") echo 'selected="selected"' ?> ><?php echo date('d.m.y - G:i', $original); ?></option>
|
4312 |
-
<option value="13" <?php if($cff_event_date_formatting == "13") echo 'selected="selected"' ?> ><?php echo date('d/m/y, g:ia', $original); ?></option>
|
4313 |
-
|
4314 |
-
<option value="16" <?php if($cff_event_date_formatting == "16") echo 'selected="selected"' ?> ><?php echo date('d-m-Y, G:i', $original); ?></option>
|
4315 |
-
<option value="17" <?php if($cff_event_date_formatting == "17") echo 'selected="selected"' ?> ><?php echo date('jS F Y, G:i', $original); ?></option>
|
4316 |
-
<option value="18" <?php if($cff_event_date_formatting == "18") echo 'selected="selected"' ?> ><?php echo date('d M Y, G:i', $original); ?></option>
|
4317 |
-
<option value="19" <?php if($cff_event_date_formatting == "19") echo 'selected="selected"' ?> ><?php echo date('l jS F Y, G:i', $original); ?></option>
|
4318 |
-
</select>
|
4319 |
-
</td>
|
4320 |
-
</tr>
|
4321 |
-
<tr>
|
4322 |
-
<th class="bump-left"><label for="cff_event_date_custom" class="bump-left"><?php _e('Custom Event Date Format'); ?></label><code class="cff_shortcode"> eventdatecustom
|
4323 |
-
Eg: eventdatecustom='D M jS, Y'</code></th>
|
4324 |
-
<td>
|
4325 |
-
<input name="cff_event_date_custom" type="text" value="<?php _e($cff_event_date_custom); ?>" size="10" placeholder="Eg. F j, Y - g:ia" />
|
4326 |
-
<a href="http://smashballoon.com/custom-facebook-feed/docs/date/" class="cff-external-link" target="_blank"><?php _e('Examples'); ?></a>
|
4327 |
-
</td>
|
4328 |
-
</tr>
|
4329 |
-
<tr id="eventdetails"><!-- Quick link --></tr>
|
4330 |
-
</tbody>
|
4331 |
-
</table>
|
4332 |
-
<hr />
|
4333 |
-
|
4334 |
-
<h3><?php _e('Event Details'); ?></h3>
|
4335 |
-
<table class="form-table">
|
4336 |
-
<tbody>
|
4337 |
-
<tr>
|
4338 |
-
<th class="bump-left"><label for="cff_event_details_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> eventdetailssize
|
4339 |
-
Eg: eventdetailssize=13</code></th>
|
4340 |
-
<td>
|
4341 |
-
<select name="cff_event_details_size" class="cff-text-size-setting">
|
4342 |
-
<option value="inherit" <?php if($cff_event_details_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
4343 |
-
<option value="10" <?php if($cff_event_details_size == "10") echo 'selected="selected"' ?> >10px</option>
|
4344 |
-
<option value="11" <?php if($cff_event_details_size == "11") echo 'selected="selected"' ?> >11px</option>
|
4345 |
-
<option value="12" <?php if($cff_event_details_size == "12") echo 'selected="selected"' ?> >12px</option>
|
4346 |
-
<option value="13" <?php if($cff_event_details_size == "13") echo 'selected="selected"' ?> >13px</option>
|
4347 |
-
<option value="14" <?php if($cff_event_details_size == "14") echo 'selected="selected"' ?> >14px</option>
|
4348 |
-
<option value="16" <?php if($cff_event_details_size == "16") echo 'selected="selected"' ?> >16px</option>
|
4349 |
-
<option value="18" <?php if($cff_event_details_size == "18") echo 'selected="selected"' ?> >18px</option>
|
4350 |
-
<option value="20" <?php if($cff_event_details_size == "20") echo 'selected="selected"' ?> >20px</option>
|
4351 |
-
<option value="24" <?php if($cff_event_details_size == "24") echo 'selected="selected"' ?> >24px</option>
|
4352 |
-
<option value="28" <?php if($cff_event_details_size == "28") echo 'selected="selected"' ?> >28px</option>
|
4353 |
-
<option value="32" <?php if($cff_event_details_size == "32") echo 'selected="selected"' ?> >32px</option>
|
4354 |
-
<option value="36" <?php if($cff_event_details_size == "36") echo 'selected="selected"' ?> >36px</option>
|
4355 |
-
<option value="42" <?php if($cff_event_details_size == "42") echo 'selected="selected"' ?> >42px</option>
|
4356 |
-
<option value="48" <?php if($cff_event_details_size == "48") echo 'selected="selected"' ?> >48px</option>
|
4357 |
-
<option value="54" <?php if($cff_event_details_size == "54") echo 'selected="selected"' ?> >54px</option>
|
4358 |
-
<option value="60" <?php if($cff_event_details_size == "60") echo 'selected="selected"' ?> >60px</option>
|
4359 |
-
</select>
|
4360 |
-
</td>
|
4361 |
-
</tr>
|
4362 |
-
<tr>
|
4363 |
-
<th class="bump-left"><label for="cff_event_details_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> eventdetailsweight
|
4364 |
-
Eg: eventdetailsweight=bold</code></th>
|
4365 |
-
<td>
|
4366 |
-
<select name="cff_event_details_weight" class="cff-text-size-setting">
|
4367 |
-
<option value="inherit" <?php if($cff_event_details_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
4368 |
-
<option value="normal" <?php if($cff_event_details_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
4369 |
-
<option value="bold" <?php if($cff_event_details_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
4370 |
-
</select>
|
4371 |
-
</td>
|
4372 |
-
</tr>
|
4373 |
-
<tr>
|
4374 |
-
<th class="bump-left"><label for="cff_event_details_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> eventdetailscolor
|
4375 |
-
Eg: eventdetailscolor=FFF000</code></th>
|
4376 |
-
<td>
|
4377 |
-
<input name="cff_event_details_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_details_color) ); ?>" class="cff-colorpicker" />
|
4378 |
-
</td>
|
4379 |
-
</tr>
|
4380 |
-
<tr>
|
4381 |
-
<th class="bump-left"><label for="cff_event_link_color" class="bump-left"><?php _e('Link Color'); ?></label><code class="cff_shortcode"> eventlinkcolor
|
4382 |
-
Eg: eventlinkcolor=333</code></th>
|
4383 |
-
<td>
|
4384 |
-
<input name="cff_event_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_link_color) ); ?>" class="cff-colorpicker" />
|
4385 |
-
</td>
|
4386 |
-
</tr>
|
4387 |
-
<tr id="comments"><!-- Quick link --></tr>
|
4388 |
-
</tbody>
|
4389 |
-
</table>
|
4390 |
-
|
4391 |
-
<?php submit_button(); ?>
|
4392 |
-
|
4393 |
-
<hr />
|
4394 |
-
|
4395 |
-
<h3><?php _e('Post Action Links'); ?></span> <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is this?'); ?></a>
|
4396 |
-
<p class="cff-tooltip cff-more-info"><?php _e('Post action links refer to the "View on Facebook" and "Share" links at the bottom of each post'); ?></p></h3>
|
4397 |
-
<table class="form-table">
|
4398 |
-
<tbody>
|
4399 |
-
<tr>
|
4400 |
-
<th class="bump-left"><label for="cff_link_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> linksize
|
4401 |
-
Eg: linksize=13</code></th>
|
4402 |
-
<td>
|
4403 |
-
<select name="cff_link_size" class="cff-text-size-setting">
|
4404 |
-
<option value="inherit" <?php if($cff_link_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
4405 |
-
<option value="10" <?php if($cff_link_size == "10") echo 'selected="selected"' ?> >10px</option>
|
4406 |
-
<option value="11" <?php if($cff_link_size == "11") echo 'selected="selected"' ?> >11px</option>
|
4407 |
-
<option value="12" <?php if($cff_link_size == "12") echo 'selected="selected"' ?> >12px</option>
|
4408 |
-
<option value="13" <?php if($cff_link_size == "13") echo 'selected="selected"' ?> >13px</option>
|
4409 |
-
<option value="14" <?php if($cff_link_size == "14") echo 'selected="selected"' ?> >14px</option>
|
4410 |
-
<option value="16" <?php if($cff_link_size == "16") echo 'selected="selected"' ?> >16px</option>
|
4411 |
-
<option value="18" <?php if($cff_link_size == "18") echo 'selected="selected"' ?> >18px</option>
|
4412 |
-
<option value="20" <?php if($cff_link_size == "20") echo 'selected="selected"' ?> >20px</option>
|
4413 |
-
<option value="24" <?php if($cff_link_size == "24") echo 'selected="selected"' ?> >24px</option>
|
4414 |
-
<option value="28" <?php if($cff_link_size == "28") echo 'selected="selected"' ?> >28px</option>
|
4415 |
-
<option value="32" <?php if($cff_link_size == "32") echo 'selected="selected"' ?> >32px</option>
|
4416 |
-
<option value="36" <?php if($cff_link_size == "36") echo 'selected="selected"' ?> >36px</option>
|
4417 |
-
<option value="42" <?php if($cff_link_size == "42") echo 'selected="selected"' ?> >42px</option>
|
4418 |
-
<option value="48" <?php if($cff_link_size == "48") echo 'selected="selected"' ?> >48px</option>
|
4419 |
-
<option value="54" <?php if($cff_link_size == "54") echo 'selected="selected"' ?> >54px</option>
|
4420 |
-
<option value="60" <?php if($cff_link_size == "60") echo 'selected="selected"' ?> >60px</option>
|
4421 |
-
</select>
|
4422 |
-
</td>
|
4423 |
-
</tr>
|
4424 |
-
<tr>
|
4425 |
-
<th class="bump-left"><label for="cff_link_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> linkweight
|
4426 |
-
Eg: linkweight=bold</code></th>
|
4427 |
-
<td>
|
4428 |
-
<select name="cff_link_weight" class="cff-text-size-setting">
|
4429 |
-
<option value="inherit" <?php if($cff_link_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
|
4430 |
-
<option value="normal" <?php if($cff_link_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
|
4431 |
-
<option value="bold" <?php if($cff_link_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
|
4432 |
-
</select>
|
4433 |
-
</td>
|
4434 |
-
</tr>
|
4435 |
-
<tr>
|
4436 |
-
<th class="bump-left"><label for="cff_link_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> linkcolor
|
4437 |
-
Eg: linkcolor=E01B5D</code></th>
|
4438 |
-
<td>
|
4439 |
-
<input name="cff_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_color) ); ?>" class="cff-colorpicker" />
|
4440 |
-
</td>
|
4441 |
-
</tr>
|
4442 |
-
<tr>
|
4443 |
-
<th class="bump-left"><label for="cff_facebook_link_text" class="bump-left"><?php _e('"View on Facebook" Text'); ?></label><code class="cff_shortcode"> facebooklinktext
|
4444 |
-
Eg: facebooklinktext='Read more...'</code></th>
|
4445 |
-
<td>
|
4446 |
-
<input name="cff_facebook_link_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_link_text ) ); ?>" size="25" />
|
4447 |
-
</td>
|
4448 |
-
</tr>
|
4449 |
-
|
4450 |
-
<tr>
|
4451 |
-
<th class="bump-left"><label for="cff_facebook_share_text" class="bump-left"><?php _e('"Share" Text'); ?></label><code class="cff_shortcode"> sharelinktext
|
4452 |
-
Eg: sharelinktext='Share this post'</code></th>
|
4453 |
-
<td>
|
4454 |
-
<input name="cff_facebook_share_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_share_text ) ); ?>" size="25" />
|
4455 |
-
</td>
|
4456 |
-
</tr>
|
4457 |
-
|
4458 |
-
<tr>
|
4459 |
-
<th class="bump-left"><label for="cff_show_facebook_link" class="bump-left"><?php _e('Show "View on Facebook" link'); ?></label><code class="cff_shortcode"> showfacebooklink
|
4460 |
-
Eg: showfacebooklink=true</code></th>
|
4461 |
-
<td>
|
4462 |
-
<input type="checkbox" name="cff_show_facebook_link" id="cff_show_facebook_link" <?php if($cff_show_facebook_link == true) echo 'checked="checked"' ?> />
|
4463 |
-
</td>
|
4464 |
-
</tr>
|
4465 |
-
|
4466 |
-
<tr>
|
4467 |
-
<th class="bump-left"><label for="cff_show_facebook_share" class="bump-left"><?php _e('Show "Share" link'); ?></label><code class="cff_shortcode"> showsharelink
|
4468 |
-
Eg: showsharelink=true</code></th>
|
4469 |
-
<td>
|
4470 |
-
<input type="checkbox" name="cff_show_facebook_share" id="cff_show_facebook_share" <?php if($cff_show_facebook_share == true) echo 'checked="checked"' ?> />
|
4471 |
-
</td>
|
4472 |
-
</tr>
|
4473 |
-
<tr id="loadmore"><!-- Quick link --></tr>
|
4474 |
-
</tbody>
|
4475 |
-
</table>
|
4476 |
-
|
4477 |
-
<hr />
|
4478 |
-
|
4479 |
-
<h3><?php _e('Likes, Shares and Comments Box'); ?></h3>
|
4480 |
-
<a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=likesharescom" target="_blank">Upgrade to Pro to enable likes, shares and comments</a>
|
4481 |
-
<p class="submit cff-expand-button">
|
4482 |
-
<a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
|
4483 |
-
</p>
|
4484 |
-
<table class="form-table cff-expandable-options">
|
4485 |
-
<tbody>
|
4486 |
-
<tr valign="top" class="cff-pro">
|
4487 |
-
<th class="bump-left" scope="row"><label><?php _e('Icon Style'); ?></label><code class="cff_shortcode"> iconstyle
|
4488 |
-
Eg: iconstyle=dark</code></th>
|
4489 |
-
<td>
|
4490 |
-
<select name="cff_icon_style" style="width: 250px;" disabled>
|
4491 |
-
<option value="light"><?php _e('Light (for light backgrounds)'); ?></option>
|
4492 |
-
<option value="dark"><?php _e('Dark (for dark backgrounds)'); ?></option>
|
4493 |
-
</select>
|
4494 |
-
</td>
|
4495 |
-
</tr>
|
4496 |
-
<tr valign="top" class="cff-pro">
|
4497 |
-
<th class="bump-left" scope="row"><label><?php _e('Text Color'); ?></label><code class="cff_shortcode"> socialtextcolor
|
4498 |
-
Eg: socialtextcolor=FFF</code></th>
|
4499 |
-
<td>
|
4500 |
-
<input name="cff_meta_text_color" class="cff-colorpicker" />
|
4501 |
-
</td>
|
4502 |
-
</tr>
|
4503 |
-
<tr valign="top" class="cff-pro">
|
4504 |
-
<th class="bump-left" scope="row"><label><?php _e('Link Color'); ?></label><code class="cff_shortcode"> sociallinkcolor
|
4505 |
-
Eg: sociallinkcolor=FFF</code></th>
|
4506 |
-
<td>
|
4507 |
-
<input name="cff_meta_link_color" class="cff-colorpicker" />
|
4508 |
-
</td>
|
4509 |
-
</tr>
|
4510 |
-
<tr valign="top" class="cff-pro">
|
4511 |
-
<th class="bump-left" scope="row"><label><?php _e('Background Color'); ?></label><code class="cff_shortcode"> socialbgcolor
|
4512 |
-
Eg: socialbgcolor=111</code></th>
|
4513 |
-
<td>
|
4514 |
-
<input name="cff_meta_bg_color" class="cff-colorpicker" />
|
4515 |
-
</td>
|
4516 |
-
</tr>
|
4517 |
-
<tr valign="top" class="cff-pro">
|
4518 |
-
<th class="bump-left" scope="row"><label><?php _e('Expand Comments Box Initially'); ?></label><code class="cff_shortcode"> expandcomments
|
4519 |
-
Eg: expandcomments=true</code></th>
|
4520 |
-
<td>
|
4521 |
-
<input type="checkbox" name="cff_expand_comments" id="cff_expand_comments" disabled />
|
4522 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
4523 |
-
<p class="cff-tooltip cff-more-info"><?php _e('Checking this box will automatically expand the comments box beneath each post. Unchecking this box will mean that users will need to click the number of comments below each post in order to expand the comments box.'); ?></p>
|
4524 |
-
</td>
|
4525 |
-
</tr>
|
4526 |
-
<tr valign="top" class="cff-pro">
|
4527 |
-
<th class="bump-left" for="cff_comments_num" scope="row"><label><?php _e('Number of Comments to Show Initially'); ?></label><code class="cff_shortcode"> commentsnum
|
4528 |
-
Eg: commentsnum=1</code></th>
|
4529 |
-
<td>
|
4530 |
-
<input name="cff_comments_num" type="text" size="2" disabled />
|
4531 |
-
<span><i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('25 max'); ?></i></span>
|
4532 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
4533 |
-
<p class="cff-tooltip cff-more-info"><?php _e('The number of comments to show initially when the comments box is expanded.'); ?></p>
|
4534 |
-
|
4535 |
-
</td>
|
4536 |
-
</tr>
|
4537 |
-
<tr valign="top" class="cff-pro">
|
4538 |
-
<th class="bump-left" scope="row"><label><?php _e('Hide Comment Avatars'); ?></label><code class="cff_shortcode"> hidecommentimages
|
4539 |
-
Eg: hidecommentimages=true</code></th>
|
4540 |
-
<td>
|
4541 |
-
<input type="checkbox" name="cff_hide_comment_avatars" id="cff_hide_comment_avatars" disabled />
|
4542 |
-
</td>
|
4543 |
-
</tr>
|
4544 |
-
<tr valign="top" class="cff-pro">
|
4545 |
-
<th class="bump-left" scope="row"><label><?php _e('Show Comments in Lightbox'); ?></label></th>
|
4546 |
-
<td>
|
4547 |
-
<input type="checkbox" name="cff_lightbox_comments" id="cff_lightbox_comments" disabled />
|
4548 |
-
<span><i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('For timeline posts only'); ?>
|
4549 |
-
</td>
|
4550 |
-
</tr>
|
4551 |
-
<tr id="action"><!-- Quick link --></tr>
|
4552 |
-
</tbody>
|
4553 |
-
</table>
|
4554 |
-
|
4555 |
-
|
4556 |
-
<div style="margin-top: -15px;">
|
4557 |
-
<?php submit_button(); ?>
|
4558 |
-
</div>
|
4559 |
-
|
4560 |
-
<a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
|
4561 |
-
|
4562 |
-
<?php } //End Typography tab ?>
|
4563 |
-
<?php if( $cff_active_tab == 'misc' ) { //Start Misc tab ?>
|
4564 |
-
|
4565 |
-
<p class="cff_contents_links" id="comments">
|
4566 |
-
<span>Jump to: </span>
|
4567 |
-
<a href="#css">Custom CSS</a>
|
4568 |
-
<a href="#js">Custom JavaScript</a>
|
4569 |
-
<a href="#misc">Misc Settings</a>
|
4570 |
-
</p>
|
4571 |
-
|
4572 |
-
<input type="hidden" name="<?php echo $style_misc_hidden_field_name; ?>" value="Y">
|
4573 |
-
<br />
|
4574 |
-
|
4575 |
-
<span id="css"><!-- Quick link --></span>
|
4576 |
-
<hr />
|
4577 |
-
<h3><?php _e('Custom CSS', 'custom-facebook-feed'); ?></h3>
|
4578 |
-
<table class="form-table">
|
4579 |
-
<tbody>
|
4580 |
-
<tr valign="top">
|
4581 |
-
<td style="padding-top: 0;">
|
4582 |
-
<p style="padding-bottom: 10px;"><?php _e('Enter your own custom CSS in the box below', 'custom-facebook-feed'); ?> <i style="margin-left: 5px; font-size: 11px;"><a href="https://smashballoon.com/snippets/" target="_blank"><?php _e('See some examples', 'custom-facebook-feed'); ?></a></i></p>
|
4583 |
-
<textarea name="cff_custom_css" id="cff_custom_css" style="width: 70%;" rows="7"><?php echo esc_textarea( stripslashes($cff_custom_css), 'custom-facebook-feed' ); ?></textarea>
|
4584 |
-
</td>
|
4585 |
-
</tr>
|
4586 |
-
</tbody>
|
4587 |
-
</table>
|
4588 |
-
<h3 id="js"><?php _e('Custom JavaScript', 'custom-facebook-feed'); ?></h3><!-- Quick link -->
|
4589 |
-
<table class="form-table">
|
4590 |
-
<tbody>
|
4591 |
-
<tr valign="top">
|
4592 |
-
<td style="padding-top: 0;">
|
4593 |
-
<p style="padding-bottom: 10px;"><?php _e('Enter your own custom JavaScript/jQuery in the box below', 'custom-facebook-feed'); ?> <i style="margin-left: 5px; font-size: 11px;"><a href="https://smashballoon.com/snippets/" target="_blank"><?php _e('See some examples', 'custom-facebook-feed'); ?></a></i></p>
|
4594 |
-
<textarea name="cff_custom_js" id="cff_custom_js" style="width: 70%;" rows="7"><?php echo esc_textarea( stripslashes($cff_custom_js), 'custom-facebook-feed' ); ?></textarea>
|
4595 |
-
</td>
|
4596 |
-
</tr>
|
4597 |
-
</tbody>
|
4598 |
-
</table>
|
4599 |
-
|
4600 |
-
<?php submit_button(); ?>
|
4601 |
-
|
4602 |
-
<hr />
|
4603 |
-
<h3><?php _e('Media'); ?></h3>
|
4604 |
-
<a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=media" target="_blank">Upgrade to Pro to enable Media options</a>
|
4605 |
-
<p class="submit cff-expand-button">
|
4606 |
-
<a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
|
4607 |
-
</p>
|
4608 |
-
<table class="form-table cff-expandable-options">
|
4609 |
-
<tbody>
|
4610 |
-
<tr valign="top" class="cff-pro">
|
4611 |
-
<th class="bump-left" scope="row"><label><?php _e('Disable Popup Lightbox'); ?></label><code class="cff_shortcode"> disablelightbox
|
4612 |
-
Eg: disablelightbox=true</code></th>
|
4613 |
-
<td>
|
4614 |
-
<input name="cff_disable_lightbox" type="checkbox" id="cff_disable_lightbox" disabled />
|
4615 |
-
<label for="cff_disable_lightbox"><?php _e('Disable'); ?></label>
|
4616 |
-
</td>
|
4617 |
-
</tr>
|
4618 |
-
<tr class="cff-pro">
|
4619 |
-
<th class="bump-left"><label class="bump-left"><?php _e('Use full-size shared link images'); ?></label><code class="cff_shortcode"> fulllinkimages
|
4620 |
-
Eg: fulllinkimages=false</code></th>
|
4621 |
-
<td>
|
4622 |
-
<input type="checkbox" name="cff_full_link_images" id="cff_full_link_images" disabled />
|
4623 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
4624 |
-
<p class="cff-tooltip cff-more-info"><?php _e("By default the shared link boxes in your posts use the same layout selected on the 'Post Layout' page, however, but you can disable this by unchecking this setting to force all shared links to use the smaller image thumbnails instead."); ?></p>
|
4625 |
-
</td>
|
4626 |
-
</tr>
|
4627 |
-
<tr valign="top" class="cff-pro">
|
4628 |
-
<th class="bump-left" scope="row"><label><?php _e('Lightbox video player'); ?></label><code class="cff_shortcode"> videoplayer
|
4629 |
-
Eg: videoplayer=facebook</code></th>
|
4630 |
-
<td>
|
4631 |
-
<select name="cff_video_player" style="width: 280px;" disabled>
|
4632 |
-
<option value="facebook"><?php _e('Facebook Video Player'); ?></option>
|
4633 |
-
<option value="standard"><?php _e('Standard HTML5 Video'); ?></option>
|
4634 |
-
</select>
|
4635 |
-
</td>
|
4636 |
-
</tr>
|
4637 |
-
<tr valign="top" class="cff-pro">
|
4638 |
-
<th class="bump-left" scope="row"><label><?php _e('Play video action'); ?></label><code class="cff_shortcode"> videoaction
|
4639 |
-
Eg: videoaction=facebook</code></th>
|
4640 |
-
<td>
|
4641 |
-
<select name="cff_video_action" style="width: 280px;" disabled>
|
4642 |
-
<option value="post"><?php _e('Play videos directly in the feed'); ?></option>
|
4643 |
-
<!-- Link to the video either on Facebook or whatever the source is: -->
|
4644 |
-
<option value="facebook"><?php _e('Link to the video on Facebook'); ?></option>
|
4645 |
-
</select>
|
4646 |
-
</td>
|
4647 |
-
</tr>
|
4648 |
-
</tbody>
|
4649 |
-
</table>
|
4650 |
-
|
4651 |
-
<hr id="misc" />
|
4652 |
-
<h3><?php _e('Misc Settings', 'custom-facebook-feed'); ?></h3>
|
4653 |
-
<table class="form-table">
|
4654 |
-
<tbody>
|
4655 |
-
<tr>
|
4656 |
-
<th class="bump-left"><label class="bump-left"><?php _e('Is your theme loading the feed via Ajax?', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> ajax
|
4657 |
-
Eg: ajax=true</code></th>
|
4658 |
-
<td>
|
4659 |
-
<input name="cff_ajax" type="checkbox" id="cff_ajax" <?php if($cff_ajax_val == true) echo "checked"; ?> />
|
4660 |
-
<label for="cff_ajax"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
4661 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
4662 |
-
<p class="cff-tooltip cff-more-info"><?php _e('Some modern WordPress themes use Ajax to load content into the page after it has loaded. If your theme uses Ajax to load the Custom Facebook Feed content into the page then check this box. If you are not sure then please check with the theme author.', 'custom-facebook-feed'); ?></p>
|
4663 |
-
</td>
|
4664 |
-
</tr>
|
4665 |
-
<tr>
|
4666 |
-
<th class="bump-left"><label class="bump-left"><?php _e("Preserve settings when plugin is removed", 'custom-facebook-feed'); ?></label></th>
|
4667 |
-
<td>
|
4668 |
-
<input name="cff_preserve_settings" type="checkbox" id="cff_preserve_settings" <?php if($cff_preserve_settings_val == true) echo "checked"; ?> />
|
4669 |
-
<label for="cff_preserve_settings"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
4670 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
4671 |
-
<p class="cff-tooltip cff-more-info"><?php _e('When removing the plugin your settings are automatically deleted from your database. Checking this box will prevent any settings from being deleted. This means that you can uninstall and reinstall the plugin without losing your settings.', 'custom-facebook-feed'); ?></p>
|
4672 |
-
</td>
|
4673 |
-
</tr>
|
4674 |
-
<tr>
|
4675 |
-
<th class="bump-left"><label class="bump-left"><?php _e("Display credit link", 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> credit
|
4676 |
-
Eg: credit=true</code></th>
|
4677 |
-
<td>
|
4678 |
-
<input name="cff_show_credit" type="checkbox" id="cff_show_credit" <?php if($cff_show_credit == true) echo "checked"; ?> />
|
4679 |
-
<label for="cff_show_credit"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
4680 |
-
<i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Display a link at the bottom of the feed to help promote the plugin', 'custom-facebook-feed'); ?></i>
|
4681 |
-
</td>
|
4682 |
-
</tr>
|
4683 |
-
|
4684 |
-
<tr>
|
4685 |
-
<th class="bump-left"><label class="bump-left"><?php _e("Minify CSS and JavaScript files"); ?></label></th>
|
4686 |
-
<td>
|
4687 |
-
<input name="cff_minify" type="checkbox" id="cff_minify" <?php if($cff_minify == true) echo "checked"; ?> />
|
4688 |
-
</td>
|
4689 |
-
</tr>
|
4690 |
-
|
4691 |
-
<tr>
|
4692 |
-
<th class="bump-left"><label class="bump-left"><?php _e('Is Facebook Page restricted?'); ?></label><code class="cff_shortcode"> restrictedpage
|
4693 |
-
Eg: restrictedpage=true</code></th>
|
4694 |
-
<td>
|
4695 |
-
<input name="cff_restricted_page" type="checkbox" id="cff_restricted_page" <?php if($cff_restricted_page == true) echo "checked"; ?> />
|
4696 |
-
<label for="cff_ajax"><?php _e('Yes'); ?></label>
|
4697 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
4698 |
-
<p class="cff-tooltip cff-more-info"><?php _e('If you want to display your Facebook feed on your website then ideally your Facebook page should not have any age or location restrictions on it as that restricts the plugin from being able to fully access the content. If it is not possible for you to remove all restrictions then you can enable this setting.'); ?></p>
|
4699 |
-
</td>
|
4700 |
-
</tr>
|
4701 |
-
|
4702 |
-
<tr>
|
4703 |
-
<th class="bump-left"><label class="bump-left"><?php _e("Icon font source", 'custom-facebook-feed'); ?></label></th>
|
4704 |
-
<td>
|
4705 |
-
<select name="cff_font_source">
|
4706 |
-
<option value="cdn" <?php if($cff_font_source == "cdn") echo 'selected="selected"' ?> ><?php _e('CDN', 'custom-facebook-feed'); ?></option>
|
4707 |
-
<option value="local" <?php if($cff_font_source == "local") echo 'selected="selected"' ?> ><?php _e('Local copy', 'custom-facebook-feed'); ?></option>
|
4708 |
-
<option value="none" <?php if($cff_font_source == "none") echo 'selected="selected"' ?> ><?php _e("Don't load", 'custom-facebook-feed'); ?></option>
|
4709 |
-
</select>
|
4710 |
-
</td>
|
4711 |
-
</tr>
|
4712 |
-
|
4713 |
-
<tr>
|
4714 |
-
<th class="bump-left">
|
4715 |
-
<label class="bump-left"><?php _e("Force cache to clear on interval", 'custom-facebook-feed'); ?></label>
|
4716 |
-
</th>
|
4717 |
-
<td>
|
4718 |
-
<select name="cff_cron">
|
4719 |
-
<option value="unset" <?php if($cff_cron == "unset") echo 'selected="selected"' ?> ><?php _e(' - ', 'custom-facebook-feed'); ?></option>
|
4720 |
-
<option value="yes" <?php if($cff_cron == "yes") echo 'selected="selected"' ?> ><?php _e('Yes', 'custom-facebook-feed'); ?></option>
|
4721 |
-
<option value="no" <?php if($cff_cron == "no") echo 'selected="selected"' ?> ><?php _e('No', 'custom-facebook-feed'); ?></option>
|
4722 |
-
</select>
|
4723 |
-
|
4724 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
4725 |
-
<p class="cff-tooltip cff-more-info"><?php _e("If you're experiencing an issue with the plugin not auto-updating then you can set this to 'Yes' to run a scheduled event behind the scenes which forces the plugin cache to clear on a regular basis and retrieve new data from Facebook.", 'custom-facebook-feed'); ?></p>
|
4726 |
-
</td>
|
4727 |
-
</tr>
|
4728 |
-
|
4729 |
-
<tr>
|
4730 |
-
<th class="bump-left"><label class="bump-left"><?php _e("Request method", 'custom-facebook-feed'); ?></label></th>
|
4731 |
-
<td>
|
4732 |
-
<select name="cff_request_method">
|
4733 |
-
<option value="auto" <?php if($cff_request_method == "auto") echo 'selected="selected"' ?> ><?php _e('Auto', 'custom-facebook-feed'); ?></option>
|
4734 |
-
<option value="1" <?php if($cff_request_method == "1") echo 'selected="selected"' ?> ><?php _e('cURL', 'custom-facebook-feed'); ?></option>
|
4735 |
-
<option value="2" <?php if($cff_request_method == "2") echo 'selected="selected"' ?> ><?php _e('file_get_contents', 'custom-facebook-feed'); ?></option>
|
4736 |
-
<option value="3" <?php if($cff_request_method == "3") echo 'selected="selected"' ?> ><?php _e("WP_Http", 'custom-facebook-feed'); ?></option>
|
4737 |
-
</select>
|
4738 |
-
</td>
|
4739 |
-
</tr>
|
4740 |
-
<tr>
|
4741 |
-
<th class="bump-left"><label class="bump-left"><?php _e('Fix text shortening issue'); ?></label><code class="cff_shortcode"> textissue
|
4742 |
-
Eg: textissue=true</code></th>
|
4743 |
-
<td>
|
4744 |
-
<input name="cff_format_issue" type="checkbox" id="cff_format_issue" <?php if($cff_format_issue == true) echo "checked"; ?> />
|
4745 |
-
</td>
|
4746 |
-
</tr>
|
4747 |
-
<tr>
|
4748 |
-
<th class="bump-left"><label for="cff_disable_styles" class="bump-left"><?php _e("Disable default styles", 'custom-facebook-feed'); ?></label></th>
|
4749 |
-
<td>
|
4750 |
-
<input name="cff_disable_styles" type="checkbox" id="cff_disable_styles" <?php if($cff_disable_styles == true) echo "checked"; ?> />
|
4751 |
-
<label for="cff_disable_styles"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
4752 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
4753 |
-
<p class="cff-tooltip cff-more-info"><?php _e("The plugin includes some basic text and link styles which can be disabled by enabling this setting. Note that the styles used for the layout of the posts will still be applied.", 'custom-facebook-feed'); ?></p>
|
4754 |
-
</td>
|
4755 |
-
</tr>
|
4756 |
-
|
4757 |
-
<tr>
|
4758 |
-
<th class="bump-left"><label for="cff_disable_admin_notice" class="bump-left"><?php _e("Disable admin error notice", 'custom-facebook-feed'); ?></label></th>
|
4759 |
-
<td>
|
4760 |
-
<input name="cff_disable_admin_notice" type="checkbox" id="cff_disable_admin_notice" <?php if($cff_disable_admin_notice == true) echo "checked"; ?> />
|
4761 |
-
<label for="cff_disable_admin_notice"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
4762 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
4763 |
-
<p class="cff-tooltip cff-more-info"><?php _e("This will permanently disable the feed error notice that displays in the bottom right corner for admins on the front end of your site.", 'custom-facebook-feed'); ?></p>
|
4764 |
-
</td>
|
4765 |
-
</tr>
|
4766 |
-
|
4767 |
-
<tr>
|
4768 |
-
<th class="bump-left"><label for="cff_enable_email_report" class="bump-left"><?php _e("Feed issue email report", 'custom-facebook-feed'); ?></label></th>
|
4769 |
-
<td>
|
4770 |
-
<input name="cff_enable_email_report" type="checkbox" id="cff_enable_email_report" <?php if($cff_enable_email_report == 'on') echo "checked"; ?> />
|
4771 |
-
<label for="cff_enable_email_report"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
4772 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
|
4773 |
-
<p class="cff-tooltip cff-more-info"><?php _e("Custom Facebook Feed will send a weekly notification email using your site's wp_mail() function if one or more of your feeds is not updating or is not displaying. If you're not receiving the emails in your inbox, you may need to configure an SMTP service using another plugin like WP Mail SMTP.", 'custom-facebook-feed'); ?></p>
|
4774 |
-
|
4775 |
-
<div class="cff_box" style="display: block;">
|
4776 |
-
<div class="cff_box_setting">
|
4777 |
-
<label><?php _e('Schedule Weekly on', 'custom-facebook-feed'); ?></label><br>
|
4778 |
-
<?php
|
4779 |
-
$schedule_options = array(
|
4780 |
-
array(
|
4781 |
-
'val' => 'monday',
|
4782 |
-
'label' => __( 'Monday', 'custom-facebook-feed' )
|
4783 |
-
),
|
4784 |
-
array(
|
4785 |
-
'val' => 'tuesday',
|
4786 |
-
'label' => __( 'Tuesday', 'custom-facebook-feed' )
|
4787 |
-
),
|
4788 |
-
array(
|
4789 |
-
'val' => 'wednesday',
|
4790 |
-
'label' => __( 'Wednesday', 'custom-facebook-feed' )
|
4791 |
-
),
|
4792 |
-
array(
|
4793 |
-
'val' => 'thursday',
|
4794 |
-
'label' => __( 'Thursday', 'custom-facebook-feed' )
|
4795 |
-
),
|
4796 |
-
array(
|
4797 |
-
'val' => 'friday',
|
4798 |
-
'label' => __( 'Friday', 'custom-facebook-feed' )
|
4799 |
-
),
|
4800 |
-
array(
|
4801 |
-
'val' => 'saturday',
|
4802 |
-
'label' => __( 'Saturday', 'custom-facebook-feed' )
|
4803 |
-
),
|
4804 |
-
array(
|
4805 |
-
'val' => 'sunday',
|
4806 |
-
'label' => __( 'Sunday', 'custom-facebook-feed' )
|
4807 |
-
),
|
4808 |
-
);
|
4809 |
-
|
4810 |
-
if ( isset( $_GET['flag'] ) ){
|
4811 |
-
echo '<span id="cff-goto"></span>';
|
4812 |
-
}
|
4813 |
-
?>
|
4814 |
-
<select name="cff_email_notification" id="cff_email_notification">
|
4815 |
-
<?php foreach ( $schedule_options as $schedule_option ) : ?>
|
4816 |
-
<option value="<?php echo esc_attr( $schedule_option['val'] ) ; ?>" <?php if ( $schedule_option['val'] === $cff_email_notification ) { echo 'selected';} ?>><?php echo esc_html( $schedule_option['label'] ) ; ?></option>
|
4817 |
-
<?php endforeach; ?>
|
4818 |
-
</select>
|
4819 |
-
</div>
|
4820 |
-
<div class="cff_box_setting">
|
4821 |
-
<label><?php _e('Email Recipients', 'custom-facebook-feed'); ?></label><br><input class="regular-text" type="text" name="cff_email_notification_addresses" value="<?php echo esc_attr( $cff_email_notification_addresses ); ?>"><span class="cff_note"><?php _e('separate multiple emails with commas', 'custom-facebook-feed'); ?></span>
|
4822 |
-
<br><br><?php _e( 'Emails not working?', 'custom-facebook-feed' ) ?> <a href="https://smashballoon.com/email-report-is-not-in-my-inbox/" target="_blank"><?php _e( 'See our related FAQ', 'custom-facebook-feed' ) ?></a>
|
4823 |
-
</div>
|
4824 |
-
</div>
|
4825 |
-
|
4826 |
-
</td>
|
4827 |
-
</tr>
|
4828 |
-
|
4829 |
-
<tr>
|
4830 |
-
<?php
|
4831 |
-
$usage_tracking = get_option( 'cff_usage_tracking', array( 'last_send' => 0, 'enabled' => cff_is_pro_version() ) );
|
4832 |
-
|
4833 |
-
if ( isset( $_POST['cff_email_notification_addresses'] ) ) {
|
4834 |
-
$usage_tracking['enabled'] = false;
|
4835 |
-
if ( isset( $_POST['cff_usage_tracking_enable'] ) ) {
|
4836 |
-
if ( ! is_array( $usage_tracking ) ) {
|
4837 |
-
$usage_tracking = array(
|
4838 |
-
'enabled' => true,
|
4839 |
-
'last_send' => 0,
|
4840 |
-
);
|
4841 |
-
} else {
|
4842 |
-
$usage_tracking['enabled'] = true;
|
4843 |
-
}
|
4844 |
-
}
|
4845 |
-
update_option( 'cff_usage_tracking', $usage_tracking, false );
|
4846 |
-
}
|
4847 |
-
$cff_usage_tracking_enable = isset( $usage_tracking['enabled'] ) ? $usage_tracking['enabled'] : true;
|
4848 |
-
?>
|
4849 |
-
<th class="bump-left"><label class="bump-left"><?php _e("Enable Usage Tracking", 'custom-facebook-feed'); ?></label></th>
|
4850 |
-
<td>
|
4851 |
-
<input name="cff_usage_tracking_enable" type="checkbox" id="cff_usage_tracking_enable" <?php if( $cff_usage_tracking_enable ) echo "checked"; ?> />
|
4852 |
-
<label for="cff_usage_tracking_enable"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
|
4853 |
-
<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is usage tracking?', 'custom-facebook-feed'); ?></a>
|
4854 |
-
<p class="cff-tooltip"><?php _e("Understanding how you are using the plugin allows us to further improve it. The plugin will send a report in the background once per week which includes information about your plugin settings and statistics about your site, which we can use to help improve the features which matter most to you and improve your experience using the plugin. The plugin will never collect any sensitive information like access tokens, email addresses, or user information, and sending this data won't slow down your site at all. For more information,", 'custom-facebook-feed'); ?> <a href="https://smashballoon.com/custom-facebook-feed/docs/usage-tracking/" target="_blank"><?php _e("see here", 'custom-facebook-feed'); ?></a>.</p>
|
4855 |
-
</td>
|
4856 |
-
</tr>
|
4857 |
-
|
4858 |
-
</tbody>
|
4859 |
-
</table>
|
4860 |
-
|
4861 |
-
<?php submit_button(); ?>
|
4862 |
-
<a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
|
4863 |
-
<?php } //End Misc tab ?>
|
4864 |
-
|
4865 |
-
|
4866 |
-
<?php if( $cff_active_tab == 'custom_text' ) { //Start Custom Text tab ?>
|
4867 |
-
|
4868 |
-
<p class="cff_contents_links">
|
4869 |
-
<span>Jump to: </span>
|
4870 |
-
<a href="#text">Post Text</a>
|
4871 |
-
<a href="#action">Post Action Links</a>
|
4872 |
-
<a href="#medialink">Media Links</a>
|
4873 |
-
<a href="#date">Date</a>
|
4874 |
-
</p>
|
4875 |
-
|
4876 |
-
<input type="hidden" name="<?php echo $style_custom_text_hidden_field_name; ?>" value="Y">
|
4877 |
-
<br />
|
4878 |
-
<h3><?php _e('Custom Text / Translate', 'custom-facebook-feed'); ?></h3>
|
4879 |
-
<p><?php _e('Enter custom text for the words below, or translate it into the language you would like to use.', 'custom-facebook-feed'); ?></p>
|
4880 |
-
<table class="form-table cff-translate-table" style="width: 100%; max-width: 940px;">
|
4881 |
-
<tbody>
|
4882 |
-
|
4883 |
-
<thead id="text">
|
4884 |
-
<tr>
|
4885 |
-
<th><?php _e('Original Text', 'custom-facebook-feed'); ?></th>
|
4886 |
-
<th><?php _e('Custom Text / Translation', 'custom-facebook-feed'); ?></th>
|
4887 |
-
<th><?php _e('Context', 'custom-facebook-feed'); ?></th>
|
4888 |
-
</tr>
|
4889 |
-
</thead>
|
4890 |
-
|
4891 |
-
<tr class="cff-table-header"><th colspan="3"><?php _e('Post Text', 'custom-facebook-feed'); ?></th></tr>
|
4892 |
-
<tr>
|
4893 |
-
<td><label for="cff_see_more_text" class="bump-left"><?php _e('See More', 'custom-facebook-feed'); ?></label></td>
|
4894 |
-
<td><input name="cff_see_more_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_see_more_text ) ); ?>" /></td>
|
4895 |
-
<td class="cff-context"><?php _e('Used when truncating the post text', 'custom-facebook-feed'); ?></td>
|
4896 |
-
</tr>
|
4897 |
-
|
4898 |
-
<tr id="action"><!-- Quick link -->
|
4899 |
-
<td><label for="cff_see_less_text" class="bump-left"><?php _e('See Less', 'custom-facebook-feed'); ?></label></td>
|
4900 |
-
<td><input name="cff_see_less_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_see_less_text ) ); ?>" /></td>
|
4901 |
-
<td class="cff-context"><?php _e('Used when truncating the post text', 'custom-facebook-feed'); ?></td>
|
4902 |
-
</tr>
|
4903 |
-
|
4904 |
-
<tr class="cff-table-header"><th colspan="3"><?php _e('Post Action Links', 'custom-facebook-feed'); ?></th></tr>
|
4905 |
-
<tr>
|
4906 |
-
<td><label for="cff_facebook_link_text" class="bump-left"><?php _e('View on Facebook', 'custom-facebook-feed'); ?></label></td>
|
4907 |
-
<td><input name="cff_facebook_link_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_link_text ) ); ?>" /></td>
|
4908 |
-
<td class="cff-context"><?php _e('Used for the link to the post on Facebook', 'custom-facebook-feed'); ?></td>
|
4909 |
-
</tr>
|
4910 |
-
<tr>
|
4911 |
-
<td><label for="cff_facebook_share_text" class="bump-left"><?php _e('Share', 'custom-facebook-feed'); ?></label></td>
|
4912 |
-
<td><input name="cff_facebook_share_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_share_text ) ); ?>" /></td>
|
4913 |
-
<td class="cff-context"><?php _e('Used for sharing the Facebook post via Social Media', 'custom-facebook-feed'); ?></td>
|
4914 |
-
</tr>
|
4915 |
-
|
4916 |
-
<tr id="medialink"><!-- Quick link -->
|
4917 |
-
<td><label for="cff_translate_photos_text" class="bump-left"><?php _e('photos', 'custom-facebook-feed'); ?></label></td>
|
4918 |
-
<td><input name="cff_translate_photos_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_photos_text ) ); ?>" /></td>
|
4919 |
-
<td class="cff-conte
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|