<?php

require get_template_directory() . '/includes/welcome/welcome-init.php';
require get_template_directory() . '/includes/upgrade-upsell.php';


/**
 * Main css
 */
function vividone_theme_enqueue_styles()
{
    wp_enqueue_style(
        'vividone_theme-primary-css',
        get_template_directory_uri() . '/resources/css/primary.css',
        array(),
        wp_get_theme()->get('Version'),
        'all'
    );
}
add_action('wp_enqueue_scripts', 'vividone_theme_enqueue_styles');


/**
 * Main js
 */
function vividone_theme_js_script()
{
    wp_enqueue_script(
        'vividone_theme-primary-js',
        get_template_directory_uri() . '/resources/js/primary.js',
        array(),
        wp_get_theme()->get('Version'),
        true
    );
}
add_action('wp_enqueue_scripts', 'vividone_theme_js_script');


/**
 * Block patterns
 */
add_action('init', 'vividone_register_pattern_categories');
function vividone_register_pattern_categories()
{
    register_block_pattern_category(
        'vividone-templates',
        array(
            'label'       => __('Vividone Templates', 'vividone'),
            'description' => __('Page templates for the vividone theme.', 'vividone'),
        )
    );
}


