">5 年之前 3395 a4345e5759 first commit 5 年之前 3429 a4345e5759 first commit 5 年之前 3430 a4345e5759 first commit 5 年之前 3431 a4345e5759 first commit 5 年之前 3433 a4345e5759 first commit 5 年之前 3439 a4345e5759 first commit 5 年之前 3440 a4345e5759 first commit 5 年之前 3455 a4345e5759 first commit 5 年之前 3456 a4345e5759 first commit 5 年之前 3456_fsm a4345e5759 first commit 5 年之前 3456_vm a4345e5759 first commit 5 年之前 3466 a4345e5759 first commit 5 年之前 3467 a4345e5759 first commit 5 年之前 3468 a4345e5759 first commit 5 年之前 3501 a4345e5759 first commit 5 年之前 3502 a4345e5759 first commit 5 年之前 3503 a4345e5759 first commit 5 年之前 3534 a4345e5759 first commit 5 年之前 3541 a4345e5759 first commit 5 年之前 3541_fsm a4345e5759 first commit 5 年之前 3541_vm a4345e5759 first commit 5 年之前 3542 a4345e5759 first commit 5 年之前 3574 a4345e5759 first commit 5 年之前 3575 a4345e5759 first commit 5 年之前 3576 a4345e5759 first commit 5 年之前 3596 a4345e5759 first commit 5 年之前 3597 a4345e5759 first commit 5 年之前 3598 a4345e5759 first commit 5 年之前 3599 a4345e5759 first commit 5 年之前 3600 a4345e5759 first commit 5 年之前 3600_fsm a4345e5759 first commit 5 年之前 3600_vm a4345e5759 first commit 5 年之前 3601 a4345e5759 first commit 5 年之前 3601_fsm a4345e5759 first commit 5 年之前 3601_vm a4345e5759 first commit 5 年之前 3602 a4345e5759 first commit 5 年之前 3602_fsm a4345e5759 first commit 5 年之前 3602_vm a4345e5759 first commit 5 年之前 3603 a4345e5759 first commit 5 年之前 3603_fsm a4345e5759 first commit 5 年之前 3603_vm a4345e5759 first commit 5 年之前 3604 a4345e5759 first commit 5 年之前 3605 a4345e5759 first commit 5 年之前 3606 a4345e5759 first commit 5 年之前 3607 a4345e5759 first commit 5 年之前 3608 a4345e5759 first commit 5 年之前 3609 a4345e5759 first commit 5 年之前 3712 a4345e5759 first commit 5 年之前 3764 a4345e5759 first commit 5 年之前 3764_fsm a4345e5759 first commit 5 年之前 3764_vm a4345e5759 first commit 5 年之前 3766 a4345e5759 first commit 5 年之前 3767 a4345e5759 first commit 5 年之前 3997 a4345e5759 first commit 5 年之前 4143 a4345e5759 first commit 5 年之前 4144 a4345e5759 first commit 5 年之前 4145 a4345e5759 first commit 5 年之前 4146 a4345e5759 first commit 5 年之前 4147 a4345e5759 first commit 5 年之前 4148 a4345e5759 first commit 5 年之前 4149 a4345e5759 first commit 5 年之前 4150 a4345e5759 first commit 5 年之前 4151 a4345e5759 first commit 5 年之前 4152 a4345e5759 first commit 5 年之前 4153 a4345e5759 first commit 5 年之前 4154 a4345e5759 first commit 5 年之前 4155 a4345e5759 first commit 5 年之前 4156 a4345e5759 first commit 5 年之前 4157 a4345e5759 first commit 5 年之前 4158 a4345e5759 first commit 5 年之前 4159 a4345e5759 first commit 5 年之前 4160 a4345e5759 first commit 5 年之前 4161 a4345e5759 first commit 5 年之前 4162 a4345e5759 first commit 5 年之前 4163 a4345e5759 first commit 5 年之前 4164 a4345e5759 first commit 5 年之前 4165 a4345e5759 first commit 5 年之前 4166 a4345e5759 first commit 5 年之前 4167 a4345e5759 first commit 5 年之前 4168 a4345e5759 first commit 5 年之前 4169 a4345e5759 first commit 5 年之前 4170 a4345e5759 first commit 5 年之前 4171 a4345e5759 first commit 5 年之前 4172 a4345e5759 first commit 5 年之前 4173 a4345e5759 first commit 5 年之前 4174 a4345e5759 first commit 5 年之前 5002 a4345e5759 first commit 5 年之前 548 a4345e5759 first commit 5 年之前 549 a4345e5759 first commit 5 年之前 6102 a4345e5759 first commit 5 年之前 6104 a4345e5759 first commit 5 年之前 6106 a4345e5759 first commit 5 年之前 6110 a4345e5759 first commit 5 年之前 6111 a4345e5759 first commit 5 年之前 6112 a4345e5759 first commit 5 年之前 6113 a4345e5759 first commit 5 年之前 6117 a4345e5759 first commit 5 年之前 826 a4345e5759 first commit 5 年之前 827 a4345e5759 first commit 5 年之前 828 a4345e5759 first commit 5 年之前 PG_VERSION a4345e5759 first commit 5 年之前 pg_filenode.map a4345e5759 first commit 5 年之前 tum/whitesports - Gogs: Simplico Git Service

