{$data|@var_dump}
{$domains|@var_dump}
{$smarty.post|@print_r}
*}
{*------------Notes------------
Short-code:
=========
Template in folder ajax are used to display result part of ajax domain search. These are used for ajax part of following short-codes
[domain_search_ajax]
[domain_search_ajax_results]
[domain_search_ajax_extended]
[domain_search_ajax_extended_results]
There are two templates.
first.html = used for first ajax results
more.html = used for results that come after "load more"
following place holders are available for both templates in all short-codes above
Place Holders:
=============
$data: Data array containing all details for searched domain with default tld.
Following Elements are used with $data array only
{$data.domain}: returns searched domain name with default tld.
{$data.message}: returns success of failure message set in whmpress settings
{$data.available}: returns a boolean value of "1" or "0" based on search result
{$data.order_button_text}: returns text value entered in short-code for "order button text".
{$data.recommended_domains_text}: returns recommended domains text set in whmpress settings
$domains: Domains array containing all details for searched domain results. Can be used in foreach loop
Following Elements are used with $domains array only
{foreach from=$domains item=domain}: example for usage of $domains array in foreach loop.
{$domain.domain}: returns searched domain name with tld.
{$domain.message}: returns success of failure message set in whmpress settings.
{$domain.price}: returns registration price for current tld in loop.
{$domain.duration}: returns duration of registration.
{$domain.order_url}: returns order url for each domain if domain is available.
{$domain.whois_link}: returns whois url for each domain if domain is not available.
{$load_more}: returns html for "Load More" button.
Example:
========
Template is example itself
Important:
==========
class="result-div" on results container is required for AJAX functionality.
------------End Notes------------*}