'Superb Addons', 'slug' => 'superb-blocks', 'required' => false, ), ); $config = array( 'id' => 'awardify', 'default_path' => '', 'menu' => 'tgmpa-install-plugins', 'has_notices' => true, 'dismissable' => true, 'dismiss_msg' => '', 'is_automatic' => true, 'message' => '', ); tgmpa($plugins, $config); } function awardify_pattern_styles() { wp_enqueue_style('awardify-patterns', get_template_directory_uri() . '/assets/css/patterns.css', array(), filemtime(get_template_directory() . '/assets/css/patterns.css')); if (is_admin()) { global $pagenow; if ('site-editor.php' === $pagenow) { // Do not enqueue editor style in site editor return; } wp_enqueue_style('awardify-editor', get_template_directory_uri() . '/assets/css/editor.css', array(), filemtime(get_template_directory() . '/assets/css/editor.css')); } } add_action('enqueue_block_assets', 'awardify_pattern_styles'); add_theme_support('wp-block-styles'); // Removes the default wordpress patterns add_action('init', function () { remove_theme_support('core-block-patterns'); }); // Register customer Awardify pattern categories function awardify_register_block_pattern_categories() { register_block_pattern_category( 'header', array( 'label' => __('Header', 'awardify'), 'description' => __('Header patterns', 'awardify'), ) ); register_block_pattern_category( 'call_to_action', array( 'label' => __('Call To Action', 'awardify'), 'description' => __('Call to action patterns', 'awardify'), ) ); register_block_pattern_category( 'content', array( 'label' => __('Content', 'awardify'), 'description' => __('Awardify content patterns', 'awardify'), ) ); register_block_pattern_category( 'teams', array( 'label' => __('Teams', 'awardify'), 'description' => __('Team patterns', 'awardify'), ) ); register_block_pattern_category( 'banners', array( 'label' => __('Banners', 'awardify'), 'description' => __('Banner patterns', 'awardify'), ) ); register_block_pattern_category( 'contact', array( 'label' => __('Contact', 'awardify'), 'description' => __('Contact patterns', 'awardify'), ) ); register_block_pattern_category( 'layouts', array( 'label' => __('Layouts', 'awardify'), 'description' => __('layout patterns', 'awardify'), ) ); register_block_pattern_category( 'testimonials', array( 'label' => __('Testimonial', 'awardify'), 'description' => __('Testimonial and review patterns', 'awardify'), ) ); } add_action('init', 'awardify_register_block_pattern_categories'); // Initialize information content require_once trailingslashit(get_template_directory()) . 'inc/vendor/autoload.php'; use SuperbThemesThemeInformationContent\ThemeEntryPoint; ThemeEntryPoint::init([ 'theme_url' => 'https://superbthemes.com/awardify/', 'demo_url' => 'https://superbthemes.com/demo/awardify/' ]);