<?php
/*
* Plugin Name: Advanced Crossword
* Plugin URI: https://tuskcode.com
* Version: 1.2.2
* Author: dan009
* Description: Create a beautiful, responsive 15x15 grid crossword to your liking. You have full control over the blank cells and the clues. Unlimited crossword puzzle in your website. Responsive and lightweight.
* Text Domain: advanced-crossword
* License: GPLv3
*/

if( ! defined('ABSPATH') )
    die;

if( ! defined('PC_PUZZLE_CROSSWORD_VER')) define('PC_PUZZLE_CROSSWORD_VER', '1.2.2');
if( ! defined('PC_PUZZLE_CROSSWORD_URL')) define( 'PC_PUZZLE_CROSSWORD_URL', plugins_url( '', __FILE__ ) );
if( ! defined('PC_PUZZLE_CROSSWORD_PATH') ) define('PC_PUZZLE_CROSSWORD_PATH', wp_normalize_path( plugin_dir_path( __FILE__ )) );
if( ! defined('PC_PUZZLE_CROSSWORD_SHORTCODE') ) define( 'PC_PUZZLE_CROSSWORD_SHORTCODE', 'ADVANCED_CROSSWORD');

function Pc_Puzzle_Crossword_i18n_init(){
    $pluginDir = dirname( plugin_basename(__FILE__) );
    load_plugin_textdomain( 'advanced-crossword' , false, $pluginDir . '/languages/');
}

include_once( 'Pc_Puzzle_Crossword_init.php'); 
if( function_exists('PcPuzzleCrossword_init')){   
    PcPuzzleCrossword_init( __FILE__ );
}

add_action( 'init', 'Pc_Puzzle_Crossword_i18n_init');    