PluginProbe ʕ •ᴥ•ʔ
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress / 4.1.8
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress v4.1.8
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 3 years ago assets 3 years ago inc 3 years ago languages 3 years ago templates 3 years ago vendor 3 years ago README.txt 3 years ago changelog.txt 3 years ago composer.json 3 years ago custom-facebook-feed.php 3 years ago email.php 3 years ago gpl-2.0.txt 3 years ago
custom-facebook-feed.php
136 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.1.8
7 Author: Smash Balloon
8 Author URI: http://smashballoon.com/
9 License: GPLv2 or later
10 Text Domain: custom-facebook-feed
11 */
12 /*
13 Copyright 2023 Smash Balloon LLC (email : hey@smashballoon.com)
14 This program is free software; you can redistribute it and/or modify
15 it under the terms of the GNU General Public License as published by
16 the Free Software Foundation; either version 2 of the License, or
17 (at your option) any later version.
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 */
26 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
27 define('CFFVER', '4.1.8');
28 define( 'WPW_SL_STORE_URL', 'https://smashballoon.com/' );
29 define( 'WPW_SL_ITEM_NAME', 'Custom Facebook Feed WordPress Plugin Personal' ); //*!*Update Plugin Name at top of file*!*
30
31 // Db version.
32 if ( ! defined( 'CFF_DBVERSION' ) ) {
33 define( 'CFF_DBVERSION', '2.4' );
34 }
35
36
37 // Plugin Folder Path.
38 if ( ! defined( 'CFF_PLUGIN_DIR' ) ) {
39 define( 'CFF_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
40 }
41
42 // Plugin Folder URL.
43 if ( ! defined( 'CFF_PLUGIN_URL' ) ) {
44 define( 'CFF_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
45 }
46
47 if ( ! defined( 'CFF_UPLOADS_NAME' ) ) {
48 define( 'CFF_UPLOADS_NAME', 'sb-facebook-feed-images' );
49 }
50
51 // Name of the database table that contains instagram posts
52 if ( ! defined( 'CFF_POSTS_TABLE' ) ) {
53 define( 'CFF_POSTS_TABLE', 'cff_posts' );
54 }
55
56 // Name of the database table that contains feed ids and the ids of posts
57 if ( ! defined( 'CFF_FEEDS_POSTS_TABLE' ) ) {
58 define( 'CFF_FEEDS_POSTS_TABLE', 'cff_feeds_posts' );
59 }
60
61 // Plugin File.
62 if ( ! defined( 'CFF_FILE' ) ) {
63 define( 'CFF_FILE', __FILE__ );
64 }
65
66 if ( ! defined( 'CFF_PLUGIN_BASE' ) ) {
67 define( 'CFF_PLUGIN_BASE', plugin_basename( CFF_FILE ) );
68 }
69 if ( ! defined( 'CFF_FEED_LOCATOR' ) ) {
70 define( 'CFF_FEED_LOCATOR', 'cff_facebook_feed_locator' );
71 }
72
73 if ( ! defined( 'CFF_BUILDER_DIR' ) ) {
74 define( 'CFF_BUILDER_DIR', CFF_PLUGIN_DIR . 'admin/builder/' );
75 }
76
77 if ( ! defined( 'CFF_BUILDER_URL' ) ) {
78 define( 'CFF_BUILDER_URL', CFF_PLUGIN_URL . 'admin/builder/' );
79 }
80
81 /**
82 * Check PHP version
83 *
84 * Check for minimum PHP 5.6 version
85 *
86 * @since 2.19
87 */
88 if ( version_compare( phpversion(), '5.6', '<' ) ) {
89 if( !function_exists( 'cff_check_php_notice' ) ){
90 include CFF_PLUGIN_DIR . 'admin/enqueu-script.php';
91 function cff_check_php_notice(){
92 $include_revert = ( version_compare( phpversion(), '5.6', '<' ) && version_compare( phpversion(), '5.3', '>' ) );
93 ?>
94 <div class="notice notice-error">
95 <div>
96 <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>
97
98 <p>
99 <?php
100 echo esc_html__('To continue using the plugin','custom-facebook-feed') . ', ';
101
102 if($include_revert):
103 echo esc_html__('either use the button below to revert back to the previous version','custom-facebook-feed') . ', ';
104 else:
105 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>' );
106 endif;
107
108 echo esc_html__('or contact your host to request that they upgrade your PHP version to 5.6 or higher.','custom-facebook-feed');
109 ?>
110 </p>
111
112 <?php if($include_revert): ?>
113 <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>
114 <?php endif; ?>
115 </div>
116 </div>
117 <?php
118 }
119 }
120 add_action( 'admin_notices', 'cff_check_php_notice' );
121 return; //Stop until PHP version is fixed
122 }
123
124 include CFF_PLUGIN_DIR . 'admin/admin-functions.php';
125 include CFF_PLUGIN_DIR . 'inc/Custom_Facebook_Feed.php';
126
127 if ( function_exists('cff_main_pro') ){
128 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>." );
129 }
130
131
132 function cff_main() {
133 return CustomFacebookFeed\Custom_Facebook_Feed::instance();
134 }
135 cff_main();
136