$this->attributes['src'], 'style' => $this->attributes['style'], 'type' => 'application/x-shockwave-flash', 'typemustmatch' => '' ]; $flashVarsParam = ''; if (isset($this->attributes['flashvars'])) $flashVarsParam = $this->generateParamElement('flashvars', $this->attributes['flashvars']); $template = '' . $this->generateAttributes($attributes) . $this->generateParamElement('allowfullscreen', 'true') . $flashVarsParam . ''; return $template; } protected function generateParamElement($paramName, $paramValue) { return '' . $this->generateAttributes(['value' => $paramValue]) . ''; } }