Override to render template based on LinkedElement

@return string|null HTML
429374
public function forTemplate($holder = true)
    {
        if ($linked = $this->LinkedElement()) {
            return $linked->forTemplate($holder);
        }
        return null;
    }
1338248
public function render()
    {
        if ($this->closable) {
            $this->createDismissButton();
        }

        $this->getElement()->setAppendContent();

        return $this->getElement()->render();
    }
875955
protected function renderElement($content = null)
    {
        // Get element parts
        $element    = $this->getElement();
        $attributes = $this->getAttributesAsString();

        // Create html
        $html = '<' . $element;
        if ($attributes) {
            $html .= $attributes;
        }

        // Create closing tag
        if (is_string($content)) {
            $html .= '>' . $content . '</' . $element;
        }
        $html .= $this->getClosingBracket();

        return $html;
    }
993873
protected function getTemplate()
    {
        if ($this->template === null) {
            $this->template = \Tx_Oelib_TemplateRegistry::get(
                $this->templateFileName
            );
        }

        return $this->template;
    }
1106762
public function render() {
        $rendered = '';
        foreach ($this->elements as $element) {
            if (!method_exists($this, 'openTag')) {
                $element->name = $this->multiple ?
                        $element->name . '[]' :
                        $this->getName() . '[' . $element->name . ']';

                $element->parent = $this->getName();
            }
            $rendered .= $element->render();
        }
        return $rendered;
    }
1301532
public function render() {
		$output = null;

		$output .= '<' . esc_attr( $this->element ) . ' ' . $this->build_attributes() . '>';
		$output .= $this->render_header();
		$output .= parent::render();
		$output .= $this->render_footer();
		$output .= wp_nonce_field( $this->id(), 'uixNonce_' . $this->id(), true, false );
		$output .= '</' . esc_attr( $this->element ) . '>';

		return $output;
	}
669282
public function renderToggleButton()
    {
        if ($this->toggleButton !== null) {
            $tag   = ArrayHelper::removeValue($this->toggleButton, 'tag', 'button');
            $label = ArrayHelper::removeValue($this->toggleButton, 'label', 'Show');
            if ($tag === 'button' && !isset($this->toggleButton['type'])) {
                $this->toggleButton['type'] = 'button';
            }
            $this->toggleButton['data-reveal-id'] = $this->getId();
            return \CHtml::tag($tag, $this->toggleButton, $label);
        } else {
            return null;
        }
    }
710422
public function render()
    {
        if ($this->isSelfClosing) {
            $element = "<{$this->tag}".$this->getAttributesString()." />";
        } else {
            $element = "<{$this->tag}".$this->getAttributesString().">".$this->getInnerHtml()."</{$this->tag}>";
        }
        $before = !empty($this->before) ? implode(PHP_EOL, $this->before) : '';
        $after  = !empty($this->after) ? implode(PHP_EOL, $this->after) : '';

        return $before . $element . $after;
    }
1193915
public function render(): string
   {
       $dom = dom_import_simplexml($this->template)->ownerDocument;
       $dom->formatOutput = true;
       return trim($dom->saveXML());
   }
1025855
function render()
    {
        $Template = $this->getTemplate();
        if ($Template === null)
            // Nothing To Render!!
            return null;

        if (! is_file($Template) )
        {
            ## resolve to template file path from name
            $_t_template = $this->resolver()->resolve($Template);

            ## only if file resolved
            ($_t_template === false) ?: $Template = $_t_template;

            ##! Note:
            ##- if file not resolved let it handle within renderer
            ##- ..
        }

        ## Render Into Variable:
        $vars = \Poirot\Std\cast($this->variables())->toArray();
        $renderer = $this->renderer();

        // !! If Template not resolved also let renderer to resolve into template path.

        ErrorStack::handleError(); // handle errors --------------------\
        #
        if (is_callable($renderer))
            $result = call_user_func($renderer, $Template, $vars);
        else
            ### its renderer instance
            $result = $renderer->capture($Template, $vars);
        #
        if ($ex = ErrorStack::handleDone()) throw $ex; // --------------/


        return $result;
    }
675086
public function component_templates() {
		$output = null;
		foreach ( $this->modals as $modal ) {

			$width  = 'data-width="950"';
			$height = 'data-height="550"';

			$output .= '<script type="text/html" ' . $width . ' ' . $height . ' id="' . esc_attr( $this->id() ) . '-' . esc_attr( $modal->slug ) . '">';
			if ( isset( $modal->struct['preview'] ) ) {
				$template = uix()->add( 'control', $modal->slug, array(
					'type'     => 'template',
					'template' => $modal->struct['preview'],
				) );

				$output .= $template->render();
			} else {
				$output .= '<div>' . $modal->struct['label'] . '</div>';
			}
			$output .= '</script>';

		}

		return $output;
	}
872299
public function render()
    {
        if(!$this->template) {
            throw new \RuntimeException(sprintf("No template for element '%s' defined.", $this->getName()));
        }

        $this->html = $this->template->assign('element', $this)->display();
        return $this->html;
    }
591287
protected function _getTemplate()
    {
        if (is_null($this->_template)) {
            foreach ($this->_map as $method => $className) {
                if ($this->_sql instanceof $className) {
                    $this->_template = $this->$method();
                    break;
                }
            }
        }
        return $this->_template;
    }
556187
public function display()
	{
        App::$Alias->setCustomLibrary('js', $this->baseUrl . '/ckeditor.js');
        App::$Alias->setCustomLibrary('js', $this->baseUrl . '/adapters/jquery.js');
        $jsInitializeCode = "$('.{$this->targetClass}').ckeditor({";
        $jsInitializeCode .= "language: '{$this->language}', customConfig: '{$this->config}.js', ";
        if ($this->jsConfig !== null && Any::isArray($this->jsConfig)) {
            foreach ($this->jsConfig as $obj => $value) {
                $jsInitializeCode .= $obj . ": '" . $value . "', ";
            }
        }
	    $jsInitializeCode .= "});";

        App::$Alias->addPlainCode('js', $jsInitializeCode);
		return null;
	}
1073946
private function renderLink()
    {
        return Element::withTag('link')
            ->attributes([
                'rel'  => $this->getName(false),
                'href' => $this->getContent(),
            ])
            ->toHtml();
    }
534077
public function render() {

		if($this->loadTemplate())	{

			$this
				->primeTemplate()
				->insertFormFields()
				->insertErrorMessages()
				->insertFormStart()
				->insertFormEnd()
				->cleanupHtml()
			;

			return $this->html;

		}

	}
1016887
public function renderOpen()
    {
        $html = "<$this->tagName";

        if ($this->attributes) {
            $parsedAttrs = [];
            foreach ($this->attributes as $key => $value) {
                switch (true) {
                    case is_string($value):
                    case is_int($value):
                    case is_float($value):
                        $parsedAttrs[] = "$key=\"$value\"";
                        break;
                    case $value === null:
                        $parsedAttrs[] = $key;
                        break;
                }
            }
            $html .= ' '.implode($parsedAttrs, ' ');
        }

        if ($this->isSelfClosing) {
            return "$html />";
        }

        $html .= '>';

        return $html;
    }