Edit File by line
/home/barbar84/public_h.../wp-conte.../themes/twentytw.../inc
File: block-patterns.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Block Patterns
[2] Fix | Delete
*
[3] Fix | Delete
* @link https://developer.wordpress.org/reference/functions/register_block_pattern/
[4] Fix | Delete
* @link https://developer.wordpress.org/reference/functions/register_block_pattern_category/
[5] Fix | Delete
*
[6] Fix | Delete
* @package WordPress
[7] Fix | Delete
* @subpackage Twenty_Twenty
[8] Fix | Delete
* @since Twenty Twenty 1.5
[9] Fix | Delete
*/
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Register Block Pattern Category.
[13] Fix | Delete
*/
[14] Fix | Delete
if ( function_exists( 'register_block_pattern_category' ) ) {
[15] Fix | Delete
[16] Fix | Delete
register_block_pattern_category(
[17] Fix | Delete
'twentytwenty',
[18] Fix | Delete
array( 'label' => esc_html__( 'Twenty Twenty', 'twentytwenty' ) )
[19] Fix | Delete
);
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
/**
[23] Fix | Delete
* Register Block Patterns.
[24] Fix | Delete
*/
[25] Fix | Delete
if ( function_exists( 'register_block_pattern' ) ) {
[26] Fix | Delete
[27] Fix | Delete
// Call to Action.
[28] Fix | Delete
register_block_pattern(
[29] Fix | Delete
'twentytwenty/call-to-action',
[30] Fix | Delete
array(
[31] Fix | Delete
'title' => esc_html__( 'Call to Action', 'twentytwenty' ),
[32] Fix | Delete
'categories' => array( 'twentytwenty' ),
[33] Fix | Delete
'viewportWidth' => 1400,
[34] Fix | Delete
'content' => implode(
[35] Fix | Delete
'',
[36] Fix | Delete
array(
[37] Fix | Delete
'<!-- wp:group {"align":"wide","style":{"color":{"background":"#ffffff"}}} -->',
[38] Fix | Delete
'<div class="wp-block-group alignwide has-background" style="background-color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:group -->',
[39] Fix | Delete
'<div class="wp-block-group"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
[40] Fix | Delete
'<h2 class="has-text-align-center">' . esc_html__( 'Support the Museum and Get Exclusive Offers', 'twentytwenty' ) . '</h2>',
[41] Fix | Delete
'<!-- /wp:heading -->',
[42] Fix | Delete
'<!-- wp:paragraph {"align":"center"} -->',
[43] Fix | Delete
'<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>',
[44] Fix | Delete
'<!-- /wp:paragraph -->',
[45] Fix | Delete
'<!-- wp:button {"align":"center","className":"is-style-outline"} -->',
[46] Fix | Delete
'<div class="wp-block-button aligncenter is-style-outline"><a class="wp-block-button__link" href="#">' . esc_html__( 'Become a Member', 'twentytwenty' ) . '</a></div>',
[47] Fix | Delete
'<!-- /wp:button --></div></div>',
[48] Fix | Delete
'<!-- /wp:group --></div></div>',
[49] Fix | Delete
'<!-- /wp:group -->',
[50] Fix | Delete
)
[51] Fix | Delete
),
[52] Fix | Delete
)
[53] Fix | Delete
);
[54] Fix | Delete
[55] Fix | Delete
// Double Call to Action.
[56] Fix | Delete
register_block_pattern(
[57] Fix | Delete
'twentytwenty/double-call-to-action',
[58] Fix | Delete
array(
[59] Fix | Delete
'title' => esc_html__( 'Double Call to Action', 'twentytwenty' ),
[60] Fix | Delete
'categories' => array( 'twentytwenty' ),
[61] Fix | Delete
'viewportWidth' => 1400,
[62] Fix | Delete
'content' => implode(
[63] Fix | Delete
'',
[64] Fix | Delete
array(
[65] Fix | Delete
'<!-- wp:columns {"align":"wide"} -->',
[66] Fix | Delete
'<div class="wp-block-columns alignwide"><!-- wp:column -->',
[67] Fix | Delete
'<div class="wp-block-column"><!-- wp:group {"style":{"color":{"background":"#ffffff"}}} -->',
[68] Fix | Delete
'<div class="wp-block-group has-background" style="background-color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
[69] Fix | Delete
'<h2 class="has-text-align-center">' . esc_html__( 'The Museum', 'twentytwenty' ) . '</h2>',
[70] Fix | Delete
'<!-- /wp:heading -->',
[71] Fix | Delete
'<!-- wp:paragraph {"align":"center"} -->',
[72] Fix | Delete
'<p class="has-text-align-center">' . esc_html__( 'Award-winning exhibitions featuring internationally-renowned artists.', 'twentytwenty' ) . '</p>',
[73] Fix | Delete
'<!-- /wp:paragraph -->',
[74] Fix | Delete
'<!-- wp:buttons {"align":"center"} -->',
[75] Fix | Delete
'<div class="wp-block-buttons aligncenter"><!-- wp:button {"className":"is-style-outline"} -->',
[76] Fix | Delete
'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link">' . esc_html__( 'Read More', 'twentytwenty' ) . '</a></div>',
[77] Fix | Delete
'<!-- /wp:button --></div>',
[78] Fix | Delete
'<!-- /wp:buttons --></div></div>',
[79] Fix | Delete
'<!-- /wp:group --></div>',
[80] Fix | Delete
'<!-- /wp:column -->',
[81] Fix | Delete
'<!-- wp:column -->',
[82] Fix | Delete
'<div class="wp-block-column"><!-- wp:group {"style":{"color":{"background":"#ffffff"}}} -->',
[83] Fix | Delete
'<div class="wp-block-group has-background" style="background-color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
[84] Fix | Delete
'<h2 class="has-text-align-center">' . esc_html__( 'The Store', 'twentytwenty' ) . '</h2>',
[85] Fix | Delete
'<!-- /wp:heading -->',
[86] Fix | Delete
'<!-- wp:paragraph {"align":"center"} -->',
[87] Fix | Delete
'<p class="has-text-align-center">' . esc_html__( 'An awe-inspiring collection of books, prints, and gifts from our exhibitions.', 'twentytwenty' ) . '</p>',
[88] Fix | Delete
'<!-- /wp:paragraph -->',
[89] Fix | Delete
'<!-- wp:buttons {"align":"center"} -->',
[90] Fix | Delete
'<div class="wp-block-buttons aligncenter"><!-- wp:button {"className":"is-style-outline"} -->',
[91] Fix | Delete
'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link">' . esc_html__( 'Shop Now', 'twentytwenty' ) . '</a></div>',
[92] Fix | Delete
'<!-- /wp:button --></div>',
[93] Fix | Delete
'<!-- /wp:buttons --></div></div>',
[94] Fix | Delete
'<!-- /wp:group --></div>',
[95] Fix | Delete
'<!-- /wp:column --></div>',
[96] Fix | Delete
'<!-- /wp:columns -->',
[97] Fix | Delete
)
[98] Fix | Delete
),
[99] Fix | Delete
)
[100] Fix | Delete
);
[101] Fix | Delete
[102] Fix | Delete
// Event Details.
[103] Fix | Delete
register_block_pattern(
[104] Fix | Delete
'twentytwenty/event-details',
[105] Fix | Delete
array(
[106] Fix | Delete
'title' => esc_html__( 'Event Details', 'twentytwenty' ),
[107] Fix | Delete
'categories' => array( 'twentytwenty' ),
[108] Fix | Delete
'viewportWidth' => 1400,
[109] Fix | Delete
'content' => implode(
[110] Fix | Delete
'',
[111] Fix | Delete
array(
[112] Fix | Delete
'<!-- wp:group {"align":"wide","backgroundColor":"primary"} -->',
[113] Fix | Delete
'<div class="wp-block-group alignwide has-primary-background-color has-background"><div class="wp-block-group__inner-container"><!-- wp:columns -->',
[114] Fix | Delete
'<div class="wp-block-columns"><!-- wp:column -->',
[115] Fix | Delete
'<div class="wp-block-column"><!-- wp:paragraph {"align":"center","textColor":"background","fontSize":"large"} -->',
[116] Fix | Delete
'<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>',
[117] Fix | Delete
'<!-- /wp:paragraph --></div>',
[118] Fix | Delete
'<!-- /wp:column -->',
[119] Fix | Delete
'<!-- wp:column -->',
[120] Fix | Delete
'<div class="wp-block-column"><!-- wp:paragraph {"align":"center","textColor":"background","fontSize":"large"} -->',
[121] Fix | Delete
'<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>',
[122] Fix | Delete
'<!-- /wp:paragraph --></div>',
[123] Fix | Delete
'<!-- /wp:column -->',
[124] Fix | Delete
'<!-- wp:column -->',
[125] Fix | Delete
'<div class="wp-block-column"><!-- wp:paragraph {"align":"center","textColor":"background","fontSize":"large"} -->',
[126] Fix | Delete
'<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>',
[127] Fix | Delete
'<!-- /wp:paragraph --></div>',
[128] Fix | Delete
'<!-- /wp:column --></div>',
[129] Fix | Delete
'<!-- /wp:columns --></div></div>',
[130] Fix | Delete
'<!-- /wp:group -->',
[131] Fix | Delete
)
[132] Fix | Delete
),
[133] Fix | Delete
)
[134] Fix | Delete
);
[135] Fix | Delete
[136] Fix | Delete
// Featured Content.
[137] Fix | Delete
register_block_pattern(
[138] Fix | Delete
'twentytwenty/featured-content',
[139] Fix | Delete
array(
[140] Fix | Delete
'title' => esc_html__( 'Featured Content', 'twentytwenty' ),
[141] Fix | Delete
'categories' => array( 'twentytwenty' ),
[142] Fix | Delete
'viewportWidth' => 1400,
[143] Fix | Delete
'content' => implode(
[144] Fix | Delete
'',
[145] Fix | Delete
array(
[146] Fix | Delete
'<!-- wp:columns {"align":"wide"} -->',
[147] Fix | Delete
'<div class="wp-block-columns alignwide"><!-- wp:column -->',
[148] Fix | Delete
'<div class="wp-block-column"><!-- wp:image {"sizeSlug":"full"} -->',
[149] Fix | Delete
'<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>',
[150] Fix | Delete
'<!-- /wp:image -->',
[151] Fix | Delete
'<!-- wp:heading -->',
[152] Fix | Delete
'<h2>' . esc_html__( 'Works and Days', 'twentytwenty' ) . '</h2>',
[153] Fix | Delete
'<!-- /wp:heading -->',
[154] Fix | Delete
'<!-- wp:paragraph {"fontSize":"larger"} -->',
[155] Fix | Delete
'<p class="has-larger-font-size">' . esc_html__( 'August 1 — December 1', 'twentytwenty' ) . '</p>',
[156] Fix | Delete
'<!-- /wp:paragraph -->',
[157] Fix | Delete
'<!-- wp:button {"align":"left","className":"is-style-outline"} -->',
[158] Fix | Delete
'<div class="wp-block-button alignleft is-style-outline"><a class="wp-block-button__link" href="#">' . esc_html__( 'Read More', 'twentytwenty' ) . '</a></div>',
[159] Fix | Delete
'<!-- /wp:button --></div>',
[160] Fix | Delete
'<!-- /wp:column -->',
[161] Fix | Delete
'<!-- wp:column -->',
[162] Fix | Delete
'<div class="wp-block-column"><!-- wp:image {sizeSlug":"full"} -->',
[163] Fix | Delete
'<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>',
[164] Fix | Delete
'<!-- /wp:image -->',
[165] Fix | Delete
'<!-- wp:heading -->',
[166] Fix | Delete
'<h2>' . esc_html__( 'The Life I Deserve', 'twentytwenty' ) . '</h2>',
[167] Fix | Delete
'<!-- /wp:heading -->',
[168] Fix | Delete
'<!-- wp:paragraph {"fontSize":"larger"} -->',
[169] Fix | Delete
'<p class="has-larger-font-size">' . esc_html__( 'August 1 — December 1', 'twentytwenty' ) . '</p>',
[170] Fix | Delete
'<!-- /wp:paragraph -->',
[171] Fix | Delete
'<!-- wp:button {"align":"left","className":"is-style-outline"} -->',
[172] Fix | Delete
'<div class="wp-block-button alignleft is-style-outline"><a class="wp-block-button__link" href="#">' . esc_html__( 'Read More', 'twentytwenty' ) . '</a></div>',
[173] Fix | Delete
'<!-- /wp:button --></div>',
[174] Fix | Delete
'<!-- /wp:column --></div>',
[175] Fix | Delete
'<!-- /wp:columns -->',
[176] Fix | Delete
)
[177] Fix | Delete
),
[178] Fix | Delete
)
[179] Fix | Delete
);
[180] Fix | Delete
[181] Fix | Delete
// Introduction.
[182] Fix | Delete
register_block_pattern(
[183] Fix | Delete
'twentytwenty/introduction',
[184] Fix | Delete
array(
[185] Fix | Delete
'title' => esc_html__( 'Introduction', 'twentytwenty' ),
[186] Fix | Delete
'categories' => array( 'twentytwenty' ),
[187] Fix | Delete
'viewportWidth' => 1400,
[188] Fix | Delete
'content' => implode(
[189] Fix | Delete
'',
[190] Fix | Delete
array(
[191] Fix | Delete
'<!-- wp:heading {"align":"center"} -->',
[192] Fix | Delete
'<h2 class="has-text-align-center">' . esc_html__( 'The Premier Destination for Modern Art in Sweden', 'twentytwenty' ) . '</h2>',
[193] Fix | Delete
'<!-- /wp:heading -->',
[194] Fix | Delete
'<!-- wp:paragraph {"dropCap":true} -->',
[195] Fix | Delete
'<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>',
[196] Fix | Delete
'<!-- /wp:paragraph -->',
[197] Fix | Delete
)
[198] Fix | Delete
),
[199] Fix | Delete
)
[200] Fix | Delete
);
[201] Fix | Delete
}
[202] Fix | Delete
[203] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function