getOptions($options, $cfg['DefaultTransformations']['TextImageLink']); $url = $options[0] . $buffer; /* Do not allow javascript links */ if (! Sanitize::checkLink($url, true, true)) { return htmlspecialchars($url); } $template = new Template(); return $template->render('plugins/text_image_link_transformations', [ 'url' => $url, 'width' => (int) $options[1], 'height' => (int) $options[2], 'buffer' => $buffer, ]); } /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ /** * Gets the transformation name of the specific plugin * * @return string */ public static function getName() { return 'Image Link'; } }