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 |
Flash.php
01 <?php
02
03 /*
04 * @package s9e\TextFormatter
05 * @copyright Copyright (c) 2010-2016 The s9e Authors
06 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
07 */
08 namespace s9e\TextFormatter\Plugins\MediaEmbed\Configurator\TemplateGenerators;
09 use s9e\TextFormatter\Plugins\MediaEmbed\Configurator\TemplateGenerator;
10 class Flash extends TemplateGenerator
11 {
12 protected function getContentTemplate()
13 {
14 $attributes = array(
15 'data' => $this->attributes['src'],
16 'style' => $this->attributes['style'],
17 'type' => 'application/x-shockwave-flash',
18 'typemustmatch' => ''
19 );
20 $flashVarsParam = '';
21 if (isset($this->attributes['flashvars']))
22 $flashVarsParam = $this->generateParamElement('flashvars', $this->attributes['flashvars']);
23 $template = '<object>'
24 . $this->generateAttributes($attributes)
25 . $this->generateParamElement('allowfullscreen', 'true')
26 . $flashVarsParam
27 . '</object>';
28 return $template;
29 }
30 protected function generateParamElement($paramName, $paramValue)
31 {
32 return '<param name="' . \htmlspecialchars($paramName) . '">' . $this->generateAttributes(array('value' => $paramValue)) . '</param>';
33 }
34 }