| 1 |
<?php |
| 2 |
// No direct access to this file |
| 3 |
if (!defined('ABSPATH')) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
?> |
| 7 |
|
| 8 |
<?php if (isset($_GET['settings-updated'])): ?> |
| 9 |
<?php if (get_option('leadfeeder_tracker_id') == ''): ?> |
| 10 |
<div id="message" class="notice notice-warning is-dismissible"> |
| 11 |
<p><strong>Leadfeeder script is disabled.</strong></p> |
| 12 |
</div> |
| 13 |
<?php else: ?> |
| 14 |
<div id="message" class="notice notice-success is-dismissible"> |
| 15 |
<p> |
| 16 |
<strong> |
| 17 |
Leadfeeder tracker installed successfully. <a href="https://app.leadfeeder.com/l/install-tracker" target="_blank">Go to Leadfeeder</a> |
| 18 |
</strong> |
| 19 |
</p> |
| 20 |
</div> |
| 21 |
<?php endif; ?> |
| 22 |
<?php endif; ?> |
| 23 |
|
| 24 |
<!-- placeholder to display validation errors --> |
| 25 |
<div id="dealfront-validation-errors" style="display: none;"> |
| 26 |
<div id="message" class="notice notice-warning"> |
| 27 |
<p id="message-text"></p> |
| 28 |
</div> |
| 29 |
</div> |
| 30 |
|
| 31 |
<div id="business-info-wrap" class="wrap"> |
| 32 |
<div class="wp-header"> |
| 33 |
<img src="<?php echo esc_url(plugins_url('../static/leadfeeder-logo.svg', __FILE__)); ?>" alt="Leadfeeder" |
| 34 |
class="dealfront-logo" /> |
| 35 |
<div class="large-text-lf gutter-bottom">Turn page views into pipeline</div> |
| 36 |
<span> |
| 37 |
Identify anonymous companies visiting your website and automatically send them to your CRM for sales teams to |
| 38 |
convert. |
| 39 |
</span> |
| 40 |
</div> |
| 41 |
|
| 42 |
<form method="post" action="options.php" id="tracker-settings-form"> |
| 43 |
<?php settings_fields('dealfront'); |
| 44 |
do_settings_sections('dealfront'); ?> |
| 45 |
|
| 46 |
<div id="dealfront-form-area"> |
| 47 |
<ol> |
| 48 |
<li> |
| 49 |
Visit the <a href="https://app.leadfeeder.com/l/install-tracker" target="_blank">website tracker settings in Leadfeeder</a> to find your unique tracker ID. |
| 50 |
</li> |
| 51 |
<li>Enter the tracker ID below to start identifying companies visiting your website.</li> |
| 52 |
</ol> |
| 53 |
|
| 54 |
<table class="form-table"> |
| 55 |
<tbody> |
| 56 |
<tr> |
| 57 |
<th scope="row"> |
| 58 |
<label for="leadfeeder_tracker_id"> |
| 59 |
Leadfeeder tracker ID |
| 60 |
</label> |
| 61 |
</th> |
| 62 |
|
| 63 |
<td> |
| 64 |
<input type="text" name="leadfeeder_tracker_id" id="leadfeeder_tracker_id" |
| 65 |
value="<?php echo esc_attr(get_option('leadfeeder_tracker_id')); ?>" /> |
| 66 |
<p class="description" id="wp_leadfeeder_tracker_id_description"> |
| 67 |
(Leave blank to disable) |
| 68 |
</p> |
| 69 |
</td> |
| 70 |
</tr> |
| 71 |
</tbody> |
| 72 |
|
| 73 |
</table> |
| 74 |
</div> |
| 75 |
|
| 76 |
<span> |
| 77 |
<?php submit_button("Save Changes", "primary", "submit", false); ?> |
| 78 |
<?php if (esc_attr(get_option('leadfeeder_tracker_id'))): ?> |
| 79 |
<a href="https://app.leadfeeder.com/l/install-tracker" target="_blank" class="dealfront-secondary-button">Go to Leadfeeder</a> |
| 80 |
<?php endif; ?> |
| 81 |
</span> |
| 82 |
|
| 83 |
<div class="large-gutter-bottom"></div> |
| 84 |
|
| 85 |
<div> |
| 86 |
Facing issues? <a href="https://help.leadfeeder.com/en/articles/3749362-installing-the-leadfeeder-tracker-on-a-wordpress-website" target="_blank">Visit our help center</a> |
| 87 |
</div> |
| 88 |
</form> |
| 89 |
</div> |
| 90 |
|