__('Hero Section with CTA', 'ai-blog'), 'description' => __('A hero section with heading, description and call-to-action buttons', 'ai-blog'), 'content' => '

' . __('Discover the latest trends in artificial intelligence and technology', 'ai-blog') . '

', 'categories' => array('ai-blog-patterns'), 'keywords' => array('hero', 'banner', 'header'), 'viewportWidth' => 1200, // Optional: sets preview width 'blockTypes' => array('core/group'), // Optional: suggests where to use ) ); // Featured Posts Pattern register_block_pattern( 'ai-blog/featured-posts', array( 'title' => __('Featured Posts Grid', 'ai-blog'), 'description' => __('A grid layout showing featured posts with images', 'ai-blog'), 'content' => '

Featured Posts

AI in Healthcare

Exploring how artificial intelligence is revolutionizing healthcare and medical diagnostics.

Machine Learning Basics

Understanding the fundamentals of machine learning and its practical applications.

Future of AI

Predictions and insights into what the future holds for artificial intelligence technology.

', 'categories' => array('ai-blog-patterns'), 'keywords' => array('posts', 'grid', 'featured', 'blog'), ) ); // About Section Pattern register_block_pattern( 'ai-blog/about-section', array( 'title' => __('About Section with Image', 'ai-blog'), 'description' => __('An about section with image and text content', 'ai-blog'), 'content' => '

About AI Blog

Welcome to AI Blog, your premier destination for cutting-edge insights into artificial intelligence and emerging technologies. Our mission is to make complex AI concepts accessible to everyone.

', 'categories' => array('ai-blog-patterns'), 'keywords' => array('about', 'team', 'company', 'image'), ) ); // Newsletter Signup Pattern register_block_pattern( 'ai-blog/newsletter-signup', array( 'title' => __('Newsletter Signup Section', 'ai-blog'), 'description' => __('A newsletter signup section', 'ai-blog'), 'content' => '

' . __('Stay Updated with AI News', 'ai-blog') . '

' . __('Get the latest AI insights delivered to your inbox.', 'ai-blog') . '

' . __('Enter your email...', 'ai-blog') . '

', 'categories' => array('ai-blog-patterns'), 'keywords' => array('newsletter', 'signup', 'email'), ) ); // Call to Action Pattern register_block_pattern( 'ai-blog/call-to-action', array( 'title' => __('Call to Action Banner', 'ai-blog'), 'description' => __('A simple call to action banner', 'ai-blog'), 'content' => '

' . __('Ready to Explore AI?', 'ai-blog') . '

' . __('Join thousands of readers who trust AI Blog for the latest insights and tutorials.', 'ai-blog') . '

', 'categories' => array('ai-blog-patterns'), 'keywords' => array('call-to-action', 'cta', 'banner'), ) ); } } /** * Register block pattern category */ function ai_blog_register_pattern_category() { if (function_exists('register_block_pattern_category')) { register_block_pattern_category( 'ai-blog-patterns', array( 'label' => __('AI Blog Patterns', 'ai-blog'), ) ); } } // Hook into init add_action('init', 'ai_blog_register_pattern_category'); add_action('init', 'ai_blog_register_block_patterns');