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 |
Forum.php
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 Forum extends Bundle
014 {
015 /**
016 * {@inheritdoc}
017 */
018 public function configure(Configurator $configurator)
019 {
020 $configurator->rootRules->enableAutoLineBreaks();
021
022 $configurator->BBCodes->addFromRepository('B');
023 $configurator->BBCodes->addFromRepository('CENTER');
024 $configurator->BBCodes->addFromRepository('CODE');
025 $configurator->BBCodes->addFromRepository('COLOR');
026 $configurator->BBCodes->addFromRepository('EMAIL');
027 $configurator->BBCodes->addFromRepository('FONT');
028 $configurator->BBCodes->addFromRepository('I');
029 $configurator->BBCodes->addFromRepository('IMG');
030 $configurator->BBCodes->addFromRepository('LIST');
031 $configurator->BBCodes->addFromRepository('*');
032 $configurator->BBCodes->add('LI');
033 $configurator->BBCodes->addFromRepository('OL');
034 $configurator->BBCodes->addFromRepository('QUOTE', 'default', [
035 'authorStr' => '<xsl:value-of select="@author"/> <xsl:value-of select="$L_WROTE"/>'
036 ]);
037 $configurator->BBCodes->addFromRepository('S');
038 $configurator->BBCodes->addFromRepository('SIZE');
039 $configurator->BBCodes->addFromRepository('SPOILER', 'default', [
040 'hideStr' => '{L_HIDE}',
041 'showStr' => '{L_SHOW}',
042 'spoilerStr' => '{L_SPOILER}',
043 ]);
044 $configurator->BBCodes->addFromRepository('TABLE');
045 $configurator->BBCodes->addFromRepository('TD');
046 $configurator->BBCodes->addFromRepository('TH');
047 $configurator->BBCodes->addFromRepository('TR');
048 $configurator->BBCodes->addFromRepository('U');
049 $configurator->BBCodes->addFromRepository('UL');
050 $configurator->BBCodes->addFromRepository('URL');
051
052 $configurator->rendering->parameters = [
053 'L_WROTE' => 'wrote:',
054 'L_HIDE' => 'Hide',
055 'L_SHOW' => 'Show',
056 'L_SPOILER' => 'Spoiler'
057 ];
058
059 $emoticons = [
060 ':)' => '1F642',
061 ':-)' => '1F642',
062 ';)' => '1F609',
063 ';-)' => '1F609',
064 ':D' => '1F600',
065 ':-D' => '1F600',
066 ':(' => '2639',
067 ':-(' => '2639',
068 ':-*' => '1F618',
069 ':P' => '1F61B',
070 ':-P' => '1F61B',
071 ':p' => '1F61B',
072 ':-p' => '1F61B',
073 ';P' => '1F61C',
074 ';-P' => '1F61C',
075 ';p' => '1F61C',
076 ';-p' => '1F61C',
077 ':?' => '1F615',
078 ':-?' => '1F615',
079 ':|' => '1F610',
080 ':-|' => '1F610',
081 ':o' => '1F62E',
082 ':lol:' => '1F602'
083 ];
084
085 foreach ($emoticons as $code => $hex)
086 {
087 $configurator->Emoji->aliases[$code] = html_entity_decode('&#x' . $hex . ';');
088 }
089
090 $sites = ['bandcamp', 'dailymotion', 'facebook', 'indiegogo', 'instagram', 'kickstarter', 'liveleak', 'soundcloud', 'twitch', 'twitter', 'vimeo', 'vine', 'wshh', 'youtube'];
091 foreach ($sites as $siteId)
092 {
093 $configurator->MediaEmbed->add($siteId);
094 $configurator->BBCodes->add($siteId, ['contentAttributes' => ['id', 'url']]);
095 }
096
097 $configurator->Autoemail;
098 $configurator->Autolink;
099 }
100 }