fcfcd16c44ef">a4345e5759 first commit 5 年之前 24639 a4345e5759 first commit 5 年之前 24641 a4345e5759 first commit 5 年之前 24643 a4345e5759 first commit 5 年之前 24647 a4345e5759 first commit 5 年之前 24649 a4345e5759 first commit 5 年之前 24656 a4345e5759 first commit 5 年之前 24657 a4345e5759 first commit 5 年之前 24658 a4345e5759 first commit 5 年之前 24670 a4345e5759 first commit 5 年之前 24671 a4345e5759 first commit 5 年之前 24672 a4345e5759 first commit 5 年之前 24673 a4345e5759 first commit 5 年之前 24685 a4345e5759 first commit 5 年之前 24686 a4345e5759 first commit 5 年之前 24687 a4345e5759 first commit 5 年之前 24699 a4345e5759 first commit 5 年之前 24700 a4345e5759 first commit 5 年之前 24701 a4345e5759 first commit 5 年之前 24703 a4345e5759 first commit 5 年之前 24708 a4345e5759 first commit 5 年之前 24710 a4345e5759 first commit 5 年之前 24711 a4345e5759 first commit 5 年之前 24723 a4345e5759 first commit 5 年之前 24724 a4345e5759 first commit 5 年之前 24728 a4345e5759 first commit 5 年之前 24730 a4345e5759 first commit 5 年之前 25041 a4345e5759 first commit 5 年之前 25041_fsm a4345e5759 first commit 5 年之前 25041_vm a4345e5759 first commit 5 年之前 25045 a4345e5759 first commit 5 年之前 25047 a4345e5759 first commit 5 年之前 25048 a4345e5759 first commit 5 年之前 25749 a4345e5759 first commit 5 年之前 25751 a4345e5759 first commit 5 年之前 25755 a4345e5759 first commit 5 年之前 25757 a4345e5759 first commit 5 年之前 25758 a4345e5759 first commit 5 年之前 25760 a4345e5759 first commit 5 年之前 25761 a4345e5759 first commit 5 年之前 25764 a4345e5759 first commit 5 年之前 25766 a4345e5759 first commit 5 年之前 25767 a4345e5759 first commit 5 年之前 25769 a4345e5759 first commit 5 年之前 25770 a4345e5759 first commit 5 年之前 25779 a4345e5759 first commit 5 年之前 25781 a4345e5759 first commit 5 年之前 25785 a4345e5759 first commit 5 年之前 25787 a4345e5759 first commit 5 年之前 25789 a4345e5759 first commit 5 年之前 2579 a4345e5759 first commit 5 年之前 25793 a4345e5759 first commit 5 年之前 25805 a4345e5759 first commit 5 年之前 25806 a4345e5759 first commit 5 年之前 25814 a4345e5759 first commit 5 年之前 25816 a4345e5759 first commit 5 年之前 25817 a4345e5759 first commit 5 年之前 25819 a4345e5759 first commit 5 年之前 25823 a4345e5759 first commit 5 年之前 25825 a4345e5759 first commit 5 年之前 25826 a4345e5759 first commit 5 年之前 25843 a4345e5759 first commit 5 年之前 25844 a4345e5759 first commit 5 年之前 25845 a4345e5759 first commit 5 年之前 25856 a4345e5759 first commit 5 年之前 25858 a4345e5759 first commit 5 年之前 25862 a4345e5759 first commit 5 年之前 25864 a4345e5759 first commit 5 年之前 25865 a4345e5759 first commit 5 年之前 25867 a4345e5759 first commit 5 年之前 25869 a4345e5759 first commit 5 年之前 25873 a4345e5759 first commit 5 年之前 25875 a4345e5759 first commit 5 年之前 25876 a4345e5759 first commit 5 年之前 25879 a4345e5759 first commit 5 年之前 25881 a4345e5759 first commit 5 年之前 25885 a4345e5759 first commit 5 年之前 25897 a4345e5759 first commit 5 年之前 25898 a4345e5759 first commit 5 年之前 25899 a4345e5759 first commit 5 年之前 25901 a4345e5759 first commit 5 年之前 25905 a4345e5759 first commit 5 年之前 25907 a4345e5759 first commit 5 年之前 25908 a4345e5759 first commit 5 年之前 2600 a4345e5759 first commit 5 年之前 2600_fsm a4345e5759 first commit 5 年之前 2600_vm a4345e5759 first commit 5 年之前 2601 a4345e5759 first commit 5 年之前 2601_fsm a4345e5759 first commit 5 年之前 2601_vm a4345e5759 first commit 5 年之前 2602 a4345e5759 first commit 5 年之前 2602_fsm a4345e5759 first commit 5 年之前 2602_vm a4345e5759 first commit 5 年之前 2603 a4345e5759 first commit 5 年之前 2603_fsm a4345e5759 first commit 5 年之前 2603_vm a4345e5759 first commit 5 年之前 2604 a4345e5759 first commit 5 年之前 2605 a4345e5759 first commit 5 年之前 2605_fsm a4345e5759 first commit 5 年之前 2605_vm a4345e5759 first commit 5 年之前 2606 a4345e5759 first commit 5 年之前 2606_fsm a4345e5759 first commit 5 年之前 2606_vm a4345e5759 first commit 5 年之前 2607 a4345e5759 first commit 5 年之前 2607_fsm a4345e5759 first commit 5 年之前 2607_vm a4345e5759 first commit 5 年之前 2608 a4345e5759 first commit 5 年之前 2608_fsm a4345e5759 first commit 5 年之前 2608_vm a4345e5759 first commit 5 年之前 2609 a4345e5759 first commit 5 年之前 2609_fsm a4345e5759 first commit 5 年之前 2609_vm a4345e5759 first commit 5 年之前 2610 a4345e5759 first commit 5 年之前 2610_fsm a4345e5759 first commit 5 年之前 2610_vm a4345e5759 first commit 5 年之前 2611 a4345e5759 first commit 5 年之前 2612 a4345e5759 first commit 5 年之前 2612_fsm a4345e5759 first commit 5 年之前 2612_vm a4345e5759 first commit 5 年之前 2613 a4345e5759 first commit 5 年之前 2615 a4345e5759 first commit 5 年之前 2615_fsm a4345e5759 first commit 5 年之前 2615_vm a4345e5759 first commit 5 年之前 2616 a4345e5759 first commit 5 年之前 2616_fsm a4345e5759 first commit 5 年之前 2616_vm a4345e5759 first commit 5 年之前 2617 a4345e5759 first commit 5 年之前 2617_fsm a4345e5759 first commit 5 年之前 2617_vm a4345e5759 first commit 5 年之前 2618 a4345e5759 first commit 5 年之前 2618_fsm a4345e5759 first commit 5 年之前 2618_vm a4345e5759 first commit 5 年之前 2619 a4345e5759 first commit 5 年之前 2619_fsm a4345e5759 first commit 5 年之前 2619_vm a4345e5759 first commit 5 年之前 2620 a4345e5759 first commit 5 年之前 2620_fsm a4345e5759 first commit 5 年之前 2650 a4345e5759 first commit 5 年之前 2651 a4345e5759 first commit 5 年之前 2652 a4345e5759 first commit 5 年之前 2653 a4345e5759 first commit 5 年之前 2654 a4345e5759 first commit 5 年之前 2655 a4345e5759 first commit 5 年之前 2656 a4345e5759 first commit 5 年之前 2657 a4345e5759 first commit 5 年之前 2658 a4345e5759 first commit 5 年之前 2659 a4345e5759 first commit 5 年之前 2660 a4345e5759 first commit 5 年之前 2661 a4345e5759 first commit 5 年之前 2662 a4345e5759 first commit 5 年之前 2663 a4345e5759 first commit 5 年之前 2664 a4345e5759 first commit 5 年之前 2665 a4345e5759 first commit 5 年之前 2666 a4345e5759 first commit 5 年之前 2667 a4345e5759 first commit 5 年之前 2668 a4345e5759 first commit 5 年之前 2669 a4345e5759 first commit 5 年之前 2670 a4345e5759 first commit 5 年之前 2673 a4345e5759 first commit 5 年之前 2674 a4345e5759 first commit 5 年之前 2675 a4345e5759 first commit 5 年之前 2678 a4345e5759 first commit 5 年之前 2679 a4345e5759 first commit 5 年之前 2680 a4345e5759 first commit 5 年之前 2681 a4345e5759 first commit 5 年之前 2682 a4345e5759 first commit 5 年之前 2683 a4345e5759 first commit 5 年之前 2684 a4345e5759 first commit 5 年之前 2685 a4345e5759 first commit 5 年之前 2686 a4345e5759 first commit 5 年之前 2687 a4345e5759 first commit 5 年之前 2688 a4345e5759 first commit 5 年之前 2689 a4345e5759 first commit 5 年之前 2690 a4345e5759 first commit 5 年之前 2691 a4345e5759 first commit 5 年之前 2692 a4345e5759 first commit 5 年之前 2693 a4345e5759 first commit 5 年之前 2696 a4345e5759 first commit 5 年之前 2699 a4345e5759 first commit 5 年之前 2701 a4345e5759 first commit 5 年之前 2702 a4345e5759 first commit 5 年之前 2703 a4345e5759 first commit 5 年之前 2704 a4345e5759 first commit 5 年之前 2753 a4345e5759 first commit 5 年之前 2753_fsm a4345e5759 first commit 5 年之前 2753_vm a4345e5759 first commit 5 年之前 2754 a4345e5759 first commit 5 年之前 2755 a4345e5759 first commit 5 年之前 2756 a4345e5759 first commit 5 年之前 2757 a4345e5759 first commit 5 年之前 2830 a4345e5759 first commit 5 年之前 2831 a4345e5759 first commit 5 年之前 2832 a4345e5759 first commit 5 年之前 2833 a4345e5759 first commit 5 年之前 2834 a4345e5759 first commit 5 年之前 2835 a4345e5759 first commit 5 年之前 2836 a4345e5759 first commit 5 年之前 2837 a4345e5759 first commit 5 年之前 2838 a4345e5759 first commit 5 年之前 2838_fsm a4345e5759 first commit 5 年之前 2838_vm a4345e5759 first commit 5 年之前 2839 a4345e5759 first commit 5 年之前 2840 a4345e5759 first commit 5 年之前 2840_fsm a4345e5759 first commit 5 年之前 2840_vm a4345e5759 first commit 5 年之前 2841 a4345e5759 first commit 5 年之前 2995 a4345e5759 first commit 5 年之前 2996 a4345e5759 first commit 5 年之前 3079 a4345e5759 first commit 5 年之前 3079_fsm a4345e5759 first commit 5 年之前 3079_vm a4345e5759 first commit 5 年之前 3080 a4345e5759 first commit 5 年之前 3081 a4345e5759 first commit 5 年之前 3085 a4345e5759 first commit 5 年之前 3118 a4345e5759 first commit 5 年之前 3119 a4345e5759 first commit 5 年之前 3164 a4345e5759 first commit 5 年之前 3256 a4345e5759 first commit 5 年之前 3257 a4345e5759 first commit 5 年之前 3258 a4345e5759 first commit 5 年之前 3350 a4345e5759 first commit 5 年之前 3351 a4345e5759 first commit 5 年之前 3379 a4345e5759 first commit 5 年之前 3380 a4345e5759 first commit 5 年之前 3381 a4345e5759 first commit 5 年之前 3394 a4345e5759 first commit 5 年之前 3394_fsm a4345e5759 first commit 5 年之前 3394_vm a4345e5759 first commit 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 年之前 pg_internal.init a4345e5759 first commit 5 年之前 tum/whitesports - Gogs: Simplico Git Service

