function gfb_nutrition_label_meta_box() { ?> <style> .gfb-nutrition-label-section { padding-top: 0!important; } </style> <?php $hidden = "style='display:none'"; gfb_nutrition_label_add_to_head(); require_once 'form.php'; }
function embed_nutrition_label_sc() { gfb_nutrition_label_add_to_head(); global $post; ?> <div class="print-only" style="width: 50%; display: block; float: right; position: relative;"> <div id="gfb-nutritional-embed-label" class="nutritional"> <div id="nutrition-label-outer"> <div id="nutrition-label"> </div> </div> <?php $ingredients = implode(PHP_EOL, get_post_meta($post->ID, 'RECIPE_META_ingredients')[0]); $nutrition = get_post_meta($post->ID, META_KEY)[0]; ?> </div> <p id="gfb-nutrition-label-msg" style="font-weight: bold;">THE NUTRITION FACTS HERE ARE INDICATIVE.</p> </div> <?php require_once 'front_end.php'; }