PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wilcity-shortcodes
/
default-sc
<?php use WilokeListingTools\Framework\Helpers\GetWilokeSubmission; use WilokeListingTools\Frontend\PriceRange; use WilokeListingTools\Framework\Helpers\GetSettings; add_shortcode('wilcity_sidebar_single_price', 'wilcitySidebarSinglePrice'); function wilcitySidebarSinglePrice($aArgs) { global $post; if (!GetSettings::isPlanAvailableInListing($post->ID, 'toggle_single_price')) { return ''; } $aAtts = \WILCITY_SC\SCHelpers::decodeAtts($aArgs['atts']); $aAtts = wp_parse_args( $aAtts, [ 'name' => esc_html__('Single Price', WILOKE_LISTING_DOMAIN), 'icon' => 'la la-qq', 'currencyIcon' => apply_filters('wilcity/price-range/icon', 'la la-dollar') ] ); $symbol = GetWilokeSubmission::getSymbol(GetWilokeSubmission::getField('currency_code')); $symbol = apply_filters('wilcity/price-range/currencySymbol', $symbol); if (!$symbol) { return ''; } $price = GetSettings::getPostMeta($post->ID, 'single_price'); if (empty($price)) { return ''; } if (isset($aAtts['isMobile'])) { return apply_filters('wilcity/mobile/sidebar/single_price', json_encode([ 'price' => floatval($price), 'currencySymbol' => $symbol, 'currencyPos' => GetWilokeSubmission::getField('currency_position') ]), $aAtts); } ob_start(); ?> <div class="<?php echo esc_attr(apply_filters('wilcity/filter/class-prefix', 'wilcity-sidebar-item-single-price content-box_module__333d9')); ?>"> <?php wilcityRenderSidebarHeader($aAtts['name'], $aAtts['icon']); ?> <div class="content-box_body__3tSRB"> <div class="price-range_module__348HY clearfix"> <div class="price-range_sign__3thLa"><i class="<?php echo esc_attr($symbol); ?>"></i></div> <div class="price-range_group__23kMb"> <div class="price-range_range__19Fut color-primary"> <div class="price-range_from__3iV-6"> <sup class="price-range_supSig__1pMDY <?php echo esc_attr($symbol); ?>"> <?php echo esc_attr($symbol); ?> </sup> <?php echo esc_html($price); ?> </div> </div> </div> </div> </div> </div> <?php $content = ob_get_contents(); ob_end_clean(); return $content; }
[+]
..
[-] wilcity-sidebar-single-price.php
[edit]
[-] wilcity-sidebar-list.php
[edit]
[-] wilcity-sidebar-business-hours.php
[edit]
[-] wilcity-header-slider.php
[edit]
[-] wilcity-author-profile.php
[edit]
[-] wilcity-sidebar-bookingcombannercreator.php
[edit]
[-] wilcity-sidebar-grid.php
[edit]
[-] wilcity-sidebar-categories.php
[edit]
[-] wilcity-sidebar-woocommerce-booking.php
[edit]
[-] wilcity-sidebar-slider.php
[edit]
[-] wilcity-thankyou-addlisting-pending.php
[edit]
[-] wilcity-gallery.php
[edit]
[-] wilcity-list-features.php
[edit]
[-] wilcity-group-properties.php
[edit]
[-] wilcity-sidebar-coupon.php
[edit]
[-] wilcity-listing-social-networks.php
[edit]
[-] wilcity-sidebar-header.php
[edit]
[-] wilcity-sidebar-taxonomy.php
[edit]
[-] wilcity-sidebar-statistics.php
[edit]
[-] wilcity-thankyou-promotion.php
[edit]
[-] wilcity-googlemap.php
[edit]
[-] wilcity-sidebar-terms-box.php
[edit]
[-] wilcity-sidebar-custom.php
[edit]
[-] wilcity-sharing-posts.php
[edit]
[-] wilcity-get-coupon.php
[edit]
[-] wilcity-google-adsense-in-article.php
[edit]
[-] wilcity-google-adsense.php
[edit]
[-] wilcity-sidebar-business-info.php
[edit]
[-] wilcity-pricing.php
[edit]
[-] wilcity-sidebar-price-range.php
[edit]
[-] wilcity-sidebar-related-listings.php
[edit]
[-] wilcity-sidebar-claim.php
[edit]
[-] wilcity-sidebar-my-products.php
[edit]
[-] wilcity-custom-login.php
[edit]
[-] wilcity-my-bank-account.php
[edit]
[-] wilcity-render-box-icon1.php
[edit]
[-] wilcity-sidebar-tags.php
[edit]
[-] wilcity-sidebar-google-adsense.php
[edit]
[-] wilcity-thankyou-addlisting-approved.php
[edit]