Last active
March 7, 2021 10:17
-
-
Save farookibrahim/abaef2cfd0bd43d151577401d18e08f2 to your computer and use it in GitHub Desktop.
Electro - Header compare/wishlist tooltip text change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( ! function_exists( 'electro_compare_header_icon' ) ) { | |
/** | |
* @since 2.0 | |
*/ | |
function electro_compare_header_icon() { | |
if( function_exists( 'electro_get_compare_page_url' ) ) : | |
global $yith_woocompare; | |
$header_tooltip_placement = apply_filters( 'electro_header_tooltip_placement', 'bottom' ); | |
?><div class="header-icon" <?php if ( $header_tooltip_placement ) : ?>data-toggle="tooltip" data-placement="<?php echo esc_attr( $header_tooltip_placement ); ?>" data-title="<?php echo esc_attr( esc_html__( 'Compare', 'electro' ) ); ?>"<?php endif; ?>> | |
<a href="<?php echo esc_attr( electro_get_compare_page_url() ); ?>"> | |
<i class="<?php echo esc_attr( apply_filters( 'electro_compare_icon', 'ec ec-compare' ) ); ?>"></i> | |
<?php if ( apply_filters( 'electro_show_compare_count', false ) ) : ?> | |
<span class="navbar-compare-count count header-icon-counter" class="value"><?php echo count( $yith_woocompare->obj->products_list ); ?></span> | |
<?php endif; ?> | |
</a> | |
</div><?php | |
endif; | |
} | |
} | |
if ( ! function_exists( 'electro_wishlist_header_icon' ) ) { | |
/** | |
* @since 2.0 | |
*/ | |
function electro_wishlist_header_icon() { | |
if ( function_exists( 'electro_get_wishlist_url' ) ) : | |
$header_tooltip_placement = apply_filters( 'electro_header_tooltip_placement', 'bottom' ); | |
?><div class="header-icon" <?php if ( $header_tooltip_placement ): ?>data-toggle="tooltip" data-placement="<?php echo esc_attr( $header_tooltip_placement ); ?>" data-title="<?php echo esc_attr( esc_html__( 'Wishlist', 'electro' ) ); ?>"<?php endif; ?>> | |
<a href="<?php echo esc_attr( electro_get_wishlist_url() ); ?>"> | |
<i class="<?php echo esc_attr( apply_filters( 'electro_wishlist_icon', 'ec ec-favorites' ) ); ?>"></i> | |
<?php if ( apply_filters( 'electro_show_wishlist_count', false ) ) : ?> | |
<span class="navbar-wishlist-count count header-icon-counter" class="value"><?php echo yith_wcwl_count_products(); ?></span> | |
<?php endif; ?> | |
</a> | |
</div><?php | |
endif; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment