PATH:
home
/
lab2454c
/
incforce.com
/
wp-content
/
themes
/
incforce
/
template-parts
<?php $home_field_content = get_field('home_field_content'); ?> <div class="event__wrapp"> <div class="container"> <div class="row"> <div class="col-xl-7 col-lg-7"> <div class="content__wrapp"> <div class="content__wrapp__inner"> <?php if(!empty($home_field_content['our_events_title'])):?> <h2><?php echo $home_field_content['our_events_title'];?></h2> <?php endif;?> <?php echo apply_filters('the_content',$home_field_content['our_events_content']);?> </div> <div class="btn__wrapp"> <a href="<?php echo !empty($home_field_content['events_view_more_url']) ? $home_field_content['events_view_more_url']:'#';?>"> <?php echo $home_field_content['events_view_more_title'];?><i class="ico__box"><img src="<?php echo $home_field_content['view_more_arrow_icon'];?>" alt="" /></i> </a> </div> </div> <?php $recent_posts = wp_get_recent_posts(array( 'numberposts' => 3, 'post_status' => 'publish', )); ?> <?php $flag = 1; $html = ''; foreach($recent_posts as $post_item): if($flag == 3){ $url = !empty($home_field_content['events_url']) ? $home_field_content['events_url']:'#'; $html .= '<div class="event__card event__card__single"><div class="event__content__wrapp">'; $html .= '<div class="event__category"><h4><a href="'.$url.'">'.$home_field_content['events_title'].'</a></h4></div>'; $html .= '<h3><a href="'.get_permalink($post_item['ID']).'">'.$post_item['post_title'].'</a></h3>'; $html .= '<div class="event__meta"><ul>'; $html .= '<li><a href="'.get_permalink($post_item['ID']).'"><i class="ico__box"><img src="'.get_template_directory_uri().'/inc/assets/images/calendar-ico-gray.svg" alt="" /></i>'.get_the_date('', $post_item['ID']).'</a></li>'; $html .= '<li><a href="'. get_permalink($post_item['ID']) .'"><i class="ico__box"><img src="'.get_template_directory_uri().'/inc/assets/images/clock-gray-ico.svg" alt="" /></i>'.get_post_time('g:i a').'</a></li>'; $html .= '</ul></div>'; $html .= '<p>'.get_the_excerpt($post_item['ID']).'</p>'; $html .= '<div class="btn__wrapp"><a href="'.get_permalink($post_item['ID']).'">Read More<i class="ico__box"><img src="'.get_template_directory_uri().'/inc/assets/images/arrow-long.svg" alt="" /></i></a></div>'; $html .= '</div>'; $html .= '<div class="image__box"><a href="'.get_permalink($post_item['ID']).'"><img src="'.get_template_directory_uri().'/inc/assets/images/banner-bg-1.jpg" alt="" /></a></div>'; $html .= '</div>'; continue; } ?> <div class="event__card"> <div class="event__content__wrapp"> <div class="event__category"> <h4><a href="<?php echo !empty($home_field_content['events_url']) ? $home_field_content['events_url']:'#';?> "> <?php echo $home_field_content['events_title'];?></a></h4> </div> <h3><a href="<?php echo get_permalink($post_item['ID']) ?>"><?php echo $post_item['post_title'];?></a> </h3> <div class="event__meta"> <ul> <li><a href="<?php echo get_permalink($post_item['ID']) ?>"><i class="ico__box"><img src="<?php echo get_template_directory_uri();?>/inc/assets/images/calendar-ico-gray.svg" alt="" /></i><?php echo get_the_date('', $post_item['ID']);?></a></li> <li><a href="<?php echo get_permalink($post_item['ID']) ?>"><i class="ico__box"><img src="<?php echo get_template_directory_uri();?>/inc/assets/images/clock-gray-ico.svg" alt="" /> </i><?php echo get_post_time('g:i a');?></a></li> </ul> </div> <p><?php echo get_the_excerpt($post_item['ID']);?></p> <div class="btn__wrapp"><a href="<?php echo get_permalink($post_item['ID']) ?>"><?php echo __('Read More', 'incforce-theme');?><i class="ico__box"><img src="<?php echo get_template_directory_uri();?>/inc/assets/images/arrow-long.svg" alt="" /></i></a></div> </div> <div class="image__box"> <a href="<?php echo get_permalink($post_item['ID']) ?>"><?php echo get_the_post_thumbnail($post_item['ID']);?></a> </div> </div> <?php $flag++; endforeach; ?> </div> <div class="col-xl-5 col-lg-5"><?php echo $html;?></div> </div> </div> </div>
[-] join-today-content-section.php
[edit]
[-] content-none.php
[edit]
[+]
..
[-] common-video-gallery-section.php
[edit]
[-] offering-workspace-service-section.php
[edit]
[-] home-event-section.php
[edit]
[-] home-banner-section-old.php
[edit]
[-] about-service-details-section.php
[edit]
[-] home-offering-section.php
[edit]
[-] common-price-plans-section.php
[edit]
[-] common-amazing-partners-section.php
[edit]
[-] contact-form-section.php
[edit]
[-] inner-banner-section.php
[edit]
[-] home-banner-section.php
[edit]
[-] content-search.php
[edit]
[-] content-page.php
[edit]
[-] home-designed-by-women-section.php
[edit]
[-] common-news-letter-section.php
[edit]
[-] content-notitle.php
[edit]
[-] content.php
[edit]
[-] book-tour-section.php
[edit]