data), array_values($this->data) ); $data_attributes = implode(' ', $data_pieces); // includes target='_blank', if needed $classes = esc_attr(implode(' ', $this->classes)); $rel = ''; if (!empty($this->rel)) { $rel = "rel='" . esc_attr(implode(' ', $this->rel)) . "'"; } $id = ''; if (!empty($this->id)) { $id = "id='" . esc_attr($this->id) . "'"; } $ret = "{$this->indent}\t\t\n"; $ret .= $this->indent . "\t\t\t" . $this->image->html($module, $layout) . "\n"; if (!empty($this->figcaption)) { $ret .= $this->indent . "\t\t\t" . $this->figcaption . "\n"; } $ret .= "{$this->indent}\t\t\n"; if ($print) { echo wp_kses($ret, Photonic::$safe_tags); } return wp_kses($ret, Photonic::$safe_tags); } }