summaryrefslogtreecommitdiff
path: root/public/app/views/components/lessons_list.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/app/views/components/lessons_list.php')
-rw-r--r--public/app/views/components/lessons_list.php54
1 files changed, 0 insertions, 54 deletions
diff --git a/public/app/views/components/lessons_list.php b/public/app/views/components/lessons_list.php
deleted file mode 100644
index a778d59..0000000
--- a/public/app/views/components/lessons_list.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/** lessons list
- * -----------------------------------------------------------------------------
- *
- * imported variables:
- * ---
- * @param $lessons : array of lessons
- * @param $fieldset : array of optional fields to show [category, intro, date]
- *
- * example call:
- * ---
- * Render::template("sections/articles_list.php",[
- * 'articles' => $category_tree,
- * 'fieldset' => ['date', 'intro']
- * ])
- * -----------------------------------------------------------------------------
- */
-?>
-
-
-<?php foreach($lessons as $post) : ?>
-
- <!-- <div class="col-xl-4 col-lg-6"> -->
- <div class="post-card">
-
- <?php if (in_array('date', $fieldset)) : ?>
- <?=$post['date']?>
- <?php endif; ?>
-
- <div class="post-card--content">
-
- <h3>
- <a href="/lesson/<?=$post['id']?>"><?=$post['title']?></a>
- </h3>
-
- <?php if (in_array('level', $fieldset)) : ?>
- <p class="getegory">(επίπεδο πρόσβασης <?=$post['privilege_id']?>)</p>
- <?php endif; ?>
-
- <?php if (in_array('category', $fieldset)) : ?>
- <p class="category"><?=$post['course_id']?></p>
- <?php endif; ?>
-
- <?php if (in_array('intro', $fieldset) && $post['intro']) : ?>
- <p class="intro"><?=$post['intro']?></p>
- <?php endif; ?>
-
- </div>
-
- </div>
- <!-- </div> -->
-
-<?php endforeach; ?>
-