Yoast\WP\SEO\Presenters\Admin

Alert_Presenter::present()publicYoast 1.0

Presents the Alert.

Метод класса: Alert_Presenter{}

Хуков нет.

Возвращает

Строку. The styled Alert.

Использование

$Alert_Presenter = new Alert_Presenter();
$Alert_Presenter->present();

Код Alert_Presenter::present() Yoast 22.4

public function present() {
	$icon_file = 'images/alert-' . $this->type . '-icon.svg';

	$out  = '<div class="yoast-alert yoast-alert--' . $this->type . '">';
	$out .= '<span>';
	$out .= '<img class="yoast-alert__icon" src="' . \esc_url( \plugin_dir_url( \WPSEO_FILE ) . $icon_file ) . '" alt="" />';
	$out .= '</span>';

	$out .= '<span>' . $this->content . '</span>';
	$out .= '</div>';

	return $out;
}