diff --git a/config/bundles.php b/config/bundles.php
index ec9b2dc..cc1f6ba 100644
--- a/config/bundles.php
+++ b/config/bundles.php
@@ -16,5 +16,5 @@ return [
Symfony\UX\Chartjs\ChartjsBundle::class => ['all' => true],
Symfony\UX\React\ReactBundle::class => ['all' => true],
Presta\SitemapBundle\PrestaSitemapBundle::class => ['all' => true],
- Fourbis\CmsBundle\FourbisCmsBundle::class => ['all' => true],
+// Fourbis\CmsBundle\FourbisCmsBundle::class => ['all' => true],
];
diff --git a/config/routes.yaml b/config/routes.yaml
index ad4c990..a424a0e 100644
--- a/config/routes.yaml
+++ b/config/routes.yaml
@@ -5,6 +5,7 @@ controllers:
kernel:
resource: ../src/Kernel.php
type: annotation
-fourbis_cms:
- resource: "@FourbisCmsBundle/src/Controller/"
- type: annotation
\ No newline at end of file
+
+#fourbis_cms:
+# resource: "@FourbisCmsBundle/src/Controller/"
+# type: annotation
\ No newline at end of file
diff --git a/src/Controller/HomeController.php b/src/Controller/HomeController.php
index 19233ac..f3082c4 100644
--- a/src/Controller/HomeController.php
+++ b/src/Controller/HomeController.php
@@ -26,72 +26,8 @@ class HomeController extends BaseController
public function index(RequestStack $requestStack): Response
{
- $posts = $this->entityManager->getRepository(Post::class)->findAll();
return $this->render('home/index.html.twig', [
]);
}
-
- private function getAdvertisementNewsUpdates(string $baseUrl, string $locale): array
- {
- return $this->entityManager->getRepository(Post::class)->createQueryBuilder('p')
- ->select('p.uuid AS post_uuid', 'pt.uuid AS translation_uuid', 'pt.title', 'pt.description', 'p.publishedAt', 'pt.content', 'pt.url', "CONCAT(:baseUrl, '/', :locale, pt.fullUrl) AS absoluteUrl, pt.locale")
- ->leftJoin('p.translations', 'pt')
- ->where('pt.fullUrl LIKE :url')
- ->andWhere('pt.locale = :locale')
- ->setParameter('url', '%/blog/%')
- ->setParameter('baseUrl', $baseUrl)
- ->setParameter('locale', $locale)
- ->orderBy('p.publishedAt', 'DESC')
- ->getQuery()
- ->getResult();
- }
-
- private function generateRssFeed(array $posts, string $baseUrl, string $locale, Request $request): \SimpleXMLElement
- {
- $rssFeed = new \SimpleXMLElement("");
- $channel = $rssFeed->addChild('channel');
- $channel->addChild('title', '4BIS Innovation Blog Articles');
- $channel->addChild('link', 'https://4bis.nl/' . $locale . '/blog');
-
- $atomLink = $channel->addChild('link', '');
- $atomLink->addAttribute('href', $request->getUri());
- $atomLink->addAttribute('rel', 'self');
- $atomLink->addAttribute('type', 'application/rss+xml');
-
- $channel->addChild('language', $locale);
- $currentYear = date('Y');
- $channel->addChild('copyright', "4bis.nl © $currentYear All rights reserved");
- $channel->addChild('description', '4bis.nl, software development and hosting partner | Maastricht, NL');
-
- $image = $channel->addChild('image');
- $image->addChild('title', '4BIS Innovation Blog Articles');
- $image->addChild('url', 'https://cdn.4b.is/techlabs.4bis.co/cdn/4bis-nl/4bis-nl/2022-02-25/6218c42533d9b.4BIS%20Innovations_logo.png');
- $image->addChild('link', 'https://4bis.nl/' . $locale . '/');
-
- foreach ($posts as $post) {
- $item = $channel->addChild('item');
- $item->addChild('title', htmlspecialchars(strip_tags($post['title'])));
- $item->addChild('link', htmlspecialchars($post['absoluteUrl']));
-
- $atomLink = $item->addChild('atom:link', '');
- $atomLink->addAttribute('href', htmlspecialchars($post['absoluteUrl']));
- $atomLink->addAttribute('rel', 'standout');
-
- $item->addChild('language', $locale);
- $item->addChild('translation', $post['translation_uuid']);
-
- $guid = $item->addChild('guid', $post['post_uuid']);
- $guid->addAttribute('isPermaLink', 'false');
-
- $item->addChild('description', htmlspecialchars(strip_tags($post['description'])));
- $item->addChild('content:encoded', htmlspecialchars(strip_tags($post['content'])));
-
- $pubDateTime = new \DateTime($post['publishedAt']->format('Y-m-d H:i:s'), new \DateTimeZone('UTC'));
- $pubDateFormatted = $pubDateTime->format('D, d M Y H:i:s O');
- $item->addChild('pubDate', $pubDateFormatted);
- }
-
- return $rssFeed;
- }
}
diff --git a/templates/base.html.twig b/templates/base.html.twig
index a3d9cfa..acee0c2 100644
--- a/templates/base.html.twig
+++ b/templates/base.html.twig
@@ -1,56 +1,109 @@
{% extends "layout.html.twig" %}
-{% block page_title %}{% block title %}{% endblock %} {{ cms_setting('seo-site-title').title |raw }}{% endblock page_title %}
-
-
-{% block head_description %}
- {{- (page | default(null) ? page.translate().description :
- post | default(null) ? post.translate().description :
- category | default(null) ? category.translate().description) |striptags -}}
+{% block title %}
+ Dev Project
{% endblock %}
-{% block meta %}
- {{ parent() }}
-
-
- {% if not app.debug %}
-
-
-
- {% endif %}
+{% block favicons %}
+
+
{% endblock %}
-{% block gtm_head_part %}
+{% block fonts %}
+
+
{% endblock %}
-
-
-{% block gtm_body_part %}
+{% block flash %}
+
{% endblock %}
-{% block navbar %}
- {# {% include 'blocks/menu_test.html.twig' %} #}
- {{ cms_render('nav-bar') | default('') |raw }}
+{% block header_javascripts %}
{% endblock %}
-{% block default_head_javascripts %}
- {{ encore_entry_script_tags('app') }}
-{% endblock default_head_javascripts %}
+ {% block stylesheets %}
+ {{ encore_entry_link_tags("app") }}
+ {% endblock %}
-{% block head_javascripts %}
- {{ cms_render_save('head-javascripts') | default('') |raw }}
-{% endblock head_javascripts %}
+{% block header %}
+
{% endblock %}
-{% block above_footer %}
-
- {{ cms_render_save('above-footer') | default('') |raw }}
-
+ {% block sidebar %}
+ {% include 'menu/sidebar.html.twig' %}
+ {% endblock %}
+
+{% block main %}
+
+
+
+
+
{% block page_title %}{% endblock %}
+ {% block page_sub_title %}{% endblock %}
+
+
+ {% block extra_header_options %}{% endblock %}
+
+
+ {% block buttons %}{% endblock %}
+
+
+
+
+
+
+ {% block content %}{% endblock %}
+
+
{% endblock %}
-{% block footer_content %}
- {{ cms_render('footer') | default('') |raw }}
+
+{% block footer %}
+{% endblock %}
+
+{% block back_to_top %}
+
+{% endblock %}
+
+{% block javascripts %}
+ {{ encore_entry_script_tags("app") }}
{% endblock %}
\ No newline at end of file
diff --git a/templates/layout.html.twig b/templates/layout.html.twig
index 7be7c13..e2cfc36 100644
--- a/templates/layout.html.twig
+++ b/templates/layout.html.twig
@@ -1,71 +1,36 @@
-
-
-
-
-
+
-
- {% block page_title %}{% endblock page_title %}
- {% block meta %}
-
-
-
-
- {% if block('head_description') %}
-
- {% endif %}
- {% endblock meta %}
- {% block meta_robots %}
-
- {% endblock meta_robots %}
+
+
- {%- include '@cms_bundle/snippets/breadcrumbs.html.twig' -%}
- {% block stylesheets %}{% endblock stylesheets %}
+ {% block title %}{% endblock %}
+
+
+
+
- {% block default_head_javascripts %}{% endblock default_head_javascripts %}
- {% block head_javascripts %}{% endblock head_javascripts %}
+ {% block favicons %}{% endblock %}
- {% block gtm_head_part %}{% endblock gtm_head_part %}
+ {% block fonts %}{% endblock %}
+
+ {% block header_javascripts %}{% endblock %}
+ {% block stylesheets %}{% endblock %}
-{% block body %}
-
- {% block gtm_body_part %}{% endblock %}
- {% block nav %}
- {% block navbar %}{% endblock %}
- {% endblock %}
- {% block page_wrapper %}
-
- {% block page_wrapper_content %}
- {% block content_wrapper %}
-
-
- {% block content_wrapper_content %}
-
- {% block content_breadcrumbs %}{% endblock %}
- {% block main_content_body %}
- {% block main_content_title %}{% endblock main_content_title %}
- {% block main_content %}{% endblock main_content %}
- {% endblock %}
-
- {% endblock content_wrapper_content %}
-
-
- {% endblock content_wrapper %}
- {% endblock page_wrapper_content %}
-
- {% endblock page_wrapper %}
-
- {% block above_footer %}{% endblock %}
+
+{% block flash %}{% endblock %}
- {% block footer_wrapper %}
- {% block footer_content %}{% endblock footer_content %}
- {% endblock footer_wrapper %}
-
- {% block default_footer_javascripts %}{% endblock default_footer_javascripts %}
- {% block footer_javascripts %}{% endblock footer_javascripts %}
-
-{% endblock body %}
+{% block header %}{% endblock %}
+
+{% block sidebar %}{% endblock %}
+
+{% block main %}{% endblock %}
+
+{% block footer %}{% endblock %}
+
+{% block back_to_top %}{% endblock %}
+
+{% block javascripts %}{% endblock %}
+
\ No newline at end of file