Yoast\WP\SEO\Presenters
Url_List_Presenter::present
Presents the URL list.
Метод класса: Url_List_Presenter{}
Хуков нет.
Возвращает
string. The URL list.
Использование
$Url_List_Presenter = new Url_List_Presenter(); $Url_List_Presenter->present();
Код Url_List_Presenter::present() Url List Presenter::present Yoast 28.4
public function present() {
$output = '<ul class="' . $this->class_name . '">';
foreach ( $this->links as $link ) {
$output .= '<li><a';
if ( $this->target_blank ) {
$output .= ' target = "_blank"';
}
$output .= ' href="' . \esc_url( $link['permalink'] ) . '">' . \esc_html( $link['title'] ) . '</a></li>';
}
$output .= '</ul>';
return $output;
}