<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
/**
 * Basic SEO Helper
 *
 * @package     CSPGBasicSEOHelper
 * @author      CSP Geeks LLC
 * @copyright   2025 CSP Geeks LLC
 * @license     GPL-2.0+
 *
 * @wordpress-plugin
 * Plugin Name: CSPG Basic SEO Helper
 * Plugin URI:  https://plugins.cspgeeks.com/cspg-basic-seo-helper/
 * Description: A simple SEO helper plugin that creates meta HTML for social media grids and identifiers.
 * Version:     1.2.18
 * Author:      CSP Geeks LLC
 * Author URI:  https://www.cspgeeks.com
 * Text Domain: cspg-basic-seo-helper
 * License:     GPL-2.0+
 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
 * Domain Path: /languages
 * Requires at least: 5.0
 * Tested up to: 6.9
 * Requires PHP: 7.4
 */

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

/**
 * Currently plugin version.
 * Start at version 1.0.0 and use SemVer - https://semver.org
 */
define( 'CSPG_BASIC_SEO_HELPER_VERSION', '1.2.18' );
define( 'CSPG_BASIC_SEO_HELPER_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'CSPG_BASIC_SEO_HELPER_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'CSPG_BASIC_SEO_HELPER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );

/**
 * License server URL for development/Docker environment
 * This should point to the Docker license server container
 */
if ( ! defined( 'CSPG_BSH_LICENSE_SERVER_URL' ) ) {
	define( 'CSPG_BSH_LICENSE_SERVER_URL', 'http://cspg-basic-seo-helper-license-server/api' );
}

/**
 * The code that runs during plugin activation.
 * This action is documented in includes/class-cspg-basic-seo-helper-activator.php
 */
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Standard WordPress activation/deactivation hooks
function activate_cspg_basic_seo_helper() {
	require_once CSPG_BASIC_SEO_HELPER_PLUGIN_PATH . 'includes/class-cspg-basic-seo-helper-activator.php';
	CSPG_Basic_SEO_Helper_Activator::activate();
}

/**
 * The code that runs during plugin deactivation.
 * This action is documented in includes/class-cspg-basic-seo-helper-deactivator.php
 */
function deactivate_cspg_basic_seo_helper() {
	require_once CSPG_BASIC_SEO_HELPER_PLUGIN_PATH . 'includes/class-cspg-basic-seo-helper-deactivator.php';
	CSPG_Basic_SEO_Helper_Deactivator::deactivate();
}

register_activation_hook( __FILE__, 'activate_cspg_basic_seo_helper' );
register_deactivation_hook( __FILE__, 'deactivate_cspg_basic_seo_helper' );

/**
 * The core plugin class that is used to define internationalization,
 * admin-specific hooks, and public-facing site hooks.
 */
require CSPG_BASIC_SEO_HELPER_PLUGIN_PATH . 'includes/class-cspg-basic-seo-helper.php';

/**
 * Begins execution of the plugin.
 *
 * Since everything within the plugin is registered via hooks,
 * then kicking off the plugin from this point in the file does
 * not affect the page life cycle.
 *
 * @since    1.0.0
 */
function run_cspg_basic_seo_helper() {
	$plugin = new CSPG_Basic_SEO_Helper();
	$plugin->run();
}
run_cspg_basic_seo_helper();
