@@ 120-126 (lines=7) @@ | ||
117 | if ( '' !== $atts['servings'] || '' != $atts['time'] || '' != $atts['difficulty'] || '' != $atts['print'] ) { |
|
118 | $html .= '<ul class="jetpack-recipe-meta">'; |
|
119 | ||
120 | if ( '' !== $atts['servings'] ) { |
|
121 | $html .= sprintf( |
|
122 | '<li class="jetpack-recipe-servings" itemprop="recipeYield"><strong>%1$s: </strong>%2$s</li>', |
|
123 | esc_html_x( 'Servings', 'recipe', 'jetpack' ), |
|
124 | esc_html( $atts['servings'] ) |
|
125 | ); |
|
126 | } |
|
127 | ||
128 | if ( '' !== $atts['time'] ) { |
|
129 | $html .= sprintf( |
|
@@ 128-134 (lines=7) @@ | ||
125 | ); |
|
126 | } |
|
127 | ||
128 | if ( '' !== $atts['time'] ) { |
|
129 | $html .= sprintf( |
|
130 | '<li class="jetpack-recipe-time" itemprop="totalTime"><strong>%1$s: </strong>%2$s</li>', |
|
131 | esc_html_x( 'Time', 'recipe', 'jetpack' ), |
|
132 | esc_html( $atts['time'] ) |
|
133 | ); |
|
134 | } |
|
135 | ||
136 | if ( '' !== $atts['difficulty'] ) { |
|
137 | $html .= sprintf( |
|
@@ 136-142 (lines=7) @@ | ||
133 | ); |
|
134 | } |
|
135 | ||
136 | if ( '' !== $atts['difficulty'] ) { |
|
137 | $html .= sprintf( |
|
138 | '<li class="jetpack-recipe-difficulty"><strong>%1$s: </strong>%2$s</li>', |
|
139 | esc_html_x( 'Difficulty', 'recipe', 'jetpack' ), |
|
140 | esc_html( $atts['difficulty'] ) |
|
141 | ); |
|
142 | } |
|
143 | ||
144 | if ( 'false' !== $atts['print'] ) { |
|
145 | $html .= sprintf( |