|
@@ 187-193 (lines=7) @@
|
| 184 |
|
if ( '' !== $atts['servings'] || '' != $atts['time'] || '' != $atts['difficulty'] || '' != $atts['print'] ) { |
| 185 |
|
$html .= '<ul class="jetpack-recipe-meta">'; |
| 186 |
|
|
| 187 |
|
if ( '' !== $atts['servings'] ) { |
| 188 |
|
$html .= sprintf( |
| 189 |
|
'<li class="jetpack-recipe-servings" itemprop="recipeYield"><strong>%1$s: </strong>%2$s</li>', |
| 190 |
|
esc_html_x( 'Servings', 'recipe', 'jetpack' ), |
| 191 |
|
esc_html( $atts['servings'] ) |
| 192 |
|
); |
| 193 |
|
} |
| 194 |
|
|
| 195 |
|
if ( '' !== $atts['time'] ) { |
| 196 |
|
// Get a time that's supported by Schema.org. |
|
@@ 213-219 (lines=7) @@
|
| 210 |
|
); |
| 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['source'] ) { |
| 222 |
|
$html .= sprintf( |