<?php
/**
 * Plugin Name:       StockTitan News Feed
 * Description:       Stock market news feed block covering NYSE, NASDAQ, OTC finance headlines with easy styling controls.
 * Version:           1.0.4
 * Author:            StockTitan
 * Author URI:        https://stocktitan.net
 * Requires at least: 6.3
 * Tested up to:      6.9
 * Requires PHP:      8.1
 * License:           GPL-2.0-or-later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       stocktitan-news-feed-block
 * Domain Path:       /languages
 *
 * IMPORTANT: The plugin slug is stocktitan-news-feed-block
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; }

// Plugin constants
define( 'STNF_VERSION', '1.0.4' );
define( 'STNF_FILE', __FILE__ );
define( 'STNF_PATH', plugin_dir_path( __FILE__ ) );
define( 'STNF_URL', plugin_dir_url( __FILE__ ) );

// ---------------------------------------------------------------------
// HARD-WIRED API BASE (no UI)
if ( ! defined( 'STNF_API_BASE' ) ) {
	// Your base URL (no token here)
	define( 'STNF_API_BASE', 'https://wpapi.stocktitan.net/api/news/json' );
}

// Shared API token (plain text).
if ( ! defined( 'STNF_API_TOKEN' ) ) {
	define( 'STNF_API_TOKEN', 'nNngJ0LgmazMiHUrBSZ6PcLpV2R19bG7P4T7AT1fUsTx4o1AZm576U1HHAMoV4IC' );
}

// i18n: For WordPress.org, translations load automatically; no manual load needed.

// Includes
require_once STNF_PATH . 'includes/class-main.php';

// Boot
\Stnf\StocktitanNewsFeed\Plugin::get_instance();
