PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wilcity-shortcodes
/
core
<?php use WilokeListingTools\Framework\Helpers\GetSettings; use WILCITY_SC\ParseShortcodeAtts\ParseShortcodeAtts; function wilcity_render_term_masonry_item($oTerm, $aAtts) { $termFeaturedImg = GetSettings::getTermFeaturedImg($oTerm, $aAtts['image_size']); $aGradients = GetSettings::getTermGradients($oTerm); $oParseAtts = new ParseShortcodeAtts($aAtts); $totalChildren = $oParseAtts->countPostsInTerm($oTerm); if ($totalChildren < 1) { $i18 = esc_html__('0 Listing', 'wilcity-shortcodes'); } else { $i18 = sprintf( _n('%s Listing', '%s Listings', $totalChildren, 'wilcity-shortcodes'), $totalChildren ); } ?> <div class="col-sm-4 col-md-4 col-lg-4 grid-item wil-term-masonry-<?php echo esc_attr($oTerm->term_id); ?>"> <div class="textbox-5_module__2btEX"> <a href="<?php echo $oParseAtts->parseTermLink($oTerm); ?>"> <div class="textbox-5_background__1Spwa bg-cover" style="background-image: url(<?php echo esc_url($termFeaturedImg); ?>)"> <img src="<?php echo esc_url($termFeaturedImg); ?>" alt="<?php echo esc_attr($oTerm->name); ?>"/> </div> <div class="textbox-5_content__1o8k9"> <h3 class="textbox-5_title__3ClXm"><?php echo esc_attr($oTerm->name); ?></h3> <div class="textbox-5_description__1xY46"><?php echo $i18; ?></div> </div> <?php if (!empty($aGradients)): ?> <div class="gradient-color" style="background-image: linear-gradient(to top, <?php echo esc_attr($aGradients['left']); ?> 5%, <?php echo esc_attr($aGradients['right']); ?> 100%);"></div> <?php endif; ?> </a> </div> </div> <?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]