Twenty Twelve: Update the quote pattern to use the quote block.

This change updates the Left-aligned Large Quote pattern to use the quote block instead of
paragraph blocks.

Props flairwebtechnologies, sabernhardt, karmatosed, wpeople, poena, nithins53, balub, sukhendu2002, dilip2615, itpathsolutions, shraddhagore, shailu25.
Fixes #61765.

git-svn-id: https://develop.svn.wordpress.org/trunk@59842 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Carolina Nymark 2025-02-20 05:38:03 +00:00
parent 9770026201
commit 58527d5f73

View File

@ -67,18 +67,17 @@ if ( function_exists( 'register_block_pattern' ) ) {
)
);
// Heading and paragraph arranged as a large quote.
// Quote with large paragraph text.
register_block_pattern(
'twentytwelve/large-quote',
array(
'title' => esc_html__( 'Left-aligned Large Quote', 'twentytwelve' ),
'categories' => array( 'twentytwelve' ),
'viewportWidth' => 700,
'content' => '<!-- wp:paragraph {"style":{"typography":{"fontSize":"40px","lineHeight":1.5}}} -->
<p style="font-size:40px;line-height:1.5"><strong><em>' . esc_html__( '"Few people are capable of expressing with equanimity opinions which differ from the prejudices of their social environment. Most people are even incapable of forming such opinions."', 'twentytwelve' ) . '</em></strong></p>
<!-- /wp:paragraph --><!-- wp:paragraph -->
<p><em>' . esc_html__( ' Albert Einstein', 'twentytwelve' ) . '</em></p>
<!-- /wp:paragraph -->',
'content' => '<!-- wp:quote --> <blockquote class="wp-block-quote"><!-- wp:paragraph {"style":{"typography":{"fontSize":"40px","lineHeight":1.5}}} -->
<p style="font-size:40px;line-height:1.5"><strong>' . esc_html__( '"Few people are capable of expressing with equanimity opinions which differ from the prejudices of their social environment. Most people are even incapable of forming such opinions."', 'twentytwelve' ) . '</strong></p>
<!-- /wp:paragraph --><cite>' . esc_html__( '&mdash; Albert Einstein', 'twentytwelve' ) . '</cite></blockquote>
<!-- /wp:quote -->',
)
);