mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
57 lines
1.2 KiB
PHP
57 lines
1.2 KiB
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Friendica\Event;
|
|
|
|
/**
|
|
* Allow Event listener to modify HTML.
|
|
*
|
|
* @internal
|
|
*/
|
|
final class HtmlFilterEvent extends Event
|
|
{
|
|
public const HEAD = 'friendica.html.head';
|
|
|
|
public const FOOTER = 'friendica.html.footer';
|
|
|
|
public const PAGE_HEADER = 'friendica.html.page_header';
|
|
|
|
public const PAGE_CONTENT_TOP = 'friendica.html.page_content_top';
|
|
|
|
public const PAGE_END = 'friendica.html.page_end';
|
|
|
|
public const MOD_HOME_CONTENT = 'friendica.html.mod_home_content';
|
|
|
|
public const MOD_ABOUT_CONTENT = 'friendica.html.mod_about_content';
|
|
|
|
public const MOD_PROFILE_CONTENT = 'friendica.html.mod_profile_content';
|
|
|
|
public const JOT_TOOL = 'friendica.html.jot_tool';
|
|
|
|
public const CONTACT_BLOCK_END = 'friendica.html.contact_block_end';
|
|
|
|
private string $html;
|
|
|
|
public function __construct(string $name, string $html)
|
|
{
|
|
parent::__construct($name);
|
|
|
|
$this->html = $html;
|
|
}
|
|
|
|
public function getHtml(): string
|
|
{
|
|
return $this->html;
|
|
}
|
|
|
|
public function setHtml(string $html): void
|
|
{
|
|
$this->html = $html;
|
|
}
|
|
}
|