<?php if (!defined('WPINC'))
    die;

/**
 * @package   Flow_Flow
 * @author    Looks Awesome <hello@looks-awesome.com>

 * @link      http://looks-awesome.com
 * @copyright Looks Awesome
 *
 * @wordpress-plugin
 * Plugin Name:       Flow-Flow Social Feeds
 * Plugin URI:        https://social-streams.com
 * Description:       Awesome social streams on your website
 * Version:           5.0.5
 * Author:            Looks Awesome
 * Author URI:        https://looks-awesome.com
 * Text Domain:       flow-flow
 * Domain Path:       /languages
 * Requires at least: 5.0
 * Requires PHP:      5.6
 * License:           GPLv2 or later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 */
if (!defined('FF_USE_WP'))
    define('FF_USE_WP', true);
if (!defined('FF_USE_WPDB'))
    define('FF_USE_WPDB', false);
if (!defined('FF_USE_WP_CRON'))
    define('FF_USE_WP_CRON', true);
if (!defined('FF_USE_DIRECT_WP_CRON'))
    define('FF_USE_DIRECT_WP_CRON', false);
if (!defined('FF_FORCE_FIT_MEDIA'))
    define('FF_FORCE_FIT_MEDIA', false);
if (!defined('FF_FEED_POSTS_COUNT'))
    define('FF_FEED_POSTS_COUNT', 100);
if (!defined('FF_FEED_INIT_COUNT_POSTS'))
    define('FF_FEED_INIT_COUNT_POSTS', 20);
if (!defined('FF_LOCALE'))
    define('FF_LOCALE', get_locale());//TODO add a slash to the end
if (!defined('FF_DB_CHARSET'))
    define('FF_DB_CHARSET', defined('DB_CHARSET') ? DB_CHARSET : 'utf8mb4');
if (!defined('FF_REMOVE_EMOJI'))
    define('FF_REMOVE_EMOJI', true);
if (!defined('FF_ALTERNATIVE_POST_STORAGE'))
    define('FF_ALTERNATIVE_POST_STORAGE', false);
if (!defined('FF_LOG_FILE_DEST'))
    define('FF_LOG_FILE_DEST', plugin_dir_path(__FILE__) . 'flow-flow-debug.log');
if (!defined('FF_BOOST_SERVER'))
    define('FF_BOOST_SERVER', '');

// phpcs:ignore WordPress.Security.NonceVerification.Recommended
if (!isset($_REQUEST['action']) || $_REQUEST['action'] != 'heartbeat') {
    require_once(__DIR__ . '/libs/autoload.php');
    $flow_flow_facade = la\core\LAActivatorFacade::get();
    $flow_flow_facade->registry_activator(new flow\FlowFlowActivator(__FILE__));
}