diff --git a/app/Config/Routes.php b/app/Config/Routes.php index faed091..803ab62 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -41,6 +41,8 @@ $routes->post('/startproject', 'Projects::start'); $routes->get('/projects/dash', 'ProjectPages::projectView'); $routes->get('/projects/details/(:segment)', 'ProjectPages::projectDetails/$1'); +$routes->get('/projects/blogs', 'ProjectPages::blogView'); + $routes->get('/projects/logout', 'ProjectPages::logOut'); diff --git a/app/Controllers/ProjectPages.php b/app/Controllers/ProjectPages.php index b9840c8..0a37cfc 100644 --- a/app/Controllers/ProjectPages.php +++ b/app/Controllers/ProjectPages.php @@ -44,6 +44,18 @@ class ProjectPages extends ProjectBaseController return view('projects/projdetail',$data); } + public function blogView() + { + $data=[]; + $projData = new \App\Models\projectData(); + $resDet = $projData->projectListDetails(); + $resDocument = $projData->documentList(); + + $data['project_list'] = $projData->projectBlogList(); + return view('projects/blogsites',$data); + } + + public function logOut(){ log_message('critical', "Logout Projects-Entered 2" ); $segments = ['/projects/']; diff --git a/app/Models/projectData.php b/app/Models/projectData.php index 8f75100..3525660 100644 --- a/app/Models/projectData.php +++ b/app/Models/projectData.php @@ -777,8 +777,6 @@ class projectData extends baseModel ]; return $data; } - - public function documentList(){ $data =[ 'myfit'=>[ @@ -889,7 +887,59 @@ class projectData extends baseModel return $data; } - + public function projectBlogList(){ + $data =[ + 'wrenchboard'=>[ + 'name' => 'WrenchBoard Blog', + 'description' => 'Get engaged and make money from any skills', + 'banner_image' => 'project_banner.jpg', + 'product_url' => 'https://blog.wrenchboard.com', + ], + 'coregrade'=>[ + 'name' => 'CoreGrade Blog', + 'description' => 'Smart education platform - personal and institutions', + 'banner_image' => 'project_banner.jpg', + 'product_url' => 'https://blog.coregrade.com', + ], + 'float'=>[ + 'name' => 'Float BLOG', + 'description' => 'This is the description of the project', + 'banner_image' => 'project_banner.jpg', + 'product_url' => 'https://blog.float.sg', + ], + 'dorcastore'=>[ + 'name' => 'DorcaStore', + 'description' => 'This is the description of the project', + 'banner_image' => 'project_banner.jpg', + 'product_url' => 'https"//www.dorcastore.com', + ], + 'merms'=>[ + 'name' => 'Merms BLOG', + 'description' => 'This is the description of the project', + 'banner_image' => 'project_banner.jpg', + 'product_url' => 'https://blog.mermsemr.com', + ], + 'chiefsoft'=>[ + 'name' => 'ChiefSoft Blog', + 'description' => 'This is the description of the project', + 'banner_image' => 'chiefsoft.jpg', + 'product_url' => 'https://blog.chiefsoft.com', + ], + 'jubabox'=>[ + 'name' => 'JubaBox', + 'description' => 'This is the description of the project', + 'banner_image' => 'project_banner.jpg', + 'product_url' => 'https://blog.jubabox.com', + ], + 'theblackfaces'=>[ + 'name' => 'Black Faces', + 'description' => 'African History Short Story Blog', + 'banner_image' => 'theblackfaces.jpg', + 'product_url' => 'https://www.theblackfaces.com', + ], + ]; + return $data; + } } diff --git a/app/Views/projects/blogsites.php b/app/Views/projects/blogsites.php new file mode 100644 index 0000000..266cf28 --- /dev/null +++ b/app/Views/projects/blogsites.php @@ -0,0 +1,198 @@ +extend('projects/projects_template') ?> + +section('content') ?> + +
+ +
+ +
+ +
+ +

Blog Sites

+ + + + +
+ + +
+ . +
+ +
+ +
+ + +
+ +
+ +
+ + $value) { + // $arr[3] will be updated with each value from $arr... + //echo "{$key} => {$value} "; + //print_r($value->name); + ?> + +
+ +
+ +
+ +
+ +
+ +
+ +
+ + +
+ +
+ +
+ +
+ +
+ + +
+ + Active +
+ + +
+ +
+ +
+ +
+ + +
+ Manager + ChiefSoft Works +
+ +
+ + +
+ + + + + + + + + + + + + + + + +
+ +
+ +
+ + +
+ + + + +
+ +
+ + May 6, 2023 + + +
Estimated Due Date
+ +
+ + +
+ +
+ + +
+ +
+ + + + + + + + + +
+ + + View Project + + + + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ + +
+ +
+ +
+ +
+ +endSection() ?> \ No newline at end of file diff --git a/app/Views/projects/projpage.php b/app/Views/projects/projpage.php index d6f67e6..c0a9a9d 100644 --- a/app/Views/projects/projpage.php +++ b/app/Views/projects/projpage.php @@ -344,7 +344,7 @@
-
+
@@ -377,7 +377,7 @@
Manager - ChiefSoft Works + ChiefSoft Works
diff --git a/app/Views/projects/side_menu.php b/app/Views/projects/side_menu.php index 33a29e8..3a2ba89 100644 --- a/app/Views/projects/side_menu.php +++ b/app/Views/projects/side_menu.php @@ -64,6 +64,66 @@ $project_list = $_SESSION['project_list']; + + + + + + + + + + + + +