|
@@ 212-218 (lines=7) @@
|
| 209 |
|
if ( '' !== $atts['servings'] || '' != $atts['time'] || '' != $atts['difficulty'] || '' != $atts['print'] ) { |
| 210 |
|
$html .= '<ul class="jetpack-recipe-meta">'; |
| 211 |
|
|
| 212 |
|
if ( '' !== $atts['servings'] ) { |
| 213 |
|
$html .= sprintf( |
| 214 |
|
'<li class="jetpack-recipe-servings" itemprop="recipeYield"><strong>%1$s: </strong>%2$s</li>', |
| 215 |
|
esc_html_x( 'Servings', 'recipe', 'jetpack' ), |
| 216 |
|
esc_html( $atts['servings'] ) |
| 217 |
|
); |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
if ( '' !== $atts['time'] ) { |
| 221 |
|
// Get a time that's supported by Schema.org. |
|
@@ 238-244 (lines=7) @@
|
| 235 |
|
); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
if ( '' !== $atts['difficulty'] ) { |
| 239 |
|
$html .= sprintf( |
| 240 |
|
'<li class="jetpack-recipe-difficulty"><strong>%1$s: </strong>%2$s</li>', |
| 241 |
|
esc_html_x( 'Difficulty', 'recipe', 'jetpack' ), |
| 242 |
|
esc_html( $atts['difficulty'] ) |
| 243 |
|
); |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
if ( '' !== $atts['source'] ) { |
| 247 |
|
$html .= sprintf( |