File "woof_show_btn.php"
Full Path: /home/vantageo/public_html/cache/cache/cache/cache/cache/.wp-cli/wp-content/plugins/woocommerce-products-filter/views/shortcodes/woof_show_btn.php
File size: 845 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
if (!defined('ABSPATH'))
die('No direct access allowed');
$btn_url = '';
if (isset($img_url) && $img_url) {
$btn_url = $img_url;
}
$style = '';
if ($btn_url != 'none' && $btn_url) {
$style = "background-image: url('" . sanitize_file_name($btn_url) . "');";
} elseif ($btn_url == 'none') {
$style = "background-image: none ;";
}
//***
$woof_auto_hide_button_txt = '';
if (isset(woof()->settings['woof_auto_hide_button_txt'])) {
$woof_auto_hide_button_txt = WOOF_HELPER::wpml_translate(null, woof()->settings['woof_auto_hide_button_txt']);
}
?>
<a href="javascript:void(0);" <?php if ($style): ?> style="<?php esc_attr_e($style) ?>"<?php endif; ?> class="woof_show_auto_form woof_btn <?php if ($btn_url == 'none') esc_attr_e('woof_show_auto_form_txt'); ?>">
<?php esc_html_e($woof_auto_hide_button_txt) ?>
</a>