The following code is inside a .php file and works; however, I do not know how I can replace the TEXT with a bloginfo('template_directory') to an internal image file. I've search the forums but I cannot find a way to get this to work. Is there an easier way?
if ( $colors && in_array('green', $colors) ) {
echo '<div class="asdsf">' . "TEXT" . '</div>';
}