# dealfront/trunk/admin/views/settings.php

Leadfeeder, version trunk. 90 lines.

- Page: https://pluginprobe.com/plugins/dealfront/trunk/code/admin/views/settings.php
- Raw: https://pluginprobe.com/plugins/dealfront/trunk/raw/admin/views/settings.php
- Modified: 2026-04-23T15:14:12+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/dealfront/trunk/code/admin/views/settings.php#L10-L20`.

```php
<?php
// No direct access to this file
if (!defined('ABSPATH')) {
  exit;
}
?>

<?php if (isset($_GET['settings-updated'])): ?>
  <?php if (get_option('leadfeeder_tracker_id') == ''): ?>
    <div id="message" class="notice notice-warning is-dismissible">
      <p><strong>Leadfeeder script is disabled.</strong></p>
    </div>
  <?php else: ?>
    <div id="message" class="notice notice-success is-dismissible">
      <p>
        <strong>
          Leadfeeder tracker installed successfully. <a href="https://app.leadfeeder.com/l/install-tracker" target="_blank">Go to Leadfeeder</a>
        </strong>
      </p>
    </div>
  <?php endif; ?>
<?php endif; ?>

<!-- placeholder to display validation errors -->
<div id="dealfront-validation-errors" style="display: none;">
  <div id="message" class="notice notice-warning">
    <p id="message-text"></p>
  </div>
</div>

<div id="business-info-wrap" class="wrap">
  <div class="wp-header">
    <img src="<?php echo esc_url(plugins_url('../static/leadfeeder-logo.svg', __FILE__)); ?>" alt="Leadfeeder"
      class="dealfront-logo" />
    <div class="large-text-lf gutter-bottom">Turn page views into pipeline</div>
    <span>
      Identify anonymous companies visiting your website and automatically send them to your CRM for sales teams to
      convert.
    </span>
  </div>

  <form method="post" action="options.php" id="tracker-settings-form">
    <?php settings_fields('dealfront');
    do_settings_sections('dealfront'); ?>

    <div id="dealfront-form-area">
      <ol>
        <li>
          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.
        </li>
        <li>Enter the tracker ID below to start identifying companies visiting your website.</li>
      </ol>

      <table class="form-table">
        <tbody>
          <tr>
            <th scope="row">
              <label for="leadfeeder_tracker_id">
                Leadfeeder tracker ID
              </label>
            </th>

            <td>
              <input type="text" name="leadfeeder_tracker_id" id="leadfeeder_tracker_id"
                value="<?php echo esc_attr(get_option('leadfeeder_tracker_id')); ?>" />
              <p class="description" id="wp_leadfeeder_tracker_id_description">
                (Leave blank to disable)
              </p>
            </td>
          </tr>
        </tbody>

      </table>
    </div>

    <span>
      <?php submit_button("Save Changes", "primary", "submit", false); ?>
      <?php if (esc_attr(get_option('leadfeeder_tracker_id'))): ?>
        <a href="https://app.leadfeeder.com/l/install-tracker" target="_blank" class="dealfront-secondary-button">Go to Leadfeeder</a>
      <?php endif; ?>
    </span>

    <div class="large-gutter-bottom"></div>

    <div>
      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>
    </div>
  </form>
</div>

```
