| Server IP : 188.114.96.2 / Your IP : 104.23.243.200 Web Server : Apache/2.4.59 (Debian) System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 User : edlftp ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/nicolasj/www/ecoledelangues.be/wp-content/plugins/feeds-for-youtube/ |
Upload File : |
<?php
// composer autoload
require_once __DIR__ . '/vendor/autoload.php';
if (!defined('SBY_DBVERSION')) {
define('SBY_DBVERSION', '1.4');
}
if (!defined('SBY_UPLOADS_NAME')) {
// Upload folder name for local image files for posts
define('SBY_UPLOADS_NAME', 'sby-local-media');
}
if (!defined('SBY_ITEMS')) {
// Name of the database table that contains instagram posts
define('SBY_ITEMS', 'sby_items');
}
if (!defined('SBY_ITEMS_FEEDS')) {
// Name of the database table that contains feed ids and the ids of posts
define('SBY_ITEMS_FEEDS', 'sby_items_feeds');
}
if (!defined('SBY_CPT')) {
// Name of the database table that contains feed ids and the ids of posts
define('SBY_CPT', 'sby_videos');
}
if (!defined('SBY_PLUGIN_DIR')) {
// Plugin Folder Path.
define('SBY_PLUGIN_DIR', plugin_dir_path(__FILE__));
}
if (!defined('SBY_PLUGIN_URL')) {
// Plugin Folder URL.
define('SBY_PLUGIN_URL', plugin_dir_url(__FILE__));
}
if (!defined('SBY_MINIMUM_WALL_VERSION')) {
define('SBY_MINIMUM_WALL_VERSION', '1.0');
}
if (!defined('SBY_FEED_LOCATOR')) {
define('SBY_FEED_LOCATOR', 'sby_feed_locator');
}
if (!defined('CUSTOMIZER_ABSPATH')) {
define('CUSTOMIZER_ABSPATH', __DIR__ . '/vendor/smashballoon/customizer/');
}
if (!defined('CUSTOMIZER_PLUGIN_URL')) {
define('CUSTOMIZER_PLUGIN_URL', plugin_dir_url(__DIR__ . '/vendor/smashballoon/customizer/bootstrap.php'));
}
//Load .env variables
if (class_exists('Dotenv\Dotenv') && method_exists('Dotenv\Dotenv', 'createImmutable')) {
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->safeLoad();
}
// Initialize the deactivation feedback survey.
if (class_exists('\SmashBalloon\YoutubeFeed\Vendor\Smashballoon\Framework\Packages\Feedback\FeedbackManager')) {
$sby_is_pro = defined('SBY_PRO') && SBY_PRO;
\SmashBalloon\YoutubeFeed\Vendor\Smashballoon\Framework\Packages\Feedback\FeedbackManager::init([
'plugin_slug' => $sby_is_pro ? 'feeds-for-youtube-pro' : 'feeds-for-youtube',
'plugin_name' => $sby_is_pro ? 'Smash Balloon Feeds for YouTube Pro' : 'Smash Balloon Feeds for YouTube',
'plugin_version' => defined('SBYVER') ? SBYVER : '',
'plugin_file' => $sby_is_pro ? dirname(__FILE__) . '/youtube-feed-pro.php' : dirname(__FILE__) . '/youtube-feed.php',
'support_url' => 'https://smashballoon.com/support/?utm_campaign=' . ( $sby_is_pro ? 'youtube-pro' : 'youtube-free' ) . '&utm_source=support&utm_medium=support',
'enable_help_widget' => true,
'help_url' => 'https://smashballoon.com/docs/youtube/',
// Settings/Help/About/Single-Videos/Setup pages use the SBY_SLUG
// ('youtube-feed') prefix, which isn't in the Help Widget's built-in
// slug→prefix map (only 'sb-youtube'/'sby'/'feeds-for-youtube' are).
// Without these the FAB only renders on the 'sby-feed-builder' page.
'help_widget_screens' => [
'youtube-feed-settings',
'youtube-feed-support',
'youtube-feed-about',
'youtube-feed-single-videos',
'youtube-feed-setup',
],
]);
}