|
14 | 14 |
|
15 | 15 | register_block_pattern_category( |
16 | 16 | 'twentyseventeen', |
17 | | - array( 'label' => __( 'Twenty Seventeen', 'twentyseventeen' ) ) |
| 17 | + array( 'label' => esc_html__( 'Twenty Seventeen', 'twentyseventeen' ) ) |
18 | 18 | ); |
19 | 19 | } |
20 | 20 |
|
|
25 | 25 | register_block_pattern( |
26 | 26 | 'twentyseventeen/large-heading-with-button', |
27 | 27 | array( |
28 | | - 'title' => __( 'Large Heading with Button', 'twentyseventeen' ), |
| 28 | + 'title' => esc_html__( 'Large Heading with Button', 'twentyseventeen' ), |
29 | 29 | 'categories' => array( 'twentyseventeen' ), |
30 | 30 | 'content' => '<!-- wp:heading {"level":1,"textColor":"black","style":{"typography":{"fontSize":50}}} --> |
31 | | - <h1 class="has-black-color has-text-color" style="font-size:50px">' . __( 'Attract Leads with Marketing Campaigns that Work', 'twentyseventeen' ) . '</h1> |
| 31 | + <h1 class="has-black-color has-text-color" style="font-size:50px">' . esc_html__( 'Attract Leads with Marketing Campaigns that Work', 'twentyseventeen' ) . '</h1> |
32 | 32 | <!-- /wp:heading --> |
33 | 33 |
|
34 | 34 | <!-- wp:buttons --> |
35 | 35 | <div class="wp-block-buttons"><!-- wp:button {"borderRadius":0,"className":"is-style-fill"} --> |
36 | | - <div class="wp-block-button is-style-fill"><a class="wp-block-button__link no-border-radius">' . __( 'Our Services', 'twentyseventeen' ) . '</a></div> |
| 36 | + <div class="wp-block-button is-style-fill"><a class="wp-block-button__link no-border-radius">' . esc_html__( 'Our Services', 'twentyseventeen' ) . '</a></div> |
37 | 37 | <!-- /wp:button --></div> |
38 | 38 | <!-- /wp:buttons -->', |
39 | 39 | ) |
|
42 | 42 | register_block_pattern( |
43 | 43 | 'twentyseventeen/images-with-text-and-link', |
44 | 44 | array( |
45 | | - 'title' => __( 'Images with Text and Link', 'twentyseventeen' ), |
| 45 | + 'title' => esc_html__( 'Images with Text and Link', 'twentyseventeen' ), |
46 | 46 | 'categories' => array( 'twentyseventeen' ), |
47 | 47 | 'content' => '<!-- wp:spacer --> |
48 | 48 | <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div> |
|
51 | 51 | <div class="wp-block-columns"><!-- wp:column --> |
52 | 52 | <div class="wp-block-column"> |
53 | 53 | <!-- wp:image {"className":"size-large"} --> |
54 | | - <figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/stripes.jpg" alt="' . __( 'Black Stripes', 'twentyseventeen' ) . '"/></figure> |
| 54 | + <figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/stripes.jpg" alt="' . esc_attr__( 'Black Stripes', 'twentyseventeen' ) . '"/></figure> |
55 | 55 | <!-- /wp:image --> |
56 | 56 | <!-- wp:heading {"textColor":"black","style":{"typography":{"fontSize":45}}} --> |
57 | | - <h2 class="has-black-color has-text-color" style="font-size:45px">' . __( 'Branding', 'twentyseventeen' ) . '</h2> |
| 57 | + <h2 class="has-black-color has-text-color" style="font-size:45px">' . esc_html__( 'Branding', 'twentyseventeen' ) . '</h2> |
58 | 58 | <!-- /wp:heading --> |
59 | 59 | <!-- wp:paragraph {"textColor":"black","style":{"typography":{"lineHeight":"1.8"}}} --> |
60 | | - <p class="has-black-color has-text-color" style="line-height:1.8">' . __( 'Communicate your purpose and goals with a beautiful logo that encapsulates your business.', 'twentyseventeen' ) . '</p> |
| 60 | + <p class="has-black-color has-text-color" style="line-height:1.8">' . esc_html__( 'Communicate your purpose and goals with a beautiful logo that encapsulates your business.', 'twentyseventeen' ) . '</p> |
61 | 61 | <!-- /wp:paragraph --> |
62 | 62 | <!-- wp:paragraph {"style":{"typography":{"lineHeight":"3"}}} --> |
63 | | - <p style="line-height:3"><a href="#"><strong>' . __( 'See Case Study', 'twentyseventeen' ) . ' →</strong></a></p> |
| 63 | + <p style="line-height:3"><a href="#"><strong>' . esc_html__( 'See Case Study', 'twentyseventeen' ) . ' →</strong></a></p> |
64 | 64 | <!-- /wp:paragraph --></div> |
65 | 65 | <!-- /wp:column --> |
66 | 66 | <!-- wp:column --> |
67 | 67 | <div class="wp-block-column"><!-- wp:spacer {"height":254} --> |
68 | 68 | <div style="height:254px" aria-hidden="true" class="wp-block-spacer"></div> |
69 | 69 | <!-- /wp:spacer --> |
70 | 70 | <!-- wp:image {"className":"size-large"} --> |
71 | | - <figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/white-border.jpg" alt="' . __( 'White border', 'twentyseventeen' ) . '"/></figure> |
| 71 | + <figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/white-border.jpg" alt="' . esc_attr__( 'White border', 'twentyseventeen' ) . '"/></figure> |
72 | 72 | <!-- /wp:image --> |
73 | 73 | <!-- wp:heading {"textColor":"black","style":{"typography":{"fontSize":45}}} --> |
74 | | - <h2 class="has-black-color has-text-color" style="font-size:45px">' . __( 'Web Design', 'twentyseventeen' ) . '</h2> |
| 74 | + <h2 class="has-black-color has-text-color" style="font-size:45px">' . esc_html__( 'Web Design', 'twentyseventeen' ) . '</h2> |
75 | 75 | <!-- /wp:heading --> |
76 | 76 | <!-- wp:paragraph {"textColor":"black","style":{"typography":{"lineHeight":"1.8"}}} --> |
77 | | - <p class="has-black-color has-text-color" style="line-height:1.8">' . __( 'Need a website? We've got you covered. Our design team will create a stunning design to transform your brand.', 'twentyseventeen' ) . '</p> |
| 77 | + <p class="has-black-color has-text-color" style="line-height:1.8">' . esc_html__( 'Need a website? We've got you covered. Our design team will create a stunning design to transform your brand.', 'twentyseventeen' ) . '</p> |
78 | 78 | <!-- /wp:paragraph --> |
79 | 79 | <!-- wp:paragraph {"style":{"typography":{"lineHeight":"3.0"}}} --> |
80 | | - <p style="line-height:3.0"><a href="#"><strong>' . __( 'See Case Study', 'twentyseventeen' ) . ' →</strong></a></p> |
| 80 | + <p style="line-height:3.0"><a href="#"><strong>' . esc_html__( 'See Case Study', 'twentyseventeen' ) . ' →</strong></a></p> |
81 | 81 | <!-- /wp:paragraph --></div> |
82 | 82 | <!-- /wp:column --></div> |
83 | 83 | <!-- /wp:columns -->', |
|
87 | 87 | register_block_pattern( |
88 | 88 | 'twentyseventeen/images-with-link', |
89 | 89 | array( |
90 | | - 'title' => __( 'Images with Link', 'twentyseventeen' ), |
| 90 | + 'title' => esc_html__( 'Images with Link', 'twentyseventeen' ), |
91 | 91 | 'categories' => array( 'twentyseventeen' ), |
92 | 92 | 'content' => '<!-- wp:spacer --> |
93 | 93 | <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div> |
|
97 | 97 | <div class="wp-block-column"><!-- wp:group --> |
98 | 98 | <div class="wp-block-group"><div class="wp-block-group__inner-container"> |
99 | 99 | <!-- wp:image {"align":"center","sizeSlug":"large","className":"is-style-default"} --> |
100 | | - <div class="wp-block-image is-style-default"><figure class="aligncenter size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/stripes.jpg" alt="' . __( 'Black Stripes', 'twentyseventeen' ) . '"/></figure></div> |
| 100 | + <div class="wp-block-image is-style-default"><figure class="aligncenter size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/stripes.jpg" alt="' . esc_attr__( 'Black Stripes', 'twentyseventeen' ) . '"/></figure></div> |
101 | 101 | <!-- /wp:image --> |
102 | 102 | <!-- wp:heading {"align":"left","textColor":"black","style":{"typography":{"fontSize":30}}} --> |
103 | | - <h2 class="has-text-align-left has-black-color has-text-color" style="font-size:30px">' . __( 'Branding', 'twentyseventeen' ) . '</h2> |
| 103 | + <h2 class="has-text-align-left has-black-color has-text-color" style="font-size:30px">' . esc_html__( 'Branding', 'twentyseventeen' ) . '</h2> |
104 | 104 | <!-- /wp:heading --> |
105 | 105 | <!-- wp:paragraph {"align":"left"} --> |
106 | | - <p class="has-text-align-left"><a href="#">' . __( 'See Case Study', 'twentyseventeen' ) . ' →</a></p> |
| 106 | + <p class="has-text-align-left"><a href="#">' . esc_html__( 'See Case Study', 'twentyseventeen' ) . ' →</a></p> |
107 | 107 | <!-- /wp:paragraph --></div></div> |
108 | 108 | <!-- /wp:group --></div> |
109 | 109 | <!-- /wp:column --> |
110 | 110 | <!-- wp:column --> |
111 | 111 | <div class="wp-block-column"><!-- wp:group --> |
112 | 112 | <div class="wp-block-group"><div class="wp-block-group__inner-container"> |
113 | 113 | <!-- wp:image {"align":"center","sizeSlug":"large","className":"is-style-default"} --> |
114 | | - <div class="wp-block-image is-style-default"><figure class="aligncenter size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/white-border.jpg" alt="' . __( 'White border', 'twentyseventeen' ) . '"/></figure></div> |
| 114 | + <div class="wp-block-image is-style-default"><figure class="aligncenter size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/white-border.jpg" alt="' . esc_attr__( 'White border', 'twentyseventeen' ) . '"/></figure></div> |
115 | 115 | <!-- /wp:image --> |
116 | 116 | <!-- wp:heading {"align":"left","textColor":"black","style":{"typography":{"fontSize":30}}} --> |
117 | | - <h2 class="has-text-align-left has-black-color has-text-color" style="font-size:30px">' . __( 'Design', 'twentyseventeen' ) . '</h2> |
| 117 | + <h2 class="has-text-align-left has-black-color has-text-color" style="font-size:30px">' . esc_html__( 'Design', 'twentyseventeen' ) . '</h2> |
118 | 118 | <!-- /wp:heading --> |
119 | 119 | <!-- wp:paragraph {"align":"left"} --> |
120 | | - <p class="has-text-align-left"><a href="#">' . __( 'See Case Study', 'twentyseventeen' ) . ' →</a></p> |
| 120 | + <p class="has-text-align-left"><a href="#">' . esc_html__( 'See Case Study', 'twentyseventeen' ) . ' →</a></p> |
121 | 121 | <!-- /wp:paragraph --></div></div> |
122 | 122 | <!-- /wp:group --></div> |
123 | 123 | <!-- /wp:column --> |
124 | 124 | <!-- wp:column --> |
125 | 125 | <div class="wp-block-column"><!-- wp:group --> |
126 | 126 | <div class="wp-block-group"><div class="wp-block-group__inner-container"> |
127 | 127 | <!-- wp:image {"align":"center","sizeSlug":"large","className":"is-style-default"} --> |
128 | | - <div class="wp-block-image is-style-default"><figure class="aligncenter size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/direct-light.jpg" alt="' . __( 'Direct Light', 'twentyseventeen' ) . '"/></figure></div> |
| 128 | + <div class="wp-block-image is-style-default"><figure class="aligncenter size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/direct-light.jpg" alt="' . esc_attr__( 'Direct Light', 'twentyseventeen' ) . '"/></figure></div> |
129 | 129 | <!-- /wp:image --> |
130 | 130 | <!-- wp:heading {"align":"left","textColor":"black","style":{"typography":{"fontSize":30}}} --> |
131 | | - <h2 class="has-text-align-left has-black-color has-text-color" style="font-size:30px">' . __( 'Strategy', 'twentyseventeen' ) . '</h2> |
| 131 | + <h2 class="has-text-align-left has-black-color has-text-color" style="font-size:30px">' . esc_html__( 'Strategy', 'twentyseventeen' ) . '</h2> |
132 | 132 | <!-- /wp:heading --> |
133 | 133 | <!-- wp:paragraph {"align":"left"} --> |
134 | | - <p class="has-text-align-left"><a href="#">' . __( 'See Case Study', 'twentyseventeen' ) . ' →</a></p> |
| 134 | + <p class="has-text-align-left"><a href="#">' . esc_html__( 'See Case Study', 'twentyseventeen' ) . ' →</a></p> |
135 | 135 | <!-- /wp:paragraph --></div></div> |
136 | 136 | <!-- /wp:group --></div> |
137 | 137 | <!-- /wp:column --></div> |
|
145 | 145 | register_block_pattern( |
146 | 146 | 'twentyseventeen/services', |
147 | 147 | array( |
148 | | - 'title' => __( 'Services', 'twentyseventeen' ), |
| 148 | + 'title' => esc_html__( 'Services', 'twentyseventeen' ), |
149 | 149 | 'categories' => array( 'twentyseventeen' ), |
150 | 150 | 'content' => '<!-- wp:spacer --> |
151 | 151 | <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div> |
152 | 152 | <!-- /wp:spacer --> |
153 | 153 | |
154 | 154 | <!-- wp:heading {"level":1,"style":{"typography":{"fontSize":50}}} --> |
155 | | - <h1 style="font-size:50px">' . __( 'Our Services', 'twentyseventeen' ) . '</h1> |
| 155 | + <h1 style="font-size:50px">' . esc_html__( 'Our Services', 'twentyseventeen' ) . '</h1> |
156 | 156 | <!-- /wp:heading --> |
157 | 157 | |
158 | 158 | <!-- wp:columns --> |
159 | 159 | <div class="wp-block-columns"><!-- wp:column --> |
160 | 160 | <div class="wp-block-column"> |
161 | 161 | <!-- wp:paragraph {"style":{"typography":{"fontSize":21, "lineHeight":"2.5"}}} --> |
162 | | - <p style="font-size:21px"><a href="#">' . __( 'Branding', 'twentyseventeen' ) . ' →</a><br><a href="#">' . __( 'Web Design', 'twentyseventeen' ) . ' →</a><br><a href="#">' . __( 'Web Development', 'twentyseventeen' ) . ' →</a></p> |
| 162 | + <p style="font-size:21px"><a href="#">' . esc_html__( 'Branding', 'twentyseventeen' ) . ' →</a><br><a href="#">' . esc_html__( 'Web Design', 'twentyseventeen' ) . ' →</a><br><a href="#">' . esc_html__( 'Web Development', 'twentyseventeen' ) . ' →</a></p> |
163 | 163 | <!-- /wp:paragraph --> |
164 | 164 | </div> |
165 | 165 | <!-- /wp:column --> |
166 | 166 | |
167 | 167 | <!-- wp:column --> |
168 | 168 | <div class="wp-block-column"> |
169 | 169 | <!-- wp:paragraph {"style":{"typography":{"fontSize":21, "lineHeight":"2.5"}}} --> |
170 | | - <p style="font-size:21px"><a href="#">' . __( 'Content Strategy', 'twentyseventeen' ) . ' →</a><br><a href="#">' . __( 'Marketing & SEO', 'twentyseventeen' ) . ' →</a><br><a href="#">' . __( 'Video Production', 'twentyseventeen' ) . ' →</a></p> |
| 170 | + <p style="font-size:21px"><a href="#">' . esc_html__( 'Content Strategy', 'twentyseventeen' ) . ' →</a><br><a href="#">' . esc_html__( 'Marketing & SEO', 'twentyseventeen' ) . ' →</a><br><a href="#">' . esc_html__( 'Video Production', 'twentyseventeen' ) . ' →</a></p> |
171 | 171 | <!-- /wp:paragraph --></div> |
172 | 172 | <!-- /wp:column --></div> |
173 | 173 | <!-- /wp:columns --> |
|
181 | 181 | register_block_pattern( |
182 | 182 | 'twentyseventeen/contact-us', |
183 | 183 | array( |
184 | | - 'title' => __( 'Contact Us', 'twentyseventeen' ), |
| 184 | + 'title' => esc_html__( 'Contact Us', 'twentyseventeen' ), |
185 | 185 | 'categories' => array( 'twentyseventeen' ), |
186 | 186 | 'content' => '<!-- wp:cover {"customOverlayColor":"#93aab8","minHeight":700,"align":"center"} --> |
187 | 187 | <div class="wp-block-cover aligncenter has-background-dim" style="background-color:#93aab8;min-height:700px"><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"left","textColor":"white","style":{"typography":{"fontSize":50}}} --> |
188 | | - <p class="has-text-align-left has-white-color has-text-color" style="font-size:50px">' . __( 'We are proud to serve outstanding clients.', 'twentyseventeen' ) . '</p> |
| 188 | + <p class="has-text-align-left has-white-color has-text-color" style="font-size:50px">' . esc_html__( 'We are proud to serve outstanding clients.', 'twentyseventeen' ) . '</p> |
189 | 189 | <!-- /wp:paragraph --> |
190 | 190 | |
191 | 191 | <!-- wp:buttons --> |
192 | 192 | <div class="wp-block-buttons"><!-- wp:button {"borderRadius":0,"backgroundColor":"black","textColor":"white","className":"is-style-fill"} --> |
193 | | - <div class="wp-block-button is-style-fill"><a class="wp-block-button__link has-white-color has-black-background-color has-text-color has-background no-border-radius">' . __( 'Contact us', 'twentyseventeen' ) . '</a></div> |
| 193 | + <div class="wp-block-button is-style-fill"><a class="wp-block-button__link has-white-color has-black-background-color has-text-color has-background no-border-radius">' . esc_html__( 'Contact us', 'twentyseventeen' ) . '</a></div> |
194 | 194 | <!-- /wp:button --></div> |
195 | 195 | <!-- /wp:buttons --></div></div> |
196 | 196 | <!-- /wp:cover -->', |
|
0 commit comments