galeria type template conditionals