489495df
Path : /home3/mandnweb/mariananjie.com/ |
Current < : /home3/mandnweb/mariananjie.com/news.php |
<?php $page_title = "News & Blog - Professional Business Coach"; $keywords = 'Business Coach, Professional business coach, learn online'; $meta_description = 'Mariana Njie article and blogs. Check our latest article for Mariana Njie news and be updated. Customer satisfaction is our greatest priority and we therefore guarantee our service.'; $active = 5; require 'partials/head.php' ?> <style> .widget-footer{ background-color: #fafafa !important; } </style> </head> <body> <?php require 'partials/header.php'; ?> <div class="main-content"> <div class="page-header-section"> <div class="about-inner" style="background-image: url('/images/blue-header-bg.jpg');"> <div class="overlay-primary-bg1 d-none"></div> <div class="container z-index-3 is-relative"> <div class="col-sm-12 "> <div class="inner d-flex justify-content-center flex-column is-light-transparent animation-element slide-left"> <h1 class="mb-1 slider-title height-auto text-white">News & Blog</h1> </div> </div> </div> </div> </div> <div class="inner-content relative" style="z-index: 10;"> <section class="section-row article-section"> <div class="container"> <?php $url = "https://app.mariananjie.com/articles/get_all_articles"; try{ $context = stream_context_create(array( 'http' => array( 'ignore_errors'=>true, 'method'=>'GET' ) )); $isAvailable = @file_get_contents($url); if($isAvailable === FALSE) { ?> <div class="job__item" style="border-bottom: 1px solid #ddd;"> <p>There are no Post for now. Please try again later.</p> </div> <?php }else{ $response = file_get_contents($url); $job_list = json_decode($response, true); if($job_list){ foreach($job_list as $job => $value){ ?> <div class="col-sm-12 mb-5"> <div class="row"> <div class="col-sm-6"> <div class="post-featured animation-element slide-left mobile-mb-4"> <img loading="lazy" src="https://app.mariananjie.com/public/storage/<?php echo $value['featured_image']; ?>" class="img-fluid " alt="<?php echo $value['post_title']; ?>"> </div> </div> <div class="col-sm-6"> <div class="d-flex align-items-center h-100"> <div class="pl-2 pl-0-mobile"> <h2 class="text-uppercase"><?php echo $value['post_title']; ?></h2> <p> <span class="post-meta"> <?php foreach ($value['categories'] as $key => $cat) { print_r($cat['category']); echo ' | '; } ?> <?php echo $value['created_at']; ?></span> </p> <?php echo substr(strip_tags($value['description']), 0, 250). '...'; ?> <p style="margin-top: 1rem;"><a href="single-post?post=<?php echo $value['post_slug'] ?>">Read More <i class="fa fa-chevron-right" style="font-size: 14px;"></i></a></p> </div> </div> </div> </div> </div> <?php } } } }catch(Exception $ex){ echo $ex; } ?> </div> </section> </div> </div> <?php require 'partials/widgets.php'; ?> <?php require 'partials/footer.php'; ?> <?php require 'partials/foot.php'; ?> </body> </html>