rep__enquiry_link_html()

This function is used to generate an HTML link for making an inquiry, typically associated with a specific listing state or category.

Namespace

REP_Malcolm

Parameters

$type

string

Listing state or category to get related search categories from the given search categories

$text

string

Search categories

$classes

string

Classes to add to the link

Return

string

Enquiry link HTML

Source

File: \includes\rep-helper-functions.php

function rep__enquiry_link_html( $type, $text="Enquire now", $classes="" ){

    $type = strtolower( $type );

    $enquiry_form = lp__get_field_value( REP__PREFIX."_{$type}_enquiry_form", "option" );

    return $enquiry_form ? lp__link_html("javascript:;", $text, ["data-lp-modal-open" => "rep-{$type}-enquiry", "class" => "rep-enquiry rep-enquiry-{$type} {$classes}"]) : "";

}