#5399 bugfix Removing $_sThisAltTemplate and rendering it if it is search engine, as rendering simple basket template is fine and nofollow is added on its link. Also some typos fixed and deprecated methods changed to new ones. (cherry picked from commit 398308a)