</div> <div class="col-sm-8"> <div class="wrapper pd15" style="font-size: 16px;"> <?php echo tag('p', $recipe_intro, array('id' => 'recipeIntro')); echo tag('h3', lang('composition')); echo tag('hr', false, array('class' => 'mt5 mb10')); if (!empty($valuesRecipeComposition)) { ?> <table class="table table-striped"> <tbody> <?php foreach ($valuesRecipeComposition as $key => $value) { $measure = $value['Measure']; $food_composition = $value['CompositionName']; echo tableCell(array($measure, $food_composition)); } ?> </tbody> </table> <?php } else { echo tag('h4', 'Komposisi tidak tersedia'); echo tag('br'); } echo tag('h3', lang('step')); echo tag('hr', false, array('class' => 'mt5 mb10')); if (!empty($valuesRecipeStep)) { ?> <ol class="simple-list">
foreach ($files as $file) { $absFile = $path . "/" . $file; $fileInfo = pathinfo($file); if (strtolower($fileInfo['extension']) == 'jpg') { // Thumbnail für Bilddateien $thumbFile = sprintf("thumbnails/thumb%03d.jpg", $thumbNr++); $image = new Imagick($absFile); // Bei 0 für Breite oder Höhe wird das Seitenverhältnis // beibehalten $image->thumbnailImage($thumbWidth, 0); $image->writeImage($thumbFile); $column = tableCell($columnsPerRow, $column, sprintf("<a href=\"%s\"><img src=\"%s\"></a>", $absFile, $thumbFile)); } else { if ($fileInfo['extension'] == 'h264') { // Videos erstmal einfach als Link $column = tableCell($columnsPerRow, $column, sprintf("<a href=\"%s\">%s</a>", $absFile, $file)); } } } } ?> </table> </article> </main> <footer> <a href="/">Home</a> </footer> </body> </html>