Yoast\WP\SEO\Schema_Templates\Assets

Icons::heroicons_location_marker()public staticYoast 1.0

Устарела с версии 20.5. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

The Heroicons location marker svg icon

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

Хуков нет.

Возвращает

Строку.

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

$result = Icons::heroicons_location_marker( $size );
$size(int)
The Height and Width of the SVG icon.
По умолчанию: self::SIZE_DEFAULT

Список изменений

Устарела с 20.5

Код Icons::heroicons_location_marker() Yoast 22.3

public static function heroicons_location_marker( $size = self::SIZE_DEFAULT ) {
	\_deprecated_function( __METHOD__, 'Yoast SEO 20.5' );
	return self::svg(
		"<path stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z' />"
		. "<path stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z' />",
		$size
	);
}