diff options
Diffstat (limited to 'src/view/templates')
-rw-r--r-- | src/view/templates/article.php | 15 | ||||
-rw-r--r-- | src/view/templates/blog.php | 6 | ||||
-rw-r--r-- | src/view/templates/footer.php | 15 | ||||
-rw-r--r-- | src/view/templates/galery.php | 10 | ||||
-rw-r--r-- | src/view/templates/grid.php | 8 | ||||
-rw-r--r-- | src/view/templates/head.php | 11 | ||||
-rw-r--r-- | src/view/templates/header.php | 23 | ||||
-rw-r--r-- | src/view/templates/new.php | 21 |
8 files changed, 109 insertions, 0 deletions
diff --git a/src/view/templates/article.php b/src/view/templates/article.php new file mode 100644 index 0000000..d34697e --- /dev/null +++ b/src/view/templates/article.php | |||
@@ -0,0 +1,15 @@ | |||
1 | <article> | ||
2 | <div class="article_content"> | ||
3 | <div class="article_title_zone"> | ||
4 | <h4><?= $title ?></h4> | ||
5 | <?= $share_button ?> | ||
6 | </div> | ||
7 | <div id="<?= $id ?>" class="html_from_editor"> | ||
8 | <?= $html ?> | ||
9 | </div> | ||
10 | <div class="article_admin_zone"> | ||
11 | <?= $admin_buttons ?> | ||
12 | </div> | ||
13 | </div> | ||
14 | |||
15 | </article> \ No newline at end of file | ||
diff --git a/src/view/templates/blog.php b/src/view/templates/blog.php new file mode 100644 index 0000000..35cac8b --- /dev/null +++ b/src/view/templates/blog.php | |||
@@ -0,0 +1,6 @@ | |||
1 | <section class="blog"> | ||
2 | <h3><?= $title ?></h3> | ||
3 | <?= $new_article ?> | ||
4 | <?= $new_article_admin_buttons ?> | ||
5 | <?= $content ?> | ||
6 | </section> \ No newline at end of file | ||
diff --git a/src/view/templates/footer.php b/src/view/templates/footer.php new file mode 100644 index 0000000..5af7924 --- /dev/null +++ b/src/view/templates/footer.php | |||
@@ -0,0 +1,15 @@ | |||
1 | <footer> | ||
2 | <div> | ||
3 | <p class="contact"><?= $contact_nom ?><br> | ||
4 | <?= $adresse ?><br> | ||
5 | <a href="mailto:<?= $e_mail ?>"><?= $e_mail ?></a></p> | ||
6 | <?= $breadcrumb ?> | ||
7 | </div> | ||
8 | <div class="<?= $empty_admin_zone ?>"></div> | ||
9 | <div class="<?= $div_admin ?>"> | ||
10 | <?= $zone_admin ?> | ||
11 | </div> | ||
12 | </footer> | ||
13 | </div> | ||
14 | </body> | ||
15 | </html> \ No newline at end of file | ||
diff --git a/src/view/templates/galery.php b/src/view/templates/galery.php new file mode 100644 index 0000000..306526f --- /dev/null +++ b/src/view/templates/galery.php | |||
@@ -0,0 +1,10 @@ | |||
1 | <section class="galery"> | ||
2 | <h3><?= $title ?></h3> | ||
3 | <?= $new_article ?> | ||
4 | <?= $new_article_admin_buttons ?> | ||
5 | <div class="galery_photos"> | ||
6 | <a><p></p></a> | ||
7 | <?= $content ?> | ||
8 | </div> | ||
9 | <script>enableGaleryScroller();</script> | ||
10 | </section> \ No newline at end of file | ||
diff --git a/src/view/templates/grid.php b/src/view/templates/grid.php new file mode 100644 index 0000000..a09ed40 --- /dev/null +++ b/src/view/templates/grid.php | |||
@@ -0,0 +1,8 @@ | |||
1 | <section class="grid"> | ||
2 | <h3><?= $title ?></h3> | ||
3 | <?= $new_article ?> | ||
4 | <?= $new_article_admin_buttons ?> | ||
5 | <div class="grid_columns"> | ||
6 | <?= $content ?> | ||
7 | </div> | ||
8 | </section> \ No newline at end of file | ||
diff --git a/src/view/templates/head.php b/src/view/templates/head.php new file mode 100644 index 0000000..1ebb17e --- /dev/null +++ b/src/view/templates/head.php | |||
@@ -0,0 +1,11 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html lang="fr"> | ||
3 | <head> | ||
4 | <meta charset="utf-8"> | ||
5 | <title><?= $title ?></title> | ||
6 | <link rel="icon" type="image/png" href="<?= $favicon ?>" alt="<?= $alt ?>"> | ||
7 | <meta name="description" content="<?= $description ?>"> | ||
8 | <meta name="viewport" content="width=device-width"> | ||
9 | <?= $css ?> | ||
10 | <?= $js ?> | ||
11 | </head> \ No newline at end of file | ||
diff --git a/src/view/templates/header.php b/src/view/templates/header.php new file mode 100644 index 0000000..fa55cea --- /dev/null +++ b/src/view/templates/header.php | |||
@@ -0,0 +1,23 @@ | |||
1 | <body> | ||
2 | <div> | ||
3 | <header> | ||
4 | <div class="empty_nav_zone"> | ||
5 | <?= $nav ?> | ||
6 | </div> | ||
7 | |||
8 | <div class="header-content"> | ||
9 | <div class="head_logo"> | ||
10 | <a href="<?= new URL ?>"><img src="<?= $logo ?>" alt="<?= $logo_alt ?>"></a> | ||
11 | </div> | ||
12 | <div class="site_title"> | ||
13 | <a href="<?= new URL ?>"><h1><?= $title ?></h1></a> | ||
14 | <h2><?= $description ?></h2> | ||
15 | </div> | ||
16 | <div class="social"> | ||
17 | <a href="<?= $facebook_link ?>" target="_blank" rel="noopener noreferrer"> | ||
18 | <img src="<?= $facebook ?>" alt="<?= $facebook_alt ?>"></a> | ||
19 | <a href="<?= $instagram_link ?>" target="_blank" rel="noopener noreferrer"> | ||
20 | <img src="<?= $instagram ?>" alt="<?= $instagram_alt ?>"></a> | ||
21 | </div> | ||
22 | </div> | ||
23 | </header> \ No newline at end of file | ||
diff --git a/src/view/templates/new.php b/src/view/templates/new.php new file mode 100644 index 0000000..9dd8969 --- /dev/null +++ b/src/view/templates/new.php | |||
@@ -0,0 +1,21 @@ | |||
1 | <article> | ||
2 | <div class="new_content"> | ||
3 | <div class="article_title_zone"> | ||
4 | <h4><?= $title ?></h4> | ||
5 | <?= $share_button ?> | ||
6 | </div> | ||
7 | <div class="new_content_text"> | ||
8 | <?= $preview ?> | ||
9 | </div> | ||
10 | <div id="<?= $id ?>" class="article_content_text"> | ||
11 | <?= $content ?> | ||
12 | </div> | ||
13 | <div class="under_an_article"> | ||
14 | <p><img src="assets/calendar.svg"><?= $date ?></p> | ||
15 | <?= $from_to_button ?> | ||
16 | </div> | ||
17 | <div class="article_admin_zone"> | ||
18 | <?= $admin_buttons ?> | ||
19 | </div> | ||
20 | </div> | ||
21 | </article> \ No newline at end of file | ||