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

Нет описания

starter-content.php 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <?php
  2. /**
  3. * Twenty Twenty 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
  9. * @since Twenty Twenty 1.0
  10. */
  11. /**
  12. * Function to return the array of starter content for the theme.
  13. *
  14. * Passes it through the `twentytwenty_starter_content` filter before returning.
  15. *
  16. * @since Twenty Twenty 1.0
  17. *
  18. * @return array A filtered array of args for the starter_content.
  19. */
  20. function twentytwenty_get_starter_content() {
  21. // Define and register starter content to showcase the theme on new sites.
  22. $starter_content = array(
  23. 'widgets' => array(
  24. // Place one core-defined widgets in the first footer widget area.
  25. 'sidebar-1' => array(
  26. 'text_about',
  27. ),
  28. // Place one core-defined widgets in the second footer widget area.
  29. 'sidebar-2' => array(
  30. 'text_business_info',
  31. ),
  32. ),
  33. // Create the custom image attachments used as post thumbnails for pages.
  34. 'attachments' => array(
  35. 'image-opening' => array(
  36. 'post_title' => _x( 'The New UMoMA Opens its Doors', 'Theme starter content', 'twentytwenty' ),
  37. 'file' => 'assets/images/2020-landscape-1.png', // URL relative to the template directory.
  38. ),
  39. ),
  40. // Specify the core-defined pages to create and add custom thumbnails to some of them.
  41. 'posts' => array(
  42. 'front' => array(
  43. 'post_type' => 'page',
  44. 'post_title' => __( 'The New UMoMA Opens its Doors', 'twentytwenty' ),
  45. // Use the above featured image with the predefined about page.
  46. 'thumbnail' => '{{image-opening}}',
  47. 'post_content' => implode(
  48. '',
  49. array(
  50. '<!-- wp:group {"align":"wide"} -->',
  51. '<div class="wp-block-group alignwide"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
  52. '<h2 class="has-text-align-center">' . __( 'The premier destination for modern art in Northern Sweden. Open from 10 AM to 6 PM every day during the summer months.', 'twentytwenty' ) . '</h2>',
  53. '<!-- /wp:heading --></div></div>',
  54. '<!-- /wp:group -->',
  55. '<!-- wp:columns {"align":"wide"} -->',
  56. '<div class="wp-block-columns alignwide"><!-- wp:column -->',
  57. '<div class="wp-block-column"><!-- wp:group -->',
  58. '<div class="wp-block-group"><div class="wp-block-group__inner-container">',
  59. '<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
  60. '<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-three-quarters-1.png" alt="" class="wp-image-37"/></figure>',
  61. '<!-- /wp:image -->',
  62. '<!-- wp:heading {"level":3} -->',
  63. '<h3>' . __( 'Works and Days', 'twentytwenty' ) . '</h3>',
  64. '<!-- /wp:heading -->',
  65. '<!-- wp:paragraph -->',
  66. '<p>' . __( 'August 1 -- December 1', 'twentytwenty' ) . '</p>',
  67. '<!-- /wp:paragraph -->',
  68. '<!-- wp:button {"className":"is-style-outline"} -->',
  69. '<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Read More', 'twentytwenty' ) . '</a></div>',
  70. '<!-- /wp:button --></div></div>',
  71. '<!-- /wp:group -->',
  72. '<!-- wp:group -->',
  73. '<div class="wp-block-group"><div class="wp-block-group__inner-container">',
  74. '<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
  75. '<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-three-quarters-3.png" alt="" class="wp-image-37"/></figure>',
  76. '<!-- /wp:image -->',
  77. '<!-- wp:heading {"level":3} -->',
  78. '<h3>' . __( 'Theatre of Operations', 'twentytwenty' ) . '</h3>',
  79. '<!-- /wp:heading -->',
  80. '<!-- wp:paragraph -->',
  81. '<p>' . __( 'October 1 -- December 1', 'twentytwenty' ) . '</p>',
  82. '<!-- /wp:paragraph -->',
  83. '<!-- wp:button {"className":"is-style-outline"} -->',
  84. '<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Read More', 'twentytwenty' ) . '</a></div>',
  85. '<!-- /wp:button --></div></div>',
  86. '<!-- /wp:group --></div>',
  87. '<!-- /wp:column -->',
  88. '<!-- wp:column -->',
  89. '<div class="wp-block-column"><!-- wp:group -->',
  90. '<div class="wp-block-group"><div class="wp-block-group__inner-container">',
  91. '<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
  92. '<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-three-quarters-2.png" alt="" class="wp-image-37"/></figure>',
  93. '<!-- /wp:image -->',
  94. '<!-- wp:heading {"level":3} -->',
  95. '<h3>' . __( 'The Life I Deserve', 'twentytwenty' ) . '</h3>',
  96. '<!-- /wp:heading -->',
  97. '<!-- wp:paragraph -->',
  98. '<p>' . __( 'August 1 -- December 1', 'twentytwenty' ) . '</p>',
  99. '<!-- /wp:paragraph -->',
  100. '<!-- wp:button {"className":"is-style-outline"} -->',
  101. '<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Read More', 'twentytwenty' ) . '</a></div>',
  102. '<!-- /wp:button --></div></div>',
  103. '<!-- /wp:group -->',
  104. '<!-- wp:group -->',
  105. '<div class="wp-block-group"><div class="wp-block-group__inner-container">',
  106. '<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
  107. '<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-three-quarters-4.png" alt="" class="wp-image-37"/></figure>',
  108. '<!-- /wp:image -->',
  109. '<!-- wp:heading {"level":3} -->',
  110. '<h3>' . __( 'From Signac to Matisse', 'twentytwenty' ) . '</h3>',
  111. '<!-- /wp:heading -->',
  112. '<!-- wp:paragraph -->',
  113. '<p>' . __( 'October 1 -- December 1', 'twentytwenty' ) . '</p>',
  114. '<!-- /wp:paragraph -->',
  115. '<!-- wp:button {"className":"is-style-outline"} -->',
  116. '<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Read More', 'twentytwenty' ) . '</a></div>',
  117. '<!-- /wp:button --></div></div>',
  118. '<!-- /wp:group --></div>',
  119. '<!-- /wp:column --></div>',
  120. '<!-- /wp:columns -->',
  121. '<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
  122. '<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-landscape-2.png" alt="" class="wp-image-37"/></figure>',
  123. '<!-- /wp:image -->',
  124. '<!-- wp:group {"align":"wide"} -->',
  125. '<div class="wp-block-group alignwide"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center","textColor":"accent"} -->',
  126. '<h2 class="has-accent-color has-text-align-center">' . __( '&#8220;Cyborgs, as the philosopher Donna Haraway established, are not reverent. They do not remember the cosmos.&#8221;', 'twentytwenty' ) . '</h2>',
  127. '<!-- /wp:heading --></div></div>',
  128. '<!-- /wp:group -->',
  129. '<!-- wp:paragraph {"dropCap":true} -->',
  130. '<p class="has-drop-cap">' . __( '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 programme. As visitor you are invited to guided tours artist talks, lectures, film screenings and other events with free admission', 'twentytwenty' ) . '</p>',
  131. '<!-- /wp:paragraph -->',
  132. '<!-- wp:paragraph -->',
  133. '<p>' . __( 'The exhibitions are produced by UMoMA in collaboration with artists and museums around the world and they often attract international attention. UMoMA has received a Special Commendation from the European Museum of the Year, and was among the top candidates for the Swedish Museum of the Year Award as well as for the Council of Europe Museum Prize.', 'twentytwenty' ) . '</p>',
  134. '<!-- /wp:paragraph -->',
  135. '<!-- wp:paragraph -->',
  136. '<p></p>',
  137. '<!-- /wp:paragraph -->',
  138. '<!-- wp:group {"customBackgroundColor":"#ffffff","align":"wide"} -->',
  139. '<div class="wp-block-group alignwide has-background" style="background-color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:group -->',
  140. '<div class="wp-block-group"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
  141. '<h2 class="has-text-align-center">' . __( 'Become a Member and Get Exclusive Offers!', 'twentytwenty' ) . '</h2>',
  142. '<!-- /wp:heading -->',
  143. '<!-- wp:paragraph {"align":"center"} -->',
  144. '<p class="has-text-align-center">' . __( 'Members get access to exclusive exhibits and sales. Our memberships cost $99.99 and are billed annually.', 'twentytwenty' ) . '</p>',
  145. '<!-- /wp:paragraph -->',
  146. '<!-- wp:button {"align":"center"} -->',
  147. '<div class="wp-block-button aligncenter"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Join the Club', 'twentytwenty' ) . '</a></div>',
  148. '<!-- /wp:button --></div></div>',
  149. '<!-- /wp:group --></div></div>',
  150. '<!-- /wp:group -->',
  151. '<!-- wp:gallery {"ids":[39,38],"align":"wide"} -->',
  152. '<figure class="wp-block-gallery alignwide columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="' . get_theme_file_uri() . '/assets/images/2020-square-2.png" alt="" data-id="39" data-full-url="' . get_theme_file_uri() . '/assets/images/2020-square-2.png" data-link="assets/images/2020-square-2/" class="wp-image-39"/></figure></li><li class="blocks-gallery-item"><figure><img src="' . get_theme_file_uri() . '/assets/images/2020-square-1.png" alt="" data-id="38" data-full-url="' . get_theme_file_uri() . '/assets/images/2020-square-1.png" data-link="' . get_theme_file_uri() . '/assets/images/2020-square-1/" class="wp-image-38"/></figure></li></ul></figure>',
  153. '<!-- /wp:gallery -->',
  154. )
  155. ),
  156. ),
  157. 'about',
  158. 'contact',
  159. 'blog',
  160. ),
  161. // Default to a static front page and assign the front and posts pages.
  162. 'options' => array(
  163. 'show_on_front' => 'page',
  164. 'page_on_front' => '{{front}}',
  165. 'page_for_posts' => '{{blog}}',
  166. ),
  167. // Set up nav menus for each of the two areas registered in the theme.
  168. 'nav_menus' => array(
  169. // Assign a menu to the "primary" location.
  170. 'primary' => array(
  171. 'name' => __( 'Primary', 'twentytwenty' ),
  172. 'items' => array(
  173. 'link_home', // Note that the core "home" page is actually a link in case a static front page is not used.
  174. 'page_about',
  175. 'page_blog',
  176. 'page_contact',
  177. ),
  178. ),
  179. // This replicates primary just to demonstrate the expanded menu.
  180. 'expanded' => array(
  181. 'name' => __( 'Primary', 'twentytwenty' ),
  182. 'items' => array(
  183. 'link_home', // Note that the core "home" page is actually a link in case a static front page is not used.
  184. 'page_about',
  185. 'page_blog',
  186. 'page_contact',
  187. ),
  188. ),
  189. // Assign a menu to the "social" location.
  190. 'social' => array(
  191. 'name' => __( 'Social Links Menu', 'twentytwenty' ),
  192. 'items' => array(
  193. 'link_yelp',
  194. 'link_facebook',
  195. 'link_twitter',
  196. 'link_instagram',
  197. 'link_email',
  198. ),
  199. ),
  200. ),
  201. );
  202. /**
  203. * Filters Twenty Twenty array of starter content.
  204. *
  205. * @since Twenty Twenty 1.0
  206. *
  207. * @param array $starter_content Array of starter content.
  208. */
  209. return apply_filters( 'twentytwenty_starter_content', $starter_content );
  210. }