Server IP : 172.67.216.182 / Your IP : 162.158.163.32 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/coircraft.com/wp-content/themes/coircraft/ |
Upload File : |
<?php get_header(); ?> <?php $items = get_post_meta($post->ID,'homeslider',true); if(!empty($items)) { ?> <section class="home-bannersec"> <div class="home-slider"> <?php foreach($items as $item) { ?> <div class="home-slide" style="background: url(<?php echo wp_get_attachment_url($item['slider-image'],'full'); ?>) no-repeat;background-size: cover;"> <div class="container"> <div class="banner-text center-both"> <?php echo $item['slider-title']; ?> <?php if(!empty($item['call-to-action-text']) && !empty($item['call-to-action-link'])) { ?> <a href="<?php echo site_url('/').$item['call-to-action-link'];?>" class="btn"><?php echo $item['call-to-action-text'];?></a> <?php }?> </div> </div> </div> <?php }?> </div> <div class="ecom"> <?php $items = get_post_meta($post->ID,'bannerimages',true); if(!empty($items)) { ?> <?php foreach($items as $item) { ?> <a href="<?php echo $item['banner-image-link'];?>" target="_blank"> <img src="<?php echo wp_get_attachment_url($item['banner-image'],'full'); ?>"> </a> <?php } }?> </div> </section> <?php }?> <?php if(!empty($post->post_content)) { ?> <section class="welcome-sec"> <div class="container"> <div class="txt"> <?php //echo $post->post_content; $main_title = get_field('main_title', $post->ID); if(!empty($main_title)){ ?> <div class="lft"><?php echo $main_title;?></div> <?php }?> <?php $sub_text = get_field('sub_text', $post->ID); if(!empty($sub_text)){ ?> <div class="rgt"><?php echo $sub_text;?></div> <?php }?> </div> </div> </section> <?php }?> <section class="white1"> <div class="container"> <div class="row"> <div class="keraliyam23"> <div class="col-md-12"> <a href="https://keraleeyam.kerala.gov.in/" target="_blank"> <img src="http://www.coircraft.com/wp-content/uploads/2023/10/keraliyam.jpg" /></a> <a href="https://keraleeyam.kerala.gov.in/" target="_blank">View More</a> </div> </div> </div> <div class="row"> <?php $profiles = get_post_meta($post->ID,'profiles',true); if(!empty($profiles)){ ?> <div class="col-md-12"> <div class="row"> <?php $pro=1; foreach($profiles as $pr){ $profile_image = wp_get_attachment_url($pr['profile-image']); if($pro<=4){ ?> <div class="col-md-3"> <div class="men-in"> <figure class="center-both"> <img src="<?php echo $profile_image; ?>"> </figure> <div class="name"><?php echo $pr['profile-title']; ?></div> <div class="desig"><?php echo $pr['profile-subtitle']; ?></div> </div> </div> <?php $pro++; } }?> </div> </div> <?php } ?> <div class="col-md-6" style="display:none;"> <div class="hd">We are now avaliable online</div> <div class="coircraft"> <?php $coircraft_logo = get_field('coircraft_logo', $post->ID); if(!empty($coircraft_logo)){ ?> <figure> <img src="<?php echo $coircraft_logo['url'];?>"> </figure> <?php } $shop_now_link = get_field('shop_now_link', $post->ID); if(!empty($shop_now_link)){ ?> <a href="<?php echo $shop_now_link;?>" target="_blank" class="btn">Shop Now</a> <?php }?> </div> </div> </div> </div> </section> <section class="feature-sec"> <div class="container"> <div> <div class="sec-hd"> <?php $featured_products_title = get_field('featured_products_title', $post->ID); if(!empty($featured_products_title)){ ?> <div class="hd"><?php echo $featured_products_title;?></div> <?php }?> </div> <?php $args = get_posts(array('post_type'=>'products','orderby'=>'menu_order','post_status'=>'publish','posts_per_page'=>-1)); if(!empty($args)) { ?> <div class="prod-gallery"> <div class="row no-gutters"> <?php foreach($args as $item) { $show = get_field('featured_product',$item); $img = wp_get_attachment_url( get_post_thumbnail_id( $item->ID ),'full'); if(!empty($show)) { $myterms = get_the_terms( $item->ID, 'productcategory' ); //wp_get_post_terms( $item->ID, array( 'taxonomy' => 'productcategory', 'parent' => 0 ) ); ?> <div class="col-lg-3 col-md-6"> <div class="product-item" style="background-image: url('<?php echo $img;?>');"> <?php if(!empty($myterms)){ ?> <a href="<?php echo get_term_link($myterms[0]->term_id).'?id='.$item->ID; ?>" > <?php } ?> <div class="p-title center-both"><?php echo $item->post_title; ?></div> <?php if(!empty($myterms)){ ?></a> <?php } ?> </div> </div> <?php } }?> </div> </div> <?php }?> </div> </div> </section> <section class="about-sec"> <div class="container"> <div class="abt"> <div class="sec-hd"> <?php $about_coir_title = get_field('about_coir_title', $post->ID); if(!empty($about_coir_title)){ ?> <div class="hd"><?php echo $about_coir_title;?></div> <?php }?> </div> <?php $items = get_post_meta($post->ID,'homeabout',true); if(!empty($items)) { ?> <div class="abt-slider"> <?php foreach($items as $item) { ?> <div class="abt-slide"> <div class="row"> <div class="col-md-5"> <figure> <img src="<?php echo wp_get_attachment_url($item['about-coir-image'],'full'); ?>"> </figure> </div> <div class="col-md-7"> <div class="txt"> <?php echo $item['about-coir-content']; ?> </div> </div> </div> </div> <?php }?> </div> <?php }?> </div> </div> </section> <section class="our-sec"> <div class="container"> <div class="row"> <div class="col-lg-6"> <?php $args = get_posts(array('post_type'=>'job','orderby'=>'menu_order','post_status'=>'publish','posts_per_page'=>-1)); if(!empty($args)) { $count=1; ?> <div class="jobs-in"> <div class="sec-hd"> <?php $career_title = get_field('career_title', $post->ID); if(!empty($career_title)){ ?> <div class="hd"><?php echo $career_title;?></div> <?php }?> </div> <div class="job-box"> <?php foreach($args as $item) { if($count<=2) {?> <div class="job-item" <?php if(!empty($count>=3)){ ?>style="display:none;" <?php }?>> <a href="<?php echo get_permalink($item->ID); ?>"><?php echo $item->post_title; ?></a> <?php if(!empty($item->notification_text)){ ?> <a href="<?php echo get_permalink($item->ID); ?>"><?php echo $item->notification_text; ?></a> <?php }?> </div> <?php $count++;} }?> </div> </div> <?php }?> <?php $args = get_posts(array('post_type'=>'tenderdata','orderby'=>'ID','post_status'=>'publish', 'posts_per_page'=>-1)); //$args = wp_get_recent_posts('post_type'=>'tenderdata','orderby'=>'menu_order','post_status'=>'publish', 'posts_per_page'=>-1); if(!empty($args)) { $count=1; ?> <div class="jobs-in"> <div class="sec-hd"> <?php $tenders_title = get_field('tenders_title', $post->ID); if(!empty($tenders_title)){ ?> <div class="hd"><?php echo $tenders_title;?></div> <?php }?> </div> <div class="job-box"> <?php foreach($args as $item) { if($count<=4) {?> <div class="job-item" <?php if(!empty($count>=5)){ ?>style="display:none;" <?php }?>> <a href="<?php echo get_permalink($item->ID); ?>"><?php echo $item->post_title; ?></a> <?php if(!empty($item->link_text)){ ?> <a href="<?php echo get_permalink($item->ID); ?>"><?php echo $item->link_text; ?></a> <?php }?> </div> <?php $count++;} }?> </div> </div> <?php }?> </div> <?php $args = get_posts(array('post_type'=>'post','orderby'=>'menu_order','post_status'=>'publish','posts_per_page'=>-1)); if(!empty($args)) { $count=1;?> <div class="col-lg-6"> <div class="news-in"> <div class="sec-hd"> <?php $news_title = get_field('news_title', $post->ID); if(!empty($news_title)){ ?> <div class="hd"><?php echo $news_title;?></div> <?php }?> </div> <div class="row less-gutters"> <?php foreach($args as $item) { $img = wp_get_attachment_url( get_post_thumbnail_id( $item->ID ),'full'); if($count<=5) { ?> <div class="col-md-6"> <div class="news" style="background-image: url('<?php echo $img;?>');"> <div class="det"> <div class="d1">News</div> <div class="d2"><?php echo $item->post_title; ?><br> <?php echo $item->post_date; ?> </div> <a href="<?php echo get_permalink($item->ID); ?>">Read More</a> </div> </div> </div> <?php $count++; } } ?> </div> </div> </div> <?php }?> </div> </div> </section> <?php $items = get_post_meta($post->ID,'homelogosection',true); if(!empty($items)) { ?> <section class="partner-sec"> <div class="container"> <div class="hd">Our Products are avalaible in store</div> <div class="brand"> <?php foreach($items as $item) { ?> <figure> <img src="<?php echo wp_get_attachment_url($item['logo-images'],'full'); ?>" alt=""> </figure> <?php }?> </div> </div> </section> <?php }?> <?php get_footer(); ?>