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