Нема описа

block-patterns.php 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. * Register Block Pattern Category.
  14. */
  15. if ( function_exists( 'register_block_pattern_category' ) ) {
  16. register_block_pattern_category(
  17. 'twentynineteen',
  18. array( 'label' => esc_html__( 'Twenty Nineteen', 'twentynineteen' ) )
  19. );
  20. }
  21. /**
  22. * Register Block Patterns.
  23. */
  24. if ( function_exists( 'register_block_pattern' ) ) {
  25. // About.
  26. register_block_pattern(
  27. 'twentynineteen/about',
  28. array(
  29. 'title' => esc_html__( 'About', 'twentynineteen' ),
  30. 'categories' => array( 'twentynineteen' ),
  31. 'content' => implode(
  32. '',
  33. array(
  34. '<!-- wp:paragraph {"fontSize":"huge","style":{"typography":{"lineHeight":"1.3"}}} -->',
  35. '<p class="has-huge-font-size" style="line-height:1.3">' . esc_html__( 'Advocating for Businesses and Entrepreneurs since 2014', 'twentynineteen' ) . '</p>',
  36. '<!-- /wp:paragraph -->',
  37. '<!-- wp:paragraph -->',
  38. '<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>',
  39. '<!-- /wp:paragraph -->',
  40. '<!-- wp:buttons -->',
  41. '<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"dark-gray"} -->',
  42. '<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>',
  43. '<!-- /wp:button --></div>',
  44. '<!-- /wp:buttons -->',
  45. )
  46. ),
  47. )
  48. );
  49. // Get In Touch.
  50. register_block_pattern(
  51. 'twentynineteen/get-in-touch',
  52. array(
  53. 'title' => esc_html__( 'Get In Touch', 'twentynineteen' ),
  54. 'categories' => array( 'twentynineteen' ),
  55. 'content' => implode(
  56. '',
  57. array(
  58. '<!-- wp:paragraph {"fontSize":"huge"} -->',
  59. '<p class="has-huge-font-size">' . esc_html__( 'Get In Touch', 'twentynineteen' ) . '</p>',
  60. '<!-- /wp:paragraph -->',
  61. '<!-- wp:columns -->',
  62. '<div class="wp-block-columns"><!-- wp:column -->',
  63. '<div class="wp-block-column"><!-- wp:paragraph -->',
  64. '<p>' . esc_html__( '20 Cooper Avenue', 'twentynineteen' ) . '<br>' . esc_html__( 'New York, New York 10023', 'twentynineteen' ) . '</p>',
  65. '<!-- /wp:paragraph --></div>',
  66. '<!-- /wp:column -->',
  67. '<!-- wp:column -->',
  68. '<div class="wp-block-column"><!-- wp:paragraph -->',
  69. '<p>' . esc_html__( '(555) 555-5555', 'twentynineteen' ) . '<br><a href="mailto:example@example.com">' . esc_html__( 'example@example.com', 'twentynineteen' ) . '</a></p>',
  70. '<!-- /wp:paragraph --></div>',
  71. '<!-- /wp:column --></div>',
  72. '<!-- /wp:columns -->',
  73. '<!-- wp:buttons -->',
  74. '<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"dark-gray"} -->',
  75. '<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>',
  76. '<!-- /wp:button --></div>',
  77. '<!-- /wp:buttons -->',
  78. )
  79. ),
  80. )
  81. );
  82. // Services.
  83. register_block_pattern(
  84. 'twentynineteen/services',
  85. array(
  86. 'title' => esc_html__( 'Services', 'twentynineteen' ),
  87. 'categories' => array( 'twentynineteen' ),
  88. 'content' => implode(
  89. '',
  90. array(
  91. '<!-- wp:heading -->',
  92. '<h2>' . esc_html__( 'Services', 'twentynineteen' ) . '</h2>',
  93. '<!-- /wp:heading -->',
  94. '<!-- wp:columns {"className":"has-2-columns"} -->',
  95. '<div class="wp-block-columns has-2-columns"><!-- wp:column -->',
  96. '<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} -->',
  97. '<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 -->',
  98. '<p>' . esc_html__( 'Website Design', 'twentynineteen' ) . '</p>',
  99. '<!-- /wp:paragraph --></div></div>',
  100. '<!-- /wp:media-text -->',
  101. '<!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_02.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->',
  102. '<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 -->',
  103. '<p>' . esc_html__( 'Mobile', 'twentynineteen' ) . '</p>',
  104. '<!-- /wp:paragraph --></div></div>',
  105. '<!-- /wp:media-text -->',
  106. '<!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_03.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->',
  107. '<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 -->',
  108. '<p>' . esc_html__( 'Social Media', 'twentynineteen' ) . '</p>',
  109. '<!-- /wp:paragraph --></div></div>',
  110. '<!-- /wp:media-text --></div>',
  111. '<!-- /wp:column -->',
  112. '<!-- wp:column -->',
  113. '<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} -->',
  114. '<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 -->',
  115. '<p>' . esc_html__( 'Marketing', 'twentynineteen' ) . '</p>',
  116. '<!-- /wp:paragraph --></div></div>',
  117. '<!-- /wp:media-text -->',
  118. '<!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_04.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->',
  119. '<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 -->',
  120. '<p>' . esc_html__( 'Copywriting', 'twentynineteen' ) . '</p>',
  121. '<!-- /wp:paragraph --></div></div>',
  122. '<!-- /wp:media-text -->',
  123. '<!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_01.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->',
  124. '<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 -->',
  125. '<p>' . esc_html__( 'Content Strategy', 'twentynineteen' ) . '</p>',
  126. '<!-- /wp:paragraph --></div></div>',
  127. '<!-- /wp:media-text --></div>',
  128. '<!-- /wp:column --></div>',
  129. '<!-- /wp:columns -->',
  130. )
  131. ),
  132. )
  133. );
  134. // Team.
  135. register_block_pattern(
  136. 'twentynineteen/team',
  137. array(
  138. 'title' => esc_html__( 'Team', 'twentynineteen' ),
  139. 'categories' => array( 'twentynineteen' ),
  140. 'viewportWidth' => 1400,
  141. 'content' => implode(
  142. '',
  143. array(
  144. '<!-- wp:heading -->',
  145. '<h2>' . esc_html__( 'Team', 'twentynineteen' ) . '</h2>',
  146. '<!-- /wp:heading -->',
  147. '<!-- wp:media-text {"mediaType":"image","mediaWidth":28,"imageFill":true} -->',
  148. '<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} -->',
  149. '<h3>' . esc_html__( 'Eva Young', 'twentynineteen' ) . '</h3>',
  150. '<!-- /wp:heading -->',
  151. '<!-- wp:paragraph -->',
  152. '<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>',
  153. '<!-- /wp:paragraph --></div></div>',
  154. '<!-- /wp:media-text -->',
  155. '<!-- wp:media-text {"mediaType":"image","mediaWidth":28,"imageFill":true} -->',
  156. '<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} -->',
  157. '<h3>' . esc_html__( 'Doug Watson', 'twentynineteen' ) . '</h3>',
  158. '<!-- /wp:heading -->',
  159. '<!-- wp:paragraph -->',
  160. '<p>' . esc_html__( 'Oddly enough, Doug Watson also grew up working alongside his parents at a family-owned restaurant in Queens, NY. He &nbsp;worked on digital campaigns for Fortune 500 Companies before joining Eva Green Consulting.', 'twentynineteen' ) . '</p>',
  161. '<!-- /wp:paragraph --></div></div>',
  162. '<!-- /wp:media-text -->',
  163. )
  164. ),
  165. )
  166. );
  167. // What We Do.
  168. register_block_pattern(
  169. 'twentynineteen/what-we-do',
  170. array(
  171. 'title' => esc_html__( 'What We Do', 'twentynineteen' ),
  172. 'categories' => array( 'twentynineteen' ),
  173. 'viewportWidth' => 1400,
  174. 'content' => implode(
  175. '',
  176. array(
  177. '<!-- wp:heading -->',
  178. '<h2>' . esc_html__( 'What We Do', 'twentynineteen' ) . '</h2>',
  179. '<!-- /wp:heading -->',
  180. '<!-- wp:pullquote {"align":"wide","className":"is-style-solid-color"} -->',
  181. '<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>',
  182. '<!-- /wp:pullquote -->',
  183. '<!-- wp:pullquote {"mainColor":"dark-gray","customTextColor":"#ffffff","align":"wide","className":"is-style-solid-color"} -->',
  184. '<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>',
  185. '<!-- /wp:pullquote -->',
  186. '<!-- wp:pullquote {"customMainColor":"#f7f7f7","customTextColor":"#111111","align":"wide","className":"is-style-solid-color"} -->',
  187. '<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>',
  188. '<!-- /wp:pullquote -->',
  189. )
  190. ),
  191. )
  192. );
  193. }