How to define template directory in this widget code

You can use get_template_directory_uri() and it will return the url up to the template directory then you can just append the '/images/FILENAME.EXT' to it to pull in the image.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)