{literal} {/literal}
{$data.domain}
{$data.message}
{if $data.available == 1}
{if $smarty.post.show_price == "1"}{$data.price}{/if} {if $smarty.post.show_years == "1"}{$data.duration}{/if}
{if $data.order_button_text != ""} {$data.order_button_text} {$data.hidden_form} {/if} {else} {if $smarty.post.enable_transfer_link|lower eq "yes"} {$data.params.transfer_text} {$data.hidden_form} {/if} {if $smarty.post.www_link|lower != "no"} {$data.params.www_text} {/if} {if $smarty.post.whois_link|lower != "no"} {$data.params.whois_text} {/if} {/if}

{$data.recommended_domains_text}

{foreach from=$domains item=domain} {/foreach} {$load_more}
{*
{$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------------*}