2612_fsm a4345e5759 first commit 4 vuotta sitten 2612_vm a4345e5759 first commit 4 vuotta sitten 2613 a4345e5759 first commit 4 vuotta sitten 2615 a4345e5759 first commit 4 vuotta sitten 2615_fsm a4345e5759 first commit 4 vuotta sitten 2615_vm a4345e5759 first commit 4 vuotta sitten 2616 a4345e5759 first commit 4 vuotta sitten 2616_fsm a4345e5759 first commit 4 vuotta sitten 2616_vm a4345e5759 first commit 4 vuotta sitten 2617 a4345e5759 first commit 4 vuotta sitten 2617_fsm a4345e5759 first commit 4 vuotta sitten 2617_vm a4345e5759 first commit 4 vuotta sitten 2618 a4345e5759 first commit 4 vuotta sitten 2618_fsm a4345e5759 first commit 4 vuotta sitten 2618_vm a4345e5759 first commit 4 vuotta sitten 2619 a4345e5759 first commit 4 vuotta sitten 2619_fsm a4345e5759 first commit 4 vuotta sitten 2619_vm a4345e5759 first commit 4 vuotta sitten 2620 a4345e5759 first commit 4 vuotta sitten 2620_fsm a4345e5759 first commit 4 vuotta sitten 2650 a4345e5759 first commit 4 vuotta sitten 2651 a4345e5759 first commit 4 vuotta sitten 2652 a4345e5759 first commit 4 vuotta sitten 2653 a4345e5759 first commit 4 vuotta sitten 2654 a4345e5759 first commit 4 vuotta sitten 2655 a4345e5759 first commit 4 vuotta sitten 2656 a4345e5759 first commit 4 vuotta sitten 2657 a4345e5759 first commit 4 vuotta sitten 2658 a4345e5759 first commit 4 vuotta sitten 2659 a4345e5759 first commit 4 vuotta sitten 2660 a4345e5759 first commit 4 vuotta sitten 2661 a4345e5759 first commit 4 vuotta sitten 2662 a4345e5759 first commit 4 vuotta sitten 2663 a4345e5759 first commit 4 vuotta sitten 2664 a4345e5759 first commit 4 vuotta sitten 2665 a4345e5759 first commit 4 vuotta sitten 2666 a4345e5759 first commit 4 vuotta sitten 2667 a4345e5759 first commit 4 vuotta sitten 2668 a4345e5759 first commit 4 vuotta sitten 2669 a4345e5759 first commit 4 vuotta sitten 2670 a4345e5759 first commit 4 vuotta sitten 2673 a4345e5759 first commit 4 vuotta sitten 2674 a4345e5759 first commit 4 vuotta sitten 2675 a4345e5759 first commit 4 vuotta sitten 2678 a4345e5759 first commit 4 vuotta sitten 2679 a4345e5759 first commit 4 vuotta sitten 2680 a4345e5759 first commit 4 vuotta sitten 2681 a4345e5759 first commit 4 vuotta sitten 2682 a4345e5759 first commit 4 vuotta sitten 2683 a4345e5759 first commit 4 vuotta sitten 2684 a4345e5759 first commit 4 vuotta sitten 2685 a4345e5759 first commit 4 vuotta sitten 2686 a4345e5759 first commit 4 vuotta sitten 2687 a4345e5759 first commit 4 vuotta sitten 2688 a4345e5759 first commit 4 vuotta sitten 2689 a4345e5759 first commit 4 vuotta sitten 2690 a4345e5759 first commit 4 vuotta sitten 2691 a4345e5759 first commit 4 vuotta sitten 2692 a4345e5759 first commit 4 vuotta sitten 2693 a4345e5759 first commit 4 vuotta sitten 2696 a4345e5759 first commit 4 vuotta sitten 2699 a4345e5759 first commit 4 vuotta sitten 2701 a4345e5759 first commit 4 vuotta sitten 2702 a4345e5759 first commit 4 vuotta sitten 2703 a4345e5759 first commit 4 vuotta sitten 2704 a4345e5759 first commit 4 vuotta sitten 2753 a4345e5759 first commit 4 vuotta sitten 2753_fsm a4345e5759 first commit 4 vuotta sitten 2753_vm a4345e5759 first commit 4 vuotta sitten 2754 a4345e5759 first commit 4 vuotta sitten 2755 a4345e5759 first commit 4 vuotta sitten 2756 a4345e5759 first commit 4 vuotta sitten 2757 a4345e5759 first commit 4 vuotta sitten 2830 a4345e5759 first commit 4 vuotta sitten 2831 a4345e5759 first commit 4 vuotta sitten 2832 a4345e5759 first commit 4 vuotta sitten 2833 a4345e5759 first commit 4 vuotta sitten 2834 a4345e5759 first commit 4 vuotta sitten 2835 a4345e5759 first commit 4 vuotta sitten 2836 a4345e5759 first commit 4 vuotta sitten 2837 a4345e5759 first commit 4 vuotta sitten 2838 a4345e5759 first commit 4 vuotta sitten 2838_fsm a4345e5759 first commit 4 vuotta sitten 2838_vm a4345e5759 first commit 4 vuotta sitten 2839 a4345e5759 first commit 4 vuotta sitten 2840 a4345e5759 first commit 4 vuotta sitten 2840_fsm a4345e5759 first commit 4 vuotta sitten 2840_vm a4345e5759 first commit 4 vuotta sitten 2841 a4345e5759 first commit 4 vuotta sitten 2995 a4345e5759 first commit 4 vuotta sitten 2996 a4345e5759 first commit 4 vuotta sitten 3079 a4345e5759 first commit 4 vuotta sitten 3079_fsm a4345e5759 first commit 4 vuotta sitten 3079_vm a4345e5759 first commit 4 vuotta sitten 3080 a4345e5759 first commit 4 vuotta sitten 3081 a4345e5759 first commit 4 vuotta sitten 3085 a4345e5759 first commit 4 vuotta sitten 3118 a4345e5759 first commit 4 vuotta sitten 3119 a4345e5759 first commit 4 vuotta sitten 3164 a4345e5759 first commit 4 vuotta sitten 3256 a4345e5759 first commit 4 vuotta sitten 3257 a4345e5759 first commit 4 vuotta sitten 3258 a4345e5759 first commit 4 vuotta sitten 3350 a4345e5759 first commit 4 vuotta sitten 3351 a4345e5759 first commit 4 vuotta sitten 3379 a4345e5759 first commit 4 vuotta sitten 3380 a4345e5759 first commit 4 vuotta sitten 3381 a4345e5759 first commit 4 vuotta sitten 3394 a4345e5759 first commit 4 vuotta sitten 3394_fsm a4345e5759 first commit 4 vuotta sitten 3394_vm a4345e5759 first commit 4 vuotta sitten 3395 a4345e5759 first commit 4 vuotta sitten 3429 a4345e5759 first commit 4 vuotta sitten 3430 a4345e5759 first commit 4 vuotta sitten 3431 a4345e5759 first commit 4 vuotta sitten 3433 a4345e5759 first commit 4 vuotta sitten 3439 a4345e5759 first commit 4 vuotta sitten 3440 a4345e5759 first commit 4 vuotta sitten 3455 a4345e5759 first commit 4 vuotta sitten 3456 a4345e5759 first commit 4 vuotta sitten 3456_fsm a4345e5759 first commit 4 vuotta sitten 3456_vm a4345e5759 first commit 4 vuotta sitten 3466 a4345e5759 first commit 4 vuotta sitten 3467 a4345e5759 first commit 4 vuotta sitten 3468 a4345e5759 first commit 4 vuotta sitten 3501 a4345e5759 first commit 4 vuotta sitten 3502 a4345e5759 first commit 4 vuotta sitten 3503 a4345e5759 first commit 4 vuotta sitten 3534 a4345e5759 first commit 4 vuotta sitten 3541 a4345e5759 first commit 4 vuotta sitten 3541_fsm a4345e5759 first commit 4 vuotta sitten 3541_vm a4345e5759 first commit 4 vuotta sitten 3542 a4345e5759 first commit 4 vuotta sitten 3574 a4345e5759 first commit 4 vuotta sitten 3575 a4345e5759 first commit 4 vuotta sitten 3576 a4345e5759 first commit 4 vuotta sitten 3596 a4345e5759 first commit 4 vuotta sitten 3597 a4345e5759 first commit 4 vuotta sitten 3598 a4345e5759 first commit 4 vuotta sitten 3599 a4345e5759 first commit 4 vuotta sitten 3600 a4345e5759 first commit 4 vuotta sitten 3600_fsm a4345e5759 first commit 4 vuotta sitten 3600_vm a4345e5759 first commit 4 vuotta sitten 3601 a4345e5759 first commit 4 vuotta sitten 3601_fsm a4345e5759 first commit 4 vuotta sitten 3601_vm a4345e5759 first commit 4 vuotta sitten 3602 a4345e5759 first commit 4 vuotta sitten 3602_fsm a4345e5759 first commit 4 vuotta sitten 3602_vm a4345e5759 first commit 4 vuotta sitten 3603 a4345e5759 first commit 4 vuotta sitten 3603_fsm a4345e5759 first commit 4 vuotta sitten 3603_vm a4345e5759 first commit 4 vuotta sitten 3604 a4345e5759 first commit 4 vuotta sitten 3605 a4345e5759 first commit 4 vuotta sitten 3606 a4345e5759 first commit 4 vuotta sitten 3607 a4345e5759 first commit 4 vuotta sitten 3608 a4345e5759 first commit 4 vuotta sitten 3609 a4345e5759 first commit 4 vuotta sitten 3712 a4345e5759 first commit 4 vuotta sitten 3764 a4345e5759 first commit 4 vuotta sitten 3764_fsm a4345e5759 first commit 4 vuotta sitten 3764_vm a4345e5759 first commit 4 vuotta sitten 3766 a4345e5759 first commit 4 vuotta sitten 3767 a4345e5759 first commit 4 vuotta sitten 3997 a4345e5759 first commit 4 vuotta sitten 4143 a4345e5759 first commit 4 vuotta sitten 4144 a4345e5759 first commit 4 vuotta sitten 4145 a4345e5759 first commit 4 vuotta sitten 4146 a4345e5759 first commit 4 vuotta sitten 4147 a4345e5759 first commit 4 vuotta sitten 4148 a4345e5759 first commit 4 vuotta sitten 4149 a4345e5759 first commit 4 vuotta sitten 4150 a4345e5759 first commit 4 vuotta sitten 4151 a4345e5759 first commit 4 vuotta sitten 4152 a4345e5759 first commit 4 vuotta sitten 4153 a4345e5759 first commit 4 vuotta sitten 4154 a4345e5759 first commit 4 vuotta sitten 4155 a4345e5759 first commit 4 vuotta sitten 4156 a4345e5759 first commit 4 vuotta sitten 4157 a4345e5759 first commit 4 vuotta sitten 4158 a4345e5759 first commit 4 vuotta sitten 4159 a4345e5759 first commit 4 vuotta sitten 4160 a4345e5759 first commit 4 vuotta sitten 4161 a4345e5759 first commit 4 vuotta sitten 4162 a4345e5759 first commit 4 vuotta sitten 4163 a4345e5759 first commit 4 vuotta sitten 4164 a4345e5759 first commit 4 vuotta sitten 4165 a4345e5759 first commit 4 vuotta sitten 4166 a4345e5759 first commit 4 vuotta sitten 4167 a4345e5759 first commit 4 vuotta sitten 4168 a4345e5759 first commit 4 vuotta sitten 4169 a4345e5759 first commit 4 vuotta sitten 4170 a4345e5759 first commit 4 vuotta sitten 4171 a4345e5759 first commit 4 vuotta sitten 4172 a4345e5759 first commit 4 vuotta sitten 4173 a4345e5759 first commit 4 vuotta sitten 4174 a4345e5759 first commit 4 vuotta sitten 5002 a4345e5759 first commit 4 vuotta sitten 548 a4345e5759 first commit 4 vuotta sitten 549 a4345e5759 first commit 4 vuotta sitten 6102 a4345e5759 first commit 4 vuotta sitten 6104 a4345e5759 first commit 4 vuotta sitten 6106 a4345e5759 first commit 4 vuotta sitten 6110 a4345e5759 first commit 4 vuotta sitten 6111 a4345e5759 first commit 4 vuotta sitten 6112 a4345e5759 first commit 4 vuotta sitten 6113 a4345e5759 first commit 4 vuotta sitten 6117 a4345e5759 first commit 4 vuotta sitten 826 a4345e5759 first commit 4 vuotta sitten 827 a4345e5759 first commit 4 vuotta sitten 828 a4345e5759 first commit 4 vuotta sitten PG_VERSION a4345e5759 first commit 4 vuotta sitten pg_filenode.map a4345e5759 first commit 4 vuotta sitten pg_internal.init a4345e5759 first commit 4 vuotta sitten tum/whitesports - Gogs: Simplico Git Service

