PluginProbe ʕ •ᴥ•ʔ
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress / 4.2.4
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress v4.2.4
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 2 years ago assets 2 years ago inc 2 years ago languages 2 years ago templates 2 years ago vendor 2 years ago README.txt 2 years ago changelog.txt 2 years ago custom-facebook-feed.php 2 years ago email.php 2 years ago gpl-2.0.txt 2 years ago
custom-facebook-feed.php
150 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.2.4
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 2024 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' ) ) exit; // Exit if accessed directly
28 define('CFFVER', '4.2.4');
29 define( 'WPW_SL_STORE_URL', 'https://smashballoon.com/' );
30 define( 'WPW_SL_ITEM_NAME', 'Custom Facebook Feed WordPress Plugin Personal' ); //*!*Update Plugin Name at top of file*!*
31
32 // Db version.
33 if ( ! defined( 'CFF_DBVERSION' ) ) {
34 define( 'CFF_DBVERSION', '2.5' );
35 }
36
37
38 // Plugin Folder Path.
39 if ( ! defined( 'CFF_PLUGIN_DIR' ) ) {
40 define( 'CFF_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
41 }
42
43 if (! defined('CFF_PLUGIN_DIR_FILE_BASE')) {
44 define('CFF_PLUGIN_DIR_FILE_BASE', basename(dirname(__FILE__)));
45 }
46
47 // Plugin Folder URL.
48 if ( ! defined( 'CFF_PLUGIN_URL' ) ) {
49 define( 'CFF_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
50 }
51
52 if ( ! defined( 'CFF_UPLOADS_NAME' ) ) {
53 define( 'CFF_UPLOADS_NAME', 'sb-facebook-feed-images' );
54 }
55
56 // Name of the database table that contains instagram posts
57 if ( ! defined( 'CFF_POSTS_TABLE' ) ) {
58 define( 'CFF_POSTS_TABLE', 'cff_posts' );
59 }
60
61 // Name of the database table that contains feed ids and the ids of posts
62 if ( ! defined( 'CFF_FEEDS_POSTS_TABLE' ) ) {
63 define( 'CFF_FEEDS_POSTS_TABLE', 'cff_feeds_posts' );
64 }
65
66 // Plugin File.
67 if ( ! defined( 'CFF_FILE' ) ) {
68 define( 'CFF_FILE', __FILE__ );
69 }
70
71 if ( ! defined( 'CFF_PLUGIN_BASE' ) ) {
72 define( 'CFF_PLUGIN_BASE', plugin_basename( CFF_FILE ) );
73 }
74 if ( ! defined( 'CFF_FEED_LOCATOR' ) ) {
75 define( 'CFF_FEED_LOCATOR', 'cff_facebook_feed_locator' );
76 }
77
78 if ( ! defined( 'CFF_BUILDER_DIR' ) ) {
79 define( 'CFF_BUILDER_DIR', CFF_PLUGIN_DIR . 'admin/builder/' );
80 }
81
82 if ( ! defined( 'CFF_BUILDER_URL' ) ) {
83 define( 'CFF_BUILDER_URL', CFF_PLUGIN_URL . 'admin/builder/' );
84 }
85
86 if ( ! defined( 'CFF_CONNECT_URL' ) ) {
87 define( 'CFF_CONNECT_URL', 'https://connect.smashballoon.com/auth/fb/' );
88 }
89
90 if (!defined('CFF_OEMBED_CONNECT_URL')) {
91 define('CFF_OEMBED_CONNECT_URL', 'https://smash-balloon-connect-tools-st.web.app/');
92 }
93
94
95 /**
96 * Check PHP version
97 *
98 * Check for minimum PHP 5.6 version
99 *
100 * @since 2.19
101 */
102 if ( version_compare( phpversion(), '5.6', '<' ) ) {
103 if( !function_exists( 'cff_check_php_notice' ) ){
104 include_once CFF_PLUGIN_DIR . 'admin/enqueu-script.php';
105 function cff_check_php_notice(){
106 $include_revert = ( version_compare( phpversion(), '5.6', '<' ) && version_compare( phpversion(), '5.3', '>' ) );
107 ?>
108 <div class="notice notice-error">
109 <div>
110 <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 5.6 or higher and so has been temporarily deactivated.','custom-facebook-feed') ?></p>
111
112 <p>
113 <?php
114 echo esc_html__('To continue using the plugin','custom-facebook-feed') . ', ';
115
116 if($include_revert):
117 echo esc_html__('either use the button below to revert back to the previous version','custom-facebook-feed') . ', ';
118 else:
119 echo sprintf( __('you can either manually reinstall the previous version of the plugin (%s) ','custom-facebook-feed' ), '<a href="https://downloads.wordpress.org/plugin/custom-facebook-feed.2.17.1.zip">'. __( 'download', 'custom-facebook-feed' ).'</a>' );
120 endif;
121
122 echo esc_html__('or contact your host to request that they upgrade your PHP version to 5.6 or higher.','custom-facebook-feed');
123 ?>
124 </p>
125
126 <?php if($include_revert): ?>
127 <p><button data-plugin="https://downloads.wordpress.org/plugin/custom-facebook-feed.2.17.1.zip" data-type="plugin" class="cff-notice-admin-btn status-download button button-primary"><?php echo esc_html__('Revert Back to Previous Version','custom-facebook-feed') ?></button></p>
128 <?php endif; ?>
129 </div>
130 </div>
131 <?php
132 }
133 }
134 add_action( 'admin_notices', 'cff_check_php_notice' );
135 return; //Stop until PHP version is fixed
136 }
137
138 include_once CFF_PLUGIN_DIR . 'admin/admin-functions.php';
139 include_once CFF_PLUGIN_DIR . 'inc/Custom_Facebook_Feed.php';
140
141 if ( function_exists('cff_main_pro') ){
142 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>." );
143 }
144
145
146 function cff_main() {
147 return CustomFacebookFeed\Custom_Facebook_Feed::instance();
148 }
149 cff_main();
150