Skip to content

FRS Lead Pages

Version: 1.4.0 Repository: derintolu/frs-lead-pages

Lead generation landing page builder with multi-step wizards. Create Open House, Customer Spotlight, and Event pages with LO/Partner co-branding support.

Features

Implemented

FeatureDescription
Open House WizardCreate property open house landing pages
Customer Spotlight WizardTestimonial/case study pages
Special Event WizardEvent promotion pages
Mortgage Calculator WizardCalculator landing pages
Rate Quote WizardRate quote request pages
Apply Now WizardLoan application landing pages
Bi-Directional ModeLO creates solo or co-branded; Partner selects LO
Partner SelectionCo-branding between LOs and Partners

URLs

URLPurpose
/marketing/lead-pages/Main Lead Pages dashboard
/generation-station/Lead Pages wizard page

Wizards

All wizards render modal containers via wp_footer on every frontend page.

WizardShortcodeTrigger ClassTheme
Open House[open_house_wizard_button]oh-wizard-triggerTeal
Customer Spotlight[customer_spotlight_wizard_button]cs-wizard-triggerBlue
Special Event[special_event_wizard_button]se-wizard-triggerAmber
Mortgage Calculator[mortgage_calculator_wizard_button]mc-wizard-triggerBlue
Rate Quote[rate_quote_wizard_button]rq-wizard-triggerEmerald
Apply Now[apply_now_wizard_button]an-wizard-triggerIndigo

User Modes

The plugin supports bi-directional mode detection for different user types:

ModeConstantBehavior
Loan OfficerMODE_LOAN_OFFICERSolo page or co-branded with Partner
PartnerMODE_PARTNERMust select LO partner (required)
AdminMODE_ADMINCan act as either via ?mode= param

Mode Detection

php
use FRSLeadPages\Core\UserMode;

// Get current mode
$mode = UserMode::get_mode();

// Check specific mode
if (UserMode::is_loan_officer()) {
    // Show solo/co-branded options
}

if (UserMode::is_partner()) {
    // Show LO selection (required)
}

Admin Mode Override

Administrators can test either mode via URL parameter:

  • ?mode=lo or ?mode=loan_officer → LO mode
  • ?mode=partner → Partner mode

Dependencies

  • frs-wp-users - User profile data, NMLS lookup

NMLS Lookup

The plugin provides a helper function to get user NMLS from multiple sources:

php
// Gets NMLS from (in priority order):
// 1. FRS Profiles table (frs-wp-users)
// 2. Linked person post meta
// 3. User meta fallback
$nmls = frs_get_user_nmls($user_id);

File Structure

frs-lead-pages/
├── frs-lead-pages.php          # Main plugin file
├── includes/
│   ├── Core/
│   │   ├── UserMode.php        # LO vs Partner mode detection
│   │   ├── Realtors.php        # Fetch partner list for LOs
│   │   └── LoanOfficers.php    # Fetch LO list for Partners
│   ├── OpenHouse/Wizard.php
│   ├── CustomerSpotlight/Wizard.php
│   ├── SpecialEvent/Wizard.php
│   ├── MortgageCalculator/Wizard.php
│   ├── RateQuote/Wizard.php
│   └── ApplyNow/Wizard.php

Hub21 Platform Documentation