PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wilcity-shortcodes
/
core
<?php use WilokeListingTools\Framework\Helpers\GetSettings; use WILCITY_SC\SCHelpers; use WILCITY_SC\ParseShortcodeAtts\ParseShortcodeAtts; function wilcity_render_modern_term_box($oTerm, $taxonomy, $aAtts = []) { $leftBg = GetSettings::getTermMeta($oTerm->term_id, 'left_gradient_bg'); $rightBg = GetSettings::getTermMeta($oTerm->term_id, 'right_gradient_bg'); $tiltedDegrees = GetSettings::getTermMeta($oTerm->term_id, 'gradient_tilted_degrees'); $leftBg = empty($leftBg) ? '#006bf7' : $leftBg; $rightBg = empty($rightBg) ? '#f06292' : $rightBg; $tiltedDegrees = empty($tiltedDegrees) ? 45 : $tiltedDegrees; $oParseAtts = new ParseShortcodeAtts($aAtts); $totalChildren = $oParseAtts->countPostsInTerm($oTerm); if ($totalChildren === 0) { $i18 = esc_html__('0 Listing', 'wilcity-shortcodes'); } else { $i18 = sprintf( _n('%s Listing', '%s Listings', $totalChildren, 'wilcity-shortcodes'), number_format_i18n($totalChildren) ); } ?> <div class="<?php echo esc_attr($aAtts['column_classes']); ?>"> <div class="image-box_module__G53mA"> <a href="<?php echo esc_url($oParseAtts->parseTermLink($oTerm)); ?>"> <header class="image-box_header__1bT-m"> <?php if (!empty($leftBg) && !empty($rightBg)) : ?> <div class="wil-overlay" style="background-image: linear-gradient(<?php echo esc_attr($tiltedDegrees); ?>deg, <?php echo esc_attr($leftBg) ?> 0%, <?php echo esc_attr($rightBg) ?> 100%)"></div> <?php endif; ?> <?php SCHelpers::renderLazyLoad(WilokeHelpers::getTermFeaturedImage($oTerm, $aAtts['image_size']), [ 'divClass' => 'image-box_img__mh3A- bg-cover', 'imgClass' => 'hidden', 'alt' => $oTerm->name ]); ?> </header> <div class="image-box_body__Je8Uw"> <h2 class="image-box_title__1PnHo"><?php echo esc_html($oTerm->name); ?></h2><span class="image-box_text__1K_bA"><i class="la la-edit color-primary"></i> <?php echo esc_html($i18); ?> </span> </div> <?php $aPostFeaturedImgs = $oParseAtts->getPostsInTerm($oTerm); if (!empty($aPostFeaturedImgs)) : ?> <div class="image-box_right__17b8t"> <?php if ($totalChildren > 4) : ?> <div class="image-box_item__3T3KI"> <span class="image-box_count__2ILGP bg-color-primary">+<?php echo esc_attr($totalChildren); ?></span> </div> <?php endif; ?> <?php foreach ($aPostFeaturedImgs as $featuredImg) : ?> <div class="image-box_item__3T3KI"> <div class="image-box_logo__3NG5m bg-cover" style="background-image: url(<?php echo esc_url($featuredImg); ?>)"></div> </div> <?php endforeach; ?> </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]