Edit File by line
/home/barbar84/www/wp-conte.../themes/twentyni.../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 TwentyNineteen
[8] Fix | Delete
* @since Twenty Nineteen 1.7
[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
'twentynineteen',
[18] Fix | Delete
array( 'label' => esc_html__( 'Twenty Nineteen', 'twentynineteen' ) )
[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
// About.
[28] Fix | Delete
register_block_pattern(
[29] Fix | Delete
'twentynineteen/about',
[30] Fix | Delete
array(
[31] Fix | Delete
'title' => esc_html__( 'About', 'twentynineteen' ),
[32] Fix | Delete
'categories' => array( 'twentynineteen' ),
[33] Fix | Delete
'content' => implode(
[34] Fix | Delete
'',
[35] Fix | Delete
array(
[36] Fix | Delete
'<!-- wp:paragraph {"fontSize":"huge","style":{"typography":{"lineHeight":"1.3"}}} -->',
[37] Fix | Delete
'<p class="has-huge-font-size" style="line-height:1.3">' . esc_html__( 'Advocating for Businesses and Entrepreneurs since 2014', 'twentynineteen' ) . '</p>',
[38] Fix | Delete
'<!-- /wp:paragraph -->',
[39] Fix | Delete
'<!-- wp:paragraph -->',
[40] Fix | Delete
'<p>' . esc_html__( 'Eva Young Consulting was founded in 2014 to meet the needs of small businesses in the San Francisco Bay Area. We help startups define a clear brand identity and digital strategy that will carry them through their financing rounds and scale as their business grows. Discover how we can boost your brand with a unique and powerful digital marketing strategy.', 'twentynineteen' ) . '</p>',
[41] Fix | Delete
'<!-- /wp:paragraph -->',
[42] Fix | Delete
'<!-- wp:buttons -->',
[43] Fix | Delete
'<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"dark-gray"} -->',
[44] Fix | Delete
'<div class="wp-block-button"><a class="wp-block-button__link has-dark-gray-background-color has-background">' . esc_html__( 'Learn More', 'twentynineteen' ) . '</a></div>',
[45] Fix | Delete
'<!-- /wp:button --></div>',
[46] Fix | Delete
'<!-- /wp:buttons -->',
[47] Fix | Delete
)
[48] Fix | Delete
),
[49] Fix | Delete
)
[50] Fix | Delete
);
[51] Fix | Delete
[52] Fix | Delete
// Get In Touch.
[53] Fix | Delete
register_block_pattern(
[54] Fix | Delete
'twentynineteen/get-in-touch',
[55] Fix | Delete
array(
[56] Fix | Delete
'title' => esc_html__( 'Get In Touch', 'twentynineteen' ),
[57] Fix | Delete
'categories' => array( 'twentynineteen' ),
[58] Fix | Delete
'content' => implode(
[59] Fix | Delete
'',
[60] Fix | Delete
array(
[61] Fix | Delete
'<!-- wp:paragraph {"fontSize":"huge"} -->',
[62] Fix | Delete
'<p class="has-huge-font-size">' . esc_html__( 'Get In Touch', 'twentynineteen' ) . '</p>',
[63] Fix | Delete
'<!-- /wp:paragraph -->',
[64] Fix | Delete
'<!-- wp:columns -->',
[65] Fix | Delete
'<div class="wp-block-columns"><!-- wp:column -->',
[66] Fix | Delete
'<div class="wp-block-column"><!-- wp:paragraph -->',
[67] Fix | Delete
'<p>' . esc_html__( '20 Cooper Avenue', 'twentynineteen' ) . '<br>' . esc_html__( 'New York, New York 10023', 'twentynineteen' ) . '</p>',
[68] Fix | Delete
'<!-- /wp:paragraph --></div>',
[69] Fix | Delete
'<!-- /wp:column -->',
[70] Fix | Delete
'<!-- wp:column -->',
[71] Fix | Delete
'<div class="wp-block-column"><!-- wp:paragraph -->',
[72] Fix | Delete
'<p>' . esc_html__( '(555) 555-5555', 'twentynineteen' ) . '<br><a href="mailto:example@example.com">' . esc_html__( 'example@example.com', 'twentynineteen' ) . '</a></p>',
[73] Fix | Delete
'<!-- /wp:paragraph --></div>',
[74] Fix | Delete
'<!-- /wp:column --></div>',
[75] Fix | Delete
'<!-- /wp:columns -->',
[76] Fix | Delete
'<!-- wp:buttons -->',
[77] Fix | Delete
'<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"dark-gray"} -->',
[78] Fix | Delete
'<div class="wp-block-button"><a class="wp-block-button__link has-dark-gray-background-color has-background">' . esc_html__( 'Contact Us', 'twentynineteen' ) . '</a></div>',
[79] Fix | Delete
'<!-- /wp:button --></div>',
[80] Fix | Delete
'<!-- /wp:buttons -->',
[81] Fix | Delete
)
[82] Fix | Delete
),
[83] Fix | Delete
)
[84] Fix | Delete
);
[85] Fix | Delete
[86] Fix | Delete
// Services.
[87] Fix | Delete
register_block_pattern(
[88] Fix | Delete
'twentynineteen/services',
[89] Fix | Delete
array(
[90] Fix | Delete
'title' => esc_html__( 'Services', 'twentynineteen' ),
[91] Fix | Delete
'categories' => array( 'twentynineteen' ),
[92] Fix | Delete
'content' => implode(
[93] Fix | Delete
'',
[94] Fix | Delete
array(
[95] Fix | Delete
'<!-- wp:heading -->',
[96] Fix | Delete
'<h2>' . esc_html__( 'Services', 'twentynineteen' ) . '</h2>',
[97] Fix | Delete
'<!-- /wp:heading -->',
[98] Fix | Delete
'<!-- wp:columns {"className":"has-2-columns"} -->',
[99] Fix | Delete
'<div class="wp-block-columns has-2-columns"><!-- wp:column -->',
[100] Fix | Delete
'<div class="wp-block-column"><!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_01.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->',
[101] Fix | Delete
'<div class="wp-block-media-text alignwide" style="grid-template-columns:10% auto"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_01.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->',
[102] Fix | Delete
'<p>' . esc_html__( 'Website Design', 'twentynineteen' ) . '</p>',
[103] Fix | Delete
'<!-- /wp:paragraph --></div></div>',
[104] Fix | Delete
'<!-- /wp:media-text -->',
[105] Fix | Delete
'<!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_02.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->',
[106] Fix | Delete
'<div class="wp-block-media-text alignwide" style="grid-template-columns:10% auto"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_02.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->',
[107] Fix | Delete
'<p>' . esc_html__( 'Mobile', 'twentynineteen' ) . '</p>',
[108] Fix | Delete
'<!-- /wp:paragraph --></div></div>',
[109] Fix | Delete
'<!-- /wp:media-text -->',
[110] Fix | Delete
'<!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_03.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->',
[111] Fix | Delete
'<div class="wp-block-media-text alignwide" style="grid-template-columns:10% auto"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_03.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->',
[112] Fix | Delete
'<p>' . esc_html__( 'Social Media', 'twentynineteen' ) . '</p>',
[113] Fix | Delete
'<!-- /wp:paragraph --></div></div>',
[114] Fix | Delete
'<!-- /wp:media-text --></div>',
[115] Fix | Delete
'<!-- /wp:column -->',
[116] Fix | Delete
'<!-- wp:column -->',
[117] Fix | Delete
'<div class="wp-block-column"><!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_03.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->',
[118] Fix | Delete
'<div class="wp-block-media-text alignwide" style="grid-template-columns:10% auto"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_03.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->',
[119] Fix | Delete
'<p>' . esc_html__( 'Marketing', 'twentynineteen' ) . '</p>',
[120] Fix | Delete
'<!-- /wp:paragraph --></div></div>',
[121] Fix | Delete
'<!-- /wp:media-text -->',
[122] Fix | Delete
'<!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_04.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->',
[123] Fix | Delete
'<div class="wp-block-media-text alignwide" style="grid-template-columns:10% auto"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_04.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->',
[124] Fix | Delete
'<p>' . esc_html__( 'Copywriting', 'twentynineteen' ) . '</p>',
[125] Fix | Delete
'<!-- /wp:paragraph --></div></div>',
[126] Fix | Delete
'<!-- /wp:media-text -->',
[127] Fix | Delete
'<!-- wp:media-text {"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/images/pattern_01.jpg","mediaType":"image","mediaWidth":10,"isStackedOnMobile":false} -->',
[128] Fix | Delete
'<div class="wp-block-media-text alignwide" style="grid-template-columns:10% auto"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_01.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->',
[129] Fix | Delete
'<p>' . esc_html__( 'Content Strategy', 'twentynineteen' ) . '</p>',
[130] Fix | Delete
'<!-- /wp:paragraph --></div></div>',
[131] Fix | Delete
'<!-- /wp:media-text --></div>',
[132] Fix | Delete
'<!-- /wp:column --></div>',
[133] Fix | Delete
'<!-- /wp:columns -->',
[134] Fix | Delete
)
[135] Fix | Delete
),
[136] Fix | Delete
)
[137] Fix | Delete
);
[138] Fix | Delete
[139] Fix | Delete
// Team.
[140] Fix | Delete
register_block_pattern(
[141] Fix | Delete
'twentynineteen/team',
[142] Fix | Delete
array(
[143] Fix | Delete
'title' => esc_html__( 'Team', 'twentynineteen' ),
[144] Fix | Delete
'categories' => array( 'twentynineteen' ),
[145] Fix | Delete
'viewportWidth' => 1400,
[146] Fix | Delete
'content' => implode(
[147] Fix | Delete
'',
[148] Fix | Delete
array(
[149] Fix | Delete
'<!-- wp:heading -->',
[150] Fix | Delete
'<h2>' . esc_html__( 'Team', 'twentynineteen' ) . '</h2>',
[151] Fix | Delete
'<!-- /wp:heading -->',
[152] Fix | Delete
'<!-- wp:media-text {"mediaType":"image","mediaWidth":28,"imageFill":true} -->',
[153] Fix | Delete
'<div class="wp-block-media-text alignwide is-stacked-on-mobile is-image-fill" style="grid-template-columns:28% auto"><figure class="wp-block-media-text__media" style="background-image:url(' . esc_url( get_template_directory_uri() ) . '/images/pattern_01.jpg);background-position:50% 50%"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_01.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:heading {"level":3} -->',
[154] Fix | Delete
'<h3>' . esc_html__( 'Eva Young', 'twentynineteen' ) . '</h3>',
[155] Fix | Delete
'<!-- /wp:heading -->',
[156] Fix | Delete
'<!-- wp:paragraph -->',
[157] Fix | Delete
'<p>' . esc_html__( 'Eva Young grew up working alongside her parents at their restaurant in Queens, NY. She opened Eva Young Consulting in 2014 to help small businesses like her parents’ restaurant adapt to the digital age.', 'twentynineteen' ) . '</p>',
[158] Fix | Delete
'<!-- /wp:paragraph --></div></div>',
[159] Fix | Delete
'<!-- /wp:media-text -->',
[160] Fix | Delete
'<!-- wp:media-text {"mediaType":"image","mediaWidth":28,"imageFill":true} -->',
[161] Fix | Delete
'<div class="wp-block-media-text alignwide is-stacked-on-mobile is-image-fill" style="grid-template-columns:28% auto"><figure class="wp-block-media-text__media" style="background-image:url(' . esc_url( get_template_directory_uri() ) . '/images/pattern_02.jpg);background-position:50% 50%"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern_02.jpg" alt="' . esc_html__( 'Gradient', 'twentynineteen' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:heading {"level":3} -->',
[162] Fix | Delete
'<h3>' . esc_html__( 'Doug Watson', 'twentynineteen' ) . '</h3>',
[163] Fix | Delete
'<!-- /wp:heading -->',
[164] Fix | Delete
'<!-- wp:paragraph -->',
[165] Fix | Delete
'<p>' . esc_html__( 'Oddly enough, Doug Watson also grew up working alongside his parents at a family-owned restaurant in Queens, NY. He &nbsp;worked on digital campaigns for Fortune 500 Companies before joining Eva Green Consulting.', 'twentynineteen' ) . '</p>',
[166] Fix | Delete
'<!-- /wp:paragraph --></div></div>',
[167] Fix | Delete
'<!-- /wp:media-text -->',
[168] Fix | Delete
)
[169] Fix | Delete
),
[170] Fix | Delete
)
[171] Fix | Delete
);
[172] Fix | Delete
[173] Fix | Delete
// What We Do.
[174] Fix | Delete
register_block_pattern(
[175] Fix | Delete
'twentynineteen/what-we-do',
[176] Fix | Delete
array(
[177] Fix | Delete
'title' => esc_html__( 'What We Do', 'twentynineteen' ),
[178] Fix | Delete
'categories' => array( 'twentynineteen' ),
[179] Fix | Delete
'viewportWidth' => 1400,
[180] Fix | Delete
'content' => implode(
[181] Fix | Delete
'',
[182] Fix | Delete
array(
[183] Fix | Delete
'<!-- wp:heading -->',
[184] Fix | Delete
'<h2>' . esc_html__( 'What We Do', 'twentynineteen' ) . '</h2>',
[185] Fix | Delete
'<!-- /wp:heading -->',
[186] Fix | Delete
'<!-- wp:pullquote {"align":"wide","className":"is-style-solid-color"} -->',
[187] Fix | Delete
'<figure class="wp-block-pullquote alignwide is-style-solid-color"><blockquote><p>' . esc_html__( 'Redefine brands', 'twentynineteen' ) . '</p><cite>' . esc_html__( 'We help startups define (or refine) a clear brand identity.', 'twentynineteen' ) . '</cite></blockquote></figure>',
[188] Fix | Delete
'<!-- /wp:pullquote -->',
[189] Fix | Delete
'<!-- wp:pullquote {"mainColor":"dark-gray","customTextColor":"#ffffff","align":"wide","className":"is-style-solid-color"} -->',
[190] Fix | Delete
'<figure class="wp-block-pullquote alignwide has-background has-dark-gray-background-color is-style-solid-color"><blockquote class="has-text-color" style="color:#ffffff"><p>' . esc_html__( 'Activate new customers', 'twentynineteen' ) . '</p><cite>' . esc_html__( 'We help businesses grow.', 'twentynineteen' ) . '</cite></blockquote></figure>',
[191] Fix | Delete
'<!-- /wp:pullquote -->',
[192] Fix | Delete
'<!-- wp:pullquote {"customMainColor":"#f7f7f7","customTextColor":"#111111","align":"wide","className":"is-style-solid-color"} -->',
[193] Fix | Delete
'<figure class="wp-block-pullquote alignwide has-background is-style-solid-color" style="background-color:#f7f7f7"><blockquote class="has-text-color" style="color:#111111"><p>' . esc_html__( 'Spark interest on social media', 'twentynineteen' ) . '</p><cite>' . esc_html__( 'We help companies communicate with their customers.', 'twentynineteen' ) . '</cite></blockquote></figure>',
[194] Fix | Delete
'<!-- /wp:pullquote -->',
[195] Fix | Delete
)
[196] Fix | Delete
),
[197] Fix | Delete
)
[198] Fix | Delete
);
[199] Fix | Delete
}
[200] Fix | Delete
[201] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function