Browse Source

Added large illustration patterns (#6585)

Jason Crist 2 years ago
parent
commit
0df4923b09

File diff suppressed because it is too large
+ 8 - 0
decibel/assets/illustrations/illustration_1.svg


File diff suppressed because it is too large
+ 7 - 0
decibel/assets/illustrations/illustration_2.svg


+ 2 - 3
decibel/functions.php

@@ -57,7 +57,7 @@ endif;
 
 add_action( 'wp_enqueue_scripts', 'decibel_styles' );
 
-function decibel_init_pattern_categories() {
+function decibel_init() {
 	if ( ! WP_Block_Pattern_Categories_Registry::get_instance()->is_registered( 'illustrations' ) ) {
 		register_block_pattern_category( 'illustrations', array( 'label' => __( 'Illustrations', 'decibel' ) ) );
 	}
@@ -69,7 +69,6 @@ function decibel_init_pattern_categories() {
 			'label' => __( 'Button', 'decibel' ),
 		)
 	);
-
 }
 
-add_action( 'init', 'decibel_init_pattern_categories' );
+add_action( 'init', 'decibel_init' );

+ 12 - 0
decibel/patterns/illustration_1.php

@@ -0,0 +1,12 @@
+<?php
+/**
+ * Title: Illustration 1
+ * Slug: decibel/illustration_1
+ * Categories: illustrations
+ */
+?>
+<!-- wp:image {"sizeSlug":"full","linkDestination":"none"} -->
+<figure class="wp-block-image size-full">
+	<img src="<?php echo esc_url( get_stylesheet_directory_uri() ) . '/assets/illustrations/illustration_1.svg'; ?>" />
+</figure>
+<!-- /wp:image -->

+ 12 - 0
decibel/patterns/illustration_2.php

@@ -0,0 +1,12 @@
+<?php
+/**
+ * Title: Illustration 2
+ * Slug: decibel/illustration_b2
+ * Categories: illustrations
+ */
+?>
+<!-- wp:image {"sizeSlug":"full","linkDestination":"none"} -->
+<figure class="wp-block-image size-full">
+	<img src="<?php echo esc_url( get_stylesheet_directory_uri() ) . '/assets/illustrations/illustration_2.svg'; ?>" />
+</figure>
+<!-- /wp:image -->

Some files were not shown because too many files changed in this diff