@@ 197-203 (lines=7) @@ | ||
194 | ) { |
|
195 | $html .= '<ul class="jetpack-recipe-meta">'; |
|
196 | ||
197 | if ( '' !== $atts['servings'] ) { |
|
198 | $html .= sprintf( |
|
199 | '<li class="jetpack-recipe-servings p-yield yield" itemprop="recipeYield"><strong>%1$s: </strong>%2$s</li>', |
|
200 | esc_html_x( 'Servings', 'recipe', 'jetpack' ), |
|
201 | esc_html( $atts['servings'] ) |
|
202 | ); |
|
203 | } |
|
204 | ||
205 | $time_types = array( 'cooktime', 'preptime', 'time' ); |
|
206 | foreach ( $time_types as $time_type ) { |
|
@@ 213-219 (lines=7) @@ | ||
210 | $html .= self::output_time( $atts[ $time_type ], $time_type ); |
|
211 | } |
|
212 | ||
213 | if ( '' !== $atts['difficulty'] ) { |
|
214 | $html .= sprintf( |
|
215 | '<li class="jetpack-recipe-difficulty"><strong>%1$s: </strong>%2$s</li>', |
|
216 | esc_html_x( 'Difficulty', 'recipe', 'jetpack' ), |
|
217 | esc_html( $atts['difficulty'] ) |
|
218 | ); |
|
219 | } |
|
220 | ||
221 | if ( '' !== $atts['rating'] ) { |
|
222 | $html .= sprintf( |
|
@@ 221-230 (lines=10) @@ | ||
218 | ); |
|
219 | } |
|
220 | ||
221 | if ( '' !== $atts['rating'] ) { |
|
222 | $html .= sprintf( |
|
223 | '<li class="jetpack-recipe-rating"> |
|
224 | <strong>%1$s: </strong> |
|
225 | <span itemprop="contentRating">%2$s</span> |
|
226 | </li>', |
|
227 | esc_html_x( 'Rating', 'recipe', 'jetpack' ), |
|
228 | esc_html( $atts['rating'] ) |
|
229 | ); |
|
230 | } |
|
231 | ||
232 | if ( '' !== $atts['source'] ) { |
|
233 | $html .= sprintf( |