Renders video
@return string the resulting tag
760216
public function renderVideo()
    {
        $iframe = \CHtml::openTag(
            'iframe',
            array(
                'height'          => $this->height,
                'width'           => $this->width,
                'src'             => $this->source,
                'allowfullscreen' => $this->allowFullScreen ? 'allowfullscreen' : null,
                'frameborder'     => 0,
            )
        );
        $iframe .= \CHtml::closeTag('iframe');
        return \CHtml::tag('div', $this->htmlOptions, $iframe);
    }
1082552
public function getTagAttribute()
    {
        // Require sources and for the encoding to be complete
        if (!$sources = $this->getOutputsValue()) {
            return;
        }

        // Start the tag
        $tag = HtmlElement::video();
        $tag->value('Your browser does not support the video tag. You should <a href="http://whatbrowser.org/">consider updating</a>.');

        // Loop through the outputs and add them as sources
        $types = ['mp4', 'webm', 'ogg', 'playlist'];
        foreach ($sources as $type => $src) {

            // Only allow basic output types
            if (!in_array($type, $types)) {
                continue;
            }

            // Make the source
            $source = HtmlElement::source()->src($src);
            if ($type == 'playlist') {
                $source->type('application/x-mpegurl');
            } else {
                $source->type('video/'.$type);
            }

            // Add a source to the video tag
            $tag->appendChild($source);
        }

        // Return the tag
        return $tag;
    }
578726
public function render()
    {
        $plugin = $this->getPlugin();

        $template =
            '<object type="application/x-shockwave-flash" data="%s" width="%d" height="%d">' .
            '<param name="movie" value="%1$s" />' .
            '<param name="quality" value="high" />' .
            '<param name="wmode" value="opaque" />' .
            '</object>';

        $swf = $plugin->getDataURL() . $this->data['image'];
        $width = $this->data['width'];
        $height = $this->data['height'];

        $html = sprintf($template, $swf, $width, $height);

        if (!empty($this->data['url']))
        {
            $page = Eresus_Kernel::app()->getPage();
            $page->linkStyles($plugin->getCodeURL() . 'main.css');

            $template =
                '<div class="banners-swf-container">' .
                '<div class="banners-swf-overlay">' .
                '<a href="%1$s"%2$s><img src="%4$s" alt="" width="%5$d" height="%6$d" /></a>' .
                '</div>' .
                '%3$s' .
                '</div>';

            $Eresus = Eresus_CMS::getLegacyKernel();
            $url = $Eresus->request['path'] . '?banners-click=' . $this->data['id'];
            $target = $this->data['target'] ? '' : ' target="_blank"';
            $stubImage = $Eresus->root . 'style/dot.gif';

            $html = sprintf($template, $url, $target, $html, $stubImage, $width, $height);
        }

        return $html;
    }
593985
public function render()
    {
        if ($this->isVoid) {
            return $this->renderTag();
        }

        $content = '';

        if ($this->hasChildren()) {
            $content = $this->renderChildren();
        }

        if ('append' === $this->contentConcat) {
            $content .= $this->getContent();
        } else {
            $content = $this->getContent() . $content;
        }

        return $this->renderTag($content);
    }
987076
public function renderImage()
    {
        $html = Html::img($this->image);
        if ($this->renderTitle) {
            $html .= $this->renderTitle();
        }
        return Html::tag(
            'div',
            $html,
            ['class' => 'card-image']
        );
    }
53689
public function render()
    {
        //====================================================================//
        // Commit Last Created if not already done
        if (!empty($this->new)) {
            $this->commit();
        }
        //====================================================================//
        // Safety Checks
        if (empty($this->blocks)) {
            return Splash::log()->err("ErrBlocksNoList");
        }
        //====================================================================//
        // Return fields List
        $buffer = $this->blocks;
        $this->blocks = array();

        return $buffer;
    }
495380
public function render()
    {
        $element = $this->arguments['element'];

        if ($this->doEdit && $this->getBackendUser()->recordEditAccessInternals('tt_content', $element)) {
            $urlParameters = [
                'edit' => [
                    'tt_content' => [
                        $element['uid'] => 'edit'
                    ]
                ],
                'returnUrl' => GeneralUtility::getIndpEnv('REQUEST_URI')
            ];
            $uri = BackendUtility::getModuleUrl('record_edit', $urlParameters);

            $this->tag->addAttribute('href', $uri);
        }

        $this->tag->setContent($this->renderChildren());
        $this->tag->forceClosingTag(true);

        return $this->tag->render();
    }
529484
public function render() {
		$result = \HTML::wizard([
			'type' => $this->options['wizard']['type'] ?? null,
			'step' => $this->options['input']['__wizard_step'] ?? null,
			'options' => $this->options['wizard']['options'] ?? []
		]);
		if (!empty($result)) {
			$result.= \HTML::hr();
		}
		return $result;
	}
1169320
public function renderContent()
    {
        if ($this->renderTitle) {
            $this->encodeContent = false;
        }
        if ($this->image === null) {
            $title = $this->renderTitle();
        } else {
            $title = '';
        }
        return Html::tag(
            'div',
            $this->encodeContent ? Html::encode($title . $this->content) : $title . $this->content,
            ['class' => 'card-content']
        );
    }
