PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wilcity-shortcodes
/
default-sc
<?php use \WilokeListingTools\Framework\Helpers\GetSettings; add_shortcode('wilcity_sidebar_woocommerce_booking', 'wilcitySidebarWooCommerceBookingForm'); function wilcitySidebarWooCommerceBookingForm($aArgs) { global $post; if (!class_exists('WC_Bookings')) { return ''; } $aArgs['atts'] = isset($aArgs['atts']) ? \WILCITY_SC\SCHelpers::decodeAtts($aArgs['atts']) : [ 'name' => '', 'icon' => '' ]; $aArgs = shortcode_atts( [ 'name' => isset($aArgs['name']) ? $aArgs['name'] : $aArgs['atts']['name'], 'atts' => [ 'name' => '', 'icon' => 'la la-shopping-cart', 'postID' => '' ], 'product_id' => '' ], $aArgs ); $aAtts = $aArgs['atts']; if (empty($aAtts['postID'])) { $aAtts['postID'] = $post->ID; } if (!empty($aArgs['product_id'])) { $productID = $aArgs['product_id']; } else { $productID = GetSettings::getPostMeta($post->ID, 'my_room'); } if (empty($productID)) { return ''; } if (isset($aAtts['isMobile'])) { return apply_filters('wilcity/mobile/woocommerce-booking', '', $productID, $aAtts); } if (!empty($aArgs['product_id'])) { $id = apply_filters('wilcity/filter/booking/id-prefix', '', $aArgs); $classes = apply_filters('wilcity/filter/booking/classes-prefix', '', $aArgs); $content = apply_filters('wilcity/filter/booking/content-classes', 'content-box_body__3tSRB', $aArgs);; } else { $id = apply_filters('wilcity/filter/id-prefix', 'wilcity-sidebar-woobooking'); $classes = apply_filters('wilcity/filter/class-prefix', 'wilcity-sidebar-item-woobooking'); $content = "content-box_body__3tSRB"; } ob_start(); ?> <div id="<?php echo esc_attr($id); ?>" class="<?php echo esc_attr($classes); ?> content-box_module__333d9"> <?php wilcityRenderSidebarHeader($aArgs['name'], $aAtts['icon']); ?> <div class="<?php echo esc_attr($content); ?>"> <?php echo do_shortcode('[product_page id='.$productID.']'); ?> </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]