<?php
/**
 * Plugin Name:       BW Pricing Card
 * Plugin URI:        https://plugins.bowden.works/bw-pricing-card/
 * Description:       Gutenberg block for a 3-up pricing tier section. Cards wrap to a new row after the third, support inline RichText editing for tier label, price, description, feature items, and button text, plus a Most Popular toggle, four customizer-aware button styles (Fill / Theme / Secondary / Outline Base), and add/remove for both cards and feature items.
 * Version:           0.1.0
 * Requires at least: 6.0
 * Requires PHP:      7.4
 * Author:            Bowden Works
 * Author URI:        https://bowden.works
 * License:           GPL-2.0-or-later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       bw-pricing-card
 * Domain Path:       /languages
 * Update URI:        https://plugins.bowden.works/bw-pricing-card/
 */

defined( 'ABSPATH' ) || exit;

define( 'BW_PRICING_CARD_VERSION', '0.1.0' );
define( 'BW_PRICING_CARD_FILE', __FILE__ );
define( 'BW_PRICING_CARD_DIR', plugin_dir_path( __FILE__ ) );
define( 'BW_PRICING_CARD_URL', plugin_dir_url( __FILE__ ) );

/**
 * Register the BW Pricing Card block from its block.json manifest.
 */
function bw_pricing_card_register_block() {
    register_block_type( BW_PRICING_CARD_DIR . 'blocks/bw-pricing-card' );
}
add_action( 'init', 'bw_pricing_card_register_block' );

/**
 * Load translations.
 */
function bw_pricing_card_load_textdomain() {
    load_plugin_textdomain(
        'bw-pricing-card',
        false,
        dirname( plugin_basename( BW_PRICING_CARD_FILE ) ) . '/languages'
    );
}
add_action( 'plugins_loaded', 'bw_pricing_card_load_textdomain' );
