# notifier/3.0.2/templates/buttons/btn-custom-image.php

WANotifier for Forms and Actions, version 3.0.2. 23 lines.

- Page: https://pluginprobe.com/plugins/notifier/3.0.2/code/templates/buttons/btn-custom-image.php
- Raw: https://pluginprobe.com/plugins/notifier/3.0.2/raw/templates/buttons/btn-custom-image.php
- Modified: 2023-02-03T17:03:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/notifier/3.0.2/code/templates/buttons/btn-custom-image.php#L10-L20`.

```php
<?php
/**
 * Button View: Click to Chat Custom image Button.
 *
 * @package Notifier
 */

$whatsapp_number = get_option('notifier_ctc_whatsapp_number');
$ctc_greeting_text = get_option('notifier_ctc_greeting_text');
$ctc_greeting_text = wp_encode_emoji($ctc_greeting_text);
$url = 'https://wa.me/'.urlencode($whatsapp_number).'?text='.urlencode($ctc_greeting_text);

$ctc_custom_button_image_url  = get_option('notifier_ctc_custom_button_image_url');
if(!empty($ctc_custom_button_image_url)){
	?>
	<div class="notifier-click-to-chat-btn notifier-click-to-chat-style-custom">
		<a href="<?php echo esc_url($url); ?>" target="_blank">
			<img src="<?php echo $ctc_custom_button_image_url; ?>" alt="Whatsapp">
		</a>
	</div>
	<?php
}

```
