get_gallery_images for the corresponding platform. * * @package Photonic_Plugin\Components */ class Single_Photo implements Printable { public string $src = ''; public string $href = ''; public string $title = ''; public string $caption = ''; /** * Single_Photo constructor. * * @param string $src * @param string $href * @param string $title * @param string $caption */ public function __construct(string $src, string $href, string $title, string $caption) { $this->src = $src; $this->href = $href; $this->title = $title; $this->caption = $caption; } public function html(Base $module, ?Core_Layout $layout, bool $print = false): string { $ret = $layout->generate_single_photo_markup($this, $module); if ($print) { echo wp_kses($ret, Photonic::$safe_tags); } return wp_kses($ret, Photonic::$safe_tags); } }