From 2efcd48c50e3ee74a1db6319d8e6d7c921f2629e Mon Sep 17 00:00:00 2001 From: babak alizadeh Date: Fri, 5 Jan 2024 16:54:33 +0000 Subject: [PATCH] add footer scripts tags --- hesabixCore/src/Entity/Settings.php | 15 +++++++++++++++ hesabixCore/templates/base.html.twig | 11 +---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/hesabixCore/src/Entity/Settings.php b/hesabixCore/src/Entity/Settings.php index b3b120e..1233d0a 100644 --- a/hesabixCore/src/Entity/Settings.php +++ b/hesabixCore/src/Entity/Settings.php @@ -44,6 +44,9 @@ class Settings #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $scripts = null; + #[ORM\Column(type: Types::TEXT, nullable: true)] + private ?string $footerScripts = null; + public function getId(): ?int { return $this->id; @@ -168,4 +171,16 @@ class Settings return $this; } + + public function getFooterScripts(): ?string + { + return $this->footerScripts; + } + + public function setFooterScripts(?string $footerScripts): static + { + $this->footerScripts = $footerScripts; + + return $this; + } } diff --git a/hesabixCore/templates/base.html.twig b/hesabixCore/templates/base.html.twig index 6008fbc..4520d1c 100644 --- a/hesabixCore/templates/base.html.twig +++ b/hesabixCore/templates/base.html.twig @@ -250,16 +250,7 @@
-
-
- -
-
- - کانال آپارات حسابیکس - -
-
+ {{settings.footerScripts | raw}}