PluginProbe ʕ •ᴥ•ʔ
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress / 4.7.5
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress v4.7.5
4.8.1 trunk 1.0 1.1 1.12.1 1.2.3 1.2.4 1.2.5 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.5 1.5.1 1.5.2 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.4.1 1.6.5 1.6.5.1 1.6.6 1.6.6.1 1.6.6.2 1.6.6.3 1.6.7 1.6.7.1 1.6.8 1.6.8.1 1.6.8.2 1.7.0 1.7.1 1.7.2 1.8.0 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.9.0 1.9.1 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.8.1 1.9.9 1.9.9.1 1.9.9.2 1.9.9.3 2.0 2.0.1 2.1 2.1.1 2.1.2 2.1.3 2.10 2.11 2.11.1 2.12 2.12.1 2.12.2 2.12.3 2.12.4 2.13 2.14 2.14.1 2.15 2.15.1 2.16 2.16.1 2.17 2.17.1 2.18 2.18.1 2.18.2 2.18.3 2.19 2.19.1 2.19.2 2.19.3 2.2 2.2.1 2.3 2.3.1 2.3.10 2.3.2 2.3.3 2.3.4 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.1.1 2.4.1.2 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.5 2.5.1 2.5.2 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.7 2.7.1 2.7.2 2.8 2.9 2.9.1 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.1 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.7.5 4.7.6 4.7.7
custom-facebook-feed / custom-facebook-feed.php
custom-facebook-feed Last commit date
admin 4 months ago assets 4 months ago inc 4 months ago languages 4 months ago templates 4 months ago vendor 4 months ago README.txt 4 months ago changelog.txt 4 months ago custom-facebook-feed.php 4 months ago email.php 4 months ago gpl-2.0.txt 4 months ago index.php 4 months ago
custom-facebook-feed.php
144 lines
1 <?php
2 /*
3 Plugin Name: Smash Balloon Custom Facebook Feed
4 Plugin URI: https://smashballoon.com/custom-facebook-feed
5 Description: Add completely customizable Facebook feeds to your WordPress site
6 Version: 4.7.5
7 Author: Smash Balloon
8 Author URI: http://smashballoon.com/
9 License: GPLv2 or later
10 Text Domain: custom-facebook-feed
11 Domain Path: /languages
12 */
13 /*
14 Copyright 2025 Smash Balloon LLC (email : hey@smashballoon.com)
15 This program is free software; you can redistribute it and/or modify
16 it under the terms of the GNU General Public License as published by
17 the Free Software Foundation; either version 2 of the License, or
18 (at your option) any later version.
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 */
27 if (! defined('ABSPATH')) {
28 exit; // Exit if accessed directly
29 }
30 define('CFFVER', '4.7.5');
31 define('WPW_SL_STORE_URL', 'https://smashballoon.com/');
32 define('WPW_SL_ITEM_NAME', 'Custom Facebook Feed WordPress Plugin Personal'); // *!*Update Plugin Name at top of file*!*
33
34 // Db version.
35 if (! defined('CFF_DBVERSION')) {
36 define('CFF_DBVERSION', '2.5');
37 }
38
39
40 // Plugin Folder Path.
41 if (! defined('CFF_PLUGIN_DIR')) {
42 define('CFF_PLUGIN_DIR', plugin_dir_path(__FILE__));
43 }
44
45 if (! defined('CFF_PLUGIN_DIR_FILE_BASE')) {
46 define('CFF_PLUGIN_DIR_FILE_BASE', dirname(plugin_basename(__FILE__)));
47 }
48
49 // Plugin Folder URL.
50 if (! defined('CFF_PLUGIN_URL')) {
51 define('CFF_PLUGIN_URL', plugin_dir_url(__FILE__));
52 }
53
54 if (! defined('CFF_UPLOADS_NAME')) {
55 define('CFF_UPLOADS_NAME', 'sb-facebook-feed-images');
56 }
57
58 // Name of the database table that contains instagram posts
59 if (! defined('CFF_POSTS_TABLE')) {
60 define('CFF_POSTS_TABLE', 'cff_posts');
61 }
62
63 // Name of the database table that contains feed ids and the ids of posts
64 if (! defined('CFF_FEEDS_POSTS_TABLE')) {
65 define('CFF_FEEDS_POSTS_TABLE', 'cff_feeds_posts');
66 }
67
68 // Plugin File.
69 if (! defined('CFF_FILE')) {
70 define('CFF_FILE', __FILE__);
71 }
72
73 if (! defined('CFF_PLUGIN_BASE')) {
74 define('CFF_PLUGIN_BASE', plugin_basename(CFF_FILE));
75 }
76 if (! defined('CFF_FEED_LOCATOR')) {
77 define('CFF_FEED_LOCATOR', 'cff_facebook_feed_locator');
78 }
79
80 if (! defined('CFF_BUILDER_DIR')) {
81 define('CFF_BUILDER_DIR', CFF_PLUGIN_DIR . 'admin/builder/');
82 }
83
84 if (! defined('CFF_BUILDER_URL')) {
85 define('CFF_BUILDER_URL', CFF_PLUGIN_URL . 'admin/builder/');
86 }
87
88 if (! defined('CFF_CONNECT_URL')) {
89 define('CFF_CONNECT_URL', 'https://connect.smashballoon.com/auth/fb/');
90 }
91
92 if (!defined('CFF_OEMBED_CONNECT_URL')) {
93 define('CFF_OEMBED_CONNECT_URL', 'https://connect-tools.smashballoon.com/');
94 }
95
96
97 /**
98 * Check PHP version
99 *
100 * Check for minimum PHP 7.4 version
101 *
102 * @since 2.19
103 */
104 if (version_compare(phpversion(), '7.4', '<')) {
105 if (!function_exists('cff_check_php_notice')) {
106 include_once CFF_PLUGIN_DIR . 'admin/enqueu-script.php';
107 function cff_check_php_notice()
108 {
109 ?>
110 <div class="notice notice-error">
111 <div>
112 <p><strong><?php echo esc_html__('Important:', 'custom-facebook-feed') ?> </strong><?php echo esc_html__('Your website is using an outdated version of PHP. The Custom Facebook Feed plugin requires PHP version 7.4 or higher and so has been temporarily deactivated.', 'custom-facebook-feed') ?></p>
113
114 <p>
115 <?php
116 echo sprintf(
117 /* translators: %s: link to download previous version */
118 __('To continue using the plugin, you can either manually reinstall the previous version of the plugin (%s) or contact your host to request that they upgrade your PHP version to 7.4 or higher.', 'custom-facebook-feed'),
119 '<a href="https://downloads.wordpress.org/plugin/custom-facebook-feed.4.3.4.zip">' . __('download', 'custom-facebook-feed') . '</a>'
120 );
121 ?>
122 </p>
123 </div>
124 </div>
125 <?php
126 }
127 }
128 add_action('admin_notices', 'cff_check_php_notice');
129 return; // Stop until PHP version is fixed
130 }
131
132 include_once CFF_PLUGIN_DIR . 'admin/admin-functions.php';
133 include_once CFF_PLUGIN_DIR . 'inc/Custom_Facebook_Feed.php';
134
135 if (function_exists('cff_main_pro')) {
136 wp_die("Please deactivate the Pro version of the Custom Facebook Feed plugin before activating this version.<br /><br />Back to the WordPress <a href='" . get_admin_url(null, 'plugins.php') . "'>Plugins page</a>.");
137 }
138
139 function cff_main()
140 {
141 return CustomFacebookFeed\Custom_Facebook_Feed::instance();
142 }
143 cff_main();
144