[functions_navigation] Updated logic of smart_footer_nav().