PATH:
home
/
letacommog
/
lescompagnons
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
presenters
<?php /** * Presenter class for the document title. * * @package Yoast\YoastSEO\Presenters */ namespace Yoast\WP\SEO\Presenters; /** * Class Url_List_Presenter */ class Url_List_Presenter extends Abstract_Presenter { /** * @var array A list of arrays containing titles and urls. */ private $links; /** * @var string Classname for the url list. */ private $class_name; /** * Url_List_Presenter constructor. * * @param array $links A list of arrays containing titles and urls. * @param string $class_name Classname for the url list. */ public function __construct( $links, $class_name = 'yoast-url-list' ) { $this->links = $links; $this->class_name = $class_name; } /** * @return string */ public function present() { $output = '<ul class="' . $this->class_name . '">'; foreach ( $this->links as $link ) { $output .= '<li><a href="' . $link['permalink'] . '">' . $link['title'] . '</a></li>'; } $output .= '</ul>'; return $output; } }
[+]
..
[-] abstract-indexable-tag-presenter.php
[edit]
[-] abstract-presenter.php
[edit]
[+]
webmaster
[+]
admin
[-] rel-next-presenter.php
[edit]
[-] breadcrumbs-presenter.php
[edit]
[+]
twitter
[-] rel-prev-presenter.php
[edit]
[-] canonical-presenter.php
[edit]
[+]
open-graph
[-] url-list-presenter.php
[edit]
[-] bingbot-presenter.php
[edit]
[-] robots-presenter.php
[edit]
[-] title-presenter.php
[edit]
[-] googlebot-presenter.php
[edit]
[-] abstract-indexable-presenter.php
[edit]
[-] meta-description-presenter.php
[edit]
[+]
debug
[-] schema-presenter.php
[edit]