pls clarify
replace the ':' with ''.
or with
"
in that the . was end of your sentence...
so....
(strlen($gallery['images'][$i]['title']) > 0 ? ':' : '')
becomes
(strlen($gallery['images'][$i]['title']) > 0 ? '')
or
(strlen($gallery['images'][$i]['title']) > 0 ? " : '')
thanks