diff --git a/app/Config/ApiEndpoints.php b/app/Config/ApiEndpoints.php new file mode 100644 index 0000000..f24b0ff --- /dev/null +++ b/app/Config/ApiEndpoints.php @@ -0,0 +1,34 @@ + '', + 'password' => '' + ]; +} diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 4a5dd5c..d1b2a77 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -43,7 +43,7 @@ $routes->get('/howitworks', 'Home::howitworks'); $routes->get('/tools', 'Tools::index'); -$routes->get('/blog', 'Tools::index'); +$routes->get('/blog', 'Home::blog'); /* * -------------------------------------------------------------------- * Additional Routing diff --git a/app/Controllers/BaseController.php b/app/Controllers/BaseController.php index 5a1946b..d78786d 100644 --- a/app/Controllers/BaseController.php +++ b/app/Controllers/BaseController.php @@ -8,6 +8,7 @@ use CodeIgniter\HTTP\IncomingRequest; use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use Psr\Log\LoggerInterface; +use App\Services\WpContentsClient; /** * Class BaseController @@ -54,5 +55,28 @@ class BaseController extends Controller // Preload any models, libraries, etc, here. //-------------------------------------------------------------------- // E.g.: $this->session = \Config\Services::session(); + $this->session = \Config\Services::session(); } + + protected function getBlogItems() :array { + $apiEndpointsConfig = config('ApiEndpoints'); + $wpData = WpContentsClient::serviceGetBlogItems($apiEndpointsConfig->baseUrl); + $blog_post = array(); + $blog_cnt =0; + foreach ($wpData[0]->payload as $item) { + $itemA = array( + 'title' => $item->post_title, + 'desc' => substr($item->post_content,0,100), + 'link' => $item->guid, + 'date' => date_format(date_create( $item->post_date),'Y-m-d'), + 'image' => "https://blog.mermsemr.com/wp-content/uploads/".$item->meta_value, + ); + if ($blog_cnt == 0){ + $this->session->blogItem = $itemA ; + } + $blog_cnt++; + array_push($blog_post, $itemA); + } + return $blog_post; + } } diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index 9fb07a5..27167bf 100644 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -1,6 +1,7 @@ getBlogItems(); // $blog_post; + return view('blog/index',$data); + } } diff --git a/app/Services/WpContentsClient.php b/app/Services/WpContentsClient.php new file mode 100644 index 0000000..82c3f73 --- /dev/null +++ b/app/Services/WpContentsClient.php @@ -0,0 +1,19 @@ +request( + 'GET', + "{$apiEndpointsUrl}/wordpress-data" + ); + return json_decode($response->getBody()); + } +} + + diff --git a/app/Views/blog/index.php b/app/Views/blog/index.php new file mode 100644 index 0000000..a90cd0f --- /dev/null +++ b/app/Views/blog/index.php @@ -0,0 +1,91 @@ +extend('layouts/homelayout2') ?> +section('content') ?> +
+ +
+ +
+ +
+ +
+ + +
+ +
+ +

Video Tutorials

+ + + View All Videos + +
+ + +
+ + +
+ + + + + + +
+ +
+ + + + + + +
+ + + + +
+ + +
+ + Jane Miller + + + + +
+ +
+ +
+ +
+ + + + +
+ +
+ + + +
+ +
+ +
+ +
+ +
+endSection() ?> diff --git a/app/Views/layouts/homelayout2.php b/app/Views/layouts/homelayout2.php new file mode 100644 index 0000000..06570a3 --- /dev/null +++ b/app/Views/layouts/homelayout2.php @@ -0,0 +1,4021 @@ + + + + + Metronic - the world's #1 selling Bootstrap Admin Theme Ecosystem for HTML, Vue, React, Angular & Laravel by Keenthemes + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + +
+ + +
+ +
+ + + +
+ +
+ + + + +
+ + +
+ +
+ +
+ + + CoreGrade + + + +
+ + + + + + + + + + + + + + + + + + +
+ + +
+
+ + + + + + + + +
+
+ +
+ +
+ +
+ +
+ +

Dashboard

+ + + + +
+ + +
+ +
+ +
+ +
+
+ + + renderSection('content') ?> + + + + +
+ +
+ +
+ + + +
+
+ +
+

Activity Logs

+
+ +
+
+ + +
+ +
+ +
+ +
+ +
+ + +
+
+ + + + + + + + +
+
+ + +
+ +
+ +
There are 2 new tasks for you in “AirPlus Mobile APp” project:
+ + +
+ +
Added at 4:23 PM by
+ + +
+ img +
+ +
+ +
+ + +
+ +
+ + Meeting with customer + + +
+ Application Design +
+ + +
+ +
+ img +
+ + +
+ img +
+ + +
+
A
+
+ +
+ + +
+ In Progress +
+ + + View + +
+ + +
+ + Project Delivery Preparation + + +
+ CRM System Development +
+ + +
+ +
+ img +
+ + +
+
B
+
+ +
+ + +
+ Completed +
+ + + View + +
+ +
+ +
+ +
+ + +
+ +
+ + +
+
+ + + + + + + + +
+
+ + +
+ +
+ +
Invitation for crafting engaging designs that speak human workshop
+ + +
+ +
Sent at 4:23 PM by
+ + +
+ img +
+ +
+ +
+ +
+ +
+ + +
+ +
+ + +
+
+ + + + + + + + +
+
+ + +
+ +
+ + 3 New Incoming Project Files: + + +
+ +
Sent at 10:30 PM by
+ + +
+ img +
+ +
+ +
+ + +
+
+ +
+ + + + +
+ + Finance KPI App Guidelines + + +
1.9mb
+ +
+ +
+ + +
+ + + + +
+ + Client UAT Testing Results + + +
18kb
+ +
+ +
+ + +
+ + + + +
+ + Finance Reports + + +
20mb
+ +
+ +
+ +
+
+ +
+ +
+ + +
+ +
+ + +
+
+ + + + + + + + +
+
+ + +
+ +
+ +
Task + #45890merged with + #45890in “Ads Pro Admin Dashboard project:
+ + +
+ +
Initiated at 4:23 PM by
+ + +
+ img +
+ +
+ +
+ +
+ +
+ + +
+ +
+ + +
+
+ + + + + + + + +
+
+ + +
+ +
+ +
3 new application design concepts added:
+ + +
+ +
Created at 4:23 PM by
+ + +
+ img +
+ +
+ +
+ + +
+
+ +
+ +
+ img +
+ + +
+ Explore +
+ +
+ + +
+ +
+ img +
+ + +
+ Explore +
+ +
+ + +
+ +
+ img +
+ + +
+ Explore +
+ +
+ +
+
+ +
+ +
+ + +
+ +
+ + +
+
+ + + + + + + + +
+
+ + +
+ +
+ +
New case + #67890is assigned to you in Multi-platform Database Design project
+ + +
+ +
+ +
Added at 4:23 PM by
+ + + Alice Tan + +
+ +
+ +
+ +
+ +
+ + +
+ +
+ + +
+
+ + + + + + + + +
+
+ + +
+ +
+ +
You have received a new order:
+ + +
+ +
Placed at 5:05 AM by
+ + +
+ img +
+ +
+ +
+ + +
+ +
+ + + + + + + + + + + +
+ +
+

Database Backup Process Completed!

+
Login into Metronic Admin Dashboard to make sure the data integrity is OK
+
+ + + Proceed + +
+ +
+ +
+ +
+ +
+ + +
+ +
+ + +
+
+ + + + + + + + + +
+
+ + +
+ +
+ +
New order + #67890is placed for Workshow Planning & Budget Estimation
+ + +
+ +
Placed at 4:23 PM by
+ + + Jimmy Bold + +
+ +
+ +
+ +
+ +
+ +
+ +
+ + + + +
+
+ + +
+ +
+ +
+ +
+ +
+ Brian Cox + +
+ + Active +
+ +
+ +
+ + +
+ +
+ + + + +
+ + +
+ + + + + + + + +
+ +
+ +
+ + +
+ +
+ +
+ +
+ +
+ +
+ Pic +
+ + +
+ Brian Cox + 2 mins +
+ +
+ + +
How likely are you to recommend our company to your friends and family ?
+ +
+ +
+ + +
+ +
+ +
+ +
+ 5 mins + You +
+ + +
+ Pic +
+ +
+ + +
Hey there, we’re just writing to let you know that you’ve been subscribed to a repository on GitHub.
+ +
+ +
+ + +
+ +
+ +
+ +
+ Pic +
+ + +
+ Brian Cox + 1 Hour +
+ +
+ + +
Ok, Understood!
+ +
+ +
+ + +
+ +
+ +
+ +
+ 2 Hours + You +
+ + +
+ Pic +
+ +
+ + +
You’ll receive notifications for all issues, pull requests!
+ +
+ +
+ + +
+ +
+ +
+ +
+ Pic +
+ + +
+ Brian Cox + 3 Hours +
+ +
+ + +
You can unwatch this repository immediately by clicking here: + Keenthemes.com
+ +
+ +
+ + +
+ +
+ +
+ +
+ 4 Hours + You +
+ + +
+ Pic +
+ +
+ + +
Most purchased Business courses during this sale!
+ +
+ +
+ + +
+ +
+ +
+ +
+ Pic +
+ + +
+ Brian Cox + 5 Hours +
+ +
+ + +
Company BBQ to celebrate the last quater achievements and goals. Food and drinks provided
+ +
+ +
+ + +
+ +
+ +
+ +
+ Just now + You +
+ + +
+ Pic +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ +
+ Pic +
+ + +
+ Brian Cox + Just now +
+ +
+ + +
Right before vacation season we have the next Big Deal for you.
+ +
+ +
+ +
+ +
+ + + + +
+ +
+ + + + + +
+ +
+ +
+

Recent Videos

+
+ +
+
+ + +
+ +
+ +
+ + +
+

Metronic Demos

+ +
+ +
+ +
+
+ demo +
+
+ Demo 1 +
+
+ +
+ + +
+ +
+
+ demo +
+
+ Demo 2 +
+
+ +
+ + +
+ +
+
+ demo +
+
+ Demo 3 +
+
+ +
+ + +
+ +
+
+ demo +
+
+ Demo 4 +
+
+ +
+ + +
+ +
+
+ demo +
+
+ Demo 5 +
+
+ +
+ + +
+ +
+
+ demo +
+
+ Demo 6 +
+
+ +
+ + +
+ +
+
+ demo +
+
+ Demo 7 +
+
+ +
+ + +
+ +
+
+ demo +
+
+ Demo 8 +
+
+ +
+ + +
+ +
+
+ demo +
+
+ Demo 9 +
+
+ +
+ + +
+ +
+
+ demo +
+
+
Coming soon
+
+
+ +
+ + +
+ +
+
+ demo +
+
+
Coming soon
+
+
+ +
+ + +
+ +
+
+ demo +
+
+
Coming soon
+
+
+ +
+ + +
+ +
+
+ demo +
+
+ Demo 13 +
+
+ +
+ + +
+ +
+
+ demo +
+
+
Coming soon
+
+
+ +
+ + +
+ +
+
+ demo +
+
+
Coming soon
+
+
+ +
+ + +
+ +
+
+ demo +
+
+
Coming soon
+
+
+ +
+ + +
+ +
+
+ demo +
+
+
Coming soon
+
+
+ +
+ + +
+ +
+
+ demo +
+
+
Coming soon
+
+
+ +
+ + +
+ +
+
+ demo +
+
+
Coming soon
+
+
+ +
+ +
+ +
+ + + + +
+
+

Metronic Licenses

+ License FAQs +
+
+ + +
+
+
+
+
Regular License
+ +
+
For single end product used by you or one client
+
+
+ $ + 39 +
+
+
+ + +
+
+
+
+
Extended License
+ +
+
For single end product with paying users.
+
+
+ $ + 939 +
+
+
+ + +
+
+
+
+
Custom License
+
+
Reach us for custom license offers.
+
+ +
+
+ + + Buy Now + + + +
+ +
+ +
+ +
+ +
+ + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/Views/tools/index.php b/app/Views/tools/index.php index 9772cae..242e4bc 100644 --- a/app/Views/tools/index.php +++ b/app/Views/tools/index.php @@ -1,861 +1,40 @@ - - - - - Metronic - the world's #1 selling Bootstrap Admin Theme Ecosystem for HTML, Vue, React, Angular & Laravel by Keenthemes - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
- - - -
- - -
- -
- - - -
- -
- - - - -
- - -
- -
- -
- - - CoreGrade - - - -
- - - - - - - - - - - - - - - - - - -
- - -
-
- - - - - - - - -
-
- -
- -
- -
- -
- -

Dashboard

- - - - -
- - -
- -
- -
- -
-
- - -
- -
- -
- -
-
- - - -
- - +extend('layouts/homelayout2') ?> +section('content') ?> +
+ +
+ +
+ + - - -
- -
- -
- -
-

- Tasks Overview - Pending 10 tasks -

-
- -
+
+ + +
+ +
+ +
+ +
+

+ Tasks Overview + Pending 10 tasks +

+
+ + - - - - -
+ + + + - + + +
+ Testing + QA Managers +
+
- - -
- -
- -
-

- Latest Products - More than 400 new products -

-
- -
-
- - -
-
- -
- -
- - - - - - - - - - - - - - - - - + + + +
-
+ +
+ + + + + + +
+ +
+ +
+

+ Latest Products + More than 400 new products +

+
+ +
+
+ + +
+
+ +
+ +
+ + + + + + + + + + + + + + + + + - - - - + + + + - - - + + + - - - - + + + + - - - + + + - - - - + + + + - - - + + + - - - - + + + + - - - + + + - - - - + + + + - - - -
+
-
-
- Brad Simmons - Movie Creator - React, HTML - Approved - - - - + + + Brad Simmons + Movie Creator + React, HTML + Approved + + + + - - -
-
+ + +
+
-
-
- Popular Authors - Most Successful - Python, MySQL - In Progress - - - - + + + Popular Authors + Most Successful + Python, MySQL + In Progress + + + + - - -
-
+ + +
+
-
-
- New Users - Awesome Users - Laravel,Metronic - Success - - - - + + + New Users + Awesome Users + Laravel,Metronic + Success + + + + - - -
-
+ + +
+
-
-
- Active Customers - Movie Creator - AngularJS, C# - Rejected - - - - + + + Active Customers + Movie Creator + AngularJS, C# + Rejected + + + + - - -
-
+ + +
+
-
-
- Bestseller Theme - Best Customers - ReactJS, Ruby - In Progress - - - - + + + Bestseller Theme + Best Customers + ReactJS, Ruby + In Progress + + + + - - -
-
- -
- - -
- -
- - - - - - - - - - - - - - - - - + + + +
-
+ + +
+
+ +
+ + +
+ +
+ + + + + + + + + + + + + + + + + - - - - + + + + - - - + + + - - - - + + + + - - - + + + - - - - + + + + - - - -
+
-
-
- Brad Simmons - Movie Creator - React, HTML - Approved - - - - + + + Brad Simmons + Movie Creator + React, HTML + Approved + + + + - - -
-
+ + +
+
-
-
- Popular Authors - Most Successful - Python, MySQL - In Progress - - - - + + + Popular Authors + Most Successful + Python, MySQL + In Progress + + + + - - -
-
+ + +
+
-
-
- Active Customers - Movie Creator - AngularJS, C# - Rejected - - - - + + + Active Customers + Movie Creator + AngularJS, C# + Rejected + + + + - - -
-
- -
- - -
- -
- - - - - - - - - - - - - - - - - + + + +
-
+ + +
+
+ +
+ + +
+ +
+ + + + + + + + + + + + + + + + + - - - - + + + + - - - + + + - - - - + + + + - - - + + + - - - - + + + + - - - + + + - - - - + + + + - - - -
+
-
-
- Bestseller Theme - Best Customers - ReactJS, Ruby - In Progress - - - - + + + Bestseller Theme + Best Customers + ReactJS, Ruby + In Progress + + + + - - -
-
+ + +
+
-
-
- Active Customers - Movie Creator - AngularJS, C# - Rejected - - - - + + + Active Customers + Movie Creator + AngularJS, C# + Rejected + + + + - - -
-
+ + +
+
-
-
- New Users - Awesome Users - Laravel,Metronic - Success - - - - + + + New Users + Awesome Users + Laravel,Metronic + Success + + + + - - -
-
+ + +
+
-
-
- Popular Authors - Most Successful - Python, MySQL - In Progress - - - - + + + Popular Authors + Most Successful + Python, MySQL + In Progress + + + + - - -
-
- -
- -
-
- -
- -
- - - - -
-
- -
- -
-

Todo

-
- - - - - - -
+
- - -
- -
- - - - -
- -
- - -
- Create FireStone Logo - Due in 2 Days -
- - New -
- - -
- - - - -
- -
- - -
- Stakeholder Meeting - Due in 3 Days -
- - New -
- - -
- - - - -
- -
- - -
- Scoping & Estimations - Due in 5 Days -
- - New -
- - -
- - - - -
- -
- - -
- KPI App Showcase - Due in 2 Days -
- - New -
- - -
- - - - -
- -
- - -
- Project Meeting - Due in 12 Days -
- - New -
- - -
- - - - -
- -
- - -
- Customers Update - Due in 1 week -
- - New -
- -
- +
- -
-
- -
- -
- -

- Recent Statistics - More than 400 new members -

- - -
- - - - - - -
- -
- - -
- -
- -
- -
- +
- - -
-
- -
- -
-

- Latest Media - Articles and publications -

-
- - - - - - -
-
- - -
- -
- -
-
-
- - -
-
- Cup & Green - Size: 87KB -
- Approved -
- -
- - -
- -
-
-
- - -
-
- Yellow Background - Size: 1.2MB -
- In Progress -
- -
- - -
- -
-
-
- - -
-
- Nike & Blue - Size: 87KB -
- Success -
- -
- - -
- -
-
-
- - -
-
- Red Boots - Size: 345KB -
- Rejected -
- -
- -
- -
- -
-
- -
- -
-

Notifications

-
- - - - - - -
-
- - -
- -
- - - - - - - - - - - - - -
- Group lunch celebration - Due in 2 Days -
- - - +28% - -
- - -
- - - - - - - - - - - - - -
- Navigation optimization - Due in 2 Days -
- - - +50% - -
- - -
- - - - - - - - - - - - - -
- Rebrand strategy planning - Due in 5 Days -
- - - -27% - -
- - -
- - - - - - - - - - - - - -
- Product goals strategy - Due in 7 Days -
- - - +8% - -
- -
- -
- -
-
- +
- +
- +
- - - - -
- -
- -
- - - -
-
- -
-

Activity Logs

-
- -
-
- - -
- -
- -
- -
- -
- - -
-
- - - - - - - - -
-
- - -
- -
- -
There are 2 new tasks for you in “AirPlus Mobile APp” project:
- - -
- -
Added at 4:23 PM by
- - -
- img -
- -
- -
- - -
- -
- - Meeting with customer - - -
- Application Design -
- - -
- -
- img -
- - -
- img -
- - -
-
A
-
- -
- - -
- In Progress -
- - - View - -
- - -
- - Project Delivery Preparation - - -
- CRM System Development -
- - -
- -
- img -
- - -
-
B
-
- -
- - -
- Completed -
- - - View - -
- -
- -
- -
- - -
- -
- - -
-
- - - - - - - - -
-
- - -
- -
- -
Invitation for crafting engaging designs that speak human workshop
- - -
- -
Sent at 4:23 PM by
- - -
- img -
- -
- -
- -
- -
- - -
- -
- - -
-
- - - - - - - - -
-
- - -
- -
- - 3 New Incoming Project Files: - - -
- -
Sent at 10:30 PM by
- - -
- img -
- -
- -
- - -
-
- -
- - - - -
- - Finance KPI App Guidelines - - -
1.9mb
- -
- -
- - -
- - - - -
- - Client UAT Testing Results - - -
18kb
- -
- -
- - -
- - - - -
- - Finance Reports - - -
20mb
- -
- -
- -
-
- -
- -
- - -
- -
- - -
-
- - - - - - - - -
-
- - -
- -
- -
Task - #45890merged with - #45890in “Ads Pro Admin Dashboard project:
- - -
- -
Initiated at 4:23 PM by
- - -
- img -
- -
- -
- -
- -
- - -
- -
- - -
-
- - - - - - - - -
-
- - -
- -
- -
3 new application design concepts added:
- - -
- -
Created at 4:23 PM by
- - -
- img -
- -
- -
- - -
-
- -
- -
- img -
- - -
- Explore -
- -
- - -
- -
- img -
- - -
- Explore -
- -
- - -
- -
- img -
- - -
- Explore -
- -
- -
-
- -
- -
- - -
- -
- - -
-
- - - - - - - - -
-
- - -
- -
- -
New case - #67890is assigned to you in Multi-platform Database Design project
- - -
- -
- -
Added at 4:23 PM by
- - - Alice Tan - -
- -
- -
- -
- -
- - -
- -
- - -
-
- - - - - - - - -
-
- - -
- -
- -
You have received a new order:
- - -
- -
Placed at 5:05 AM by
- - -
- img -
- -
- -
- - -
- -
- - - - - - - - + + +
+
+ +
+ +
+

Todo

+
+ + + + - -
- -
- -
- - -
- -
- - -
-
- - - - - - - - - + +
- - -
- -
- -
New order - #67890is placed for Workshow Planning & Budget Estimation
- + + +
+ +
+ + + + +
+ +
+ -
- -
Placed at 4:23 PM by
- - - Jimmy Bold - +
+ Create FireStone Logo + Due in 2 Days
+ New
- -
- -
- -
- -
- -
- - - - -
-
- - -
- -
- -
- -
- -
- Brian Cox - -
- - Active -
- -
- -
- - -
- -
- - - - -
- - - - - -
- -
- -
-

Explore Metronic

-
- -
-
- - -
- -
- -
- -
-
-

Metronic Licenses

- License FAQs -
-
- - -
-
-
-
-
Regular License
- + + +
+ Scoping & Estimations + Due in 5 Days
-
For single end product used by you or one client
+ + New
-
- $ - 39 -
-
-
- - -
-
-
-
-
Extended License
- + + +
+ + + + +
+
-
For single end product with paying users.
-
-
- $ - 939 -
-
-
- - -
-
-
-
-
Custom License
+ + +
+ KPI App Showcase + Due in 2 Days
-
Reach us for custom license offers.
+ + New
- -
-
- - - Buy Now - - -
-

Metronic Demos

- -
- -
- -
-
- demo -
-
- Demo 1 -
+ + +
+ + + + +
+
- -
- - -
- -
-
- demo -
-
- Demo 2 -
+ + +
+ Project Meeting + Due in 12 Days
- + + New
- - -
- -
-
- demo -
-
- Demo 3 -
-
- -
- - -
- -
-
- demo -
-
- Demo 4 -
-
- -
- - -
- -
-
- demo -
-
- Demo 5 -
-
- -
- - -
- -
-
- demo -
-
- Demo 6 -
-
- -
- - -
- -
-
- demo -
-
- Demo 7 -
-
- -
- - -
- -
-
- demo -
-
- Demo 8 -
-
- -
- - -
- -
-
- demo -
-
- Demo 9 -
-
- -
- - -
- -
-
- demo -
-
-
Coming soon
-
-
- -
- - -
- -
-
- demo -
-
-
Coming soon
-
-
- -
- - -
- -
-
- demo -
-
-
Coming soon
-
-
- -
- - -
- -
-
- demo -
-
- Demo 13 -
-
- -
- - -
- -
-
- demo -
-
-
Coming soon
-
-
- -
- - -
- -
-
- demo -
-
-
Coming soon
-
-
- -
- - -
- -
-
- demo -
-
-
Coming soon
-
-
- -
- - -
- -
-
- demo -
-
-
Coming soon
-
-
- -
- - -
- -
-
- demo -
-
-
Coming soon
-
-
- -
- - -
- -
-
- demo -
-
-
Coming soon
-
-
- -
- -
- -
- -
- -
- -
- -
- -
- - - - -