From ceb83e20f1355fa6cf10f4fa9172fdb60fe85cb5 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sat, 14 Jul 2018 18:09:51 +0200 Subject: [PATCH] Added default frame --- src/template/base.html.twig | 9 ++++++++- src/template/frames/default.html.twig | 10 ++++++++++ src/template/standart/homepage.html.twig | 6 +++--- 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 src/template/frames/default.html.twig diff --git a/src/template/base.html.twig b/src/template/base.html.twig index 5e3583a..74f4d3d 100644 --- a/src/template/base.html.twig +++ b/src/template/base.html.twig @@ -3,8 +3,15 @@ {% block title %}Online Shop{% endblock %} + + + + + + + {% block body %}{% endblock %} - \ No newline at end of file + diff --git a/src/template/frames/default.html.twig b/src/template/frames/default.html.twig new file mode 100644 index 0000000..a4cae94 --- /dev/null +++ b/src/template/frames/default.html.twig @@ -0,0 +1,10 @@ +{% extends "base.html.twig" %} +{% block body %} +
+ + {% block content %} + {% endblock %} +
+{% endblock %} \ No newline at end of file diff --git a/src/template/standart/homepage.html.twig b/src/template/standart/homepage.html.twig index 7258be5..510a2e0 100644 --- a/src/template/standart/homepage.html.twig +++ b/src/template/standart/homepage.html.twig @@ -1,3 +1,3 @@ -{% extends "base.html.twig" %} -{% block title %}Online Shop{% endblock %} -{% block body %}Welcome to the online shop ;){% endblock %} \ No newline at end of file +{% extends "frames/default.html.twig" %} +{% block title %}Homepage{% endblock %} +{% block content %}Welcome to the online shop ;){% endblock %}