Render an HTML tag with OG namespaces.

@param array $options
@param array $ns
@return string
10973
public function html(array $options = array(), array $ns = array()) {
        if ($ns) {
            foreach ($ns as $key => $url) {
                $this->ns($key, $url);
            }
        }

        return $this->Html->tag('html', null, $this->_namespaces + $options);
    }
309557
private function renderHtml($message, $options = [])
    {
        $html = Html::beginTag('div', $options);
        $html .= '<div class="card-panel">';
        $html .= $message;
        $html .= '</div>';
        $html .= Html::endTag('div');

        return $html;
    }
1152937
public function render($options = [ ])
    {
        $mergedOptions = array_merge($this->config['options'], $options);

        $data = [
            'public_key' => value($this->config['public_key']),
            'options'    => $mergedOptions,
            'dataParams' => $this->extractDataParams($mergedOptions),
        ];

        if (array_key_exists('lang', $mergedOptions) && "" !== trim($mergedOptions['lang'])) {
            $data['lang'] = $mergedOptions['lang'];
        }

        $view = $this->getView($options);

        return app('view')->make($view, $data);
    }
1241531
protected function renderBrand(array $options)
    {
        $brandLabel = $options['brand'];
        $brandLink  = '#';
        if (is_array($options['brand'])) {
            if (isset($options['brand']['route'])) {
                $urlHelper = $this->view->plugin('url');
                $brandLink = $urlHelper($options['brand']['route']);
            } elseif (isset($options['brand']['uri'])) {
                $brandLink = $options['brand']['uri'];
            }
            
            $brandLabel = '';
            if (isset($options['brand']['icon'])) {
                $iconHelper = $this->getIconHelper();
                $brandLabel .= $iconHelper($options['brand']['icon']) . ' ';
            }
            $brandLabel .= $options['brand']['label'];
        }
        
        return '<a class="navbar-brand" href="' . $brandLink . '">'
            . $brandLabel . '</a>';
    }
199842
public static function _($render, $ns = __NAMESPACE__)
    {
        $html   = self::getInstance();
        $render = Str::low($render);
        $alias  = $ns . '\\' . $render;

        if (!isset($html[$alias])) {
            $html[$alias] = self::_register($render, $ns);
        }

        return $html[$alias];
    }
941385
public function renderTitle(array $options = [])
    {
        $options = $options + $this->options;

        $response = (count($this->breadcrumbs) <= 1)
            ? $options['site_full_name']
            : $options['site_short_name'];

        foreach ($this->breadcrumbs->all() as $key => $value) {
            if ($key == 0) {
                continue;
            }

            $response = $value['title'].' '.$options['delimiter'].' '.$response;
        }

        return $response;
    }
482456
public function renderEvent($name, array $options = [])
    {
        $eventName = sprintf('sonata.block.event.%s', $name);

        /** @var BlockEvent $event */
        $event = $this->eventDispatcher->dispatch($eventName, new BlockEvent($options));

        $content = '';

        foreach ($event->getBlocks() as $block) {
            $content .= $this->render($block);
        }

        if ($this->stopwatch) {
            $this->traces['_events'][uniqid('', true)] = [
                'template_code' => $name,
                'event_name' => $eventName,
                'blocks' => $this->getEventBlocks($event),
                'listeners' => $this->getEventListeners($eventName),
            ];
        }

        return $content;
    }
665666
protected function renderElement(string $name, array $options = []) : string
    {
        return $this->config->getView()
            ->element($name, $options);
    }
