From 1e99323ccba664245049c80fb6d0be2cadb0bd95 Mon Sep 17 00:00:00 2001 From: babak alizadeh Date: Sat, 20 Jan 2024 16:44:40 +0000 Subject: [PATCH] update sitemap and add wecommerace plugin page --- hesabixCore/src/Service/Notification.php | 13 +++++++++++++ hesabixCore/templates/general/sitemap.html.twig | 5 +++++ 2 files changed, 18 insertions(+) diff --git a/hesabixCore/src/Service/Notification.php b/hesabixCore/src/Service/Notification.php index aadb278..0074659 100644 --- a/hesabixCore/src/Service/Notification.php +++ b/hesabixCore/src/Service/Notification.php @@ -27,4 +27,17 @@ class Notification $this->em->flush(); return true; } + public function insert(string $message,string $url,User $user): bool + { + $item = new \App\Entity\Notification(); + $item->setBid(null); + $item->setDateSubmit(time()); + $item->setViewed(false); + $item->setUser($user); + $item->setMessage($message); + $item->setUrl($url); + $this->em->persist($item); + $this->em->flush(); + return true; + } } \ No newline at end of file diff --git a/hesabixCore/templates/general/sitemap.html.twig b/hesabixCore/templates/general/sitemap.html.twig index 5c1acab..09b8651 100644 --- a/hesabixCore/templates/general/sitemap.html.twig +++ b/hesabixCore/templates/general/sitemap.html.twig @@ -115,6 +115,11 @@ 2023-11-10T16:17:43+00:00 0.80 + + https://hesabix.ir/front/apps/woocommerce + 2023-11-10T16:17:43+00:00 + 0.80 + https://hesabix.ir/login {{ timeNow }}