PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wilcity-shortcodes
/
core
<?php use \WilokeListingTools\Framework\Helpers\GetSettings; function wilcity_render_grid_post($post){ $featuredImg = GetSettings::getBlogFeaturedImage($post->ID, apply_filters('wilcity/post-grid/size', 'medium')); $aMetaData = apply_filters('wilcity/post-grid/metadata', array( 'data' => array( 'icon' => 'la la-calendar', 'name' => 'date' ), 'category' => array( 'icon' => 'la la-list-alt', 'name' => 'category' ), 'comment' => array( 'icon' => 'la la-comments', 'name' => 'comment' ) )); $permalink = get_permalink($post->ID); ?> <article class="post_module__3uT9W post_grid__2xFvJ border-box"> <header class="post_header__2pWQ0"> <a href="<?php echo esc_url($permalink); ?>"> <div class="bg-cover" style="background-image: url(<?php echo esc_url($featuredImg); ?>);"><img class="d-none" src="<?php echo esc_url($featuredImg); ?>" alt="<?php echo esc_attr($post->post_title); ?>"></div> </a> </header> <div class="post_body__TYys6"> <h2 class="post_title__2Jnhn"><a href="<?php echo esc_url($permalink); ?>"><?php echo get_the_title($post->ID); ?></a></h2> <div class="post_metaData__3b_38 color-primary-meta"> <?php foreach ($aMetaData as $aMeta){ $val = \WILCITY_SC\SCHelpers::getPostMetaData($post, $aMeta['name']); if ( empty($val) ){ continue; } ?> <span><a href="<?php echo esc_url($permalink); ?>"><i class="<?php echo esc_attr($aMeta['icon']); ?>"></i> <?php echo $val; ?></a></span> <?php } ?> </div> </div> </article> <?php }
[+]
..
[-] wilcity_render_event_item.php
[edit]
[-] wilcity_render_team_intro_slider.php
[edit]
[-] wilcity_render_modern_term_boxes.php
[edit]
[-] wilcity_listing_slider_item.php
[edit]
[-] wilcity_render_author_slider.php
[edit]
[-] wilcity_render_term_box.php
[edit]
[-] wilcity_render_testimonial_item.php
[edit]
[-] wilcity_render_rectangle_term_boxes.php
[edit]
[-] wilcity_render_rectangle_term_box.php
[edit]
[-] wilcity_render_restaunrant_menu_item.php
[edit]
[-] wilcity_render_hero_search_form.php
[edit]
[-] wilcity_render_grid_post.php
[edit]
[-] wilcity_render_events_grid.php
[edit]
[-] wilcity_render_listings_tabs.php
[edit]
[-] wilcity_render_map.php
[edit]
[-] wilcity_render_modern_term_box.php
[edit]
[-] wilcity_render_contact_us.php
[edit]
[-] wilcity_render_hero.php
[edit]
[-] wilcity_render_restaurant_list_menu.php
[edit]
[-] wilcity_render_terms_slider.php
[edit]
[-] wilcity_terms_box.php
[edit]
[-] wilcity_render_image_box.php
[edit]
[-] wilcity_render_intro_box.php
[edit]
[-] wilcity_render_wiloke_wave.php
[edit]
[-] wilcity_render_restaurant_listing.php
[edit]
[-] wilcity_render_grid.php
[edit]
[-] wilcity_post_slider_item.php
[edit]
[-] wilcity_render_term_masonry_item.php
[edit]
[-] wilcity_render_slider.php
[edit]
[-] wilcity_render_team_intro_slider_item.php
[edit]
[-] wilcity_widget_list_style.php
[edit]
[-] wilcity_render_term_masonry_items.php
[edit]
[-] wilcity_render_grid_item.php
[edit]
[-] wilcity_render_box_icon.php
[edit]
[-] wilcity_render_new_grid.php
[edit]
[-] wilcity_render_heading_ribbon.php
[edit]
[-] wilcity_render_testimonials.php
[edit]
[-] wilcity_render_post_types.php
[edit]
[-] wilcity_event_slider_item.php
[edit]
[-] wilcity_render_heading.php
[edit]
[-] wilcity_render_term_boxes.php
[edit]
[-] wilcity_render_restaurant_listings.php
[edit]
[-] wilcity_render_full_width_list_item.php
[edit]