From 4c2816d78399b2da4747d060c68987d2ee6b2df0 Mon Sep 17 00:00:00 2001 From: Olu Amey Date: Sun, 12 Sep 2021 11:00:38 -0400 Subject: [PATCH] Top menu fixed --- app/Controllers/Home.php | 13 ++++++++++--- app/Views/contact.php | 6 +++--- app/Views/layouts/master.php | 28 +++++++++++++++++++++++----- 3 files changed, 36 insertions(+), 11 deletions(-) diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index 964e4fe..1090d6c 100644 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -6,20 +6,27 @@ class Home extends BaseController { public function index() { - return view('home'); + $data =[]; + $data['page'] = 'home'; + return view('home',$data); } public function services() { - return view('services'); + $data =[]; + $data['page'] = 'services'; + return view('services',$data); } public function about() { - return view('about'); + $data =[]; + $data['page'] = 'about'; + return view('about',$data); } public function contact() { $data =[]; $data['message'] = ''; + $data['page'] = 'contact'; return view('contact',$data); } } diff --git a/app/Views/contact.php b/app/Views/contact.php index 6bc8f6c..dfc34e0 100644 --- a/app/Views/contact.php +++ b/app/Views/contact.php @@ -33,7 +33,7 @@
-

Contact info

+

Contact info

  • 4968 Austell Rd # 148 Austell, GA 30106
  • 770-778-0088
  • @@ -44,7 +44,7 @@
    -

    Working hours

    +

    Working hours

    Mon : 10AM - 1:30PM & 3:30PM - 6:30PM

    Tue : 10AM - 1:30PM & 3:30PM - 6:00PM

    Wed : 10AM - 1:30PM & 3:30PM - 6:30PM

    @@ -56,7 +56,7 @@
    -

    Send us a message

    +

    Send us a message

    diff --git a/app/Views/layouts/master.php b/app/Views/layouts/master.php index edbdd7f..b75802f 100644 --- a/app/Views/layouts/master.php +++ b/app/Views/layouts/master.php @@ -42,7 +42,25 @@ - +
    @@ -62,10 +80,10 @@