File tree Expand file tree Collapse file tree 5 files changed +6
-122
lines changed
Expand file tree Collapse file tree 5 files changed +6
-122
lines changed Original file line number Diff line number Diff line change 2424 // Modifies Tab active status
2525 if ( source == "sidebar" ) {
2626 $ ( '.ma-tabs li a[href="' + tab + '"]' ) . parent ( 'li' ) . addClass ( 'active' ) ;
27+ $ ( obj ) . parent ( 'li' ) . addClass ( 'current' ) ;
2728 } else {
2829 var url = tab == "#general" ? 'admin.php?page=mighty-addons-home' : 'admin.php?page=mighty-addons-home' + tab ;
2930 $ ( '#toplevel_page_mighty-addons-home .wp-submenu li a[href="' + url + '"]' ) . parent ( 'li' ) . addClass ( 'current' ) ;
3334 }
3435
3536 // Tabs Setting
36- $ ( '.ma-tabs li:first -child' ) . addClass ( 'active' ) ;
37+ $ ( '.ma-tabs li:last -child' ) . addClass ( 'active' ) ;
3738 $ ( '.ma-tabs-content' ) . hide ( ) ;
3839 $ ( '.ma-tabs-content:first' ) . show ( ) ;
3940
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11<ul class =" ma-tabs" >
2- <li <?php echo $ page == " home " ? ' class="active" ' : '' ; ?> > <a href="#general "><span>General </span></a></li>
3- <li <?php echo $ page == " widgets " ? ' class="active" ' : '' ; ?> > <a href="#widgets "><span>Widgets </span></a></li>
4- <li <?php echo $ page == " extensions " ? ' class="active" ' : '' ; ?> > <a href="#extensions "><span>Extensions </span></a></li>
5- <li <?php echo $ page == " go-pro " ? ' class="active" ' : '' ; ?> > <a href="#go-pro "><span>Go Pro 🔥 </span></a></li>
2+ <li > <a href = " #widgets " ><span >Widgets </span ></a ></li >
3+ <li > <a href = " #extensions " ><span >Extensions </span ></a ></li >
4+ <li > <a href = " #go-pro " ><span >Go Pro 🔥 </span ></a ></li >
5+ <li > <a href = " #general " ><span >Boring Stuff </span ></a ></li >
66 </ul >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments