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

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

Flash.php

Zuletzt modifiziert: 02.04.2025, 15:04 - Dateigröße: 1.56 KiB


01  <?php
02   
03  /**
04  * @package   s9e\TextFormatter
05  * @copyright Copyright (c) 2010-2022 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   
10  use s9e\TextFormatter\Plugins\MediaEmbed\Configurator\TemplateGenerator;
11   
12  class Flash extends TemplateGenerator
13  {
14      /**
15      * {@inheritdoc}
16      *
17      * @link http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#the-object-element
18      * @link http://helpx.adobe.com/flash/kb/pass-variables-swfs-flashvars.html
19      */
20      protected function getContentTemplate()
21      {
22          $attributes = [
23              'data'          => $this->attributes['src'],
24              'style'         => $this->attributes['style'],
25              'type'          => 'application/x-shockwave-flash',
26              'typemustmatch' => ''
27          ];
28   
29          $flashVarsParam = '';
30          if (isset($this->attributes['flashvars']))
31          {
32              $flashVarsParam = $this->generateParamElement('flashvars', $this->attributes['flashvars']);
33          }
34   
35          $template = '<object>'
36                    . $this->generateAttributes($attributes)
37                    . $this->generateParamElement('allowfullscreen', 'true')
38                    . $flashVarsParam
39                    . '</object>';
40   
41          return $template;
42      }
43   
44      /**
45      * Generate a param element to be used inside of an object element
46      *
47      * @param  string $paramName
48      * @param  string $paramValue
49      * @return string
50      */
51      protected function generateParamElement($paramName, $paramValue)
52      {
53          return '<param name="' . htmlspecialchars($paramName) . '">' . $this->generateAttributes(['value' => $paramValue]) . '</param>';
54      }
55  }