예제 #1
0
        </tr>
        <tr class="recipe-general-form-servings">
            <td class="recipe-general-form-label"><label for="recipe_servings"><?php 
_e('Servings', 'wp-ultimate-recipe');
if (in_array('recipe_servings', $required_fields)) {
    echo '<span class="wpurp-required">*</span>';
}
?>
</label></td>
            <td class="recipe-general-form-field">
                <input type="text" name="recipe_servings" id="recipe_servings" value="<?php 
echo esc_attr($recipe->servings());
?>
" />
                <input type="text" name="recipe_servings_type" id="recipe_servings_type" value="<?php 
echo esc_attr($recipe->servings_type());
?>
" />
                <span class="recipe-general-form-notes"> <?php 
_e('(e.g. 2 people, 3 loafs, ...)', 'wp-ultimate-recipe');
?>
</span>
            </td>
        </tr>
        <tr class="recipe-general-form-prep-time">
            <td class="recipe-general-form-label"><label for="recipe_prep_time"><?php 
_e('Prep Time', 'wp-ultimate-recipe');
if (in_array('recipe_prep_time', $required_fields)) {
    echo '<span class="wpurp-required">*</span>';
}
?>