81665
public function renderValue($value, array $options = []): string
    {
        $object = isset($options['object']) ? $options['object'] : null;
        $column = isset($options['column']) ? $options['column'] : null;
        $attributeCode = isset($options['attribute']) ? $options['attribute'] : null;
        if ($column instanceof Column && null === $attributeCode) {
            $attributeCode = $column->getPropertyPath();
        }

        if ($object instanceof DataInterface && $attributeCode) {
            try {
                $attribute = $object->getFamily()->getAttribute($attributeCode);
            } catch (\Exception $e) {
                // do nothing, it's okay
                return $this->parent->renderValue($value, $options);
            }
            $formOptions = $attribute->getFormOptions();
            if (!isset($formOptions['choices'])
                || !\in_array($attribute->getType()->getCode(), $this->choiceTypes, true)
            ) {
                return $this->parent->renderValue($value, $options);
            }
            $key = array_search($value, $formOptions['choices'], true);
            if (false !== $key) {
                $translationDomain = null;
                if (array_key_exists('choice_translation_domain', $formOptions)) {
                    $translationDomain = $formOptions['choice_translation_domain'];
                }
                if (false === $translationDomain) {
                    return $key;
                }

                return $this->translator->trans($key, [], $translationDomain);
            }
        }

        return $this->parent->renderValue($value, $options);
    }
727638
public function render($options = array())
    {
        $options = array_merge($this->defaultOptions, $options);
        if ($options['size'] === 'small')
            $options['height'] = 15;
        elseif ($options['size'] === 'large')
            $options['height'] = 24;
        else
            $options['height'] = '';

        return $this->view->make('shareable::google_plus', array('options' => $options));
    }
397711
public static function new(
        string $className = 'SimpleXMLElement',
        int $options = 0,
        string $ns = '',
        bool $isPrefix = false
    ): Xml {
        return new self($className, $options, $ns, $isPrefix);
    }
1300991
public static function renderMenu(array $options = []) : string {
		if (!\Object\Error\Base::$flag_database_tenant_not_found) {
			$data = \Object\ACL\Resources::getStatic('menu', 'primary');
			// get logo image
			$brand_logo = \Object\ACL\Resources::getStatic('layout', 'logo', 'method');
			if (!empty($options['brand_logo'])) {
				$brand_logo = $options['brand_logo'];
			} else {
				$brand_logo = \Object\ACL\Resources::getStatic('layout', 'logo', 'method');
				if (!empty($brand_logo)) {
					$method = \Factory::method($brand_logo, null, true);
					$brand_logo = call_user_func_array($method, []);
				}
			}
			// logo url
			return \HTML::menu([
				'brand_name' => \Application::get('application.layout.name'),
				'brand_logo' => $brand_logo,
				'brand_url' => $options['brand_url'] ?? \Object\ACL\Resources::getStatic('postlogin_brand_url', 'url', 'url'),
				'options' => $data[200] ?? [],
				'options_right' => $data[210] ?? [],
				'class' => $options['class'] ?? null
			]);
		} else {
			return '';
		}
	}
267909
public function renderTag()
    {
        echo CHtml::tag($this->tagName, $this->htmlOptions, '<noscript>' . $this->noScriptText . '</noscript>', true);
    }
421978
public function renderName($table, string $field, array $options = []) : string
    {
        $handler = self::getByTableField($table, $field, $options, $this->cakeView);

        return $handler->renderName();
    }
1245837
def get_tag_ns(self, el):
        """"""

        if self.supports_namespaces():
            namespace = ''
            ns = el.namespace
            if ns:
                namespace = ns
        else:
            namespace = NS_XHTML
        return namespace
788012
public function renderField($name, $group = '', array $options = [])
    {
        $field = $this->getField($name, $group);

        return $field->render($options);
    }
29874
public function render(array $options = [])
    {
        $attrs['id'] = $this->getAttribute('controlId', $this->getId() . '-control');
        $attrs['class'] = $this->type . '-field ' . $this->getAttribute('controlClass');

        $attrs = array_merge($attrs, (array) $this->getAttribute('controlAttribs'));

        if ($this->form && $this->form->getRenderer()) {
            return $this->wrapElements($this->form->getRenderer()->renderField($this, $attrs, $options));
        }

        $label = !empty($options['no_label']) ? '' : $this->renderLabel($options);
        $input = $this->renderInput($options);

        return $this->wrapElements(new HtmlElement('div', $label . $input, $attrs));
    }