function typyObiektow() { return array_merge(typyDrzew(), typyKrzewow()); }
<?php foreach(typyDrzew() as $drzewo => $opis) { ?> <div class="tree"> <input type="checkbox" name="drzewo[]" value="<?= $opis[1]; ?>" /> <span></span> <?= $drzewo; ?> <img src="<?= get_template_directory_uri(); ?>/images/icon.help.png" alt="" class="help" /> <div class="desc"><img src="<?= get_template_directory_uri(); ?>/images/drzewa/<?= $opis[0]; ?>" alt="<?= $drzewo; ?>" /><p><?= $opis[2]; ?></p></div> </div> <?php } ?> </div> <div class="columns small-5 medium-5"> <big>Krzewy</big> <?php foreach(typyKrzewow() as $drzewo => $opis) { ?> <div class="tree"> <input type="checkbox" name="drzewo[]" value="<?= $opis[1]; ?>" /> <span></span> <?= $drzewo; ?> <img src="<?= get_template_directory_uri(); ?>/images/icon.help.png" alt="" class="help" /> <div class="desc"><img src="<?= get_template_directory_uri(); ?>/images/drzewa/<?= $opis[0]; ?>" alt="<?= $drzewo; ?>" /><p><?= $opis[2]; ?></p></div> </div> <?php } ?> </div> </div> <div class="row"> <div class="columns small-12 text-right">