<?php if(osc_item_contact_phone()) { ?>
<?php
$phone = osc_item_contact_phone(); // Get phone number.
$phone = str_replace(' ', '', $phone); // Remove spaces in phone number.
$phone = implode(' ', str_split($phone, 2)); // Split phone in two-digit groups.
?>
<div>
<button class="display-phone"><?php _e('Click to display the number', 'bender'); ?></button>
<p style="display: none" class="hidden-phone">
<img src="<?php echo osc_current_web_theme_url('images/tel.png') ; ?>" style="float:left; margin-right:4px; margin-top:0px;">
<?php echo $phone; ?>
</p>
<script>
$(".display-phone").click(function () {
$(".hidden-phone").show("slow");
$(this).hide();
});
</script>
</div>
<?php } ?>
Regards.