Нема описа

block-patterns.php 9.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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_Twenty
  10. * @since Twenty Twenty 1.6
  11. */
  12. /**
  13. * Register Block Pattern Category.
  14. */
  15. if ( function_exists( 'register_block_pattern_category' ) ) {
  16. register_block_pattern_category(
  17. 'twentytwenty',
  18. array( 'label' => esc_html__( 'Twenty Twenty', 'twentytwenty' ) )
  19. );
  20. }
  21. /**
  22. * Register Block Patterns.
  23. */
  24. if ( function_exists( 'register_block_pattern' ) ) {
  25. // Call to Action.
  26. register_block_pattern(
  27. 'twentytwenty/call-to-action',
  28. array(
  29. 'title' => esc_html__( 'Call to Action', 'twentytwenty' ),
  30. 'categories' => array( 'twentytwenty' ),
  31. 'viewportWidth' => 1400,
  32. 'content' => implode(
  33. '',
  34. array(
  35. '<!-- wp:group {"align":"wide","style":{"color":{"background":"#ffffff"}}} -->',
  36. '<div class="wp-block-group alignwide has-background" style="background-color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:group -->',
  37. '<div class="wp-block-group"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
  38. '<h2 class="has-text-align-center">' . esc_html__( 'Support the Museum and Get Exclusive Offers', 'twentytwenty' ) . '</h2>',
  39. '<!-- /wp:heading -->',
  40. '<!-- wp:paragraph {"align":"center"} -->',
  41. '<p class="has-text-align-center">' . esc_html__( 'Members get access to exclusive exhibits and sales. Our memberships cost $99.99 and are billed annually.', 'twentytwenty' ) . '</p>',
  42. '<!-- /wp:paragraph -->',
  43. '<!-- wp:button {"align":"center","className":"is-style-outline"} -->',
  44. '<div class="wp-block-button aligncenter is-style-outline"><a class="wp-block-button__link" href="#">' . esc_html__( 'Become a Member', 'twentytwenty' ) . '</a></div>',
  45. '<!-- /wp:button --></div></div>',
  46. '<!-- /wp:group --></div></div>',
  47. '<!-- /wp:group -->',
  48. )
  49. ),
  50. )
  51. );
  52. // Double Call to Action.
  53. register_block_pattern(
  54. 'twentytwenty/double-call-to-action',
  55. array(
  56. 'title' => esc_html__( 'Double Call to Action', 'twentytwenty' ),
  57. 'categories' => array( 'twentytwenty' ),
  58. 'viewportWidth' => 1400,
  59. 'content' => implode(
  60. '',
  61. array(
  62. '<!-- wp:columns {"align":"wide"} -->',
  63. '<div class="wp-block-columns alignwide"><!-- wp:column -->',
  64. '<div class="wp-block-column"><!-- wp:group {"style":{"color":{"background":"#ffffff"}}} -->',
  65. '<div class="wp-block-group has-background" style="background-color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
  66. '<h2 class="has-text-align-center">' . esc_html__( 'The Museum', 'twentytwenty' ) . '</h2>',
  67. '<!-- /wp:heading -->',
  68. '<!-- wp:paragraph {"align":"center"} -->',
  69. '<p class="has-text-align-center">' . esc_html__( 'Award-winning exhibitions featuring internationally-renowned artists.', 'twentytwenty' ) . '</p>',
  70. '<!-- /wp:paragraph -->',
  71. '<!-- wp:buttons {"align":"center"} -->',
  72. '<div class="wp-block-buttons aligncenter"><!-- wp:button {"className":"is-style-outline"} -->',
  73. '<div class="wp-block-button is-style-outline"><a class="wp-block-button__link">' . esc_html__( 'Read More', 'twentytwenty' ) . '</a></div>',
  74. '<!-- /wp:button --></div>',
  75. '<!-- /wp:buttons --></div></div>',
  76. '<!-- /wp:group --></div>',
  77. '<!-- /wp:column -->',
  78. '<!-- wp:column -->',
  79. '<div class="wp-block-column"><!-- wp:group {"style":{"color":{"background":"#ffffff"}}} -->',
  80. '<div class="wp-block-group has-background" style="background-color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
  81. '<h2 class="has-text-align-center">' . esc_html__( 'The Store', 'twentytwenty' ) . '</h2>',
  82. '<!-- /wp:heading -->',
  83. '<!-- wp:paragraph {"align":"center"} -->',
  84. '<p class="has-text-align-center">' . esc_html__( 'An awe-inspiring collection of books, prints, and gifts from our exhibitions.', 'twentytwenty' ) . '</p>',
  85. '<!-- /wp:paragraph -->',
  86. '<!-- wp:buttons {"align":"center"} -->',
  87. '<div class="wp-block-buttons aligncenter"><!-- wp:button {"className":"is-style-outline"} -->',
  88. '<div class="wp-block-button is-style-outline"><a class="wp-block-button__link">' . esc_html__( 'Shop Now', 'twentytwenty' ) . '</a></div>',
  89. '<!-- /wp:button --></div>',
  90. '<!-- /wp:buttons --></div></div>',
  91. '<!-- /wp:group --></div>',
  92. '<!-- /wp:column --></div>',
  93. '<!-- /wp:columns -->',
  94. )
  95. ),
  96. )
  97. );
  98. // Event Details.
  99. register_block_pattern(
  100. 'twentytwenty/event-details',
  101. array(
  102. 'title' => esc_html__( 'Event Details', 'twentytwenty' ),
  103. 'categories' => array( 'twentytwenty' ),
  104. 'viewportWidth' => 1400,
  105. 'content' => implode(
  106. '',
  107. array(
  108. '<!-- wp:group {"align":"wide","backgroundColor":"primary"} -->',
  109. '<div class="wp-block-group alignwide has-primary-background-color has-background"><div class="wp-block-group__inner-container"><!-- wp:columns -->',
  110. '<div class="wp-block-columns"><!-- wp:column -->',
  111. '<div class="wp-block-column"><!-- wp:paragraph {"align":"center","textColor":"background","fontSize":"large"} -->',
  112. '<p class="has-text-align-center has-background-color has-text-color has-large-font-size">' . wp_kses_post( __( '<em>Dates</em><br>Aug 1 — Dec 1', 'twentytwenty' ) ) . '</p>',
  113. '<!-- /wp:paragraph --></div>',
  114. '<!-- /wp:column -->',
  115. '<!-- wp:column -->',
  116. '<div class="wp-block-column"><!-- wp:paragraph {"align":"center","textColor":"background","fontSize":"large"} -->',
  117. '<p class="has-text-align-center has-background-color has-text-color has-large-font-size">' . wp_kses_post( __( '<em>Location</em><br>Exhibit Hall B', 'twentytwenty' ) ) . '</p>',
  118. '<!-- /wp:paragraph --></div>',
  119. '<!-- /wp:column -->',
  120. '<!-- wp:column -->',
  121. '<div class="wp-block-column"><!-- wp:paragraph {"align":"center","textColor":"background","fontSize":"large"} -->',
  122. '<p class="has-text-align-center has-background-color has-text-color has-large-font-size">' . wp_kses_post( __( '<em>Price</em><br>Included', 'twentytwenty' ) ) . '</p>',
  123. '<!-- /wp:paragraph --></div>',
  124. '<!-- /wp:column --></div>',
  125. '<!-- /wp:columns --></div></div>',
  126. '<!-- /wp:group -->',
  127. )
  128. ),
  129. )
  130. );
  131. // Featured Content.
  132. register_block_pattern(
  133. 'twentytwenty/featured-content',
  134. array(
  135. 'title' => esc_html__( 'Featured Content', 'twentytwenty' ),
  136. 'categories' => array( 'twentytwenty' ),
  137. 'viewportWidth' => 1400,
  138. 'content' => implode(
  139. '',
  140. array(
  141. '<!-- wp:columns {"align":"wide"} -->',
  142. '<div class="wp-block-columns alignwide"><!-- wp:column -->',
  143. '<div class="wp-block-column"><!-- wp:image {"sizeSlug":"full"} -->',
  144. '<figure class="wp-block-image size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/2020-three-quarters-1.png" alt="' . esc_attr__( 'Abstract Rectangles', 'twentytwenty' ) . '"/></figure>',
  145. '<!-- /wp:image -->',
  146. '<!-- wp:heading -->',
  147. '<h2>' . esc_html__( 'Works and Days', 'twentytwenty' ) . '</h2>',
  148. '<!-- /wp:heading -->',
  149. '<!-- wp:paragraph {"fontSize":"larger"} -->',
  150. '<p class="has-larger-font-size">' . esc_html__( 'August 1 — December 1', 'twentytwenty' ) . '</p>',
  151. '<!-- /wp:paragraph -->',
  152. '<!-- wp:button {"align":"left","className":"is-style-outline"} -->',
  153. '<div class="wp-block-button alignleft is-style-outline"><a class="wp-block-button__link" href="#">' . esc_html__( 'Read More', 'twentytwenty' ) . '</a></div>',
  154. '<!-- /wp:button --></div>',
  155. '<!-- /wp:column -->',
  156. '<!-- wp:column -->',
  157. '<div class="wp-block-column"><!-- wp:image {sizeSlug":"full"} -->',
  158. '<figure class="wp-block-image size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/2020-three-quarters-2.png" alt="' . esc_attr__( 'Abstract Rectangles', 'twentytwenty' ) . '"/></figure>',
  159. '<!-- /wp:image -->',
  160. '<!-- wp:heading -->',
  161. '<h2>' . esc_html__( 'The Life I Deserve', 'twentytwenty' ) . '</h2>',
  162. '<!-- /wp:heading -->',
  163. '<!-- wp:paragraph {"fontSize":"larger"} -->',
  164. '<p class="has-larger-font-size">' . esc_html__( 'August 1 — December 1', 'twentytwenty' ) . '</p>',
  165. '<!-- /wp:paragraph -->',
  166. '<!-- wp:button {"align":"left","className":"is-style-outline"} -->',
  167. '<div class="wp-block-button alignleft is-style-outline"><a class="wp-block-button__link" href="#">' . esc_html__( 'Read More', 'twentytwenty' ) . '</a></div>',
  168. '<!-- /wp:button --></div>',
  169. '<!-- /wp:column --></div>',
  170. '<!-- /wp:columns -->',
  171. )
  172. ),
  173. )
  174. );
  175. // Introduction.
  176. register_block_pattern(
  177. 'twentytwenty/introduction',
  178. array(
  179. 'title' => esc_html__( 'Introduction', 'twentytwenty' ),
  180. 'categories' => array( 'twentytwenty' ),
  181. 'viewportWidth' => 1400,
  182. 'content' => implode(
  183. '',
  184. array(
  185. '<!-- wp:heading {"align":"center"} -->',
  186. '<h2 class="has-text-align-center">' . esc_html__( 'The Premier Destination for Modern Art in Sweden', 'twentytwenty' ) . '</h2>',
  187. '<!-- /wp:heading -->',
  188. '<!-- wp:paragraph {"dropCap":true} -->',
  189. '<p class="has-drop-cap">' . esc_html__( 'With seven floors of striking architecture, UMoMA shows exhibitions of international contemporary art, sometimes along with art historical retrospectives. Existential, political, and philosophical issues are intrinsic to our program. As visitor, you are invited to guided tours artist talks, lectures, film screenings, and other events with free admission.', 'twentytwenty' ) . '</p>',
  190. '<!-- /wp:paragraph -->',
  191. )
  192. ),
  193. )
  194. );
  195. }