/** * Check if ColorizeIt is available */ public function has_colorizeit($force_update = false) { if ($force_update || $this->clr_sample === false) { // get sample id from database $attachment = new titania_attachment(TITANIA_CLR_SCREENSHOT, $this->contrib_id); $this->clr_sample = $attachment->get_preview(); } return is_array($this->clr_sample) && strlen($this->contrib_clr_colors) > 0; }