esc_html__('Blog Eye', 'blog-eye'))
);
}
// Register patterns
if (function_exists('register_block_pattern')) {
// Two column text pattern
register_block_pattern(
'blog-eye/two-column-text',
array(
'title' => esc_html__('Two Column Text', 'blog-eye'),
'description' => esc_html__('Two columns of text with a heading.', 'blog-eye'),
'content' => '
' . esc_html__('Two Column Section', 'blog-eye') . '
' . esc_html__('This is the first column of text. You can write about your services, products, or any content that fits your needs.', 'blog-eye') . '
' . esc_html__('This is the second column of text. You can write about your services, products, or any content that fits your needs.', 'blog-eye') . '
',
'categories' => array('blog-eye', 'columns'),
)
);
// Featured content pattern
register_block_pattern(
'blog-eye/featured-content',
array(
'title' => esc_html__('Featured Content', 'blog-eye'),
'description' => esc_html__('A featured content section with image and text.', 'blog-eye'),
'content' => '
' . esc_html__('Featured Content Title', 'blog-eye') . '
' . esc_html__('This is featured content that highlights important information about your blog, services, or products.', 'blog-eye') . '
',
'categories' => array('blog-eye', 'featured'),
)
);
// Call to action pattern
register_block_pattern(
'blog-eye/call-to-action',
array(
'title' => esc_html__('Call to Action', 'blog-eye'),
'description' => esc_html__('A centered call to action section.', 'blog-eye'),
'content' => '
' . esc_html__('Ready to Get Started?', 'blog-eye') . '
' . esc_html__('Join thousands of satisfied customers and take your business to the next level.', 'blog-eye') . '
',
'categories' => array('blog-eye', 'call-to-action'),
)
);
// Blog post grid pattern
register_block_pattern(
'blog-eye/blog-grid',
array(
'title' => esc_html__('Blog Post Grid', 'blog-eye'),
'description' => esc_html__('A grid layout for displaying blog posts.', 'blog-eye'),
'content' => '
' . esc_html__('Latest Blog Posts', 'blog-eye') . '
',
'categories' => array('blog-eye', 'posts'),
)
);
}
}
add_action('init', 'blog_eye_register_block_patterns');
/**
* Remove core block patterns if needed
*/
function blog_eye_remove_core_patterns() {
// Uncomment below to remove all core patterns
// remove_theme_support('core-block-patterns');
}
add_action('after_setup_theme', 'blog_eye_remove_core_patterns');