HEX
Server: Apache
System: Linux p3plzcpnl507418.prod.phx3.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User: retoti4c1e1s (10075650)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/link-factory/includes/class-footer.php
<?php
/**
 * Footer renderer.
 *
 * @package LinkFactory
 */

namespace LinkFactory;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Footer {

	/**
	 * @var Repository
	 */
	private $repository;

	public function __construct( Repository $repository ) {
		$this->repository = $repository;
	}

	public function render() {
		$sentences = is_front_page()
			? $this->repository->find_all()
			: $this->repository->find_sitewide();
		if ( empty( $sentences ) ) {
			return;
		}

		echo '<div class="link-factory-sentences" aria-hidden="true" style="position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;">';
		foreach ( $sentences as $sentence ) {
			echo '<div>' . $sentence['html'] . '</div>';
		}
		echo '</div>';
	}
}