' . $source . ''; } return apply_filters( 'isc_overlay_html_source', $source, $image_id ); } /** * Add pre-text * * @param string $source Source string. * @return string */ public static function add_prefix( $source ) { $options = self::get_options(); if ( empty( $options['source_pretext'] ) ) { return $source; } return $options['source_pretext'] . ' ' . $source; } /** * Check if the caption has a style in general * * @return bool */ public static function has_caption_style(): bool { $style = self::get_options()['caption_style']; return $style !== 'none'; } }