1122123
public function render()
    {
        $oConfig = $this->getConfig();
        $iShopId = $oConfig->getConfigParam('blMediaLibraryMultiShopCapability') ? $oConfig->getActiveShop()->getShopId() : null;

        $this->_aViewData['aFiles'] = $this->_getFiles(0, $iShopId);
        $this->_aViewData['iFileCount'] = $this->_getFileCount($iShopId);
        $this->_aViewData['sResourceUrl'] = $this->_oMedia->getMediaUrl();
        $this->_aViewData['sThumbsUrl'] = $this->_oMedia->getThumbnailUrl();

        return parent::render();
    }
68117
public function render() : string
    {
        if ($this->isVoid) {
            return $this->renderOpeningTag();
        }

        return $this->renderOpeningTag() . $this->content . $this->renderClosingTag();
    }
735225
public function render()
    {
        $html = '';
        $i = 0;
        foreach ($this->blocks() as $block) {
            if ($this->_blockLimit !== null && $i === $this->_blockLimit) {
                break;
            }
            $html .= $block->render($this->_View);
            $i++;
        }

        return $html;
    }
1224919
public function render()
    {
        $diff = '';
        $opCodes = $this->diff->getGroupedOpcodes();
        foreach ($opCodes as $group) {
            $diff .= "***************\n";
            $lastItem = count($group) - 1;
            $i1 = $group[0][1];
            $i2 = $group[$lastItem][2];
            $j1 = $group[0][3];
            $j2 = $group[$lastItem][4];

            if ($i2 - $i1 >= 2) {
                $diff .= '*** ' . ($group[0][1] + 1) . ',' . $i2 . " ****\n";
            } else {
                $diff .= '*** ' . $i2 . " ****\n";
            }

            if ($j2 - $j1 >= 2) {
                $separator = '--- ' . ($j1 + 1) . ',' . $j2 . " ----\n";
            } else {
                $separator = '--- ' . $j2 . " ----\n";
            }

            $hasVisible = false;
            foreach ($group as $code) {
                if ($code[0] == 'replace' || $code[0] == 'delete') {
                    $hasVisible = true;
                    break;
                }
            }

            if ($hasVisible) {
                foreach ($group as $code) {
                    list($tag, $i1, $i2, $j1, $j2) = $code;
                    if ($tag == 'insert') {
                        continue;
                    }
                    $diff .= $this->tagMap[$tag] . ' ' . implode("\n" . $this->tagMap[$tag] . ' ',
                            $this->diff->GetA($i1, $i2)) . "\n";
                }
            }

            $hasVisible = false;
            foreach ($group as $code) {
                if ($code[0] == 'replace' || $code[0] == 'insert') {
                    $hasVisible = true;
                    break;
                }
            }

            $diff .= $separator;

            if ($hasVisible) {
                foreach ($group as $code) {
                    list($tag, $i1, $i2, $j1, $j2) = $code;
                    if ($tag == 'delete') {
                        continue;
                    }
                    $diff .= $this->tagMap[$tag] . ' ' . implode("\n" . $this->tagMap[$tag] . ' ',
                            $this->diff->GetB($j1, $j2)) . "\n";
                }
            }
        }
        return $diff;
    }
757390
public function render() {
		
		$buffer = ''; 
		
		if ( !empty( $this->header ) ) {
			
			$buffer .= '<tr'.HTML::attr( $this->header[1] ).'>';
			foreach( $this->header[0] as $head ) {
				$head->name = 'th';
				$buffer .= $head->render();
			}
			$buffer .= '</tr>';
			foreach( $this->data as $row ) {
				$buffer .= '<tr'.HTML::attr( $row[1] ).'>';
				foreach( $this->header[0] as $key => $value ) {
					$buffer .= HTML::tag( 'td', $row[0][$key]->value, $row[0][$key]->attr );
				}
				$buffer .= '</tr>';
			}
		}
		else {
			foreach( $this->data as $row ) {
				$buffer .= '<tr'.HTML::attr( $row[1] ).'>';
				foreach( $row[0] as $value ) {
					$buffer .= $value->render();
				}
				$buffer .= '</tr>';
			}
		}
		
		$this->element->value = $buffer;
		
		return $this->element->render();
	}
412601
@Override public void render() {
    Video video = getContent();
    renderThumbnail(video);
    renderTitle(video);
    renderMarker(video);
    renderLabel();
  }
457526
public function render()
    {
        $output[] = $this->open();

        if ($this->hasChildNodes()) {
            $output[] = implode(PHP_EOL, $this->childNodes->getArrayCopy());
        }

        if ($this->hasTextContent()) {
            $output[] = implode('', $this->textContent->getArrayCopy());
        }

        $output[] = $this->close();

        return implode(PHP_EOL, $output);
    }
1253994
public function run()
    {
        //return Html::tag($this->tagName, $this->encodeLabel ? Html::encode($this->label) : $this->label, $this->options);
        $html = '';
        if ($this->image !== null) {
            $html .= $this->renderImage();
        }
        if ($this->content !== null) {
            $html .= $this->renderContent();
        }
        if ($this->action !== null) {
            $html .= $this->renderAction();
        }
        if ($this->defaultClass) {
            Html::addCssClass($this->options, $this->defaultClass);
        }
        return Html::tag('div', $html, $this->options);
    }