<?php
/**
* Plugin Name: Cost Calculator & Cost Estimation
* Description:  WordPress Calculator helps you to build any type of estimation forms on a few easy steps
* Author: add-ons.org
* Version: 1.9.0
* Author URI: https://add-ons.org/
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
define( 'CALCULATION_FORMS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'CALCULATION_FORMS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'CALCULATION_FORMS_PREMIUM', true );
include CALCULATION_FORMS_PLUGIN_PATH."vendor/autoload.php";
include_once CALCULATION_FORMS_PLUGIN_PATH."yeekit/document.php";
foreach (glob(CALCULATION_FORMS_PLUGIN_PATH."backend/*.php") as $filename){
    include $filename;
}
foreach (glob(CALCULATION_FORMS_PLUGIN_PATH."backend/block_editor/*.php") as $filename){
    include $filename;
}
foreach (glob(CALCULATION_FORMS_PLUGIN_PATH."fields/*.php") as $filename){
    include $filename;
}
foreach (glob(CALCULATION_FORMS_PLUGIN_PATH."frontend/*.php") as $filename){
    include $filename;
}
$dir = new RecursiveDirectoryIterator(CALCULATION_FORMS_PLUGIN_PATH."modules");
$ite = new RecursiveIteratorIterator($dir);
$files = new RegexIterator($ite, "/\.php/", RegexIterator::MATCH);
foreach ($files as $file) {
    if (!$file->isDir()){
        include $file->getPathname();
    }
}