is_page() not working with archives?

You can use is_page( $tpl->ID ) || is_single( $tlp->ID ) which will cover posts, pages and custom post types.

For the archive link, use is_post_type_archive( $post_type ). If you need it highlighted for single posts of the same type, add || is_singular( $post_type )

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