fix
This commit is contained in:
@@ -5,8 +5,8 @@ $merms_faq = array
|
|||||||
[
|
[
|
||||||
'What is MERMS ?',
|
'What is MERMS ?',
|
||||||
'What is MERMS ?',
|
'What is MERMS ?',
|
||||||
'MERSM is a series of patient, users and providers platforms that assist providers in patient care processes and any users to manage health care goals.',
|
'MERMS is a series of patient, users and providers platforms that assist providers in patient care processes and any users to manage health care goals.',
|
||||||
'MERSM is a series of patient, users and providers platforms that assist providers in patient care processes and any users to manage health care goals.'
|
'MERMS is a series of patient, users and providers platforms that assist providers in patient care processes and any users to manage health care goals.'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'What is myFit App ?',
|
'What is myFit App ?',
|
||||||
|
|||||||
@@ -52,6 +52,30 @@ class BaseController extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function getBlogItems() {
|
protected function getBlogItems() {
|
||||||
|
$apiEndpointsConfig = config('ApiEndpoints');
|
||||||
|
$wpData = WpContentsClient::serviceGetBlogItems($apiEndpointsConfig->baseUrl);
|
||||||
|
$blog_post = array();
|
||||||
|
$blog_cnt =0;
|
||||||
|
foreach ($wpData as $item) {
|
||||||
|
$itemA = array(
|
||||||
|
'title' => $item->post_title,
|
||||||
|
'desc' => substr($item->post_content,0,400),
|
||||||
|
'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);
|
||||||
|
}
|
||||||
|
var_dump($blog_post);
|
||||||
|
|
||||||
|
return $blog_post;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function getBlogItems2() {
|
||||||
$apiEndpointsConfig = config('ApiEndpoints');
|
$apiEndpointsConfig = config('ApiEndpoints');
|
||||||
$wpData = WpContentsClient::serviceGetBlogItems($apiEndpointsConfig->baseUrl);
|
$wpData = WpContentsClient::serviceGetBlogItems($apiEndpointsConfig->baseUrl);
|
||||||
$blog_post = array();
|
$blog_post = array();
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ class Support extends BaseController {
|
|||||||
public function index() {
|
public function index() {
|
||||||
$data = array();
|
$data = array();
|
||||||
$data["country"] = MERMS_COUNTRIES;
|
$data["country"] = MERMS_COUNTRIES;
|
||||||
$this->renderExtPage('support', $data);
|
$this->renderExtPage('contact', $data);
|
||||||
}
|
}
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,39 @@ use GuzzleHttp\Client as HTTPClient;
|
|||||||
|
|
||||||
class WpContentsClient
|
class WpContentsClient
|
||||||
{
|
{
|
||||||
|
//http://localhost:5101/wp
|
||||||
|
|
||||||
public static function serviceGetBlogItems($apiEndpointsUrl)
|
public static function serviceGetBlogItems($apiEndpointsUrl)
|
||||||
{
|
{
|
||||||
$cache = \Config\Services::cache();
|
$cache = \Config\Services::cache();
|
||||||
|
|
||||||
|
if (!$cache->get('BlogWebData')){
|
||||||
|
$client = new HTTPClient();
|
||||||
|
|
||||||
|
try {
|
||||||
|
$response = $client->request(
|
||||||
|
'GET',
|
||||||
|
"http://10.0.0.52:5102/merms/wp",
|
||||||
|
['connect_timeout' => 2, 'timeout' => 3, 'debug' => false]
|
||||||
|
);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
// echo "\n".$e->getMessage()."\n";
|
||||||
|
$response= []; // empty array
|
||||||
|
}
|
||||||
|
$responseArray = json_decode($response->getBody());
|
||||||
|
$cache->save('BlogWebData',$responseArray,7200);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$responseArray = $cache->get('BlogWebData');
|
||||||
|
}
|
||||||
|
//var_dump($responseArray);
|
||||||
|
return $responseArray;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function serviceGetBlogItems2($apiEndpointsUrl)
|
||||||
|
{
|
||||||
|
$cache = \Config\Services::cache();
|
||||||
|
|
||||||
if (!$cache->get('BlogWebData')){
|
if (!$cache->get('BlogWebData')){
|
||||||
$client = new HTTPClient();
|
$client = new HTTPClient();
|
||||||
|
|
||||||
|
|||||||
+62
-74
@@ -1,80 +1,8 @@
|
|||||||
|
|
||||||
<!------main-content------>
|
<!------main-content------>
|
||||||
<main class="main-content">
|
<main class="main-content">
|
||||||
<section class="page_title">
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 d-flex">
|
|
||||||
<div class="content_box">
|
|
||||||
<ul class="bread_crumb text-center">
|
|
||||||
<li class="bread_crumb-item"><a href="#">Home</a></li>
|
|
||||||
<li class="bread_crumb-item active"> Contact</li>
|
|
||||||
</ul>
|
|
||||||
<h1>Contact</h1>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
<!-- info-section -->
|
|
||||||
<section class="info_section">
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<div class="heading text-center tp_one ">
|
|
||||||
<h6>Get In Touch</h6>
|
|
||||||
<h1>We’re Here to Help You</h1>
|
|
||||||
<span class="flaticon-virus icon "></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="info_inner">
|
|
||||||
<div class="row ">
|
|
||||||
<div class="col-lg-4 col-md-6 col-sm-12 info-column">
|
|
||||||
<div class="info-box">
|
|
||||||
<div class="hidden-icon"><i class="flaticon-address"></i></div>
|
|
||||||
<div class="box">
|
|
||||||
<div class="icon-box"><i class="flaticon-address"></i></div>
|
|
||||||
<h4>Location</h4>
|
|
||||||
<span>Visit to explore the world</span>
|
|
||||||
</div>
|
|
||||||
<div class="text">
|
|
||||||
<p><?=MERMS_ADDRESS_USA?>.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-4 col-md-6 col-sm-12 info-column">
|
|
||||||
<div class="info-box">
|
|
||||||
<div class="hidden-icon"><i class="flaticon-phone-1"></i></div>
|
|
||||||
<div class="box">
|
|
||||||
<div class="icon-box"><i class="flaticon-phone-1"></i></div>
|
|
||||||
<h4>Make a Call</h4>
|
|
||||||
<span>Let’s talk with our experts</span>
|
|
||||||
</div>
|
|
||||||
<div class="text">
|
|
||||||
<p><a href="tel:<?=MERMS_PHONE_USA?>"><?=MERMS_PHONE_USA?></a></p>
|
|
||||||
<p>Mon - Fri: 09.00 to 18.00</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-4 col-md-12 col-sm-12 info-column">
|
|
||||||
<div class="info-box">
|
|
||||||
<div class="hidden-icon"><i class="flaticon-mail"></i></div>
|
|
||||||
<div class="box">
|
|
||||||
<div class="icon-box"><i class="flaticon-mail"></i></div>
|
|
||||||
<h4>Send a Mail</h4>
|
|
||||||
<span>Dont’s hesitate to mail</span>
|
|
||||||
</div>
|
|
||||||
<div class="text">
|
|
||||||
<p><a href="mailto:<?=MERMS_SUPPORT_EMAIL?>"><?=MERMS_SUPPORT_EMAIL?></a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
<!-- info-section end -->
|
|
||||||
<section class="contact_form type_one " >
|
<section class="contact_form type_one " >
|
||||||
|
|
||||||
<div class="container ">
|
<div class="container ">
|
||||||
@@ -161,4 +89,64 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
<!-- info-section -->
|
||||||
|
<section class="info_section">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="heading text-center tp_one ">
|
||||||
|
<h6>Get In Touch</h6>
|
||||||
|
<h1>We’re Here to Help You</h1>
|
||||||
|
<span class="flaticon-virus icon "></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="info_inner">
|
||||||
|
<div class="row ">
|
||||||
|
<div class="col-lg-4 col-md-6 col-sm-12 info-column">
|
||||||
|
<div class="info-box">
|
||||||
|
<div class="hidden-icon"><i class="flaticon-address"></i></div>
|
||||||
|
<div class="box">
|
||||||
|
<div class="icon-box"><i class="flaticon-address"></i></div>
|
||||||
|
<h4>Location</h4>
|
||||||
|
<span>Visit to explore the world</span>
|
||||||
|
</div>
|
||||||
|
<div class="text">
|
||||||
|
<p><?=MERMS_ADDRESS_USA?>.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 col-md-6 col-sm-12 info-column">
|
||||||
|
<div class="info-box">
|
||||||
|
<div class="hidden-icon"><i class="flaticon-phone-1"></i></div>
|
||||||
|
<div class="box">
|
||||||
|
<div class="icon-box"><i class="flaticon-phone-1"></i></div>
|
||||||
|
<h4>Make a Call</h4>
|
||||||
|
<span>Let’s talk with our experts</span>
|
||||||
|
</div>
|
||||||
|
<div class="text">
|
||||||
|
<p><a href="tel:<?=MERMS_PHONE_USA?>"><?=MERMS_PHONE_USA?></a></p>
|
||||||
|
<p>Mon - Fri: 09.00 to 18.00</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 col-md-12 col-sm-12 info-column">
|
||||||
|
<div class="info-box">
|
||||||
|
<div class="hidden-icon"><i class="flaticon-mail"></i></div>
|
||||||
|
<div class="box">
|
||||||
|
<div class="icon-box"><i class="flaticon-mail"></i></div>
|
||||||
|
<h4>Send a Mail</h4>
|
||||||
|
<span>Dont’s hesitate to mail</span>
|
||||||
|
</div>
|
||||||
|
<div class="text">
|
||||||
|
<p><a href="mailto:<?=MERMS_SUPPORT_EMAIL?>"><?=MERMS_SUPPORT_EMAIL?></a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- info-section end -->
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user