provider . '-' . $module->gallery_index . '-' . $photo->id;
}
/**
* {@inheritDoc}
*/
public function get_video_markup(Photo $photo, Base $module, string $indent): string {
$ret = '';
if (!empty($photo->video)) {
$video_id = $this->get_video_id($photo, $module);
$width = !empty($photo->main_size) ? ('width="' . $photo->main_size['w'] . '"') : '';
$height = !empty($photo->main_size) ? ('height="' . $photo->main_size['h'] . '"') : '';
$poster = !empty($photo->main_image) ? ('poster="' . $photo->main_image . '"') : '';
$ret .= $indent . "\t\t" . '
' . "\n";
$ret .= $indent . "\t\t\t" . '' . "\n";
$ret .= $indent . "\t\t" . '
' . "\n";
}
return $ret;
}
/**
* {@inheritDoc}
*/
public function get_grid_link(Photo $photo, array $short_code, Base $module): string { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter
if (!empty($photo->video)) {
return esc_attr('#photonic-video-' . $this->get_video_id($photo, $module));
}
else {
return esc_url($photo->main_image);
}
}
}