Geen omschrijving

starter-content.php 8.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <?php
  2. /**
  3. * Twenty Twenty-One Starter Content
  4. *
  5. * @link https://make.wordpress.org/core/2016/11/30/starter-content-for-themes-in-4-7/
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Twenty_One
  9. * @since Twenty Twenty-One 1.0
  10. */
  11. /**
  12. * Function to return the array of starter content for the theme.
  13. *
  14. * Passes it through the `twenty_twenty_one_starter_content` filter before returning.
  15. *
  16. * @since Twenty Twenty-One 1.0
  17. *
  18. * @return array A filtered array of args for the starter_content.
  19. */
  20. function twenty_twenty_one_get_starter_content() {
  21. // Define and register starter content to showcase the theme on new sites.
  22. $starter_content = array(
  23. // Specify the core-defined pages to create and add custom thumbnails to some of them.
  24. 'posts' => array(
  25. 'front' => array(
  26. 'post_type' => 'page',
  27. 'post_title' => esc_html_x( 'Create your website with blocks', 'Theme starter content', 'twentytwentyone' ),
  28. 'post_content' => '
  29. <!-- wp:heading {"align":"wide","fontSize":"gigantic","style":{"typography":{"lineHeight":"1.1"}}} -->
  30. <h2 class="alignwide has-text-align-wide has-gigantic-font-size" style="line-height:1.1">' . esc_html_x( 'Create your website with blocks', 'Theme starter content', 'twentytwentyone' ) . '</h2>
  31. <!-- /wp:heading -->
  32. <!-- wp:spacer -->
  33. <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
  34. <!-- /wp:spacer -->
  35. <!-- wp:columns {"verticalAlignment":"center","align":"wide","className":"is-style-twentytwentyone-columns-overlap"} -->
  36. <div class="wp-block-columns alignwide are-vertically-aligned-center is-style-twentytwentyone-columns-overlap"><!-- wp:column {"verticalAlignment":"center"} -->
  37. <div class="wp-block-column is-vertically-aligned-center"><!-- wp:image {"align":"full","sizeSlug":"large"} -->
  38. <figure class="wp-block-image alignfull size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/roses-tremieres-hollyhocks-1884.jpg" alt="' . esc_attr__( '&#8220;Roses Trémières&#8221; by Berthe Morisot', 'twentytwentyone' ) . '"/></figure>
  39. <!-- /wp:image -->
  40. <!-- wp:spacer -->
  41. <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
  42. <!-- /wp:spacer -->
  43. <!-- wp:image {"align":"full","sizeSlug":"large","className":"is-style-twentytwentyone-image-frame"} -->
  44. <figure class="wp-block-image alignfull size-large is-style-twentytwentyone-image-frame"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/in-the-bois-de-boulogne.jpg" alt="' . esc_attr__( '&#8220;In the Bois de Boulogne&#8221; by Berthe Morisot', 'twentytwentyone' ) . '"/></figure>
  45. <!-- /wp:image --></div>
  46. <!-- /wp:column -->
  47. <!-- wp:column {"verticalAlignment":"center"} -->
  48. <div class="wp-block-column is-vertically-aligned-center"><!-- wp:spacer -->
  49. <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
  50. <!-- /wp:spacer -->
  51. <!-- wp:image {"sizeSlug":"large","className":"alignfull size-full is-style-twentytwentyone-border"} -->
  52. <figure class="wp-block-image size-large alignfull size-full is-style-twentytwentyone-border"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/young-woman-in-mauve.jpg" alt="' . esc_attr__( '&#8220;Young Woman in Mauve&#8221; by Berthe Morisot', 'twentytwentyone' ) . '"/></figure>
  53. <!-- /wp:image --></div>
  54. <!-- /wp:column --></div>
  55. <!-- /wp:columns -->
  56. <!-- wp:spacer {"height":50} -->
  57. <div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
  58. <!-- /wp:spacer -->
  59. <!-- wp:columns {"verticalAlignment":"top","align":"wide"} -->
  60. <div class="wp-block-columns alignwide are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top"} -->
  61. <div class="wp-block-column is-vertically-aligned-top"><!-- wp:heading {"level":3} -->
  62. <h3>' . esc_html_x( 'Add block patterns', 'Theme starter content', 'twentytwentyone' ) . '</h3>
  63. <!-- /wp:heading -->
  64. <!-- wp:paragraph -->
  65. <p>' . esc_html_x( 'Block patterns are pre-designed groups of blocks. To add one, select the Add Block button [+] in the toolbar at the top of the editor. Switch to the Patterns tab underneath the search bar, and choose a pattern.', 'Theme starter content', 'twentytwentyone' ) . '</p>
  66. <!-- /wp:paragraph --></div>
  67. <!-- /wp:column -->
  68. <!-- wp:column {"verticalAlignment":"top"} -->
  69. <div class="wp-block-column is-vertically-aligned-top"><!-- wp:heading {"level":3} -->
  70. <h3>' . esc_html_x( 'Frame your images', 'Theme starter content', 'twentytwentyone' ) . '</h3>
  71. <!-- /wp:heading -->
  72. <!-- wp:paragraph -->
  73. <p>' . esc_html_x( 'Twenty Twenty-One includes stylish borders for your content. With an Image block selected, open the "Styles" panel within the Editor sidebar. Select the "Frame" block style to activate it.', 'Theme starter content', 'twentytwentyone' ) . '</p>
  74. <!-- /wp:paragraph --></div>
  75. <!-- /wp:column -->
  76. <!-- wp:column {"verticalAlignment":"top"} -->
  77. <div class="wp-block-column is-vertically-aligned-top"><!-- wp:heading {"level":3} -->
  78. <h3>' . esc_html_x( 'Overlap columns', 'Theme starter content', 'twentytwentyone' ) . '</h3>
  79. <!-- /wp:heading -->
  80. <!-- wp:paragraph -->
  81. <p>' . esc_html_x( 'Twenty Twenty-One also includes an overlap style for column blocks. With a Columns block selected, open the "Styles" panel within the Editor sidebar. Choose the "Overlap" block style to try it out.', 'Theme starter content', 'twentytwentyone' ) . '</p>
  82. <!-- /wp:paragraph --></div>
  83. <!-- /wp:column --></div>
  84. <!-- /wp:columns -->
  85. <!-- wp:spacer -->
  86. <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
  87. <!-- /wp:spacer -->
  88. <!-- wp:cover {"overlayColor":"green","contentPosition":"center center","align":"wide","className":"is-style-twentytwentyone-border"} -->
  89. <div class="wp-block-cover alignwide has-green-background-color has-background-dim is-style-twentytwentyone-border"><div class="wp-block-cover__inner-container"><!-- wp:spacer {"height":20} -->
  90. <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
  91. <!-- /wp:spacer -->
  92. <!-- wp:paragraph {"fontSize":"huge"} -->
  93. <p class="has-huge-font-size">' . esc_html_x( 'Need help?', 'Theme starter content', 'twentytwentyone' ) . '</p>
  94. <!-- /wp:paragraph -->
  95. <!-- wp:spacer {"height":75} -->
  96. <div style="height:75px" aria-hidden="true" class="wp-block-spacer"></div>
  97. <!-- /wp:spacer -->
  98. <!-- wp:columns -->
  99. <div class="wp-block-columns"><!-- wp:column -->
  100. <div class="wp-block-column"><!-- wp:paragraph -->
  101. <p><a href="https://wordpress.org/support/article/twenty-twenty-one/">' . esc_html_x( 'Read the Theme Documentation', 'Theme starter content', 'twentytwentyone' ) . '</a></p>
  102. <!-- /wp:paragraph --></div>
  103. <!-- /wp:column -->
  104. <!-- wp:column -->
  105. <div class="wp-block-column"><!-- wp:paragraph -->
  106. <p><a href="https://wordpress.org/support/theme/twentytwentyone/">' . esc_html_x( 'Check out the Support Forums', 'Theme starter content', 'twentytwentyone' ) . '</a></p>
  107. <!-- /wp:paragraph --></div>
  108. <!-- /wp:column --></div>
  109. <!-- /wp:columns -->
  110. <!-- wp:spacer {"height":20} -->
  111. <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
  112. <!-- /wp:spacer --></div></div>
  113. <!-- /wp:cover -->',
  114. ),
  115. 'about',
  116. 'contact',
  117. 'blog',
  118. ),
  119. // Default to a static front page and assign the front and posts pages.
  120. 'options' => array(
  121. 'show_on_front' => 'page',
  122. 'page_on_front' => '{{front}}',
  123. 'page_for_posts' => '{{blog}}',
  124. ),
  125. // Set up nav menus for each of the two areas registered in the theme.
  126. 'nav_menus' => array(
  127. // Assign a menu to the "primary" location.
  128. 'primary' => array(
  129. 'name' => esc_html__( 'Primary menu', 'twentytwentyone' ),
  130. 'items' => array(
  131. 'link_home', // Note that the core "home" page is actually a link in case a static front page is not used.
  132. 'page_about',
  133. 'page_blog',
  134. 'page_contact',
  135. ),
  136. ),
  137. // Assign a menu to the "footer" location.
  138. 'footer' => array(
  139. 'name' => esc_html__( 'Secondary menu', 'twentytwentyone' ),
  140. 'items' => array(
  141. 'link_facebook',
  142. 'link_twitter',
  143. 'link_instagram',
  144. 'link_email',
  145. ),
  146. ),
  147. ),
  148. );
  149. /**
  150. * Filters the array of starter content.
  151. *
  152. * @since Twenty Twenty-One 1.0
  153. *
  154. * @param array $starter_content Array of starter content.
  155. */
  156. return apply_filters( 'twenty_twenty_one_starter_content', $starter_content );
  157. }