Skip to content

Instantly share code, notes, and snippets.

@aslamahamed13
Created December 7, 2018 15:29
Show Gist options
  • Save aslamahamed13/f77d6c6ccb41a88d0b67a54ad0509e72 to your computer and use it in GitHub Desktop.
Save aslamahamed13/f77d6c6ccb41a88d0b67a54ad0509e72 to your computer and use it in GitHub Desktop.
Electro - Footer call link
if ( ! function_exists( 'electro_footer_call_us' ) ) {
function electro_footer_call_us() {
$call_us_text = apply_filters( 'electro_call_us_text', __( 'Got Questions ? Call us 24/7!', 'electro' ) );
$call_us_number = apply_filters( 'electro_call_us_number', '(800) 8001-8588, (0600) 874 548' );
$call_us_icon = apply_filters( 'electro_call_us_icon' , 'ec ec-support' );
if ( apply_filters( 'electro_footer_call_us', true ) && ! empty( $call_us_number ) ) : ?>
<div class="footer-call-us">
<div class="media">
<span class="media-left call-us-icon media-middle"><i class="<?php echo esc_html( $call_us_icon ); ?>"></i></span>
<div class="media-body">
<span class="call-us-text"><?php echo esc_html( $call_us_text ); ?></span>
<span class="call-us-number"><?php echo wp_kses_post( $call_us_number ); ?></span>
</div>
</div>
</div>
<?php endif;
}
}
if ( ! function_exists( 'electro_footer_call_us_v2' ) ) {
function electro_footer_call_us_v2() {
$call_us_text = apply_filters( 'electro_call_us_text', __( 'Got Questions ? Call us 24/7!', 'electro' ) );
$call_us_number = apply_filters( 'electro_call_us_number', '(800) 8001-8588' );
if ( apply_filters( 'electro_footer_call_us', true ) && ! empty( $call_us_number ) ) : ?>
<div class="footer-call-us">
<span class="call-us-text"><?php echo esc_html( $call_us_text ); ?></span>
<span class="call-us-number"><?php echo wp_kses_post( $call_us_number ); ?></span>
</div>
<?php endif;
}
}
.handheld-footer .handheld-footer-bar .footer-call-us .call-us-number a,
.footer-call-us .call-us-number a {
color: #000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment