|
@@ 251-257 (lines=7) @@
|
| 248 |
|
if ( '' !== $atts['servings'] || '' != $atts['time'] || '' != $atts['difficulty'] || '' != $atts['print'] ) { |
| 249 |
|
$html .= '<ul class="jetpack-recipe-meta">'; |
| 250 |
|
|
| 251 |
|
if ( '' !== $atts['servings'] ) { |
| 252 |
|
$html .= sprintf( |
| 253 |
|
'<li class="jetpack-recipe-servings" itemprop=""><strong>%1$s: </strong>%2$s</li>', |
| 254 |
|
esc_html_x( 'Servings', 'recipe', 'jetpack' ), |
| 255 |
|
esc_html( $atts['servings'] ) |
| 256 |
|
); |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
if ( '' !== $atts['time'] ) { |
| 260 |
|
// Get a time that's supported by Schema.org. |
|
@@ 277-283 (lines=7) @@
|
| 274 |
|
); |
| 275 |
|
} |
| 276 |
|
|
| 277 |
|
if ( '' !== $atts['difficulty'] ) { |
| 278 |
|
$html .= sprintf( |
| 279 |
|
'<li class="jetpack-recipe-difficulty"><strong>%1$s: </strong>%2$s</li>', |
| 280 |
|
esc_html_x( 'Difficulty', 'recipe', 'jetpack' ), |
| 281 |
|
esc_html( $atts['difficulty'] ) |
| 282 |
|
); |
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
if ( '' !== $atts['source'] ) { |
| 286 |
|
$html .= sprintf( |