Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
Configurator.php
01 <?php
02
03 /**
04 * @package s9e\TextFormatter
05 * @copyright Copyright (c) 2010-2022 The s9e authors
06 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
07 */
08 namespace s9e\TextFormatter\Plugins\HTMLComments;
09
10 use s9e\TextFormatter\Plugins\ConfiguratorBase;
11
12 class Configurator extends ConfiguratorBase
13 {
14 /**
15 * @var string Name of the attribute used by this plugin
16 */
17 protected $attrName = 'content';
18
19 /**
20 * {@inheritdoc}
21 */
22 protected $quickMatch = '<!--';
23
24 /**
25 * @var string Regexp that matches comments
26 */
27 protected $regexp = '/<!--(?!\\[if).*?-->/is';
28
29 /**
30 * @var string Name of the tag used by this plugin
31 */
32 protected $tagName = 'HC';
33
34 /**
35 * {@inheritdoc}
36 */
37 protected function setUp()
38 {
39 $tag = $this->configurator->tags->add($this->tagName);
40 $tag->attributes->add($this->attrName);
41 $tag->rules->ignoreTags();
42 $tag->template = '<xsl:comment><xsl:value-of select="@' . htmlspecialchars($this->attrName) . '"/></xsl:comment>';
43 }
44 }