diff --git a/core/Elements/View.class.php b/core/Elements/View.class.php
index 8517ea8..9166866 100644
--- a/core/Elements/View.class.php
+++ b/core/Elements/View.class.php
@@ -66,19 +66,23 @@ abstract class View extends StaticView {
}
// UI Functions
- private function createList($items, $tag): string {
- if(count($items) === 0)
- return "<$tag>$tag>";
- else
- return "<$tag>
" . implode("", $items) . "$tag>";
+ private function createList($items, $tag, $classes = ""): string {
+
+ $class = ($classes ? " class=\"$classes\"" : "");
+
+ if(count($items) === 0) {
+ return "<$tag$class>$tag>";
+ } else {
+ return "<$tag$class>" . implode("", $items) . "$tag>";
+ }
}
- public function createOrderedList($items=array()): string {
- return $this->createList($items, "ol");
+ public function createOrderedList($items=array(), $classes = ""): string {
+ return $this->createList($items, "ol", $classes);
}
- public function createUnorderedList($items=array()): string {
- return $this->createList($items, "ul");
+ public function createUnorderedList($items=array(), $classes = ""): string {
+ return $this->createList($items, "ul", $classes);
}
protected function createLink($link, $title=null, $classes=""): string {