+ Reply to Thread
Results 1 to 8 of 8

Thread: Search tabs code

  1. #1

    Search tabs code

    Where can I find the code for the search tabs?

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    What exactly you need to do ?

    and what code: php or html ?

  3. #3
    Php, because I would like to assign a icon for the search tabs.
    Can you help me to assign a icon per tab?
    If search tab is "Патнички" show a icon instead of "Патнички".

  4. #4
    I've managed to do this as a test through Inspect (see the attach) but I want to do it now in the code
    Attached Images Attached Images

  5. #5
    I assume it's in /templates/rmk/tpl/controllers/search.tpl ?
    This code has to be edited:
    <!-- tabs -->
    <ul class="tabs tabs-hash">
    {if $search_forms|@count > 0}
    {foreach from=$search_forms item='search_form' key='sf_key' name='sformsF'}
    {assign var='tab_phrase' value='listing_types+name+'|cat:$listing_types[$sf_key].Key}
    <li {if $smarty.foreach.sformsF.first}class="{if $smarty.foreach.sformsF.first && !$keyword_search}active{/if}"{/if} id="tab_{$sf_key|replace:'_':''}">
    <a href="#{$sf_key}" data-target="{$sf_key|replace:'_':''}">{$lang[$tab_phrase]}</a>
    </li>
    {/foreach}
    {/if}
    {assign var='ks_phrase' value='blocks+name+keyword_search'}
    <li {if $keyword_search || !$search_forms}class="active"{/if} id="tab_keyword">
    <a href="#keyword" data-target="keyword">{$lang.$ks_phrase}</a>
    </li>
    </ul>
    <!-- tabs end -->

  6. #6
    Anyone that could help for the code?

  7. #7
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    This file is horizontal_search.tpl from /blocks

    you should replace {$search_form.name} at the top:

    with the following code:
    Code:
    Only registered members can view the code.

    Last edited by Rudi; May 30, 2019 at 06:12 PM.

  8. #8
    Rudi thank you very much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!

+ Reply to Thread