projectsModel->getEntryCategories($ID); $categoriesClasses = ""; foreach ($categories as $category) { $categoriesClasses .= $category['name'] . " "; } if ($isDownloadable) { $categoriesClasses .= 'downloadable '; } if ($isOpenSource) { $categoriesClasses .= 'opensource'; } ?>