|
@@ 220-226 (lines=7) @@
|
| 217 |
|
) { |
| 218 |
|
$html .= '<ul class="jetpack-recipe-meta">'; |
| 219 |
|
|
| 220 |
|
if ( '' !== $atts['servings'] ) { |
| 221 |
|
$html .= sprintf( |
| 222 |
|
'<li class="jetpack-recipe-servings" itemprop="recipeYield"><strong>%1$s: </strong>%2$s</li>', |
| 223 |
|
esc_html_x( 'Servings', 'recipe', 'jetpack' ), |
| 224 |
|
esc_html( $atts['servings'] ) |
| 225 |
|
); |
| 226 |
|
} |
| 227 |
|
|
| 228 |
|
if ( '' !== $atts['time'] ) { |
| 229 |
|
// Get a time that's supported by Schema.org. |
|
@@ 246-252 (lines=7) @@
|
| 243 |
|
); |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
if ( '' !== $atts['difficulty'] ) { |
| 247 |
|
$html .= sprintf( |
| 248 |
|
'<li class="jetpack-recipe-difficulty"><strong>%1$s: </strong>%2$s</li>', |
| 249 |
|
esc_html_x( 'Difficulty', 'recipe', 'jetpack' ), |
| 250 |
|
esc_html( $atts['difficulty'] ) |
| 251 |
|
); |
| 252 |
|
} |
| 253 |
|
|
| 254 |
|
if ( '' !== $atts['source'] ) { |
| 255 |
|
$html .= sprintf( |