[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Block Patterns 4 * 5 * @link https://developer.wordpress.org/reference/functions/register_block_pattern/ 6 * @link https://developer.wordpress.org/reference/functions/register_block_pattern_category/ 7 * 8 * @package WordPress 9 * @subpackage Twenty_Nineteen 10 * @since Twenty Nineteen 1.8 11 */ 12 13 /** 14 * Register Block Pattern Category. 15 */ 16 if ( function_exists( 'register_block_pattern_category' ) ) { 17 18 register_block_pattern_category( 19 'twentynineteen', 20 array( 'label' => esc_html__( 'Twenty Nineteen', 'twentynineteen' ) ) 21 ); 22 } 23 24 /** 25 * Register Block Patterns. 26 */ 27 if ( function_exists( 'register_block_pattern' ) ) { 28 29 // About. 30 register_block_pattern( 31 'twentynineteen/about', 32 array( 33 'title' => esc_html__( 'About', 'twentynineteen' ), 34 'categories' => array( 'twentynineteen' ), 35 'content' => implode( 36 '', 37 array( 38 '<!-- wp:paragraph {"fontSize":"huge","style":{"typography":{"lineHeight":"1.3"}}} -->', 39 '<p class="has-huge-font-size" style="line-height:1.3">' . esc_html__( 'Advocating for Businesses and Entrepreneurs since 2014', 'twentynineteen' ) . '</p>', 40 '<!-- /wp:paragraph -->', 41 '<!-- wp:paragraph -->', 42 '<p>' . esc_html__( 'Eva Young Consulting was founded in 2014 to meet the needs of small businesses in the San Francisco Bay Area. We help startups define a clear brand identity and digital strategy that will carry them through their financing rounds and scale as their business grows. Discover how we can boost your brand with a unique and powerful digital marketing strategy.', 'twentynineteen' ) . '</p>', 43 '<!-- /wp:paragraph -->', 44 '<!-- wp:buttons -->', 45 '<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"dark-gray"} -->', 46 '<div class="wp-block-button"><a class="wp-block-button__link has-dark-gray-background-color has-background">' . esc_html__( 'Learn More', 'twentynineteen' ) . '</a></div>', 47 '<!-- /wp:button --></div>', 48 '<!-- /wp:buttons -->', 49 ) 50 ), 51 ) 52 ); 53 54 // Get In Touch. 55 register_block_pattern( 56 'twentynineteen/get-in-touch', 57 array( 58 'title' => esc_html__( 'Get In Touch', 'twentynineteen' ), 59 'categories' => array( 'twentynineteen' ), 60 'content' => implode( 61 '', 62 array( 63 '<!-- wp:paragraph {"fontSize":"huge"} -->', 64 '<p class="has-huge-font-size">' . esc_html__( 'Get In Touch', 'twentynineteen' ) . '</p>', 65 '<!-- /wp:paragraph -->', 66 '<!-- wp:columns -->', 67 '<div class="wp-block-columns"><!-- wp:column -->', 68 '<div class="wp-block-column"><!-- wp:paragraph -->', 69 '<p>' . esc_html__( '20 Cooper Avenue', 'twentynineteen' ) . '<br>' . esc_html__( 'New York, New York 10023', 'twentynineteen' ) . '</p>', 70 '<!-- /wp:paragraph --></div>', 71 '<!-- /wp:column -->', 72 '<!-- wp:column -->', 73 '<div class="wp-block-column"><!-- wp:paragraph -->', 74 '<p>' . esc_html__( '(555) 555-5555', 'twentynineteen' ) . '<br><a href="mailto:example@example.com">' . esc_html__( 'example@example.com', 'twentynineteen' ) . '</a></p>', 75 '<!-- /wp:paragraph --></div>', 76 '<!-- /wp:column --></div>', 77 '<!-- /wp:columns -->', 78 '<!-- wp:buttons -->', 79 '<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"dark-gray"} -->', 80 '<div class="wp-block-button"><a class="wp-block-button__link has-dark-gray-background-color has-background">' . esc_html__( 'Contact Us', 'twentynineteen' ) . '</a></div>', 81 '<!-- /wp:button --></div>', 82 '<!-- /wp:buttons -->', 83 ) 84 ), 85 ) 86 ); 87 88 // Services. 89 register_block_pattern( 90 'twentynineteen/services', 91 array( 92 'title' => esc_html__( 'Services', 'twentynineteen' ), 93 'categories' => array( 'twentynineteen' ), 94 'content' => implode( 95 '', 96 array( 97 '<!-- wp:heading -->', 98 '<h2>' . esc_html__( 'Services', 'twentynineteen' ) . '</h2>', 99 '<!-- /wp:heading -->', 100 '<!-- wp:columns {"className":"has-2-columns"} -->', 101 '<div class="wp-block-columns has-2-columns"><!-- wp:column -->', 102 '<div class="wp-block-column"><!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_01.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->', 103 '<div class="wp-block-media-text alignwide" style="grid-template-columns:10% auto"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_01.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->', 104 '<p>' . esc_html__( 'Website Design', 'twentynineteen' ) . '</p>', 105 '<!-- /wp:paragraph --></div></div>', 106 '<!-- /wp:media-text -->', 107 '<!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_02.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->', 108 '<div class="wp-block-media-text alignwide" style="grid-template-columns:10% auto"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_02.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->', 109 '<p>' . esc_html__( 'Mobile', 'twentynineteen' ) . '</p>', 110 '<!-- /wp:paragraph --></div></div>', 111 '<!-- /wp:media-text -->', 112 '<!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_03.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->', 113 '<div class="wp-block-media-text alignwide" style="grid-template-columns:10% auto"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_03.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->', 114 '<p>' . esc_html__( 'Social Media', 'twentynineteen' ) . '</p>', 115 '<!-- /wp:paragraph --></div></div>', 116 '<!-- /wp:media-text --></div>', 117 '<!-- /wp:column -->', 118 '<!-- wp:column -->', 119 '<div class="wp-block-column"><!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_03.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->', 120 '<div class="wp-block-media-text alignwide" style="grid-template-columns:10% auto"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_03.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->', 121 '<p>' . esc_html__( 'Marketing', 'twentynineteen' ) . '</p>', 122 '<!-- /wp:paragraph --></div></div>', 123 '<!-- /wp:media-text -->', 124 '<!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_04.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->', 125 '<div class="wp-block-media-text alignwide" style="grid-template-columns:10% auto"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_04.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->', 126 '<p>' . esc_html__( 'Copywriting', 'twentynineteen' ) . '</p>', 127 '<!-- /wp:paragraph --></div></div>', 128 '<!-- /wp:media-text -->', 129 '<!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_01.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->', 130 '<div class="wp-block-media-text alignwide" style="grid-template-columns:10% auto"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_01.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->', 131 '<p>' . esc_html__( 'Content Strategy', 'twentynineteen' ) . '</p>', 132 '<!-- /wp:paragraph --></div></div>', 133 '<!-- /wp:media-text --></div>', 134 '<!-- /wp:column --></div>', 135 '<!-- /wp:columns -->', 136 ) 137 ), 138 ) 139 ); 140 141 // Team. 142 register_block_pattern( 143 'twentynineteen/team', 144 array( 145 'title' => esc_html__( 'Team', 'twentynineteen' ), 146 'categories' => array( 'twentynineteen' ), 147 'viewportWidth' => 1400, 148 'content' => implode( 149 '', 150 array( 151 '<!-- wp:heading -->', 152 '<h2>' . esc_html__( 'Team', 'twentynineteen' ) . '</h2>', 153 '<!-- /wp:heading -->', 154 '<!-- wp:media-text {"mediaType":"image","mediaWidth":28,"imageFill":true} -->', 155 '<div class="wp-block-media-text alignwide is-stacked-on-mobile is-image-fill" style="grid-template-columns:28% auto"><figure class="wp-block-media-text__media" style="background-image:url(' . esc_url( get_template_directory_uri() ) . '/images/pattern_01.jpg);background-position:50% 50%"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_01.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:heading {"level":3} -->', 156 '<h3>' . esc_html__( 'Eva Young', 'twentynineteen' ) . '</h3>', 157 '<!-- /wp:heading -->', 158 '<!-- wp:paragraph -->', 159 '<p>' . esc_html__( 'Eva Young grew up working alongside her parents at their restaurant in Queens, NY. She opened Eva Young Consulting in 2014 to help small businesses like her parents’ restaurant adapt to the digital age.', 'twentynineteen' ) . '</p>', 160 '<!-- /wp:paragraph --></div></div>', 161 '<!-- /wp:media-text -->', 162 '<!-- wp:media-text {"mediaType":"image","mediaWidth":28,"imageFill":true} -->', 163 '<div class="wp-block-media-text alignwide is-stacked-on-mobile is-image-fill" style="grid-template-columns:28% auto"><figure class="wp-block-media-text__media" style="background-image:url(' . esc_url( get_template_directory_uri() ) . '/images/pattern_02.jpg);background-position:50% 50%"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_02.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:heading {"level":3} -->', 164 '<h3>' . esc_html__( 'Doug Watson', 'twentynineteen' ) . '</h3>', 165 '<!-- /wp:heading -->', 166 '<!-- wp:paragraph -->', 167 '<p>' . esc_html__( 'Oddly enough, Doug Watson also grew up working alongside his parents at a family-owned restaurant in Queens, NY. He worked on digital campaigns for Fortune 500 Companies before joining Eva Green Consulting.', 'twentynineteen' ) . '</p>', 168 '<!-- /wp:paragraph --></div></div>', 169 '<!-- /wp:media-text -->', 170 ) 171 ), 172 ) 173 ); 174 175 // What We Do. 176 register_block_pattern( 177 'twentynineteen/what-we-do', 178 array( 179 'title' => esc_html__( 'What We Do', 'twentynineteen' ), 180 'categories' => array( 'twentynineteen' ), 181 'viewportWidth' => 1400, 182 'content' => implode( 183 '', 184 array( 185 '<!-- wp:heading -->', 186 '<h2>' . esc_html__( 'What We Do', 'twentynineteen' ) . '</h2>', 187 '<!-- /wp:heading -->', 188 '<!-- wp:pullquote {"align":"wide","className":"is-style-solid-color"} -->', 189 '<figure class="wp-block-pullquote alignwide is-style-solid-color"><blockquote><p>' . esc_html__( 'Redefine brands', 'twentynineteen' ) . '</p><cite>' . esc_html__( 'We help startups define (or refine) a clear brand identity.', 'twentynineteen' ) . '</cite></blockquote></figure>', 190 '<!-- /wp:pullquote -->', 191 '<!-- wp:pullquote {"mainColor":"dark-gray","customTextColor":"#ffffff","align":"wide","className":"is-style-solid-color"} -->', 192 '<figure class="wp-block-pullquote alignwide has-background has-dark-gray-background-color is-style-solid-color"><blockquote class="has-text-color" style="color:#ffffff"><p>' . esc_html__( 'Activate new customers', 'twentynineteen' ) . '</p><cite>' . esc_html__( 'We help businesses grow.', 'twentynineteen' ) . '</cite></blockquote></figure>', 193 '<!-- /wp:pullquote -->', 194 '<!-- wp:pullquote {"customMainColor":"#f7f7f7","customTextColor":"#111111","align":"wide","className":"is-style-solid-color"} -->', 195 '<figure class="wp-block-pullquote alignwide has-background is-style-solid-color" style="background-color:#f7f7f7"><blockquote class="has-text-color" style="color:#111111"><p>' . esc_html__( 'Spark interest on social media', 'twentynineteen' ) . '</p><cite>' . esc_html__( 'We help companies communicate with their customers.', 'twentynineteen' ) . '</cite></blockquote></figure>', 196 '<!-- /wp:pullquote -->', 197 ) 198 ), 199 ) 200 ); 201 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |