easypropertylistings / Easy-Property-Listings

Easy Property Listings is ready to make your real estate website faster, safer and better!
GNU General Public License v2.0
78 stars 60 forks source link

3.5 - Enhance tabs and accordion to be able to pass the default tab in the html #1041

Closed mervb closed 1 year ago

mervb commented 1 year ago

Currently the JS applies the class epl_ui_tab_menu_current to the first tab, However I i want to have 3 options and set the second as the curent both the firtst and second options become current

https://github.com/easypropertylistings/Easy-Property-Listings/blob/master/lib/assets/js/epl.js

eg the html has two: epl_ui_tab_menu_current

<ul class="epl_ui_tab_menu_wrapper epl_ui_tab_menu_wrapper_horizontal">
    <li class="epl_ui_tab_menu epl_ui_tab_menu_current">
        <a class="epl-tab-item epl-tab-item--manage" href="#manage-tab">Manage</a>
    </li>
    <li class="epl_ui_tab_menu epl_ui_tab_menu_current"><a class=" epl-tab-item--buy" href="#buy-tab">Buy</a></li>
    <li class="epl_ui_tab_menu"><a class=" epl-tab-item--sell" href="#sell-tab">Sell</a></li>
    <li class="epl_ui_tab_menu"><a class=" epl-tab-item--rent" href="#rent-tab">Rent</a></li>
</ul>

CleanShot 2023-02-28 at 18 08 17@2x

mervb commented 1 year ago

Apply similar to the accordion JS

prince5ingh commented 1 year ago

done here : https://github.com/easypropertylistings/Easy-Property-Listings/commit/4495083b1dad52904da4a65acf0461b1baed9943

mervb commented 1 year ago

Already added in 3.4.47