ファンクション
wcexwl_get_wishlist_gp_info_section()
業務パック情報セクションHTMLを返す
戻り値 戻り値
ファイル: src/template-functions.php
function wcexwl_get_wishlist_gp_info_section() { $gpalt = __('Business package discount', 'usces'); $gptext = __('The price with this mark applys to Business pack discount.', 'usces'); $gpgif = file_exists(get_template_directory() . '/images/gp.gif') ? get_template_directory_uri() . '/images/gp.gif' : USCES_PLUGIN_URL . '/images/gp.gif'; ob_start(); ?> <div class="wcexwl gp-info flex row-wrap ai-center jc-center mt-05rem mb-05rem mr-05rem"> <img class="wcexwl ml-05rem mb-05rem" src="<?php echo $gpgif; ?>" alt="<?php echo $gpalt; ?>" /> <span class="wcexwl ml-05rem mb-05rem"><?php echo $gptext; ?></span> </div> <?php $html = (string)ob_get_clean(); /** * Filters the HTML of the business package section displayed on the wishlist page * * @important * @param string $html * @param string $gpalt Business package title text * @param string $gptext Business package description text * @param string $gpgif Business package icon GIF */ $html = apply_filters('wcexwl_filter_wlpage_gp_info_section', $html, $gpalt, $gptext, $gpgif); return $html; }