[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package s9e\TextFormatter 5 * @copyright Copyright (c) 2010-2022 The s9e authors 6 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 7 */ 8 namespace s9e\TextFormatter\Configurator\Bundles; 9 10 use DOMDocument; 11 use s9e\TextFormatter\Configurator; 12 use s9e\TextFormatter\Configurator\Bundle; 13 14 class MediaPack extends Bundle 15 { 16 /** 17 * {@inheritdoc} 18 */ 19 public function configure(Configurator $configurator) 20 { 21 if (!isset($configurator->MediaEmbed)) 22 { 23 // Only create BBCodes if the BBCodes plugin is already loaded 24 $pluginOptions = ['createMediaBBCode' => isset($configurator->BBCodes)]; 25 26 $configurator->plugins->load('MediaEmbed', $pluginOptions); 27 } 28 29 foreach ($configurator->MediaEmbed->defaultSites as $siteId => $siteConfig) 30 { 31 $configurator->MediaEmbed->add($siteId); 32 } 33 } 34 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |