Custom language switcher flag in WPML WordPress

Working with WPML multilingual plugin to setup multi language site in wordpress and looking for setup custom language switcher at specific location in your page than following code become helpful for you.