From 1b57a1f311f0da2be77855fbcf00d753fdaaa458 Mon Sep 17 00:00:00 2001 From: altersaddle Date: Mon, 4 May 2020 22:38:49 -0700 Subject: [PATCH] Change recipe layout to put image on upper right --- web/foodielib.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/web/foodielib.php b/web/foodielib.php index 4a3ca85..58f1bc7 100644 --- a/web/foodielib.php +++ b/web/foodielib.php @@ -2,7 +2,7 @@ /* *************************************************************************** * Foodie is a GPL licensed free software web application written -* and copyright 2016 by Malcolm Walker, malcolm@ipatch.ca +* and copyright 2016-2020 by Malcolm Walker, malcolm@ipatch.ca * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -160,18 +160,19 @@ function foodie_PrintRecipeData($recipe_data) { echo "

 \n
\n"; - echo "\n"; + echo "\n"; if (!empty($recipe_data["image"])) { - echo "\n"; + echo "\n"; } else { - echo "\n"; + echo "\n"; } + echo "\n"; echo "\n"; echo "\n"; @@ -188,11 +189,11 @@ function foodie_PrintRecipeData($recipe_data) echo "\n"; echo "\n"; $recipe_ingredients = nl2br($recipe_data['ingredients']); - echo "\n"; + echo "\n"; $recipe_description = nl2br($recipe_data['description']); - echo "\n"; + echo "\n"; $recipe_notes = nl2br($recipe_data['notes']); - echo "\n"; + echo "\n"; echo "
" . MSG_RECIPE_NAME . "{$recipe_data['name']}
" . MSG_RECIPE_NAME . "{$recipe_data['name']}
\"{$recipe_data['image']}\"
\"{$recipe_data['image']}\"
" . MSG_RECIPE_IMAGE_UNAVAILABLE ; + echo "" . MSG_RECIPE_IMAGE_UNAVAILABLE ; if (isset($_SESSION['admin_user'])) { echo " ". MSG_RECIPE_ADD_NEW .""; } - echo "
" . MSG_RECIPE_SERVING . "{$recipe_data['dish']}
" . MSG_RECIPE_MAIN . "{$recipe_data['mainingredient']}
" . MSG_RECIPE_WINES . "{$recipe_data['wines']}
" . MSG_RECIPE_INGREDIENTS . "$recipe_ingredients
" . MSG_RECIPE_INGREDIENTS . "$recipe_ingredients
" . MSG_RECIPE_DESCRIPTION . "$recipe_description
" . MSG_RECIPE_DESCRIPTION . "$recipe_description
" . MSG_RECIPE_NOTES . "$recipe_notes
" . MSG_RECIPE_NOTES . "$recipe_notes
\n"; }