Verzeichnisstruktur phpBB-3.3.16


Veröffentlicht
27.04.2026

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.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

      (Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

Fatdown.php

Zuletzt modifiziert: 01.05.2026, 11:28 - Dateigröße: 2.75 KiB


 001  <?php
 002   
 003  /**
 004  * @package   s9e\TextFormatter
 005  * @copyright Copyright (c) 2010-2022 The s9e authors
 006  * @license   http://www.opensource.org/licenses/mit-license.php The MIT License
 007  */
 008  namespace s9e\TextFormatter\Configurator\Bundles;
 009   
 010  use s9e\TextFormatter\Configurator;
 011  use s9e\TextFormatter\Configurator\Bundle;
 012   
 013  class Fatdown extends Bundle
 014  {
 015      /**
 016      * {@inheritdoc}
 017      */
 018      public function configure(Configurator $configurator)
 019      {
 020          $configurator->urlConfig->allowScheme('ftp');
 021          $configurator->urlConfig->allowScheme('mailto');
 022   
 023          $configurator->Litedown->decodeHtmlEntities = true;
 024          $configurator->Autoemail;
 025          $configurator->Autolink;
 026          $configurator->Escaper;
 027          $configurator->FancyPants;
 028          $configurator->HTMLComments;
 029          $configurator->HTMLEntities;
 030          $configurator->PipeTables;
 031          $configurator->TaskLists;
 032   
 033          $htmlAliases = [
 034              'a'      => ['URL', 'href' => 'url'],
 035              'hr'     => 'HR',
 036              'em'     => 'EM',
 037              's'      => 'S',
 038              'strong' => 'STRONG',
 039              'sup'    => 'SUP'
 040          ];
 041          foreach ($htmlAliases as $elName => $alias)
 042          {
 043              if (is_array($alias))
 044              {
 045                  $configurator->HTMLElements->aliasElement($elName, $alias[0]);
 046                  unset($alias[0]);
 047   
 048                  foreach ($alias as $attrName => $alias)
 049                  {
 050                      $configurator->HTMLElements->aliasAttribute($elName, $attrName, $alias);
 051                  }
 052              }
 053              else
 054              {
 055                  $configurator->HTMLElements->aliasElement($elName, $alias);
 056              }
 057          }
 058   
 059          $htmlElements = [
 060              'abbr' => ['title'],
 061              'b',
 062              'br',
 063              'code',
 064              'dd',
 065              'del',
 066              'div' => ['class'],
 067              'dl',
 068              'dt',
 069              'i',
 070              'img' => ['alt', 'height', 'src', 'title', 'width'],
 071              'ins',
 072              'li',
 073              'ol',
 074              'pre',
 075              'rb',
 076              'rp',
 077              'rt',
 078              'rtc',
 079              'ruby',
 080              'span' => ['class'],
 081              'strong',
 082              'sub',
 083              'sup',
 084              'table',
 085              'tbody',
 086              'td' => ['colspan', 'rowspan'],
 087              'tfoot',
 088              'th' => ['colspan', 'rowspan', 'scope'],
 089              'thead',
 090              'tr',
 091              'u',
 092              'ul'
 093          ];
 094          foreach ($htmlElements as $k => $v)
 095          {
 096              if (is_numeric($k))
 097              {
 098                  $elName    = $v;
 099                  $attrNames = [];
 100              }
 101              else
 102              {
 103                  $elName    = $k;
 104                  $attrNames = $v;
 105              }
 106   
 107              $configurator->HTMLElements->allowElement($elName);
 108              foreach ($attrNames as $attrName)
 109              {
 110                  $configurator->HTMLElements->allowAttribute($elName, $attrName);
 111              }
 112          }
 113   
 114          $configurator->tags['html:dd']->rules->createParagraphs(false);
 115          $configurator->tags['html:dt']->rules->createParagraphs(false);
 116          $configurator->tags['html:td']->rules->createParagraphs(false);
 117          $configurator->tags['html:th']->rules->createParagraphs(false);
 118   
 119          $configurator->plugins->load('MediaEmbed', ['createMediaBBCode' => false]);
 120          $sites = [
 121              'bandcamp',
 122              'dailymotion',
 123              'facebook',
 124              'liveleak',
 125              'soundcloud',
 126              'spotify',
 127              'twitch',
 128              'vimeo',
 129              'vine',
 130              'youtube'
 131          ];
 132          foreach ($sites as $site)
 133          {
 134              $configurator->MediaEmbed->add($site);
 135          }
 136      }
 137  }