<?php   
/**
 * @package Business Cover Lite
 */
 require_once get_template_directory()."/pub/customizer/business-cover-lite-customization.php";
 require_once get_template_directory()."/pub/core/business-cover-lite-footer-widget-functions.php";
 require_once get_template_directory()."/pub/core/business-cover-lite-style-functions.php";
 require_once get_template_directory()."/pub/core/business-cover-lite-setup-functions.php";
 require_once get_template_directory()."/pub/core/business-cover-lite-widget-functions.php";
 require_once get_template_directory()."/pub/core/business-cover-lite-page-functions.php";
 /**
 * Registers an editor stylesheet in a sub-directory.
 */
function business_cover_lite_add_editor_styles_sub_dir() {
    add_editor_style(trailingslashit(get_template_directory_uri()) . '/pub/css/business-cover-lite-editor-style.css');
}

add_action('after_setup_theme', 'business_cover_lite_add_editor_styles_sub_dir');

function business_cover_lite_register_block_extras() {
    if (function_exists('register_block_style')) {
        register_block_style('core/button', array(
            'name'  => 'business-cta',
            'label' => esc_html__('Business CTA', 'business-cover-lite'),
        ));
    }
    if (function_exists('register_block_pattern')) {
        register_block_pattern('business-cover-lite/cta', array(
            'title'   => esc_html__('Call to action', 'business-cover-lite'),
            'content' => '<!-- wp:buttons --><div class="wp-block-buttons"><!-- wp:button --><div class="wp-block-button"><a class="wp-block-button__link">Get Started</a></div><!-- /wp:button --></div><!-- /wp:buttons -->',
        ));
    }
}
add_action('init', 'business_cover_lite_register_block_extras');
