Create iframe.

@param string $src
@param string $class
@param string $id
@param array $attrs
@return string
353662
public function render($src, $class = '', $id = '', array $attrs = array())
    {
        $attrs = array_merge(array(
            'frameborder' => 0,
            'content'     => null,
            'tag'         => 'iframe',
            'src'         => Str::trim($src)
        ), $attrs);

        $attrs   = $this->_cleanAttrs($attrs);
        $content = $attrs['content'];
        unset($attrs['content']);

        return Html::_('tag')->render($content, Str::trim($class), Str::trim($id), $attrs);
    }
1077278
public static function div($content, $class = '', array $attributes = null) {
        return self::tag('div', $content, self::add_class($class, $attributes));
    }
170774
protected function attr($src = null, array $attr = array())
    {
        if (null !== $src) {
            $attr['src'] = $src;
        }
        $attr['type'] = 'text/javascript';
        return $this->escaper->attr($attr);
    }
47353
public function paragraph($contents, $class='') {
        $attributes = array();
        if ($class !== '') {
            $attributes['class'] = $class;
        }
        $output = html_writer::tag('p', $contents, $attributes);
        return $output;
    }
483609
public function htmlImage($identifier, $src="", $alt="", $size=NULL) {
		return $this->addHtmlComponent(new HtmlImage($identifier, $src, $alt, $size));
	}
232812
public static function Image( $url, $title, $class = "", $width = NULL, $height = NULL )
	{
		$attributes	= array(
			'src'		=> $url,
			'class'		=> $class		? $class : NULL,
			'width'		=> $width		? $width : NULL,
			'height'	=> $height		? $height : NULL,
			'alt'		=> $title		? $title : NULL,
			'title'		=> $title		? $title : NULL,
			'hspace'	=> 0,
			'vspace'	=> 0,
		);
		$code	= UI_HTML_Tag::create( "img", NULL, $attributes );
		return $code;
	}
888009
public static function input(
                        $type = 'text',
                        $name = '',
                        $class = '',
                        $id = NULL,
                        $value = NULL,
                        $label = NULL,
                        $attrs = array()
                        )
    {
        
        $attrs['type'] = $type;
        
        $ret = NULL;
        if($label)
            $ret .= PHP_EOL . self::formatLabel($label, $id);
        
        if($value)
            $attrs['value'] = $value;
        
        $attrs['name'] = $name;
        
        $ret .= self::tag('input', NULL, $class, $id, $attrs);
        return $ret;
    }
579455
public function create($name, $attrs = NULL)
	{
		$this->insert(NULL, $child = static::el($name, $attrs));

		return $child;
	}
150563
public static function Label( $id, $label, $class = NULL )
	{
		$attributes	= array(
			'for'		=> $id,
			'class'		=> $class ? $class : NULL,
		);
		return UI_HTML_Tag::create( "label", $label, $attributes );
	}
408939
public function image($id, $class = '')
    {
        $img = '';

        if ($image = app('Grafite\Cms\Models\Image')->find($id)) {
            $img = $image->url;
        }

        return '<img class="'.$class.'" src="'.$img.'">';
    }
99493
public function buildEmbedHtml(array $attributes = [], array $parameters = [])
    {
        // <iframe width="560" height="315" src="https://www.youtube.com/embed/5qanlirrRWs" frameborder="0" allowfullscreen></iframe>
        $attributes = array_merge($this->attributes, $attributes, [
            'src' => $this->buildEmbedUrl($parameters), // required attribute
        ]);

        $attributeStrings = [''];
        foreach ($attributes as $name => $value) {
            $attributeString = (string)$name;
            if (null !== $value) {
                $attributeString .= '="'.htmlspecialchars($value).'"';
            }
            $attributeStrings[] = $attributeString;
        }

        return '<iframe'.implode(' ', $attributeStrings).'></iframe>';
    }
748168
public function getEmbedCode($url, $class)
    {
        // Prepare url
        $url = $this->setProtocolToHttps($url);
        // Get method
        $method = $this->getMethod($url);
        if ($method !== null) {
            $embedUrl = $this->{$method}($url);
            if ($embedUrl) {
                return '<iframe ' . GeneralUtility::implodeAttributes([
                        'class' => $class,
                        'src' => $embedUrl,
                        'frameborder' => 0
                    ], true) . ' allowfullscreen></iframe>';
            }
        }
        return null;
    }
922632
public static function textarea($name,
                             $class = NULL,
                             $id = NULL,
                             $value = NULL,
                             $label = NULL,
                             $attrs = array())
    {
        $ret = NULL;
        if($label)
            $ret .= PHP_EOL . self::formatLabel($label, $id);
        if(!$value)
            $value = '';
        $attrs['name'] = $name;
        $ret .= self::tag('textarea',$value, $class, $id, $attrs);
        
        return $ret;
        
    }
522317
public function container_start($classes = null, $id = null) {
        $this->opencontainers->push('container', html_writer::end_tag('div'));
        return html_writer::start_tag('div', array('id' => $id,
                'class' => renderer_base::prepare_classes($classes)));
    }
445000
public function script($src, $attributes = [])
    {
        $attributes['type'] = 'text/javascript';
        $attributes['src'] = $src;
        $tag = new Tag('script', $attributes);
        return $tag;
    }
159642
public function createMenu($idNav = '', $classNav = '', $attributesNav = '', $idList = '', $classList = '', $attributesList = '')
    {
        $this->openNav($idNav, $classNav, $attributesNav);
        $this->createList('', $idList, $classList, $attributesList);
        $this->closeNav();
        return $this->output;
    }
1011456
public function linkAttribsToHTMLString($link_attr, $body = '', $classes = '', $id = '', $styles = '')
    {
        $link_text = null;
        if (strlen($link_attr->title)) {
            $link_text = $link_attr->title;
        } elseif (strlen($body)) {
            $link_text = $body;
        } else {
            $link_text = $link_attr->href;
        }
        return Html::link(
            $link_attr->href,
            $link_text,
            array(
                'title'  => $link_attr->title,
                'target' => $link_attr->target,
                'class'  => $classes,
                'id'     => $id,
                'style'  => $styles
            )
        );
    }