classes)); $style = ''; if (!empty($this->styles)) { $styles = array_map( function (string $key, string $value): string { return $key . ': ' . $value; }, array_keys($this->styles), array_values($this->styles) ); $style = "style='" . implode('; ', $styles) . "'"; } $data_pieces = array_map( function (string $key, string $value): string { return $key . '="' . $value . '"'; }, array_keys($this->data), array_values($this->data) ); $data_attributes = implode(' ', $data_pieces); $id = ''; if (!empty($this->id)) { $id = "id='" . esc_attr($this->id) . "'"; } $ret = "{$this->indent}\t
\n"; $ret .= $this->video_markup; $ret .= $this->anchor->html($module, $layout); $ret .= $this->prompter_markup; $ret .= $this->indent . "\t
\n"; if ($print) { echo wp_kses($ret, Photonic::$safe_tags); } return wp_kses($ret, Photonic::$safe_tags); } }