__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Yoast\WP\SEO\Presenters;
/**
* Presenter class for the URL list.
*/
class Url_List_Presenter extends Abstract_Presenter {
/**
* If the url should be target blank.
*
* @var bool
*/
private $target_blank;
/**
* A list of arrays containing titles and URLs.
*
* @var array
*/
private $links;
/**
* Classname for the URL list.
*
* @var string
*/
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.
* @param bool $target_blank If the url should be target blank.
*/
public function __construct( $links, $class_name = 'yoast-url-list', $target_blank = false ) {
$this->links = $links;
$this->class_name = $class_name;
$this->target_blank = $target_blank;
}
/**
* Presents the URL list.
*
* @return string The URL list.
*/
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="' . $link['permalink'] . '">' . $link['title'] . '</a></li>';
}
$output .= '</ul>';
return $output;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| admin | Folder | 0775 |
|
|
| debug | Folder | 0775 |
|
|
| open-graph | Folder | 0775 |
|
|
| slack | Folder | 0775 |
|
|
| Folder | 0775 |
|
||
| webmaster | Folder | 0775 |
|
|
| abstract-indexable-presenter.php | File | 1.55 KB | 0775 |
|
| abstract-indexable-tag-presenter.php | File | 1.75 KB | 0775 |
|
| abstract-presenter.php | File | 377 B | 0775 |
|
| breadcrumbs-presenter.php | File | 7.54 KB | 0775 |
|
| canonical-presenter.php | File | 1.12 KB | 0775 |
|
| meta-author-presenter.php | File | 1.34 KB | 0775 |
|
| meta-description-presenter.php | File | 1.84 KB | 0775 |
|
| rel-next-presenter.php | File | 1.63 KB | 0775 |
|
| rel-prev-presenter.php | File | 1.69 KB | 0775 |
|
| robots-presenter.php | File | 711 B | 0775 |
|
| robots-txt-presenter.php | File | 4.18 KB | 0775 |
|
| schema-presenter.php | File | 1.45 KB | 0775 |
|
| score-icon-presenter.php | File | 944 B | 0775 |
|
| title-presenter.php | File | 1.72 KB | 0775 |
|
| url-list-presenter.php | File | 1.27 KB | 0775 |
|