Render the element's inner parts

@param  Descriptor $descriptor
@return string
358456
protected function renderElementInner(Descriptor $descriptor) {
		$tagsLocator = $this->getTagsLocator();
		
		// Element's main
		$elementTag = new Tag();
		$elementTag->addClass('topology-element');
		
		$type = $descriptor->getType();
		
		if (isset(static::$types[$type])) {
			$elementTag->addClass(static::$types[$type]);
		}
		
		// Header
		$elementTag->appendHtml($this->renderHeaderContent($descriptor));
		
		// Body
		if ($descriptor->hasPropertities()) {
			$content = $this->renderBodyContent($descriptor);
			$elementTag->appendHtml($tagsLocator->body->render($content));
		} else {
			$elementTag->appendHtml($tagsLocator->body->render());
		}
		
		// Footer
		$elementTag->appendHtml($tagsLocator->footer->render());
		
		return $elementTag->render();
	}
305932
public function renderOrbit()
    {
        $contents = $list = array();

        foreach ($this->items as $item) {
            $list[] = $this->renderItem($item);
        }
        if ($this->showPreloader) {
            $contents[] = \CHtml::tag('div', array('class' => Enum::ORBIT_LOADER), '&nbsp;');
        }

        $contents[] = \CHtml::tag(
            'ul',
            array(
                'id'         => $this->getId(),
                'data-orbit' => 'data-orbit'
            ),
            implode("\n", $list)
        );
        return \CHtml::tag('div', $this->htmlOptions, implode("\n", $contents));
    }
500994
protected function renderChildElement(Descriptor $descriptor, $linkTitle) {
		$element = $this->renderElement($descriptor);
		$link    = $this->getTagsLocator()->get('link');

		if (is_string($linkTitle)) {
			return $element . $link->render($linkTitle);
		}

		return $element . $link->render();
	}
178264
public function renderHeader()
    {
        if ($this->min !== 0 || !$this->isAddButtonPositionHeader()) {
            return '';
        }

        $button = $this->isAddButtonPositionHeader() ? $this->renderAddButton() : '';

        $content = [];
        $content[] = Html::tag('td', '&nbsp;');

        if ($this->cloneButton) {
            $content[] = Html::tag('td', '&nbsp;');
        }

        $content[] = Html::tag('td', $button, [
            'class' => 'list-cell__button',
        ]);

        return Html::tag('thead', Html::tag('tr', implode("\n", $content)));
    }
923908
public function getResource($descriptor)
    {
        return isset($this->_pipes[$descriptor]) ? $this->_pipes[$descriptor] : null;
    }
998004
protected function renderHeaderContent(Descriptor $descriptor) {
		$tagsLocator = $this->getTagsLocator();
		
		$title = '';
		
		if ($descriptor->hasLabel()) {
			$label  = htmlspecialchars($descriptor->getLabel());
			$title .= $tagsLocator->label->render($label);
		}
		
		$title .= htmlspecialchars($descriptor->getTitle());
		
		if ($descriptor->hasBadge()) {
			$badge  = htmlspecialchars($descriptor->getBadge());
			$title .= $tagsLocator->badge->render($badge);
		}
		
		return $tagsLocator->header->render($title);
	}
1330677
private function _createNamespaceName($descriptor)
    {
        if (isset($this->customArguments['namespace'])) {
            return $this->customArguments['namespace'];
        }

        $t = $descriptor->getClass();
        $t = explode("\\", $t);
        array_pop($t);
        $name = implode("\\", $t);
        return $name;
    }
983407
public function render(Render $renderer)
	{
		$radios = [];

		foreach ($this->getContents() as $radio)
		{
			$radios[] = $renderer->render($radio);
		}

		return implode('', $radios);
	}
429878
public function renderElement(Element $element) : string
    {
        // @todo - if the element implements neither HasContent or HasChildren, make it self-closing <img />
        // @todo - fix indentation - currently it adds an extra line as the middle indentation
        return $this->indent($this->depth, sprintf('<%s%s>', $element->getElement(), $this->getAttributesForElement($element))) .
            $this->indent($this->depth++, $this->getContentForElement($element)) .
            $this->indent(--$this->depth, sprintf('</%s>', $element->getElement()));
    }
442900
private function renderControlMenu()
    {
        $menu = '';
        for ($section = 0; $section < count($this->extmenu); $section++)
        {
            if (UserRights($this->extmenu[$section]['access']))
            {
                $menu .= '<div class="header">' . $this->extmenu[$section]['caption'] .
                    '</div><div class="content">';
                foreach ($this->extmenu[$section]['items'] as $item)
                {
                    if (
                        UserRights(
                            isset($item['access']) ? $item['access'] : $this->extmenu[$section]['access']
                        ) &&
                        (!(isset($item['disabled']) && $item['disabled']))
                    )
                    {
                        if ($item['link'] == arg('mod'))
                        {
                            $this->title = $item['caption'];
                        }
                        $menu .= '<div ' . ($item['link'] == arg('mod') ? 'class="selected"' : '') .
                            "><a href=\"" . Eresus_CMS::getLegacyKernel()->root . "admin.php?mod=" . $item['link'] .
                            "\" title=\"" .	$item['hint'] . "\">" . $item['caption'] . "</a></div>\n";
                    }
                }
                $menu .= "</div>\n";
            }
        }

        for ($section = 0; $section < count($this->menu); $section++)
        {
            if (UserRights($this->menu[$section]['access']))
            {
                $menu .= '<div class="header">' . $this->menu[$section]['caption'] .
                    '</div><div class="content">';
                foreach ($this->menu[$section]['items'] as $item)
                {
                    if (
                        UserRights(
                            isset($item['access']) ? $item['access'] : $this->menu[$section]['access']
                        ) &&
                        (!(isset($item['disabled']) && $item['disabled']))
                    )
                    {
                        if ($item['link'] == arg('mod'))
                        {
                            $this->title = $item['caption'];
                        }
                        $menu .= '<div '.($item['link'] == arg('mod') ?'class="selected"':'') .
                            "><a href=\"" . Eresus_CMS::getLegacyKernel()->root . "admin.php?mod=" . $item['link'] .
                            "\" title=\"" .	$item['hint'] . "\">" . $item['caption'] . "</a></div>\n";
                    }
                }
                $menu .= "</div>\n";
            }
        }

        return $menu;
    }
624734
public function render() {
		$tabsList = new ListUnordered();
		$tabsList->setSeparator('');
		$tabsList->addClass('debug-bar');
		$tabsList->id = 'debug-elements';
		
		$panels = '';
		
		foreach ($this->info as $info) {
			$tabElement = $this->createTab($info);
			
			if (! $info->isEmpty()) {
				$id = 'debug-panel-' . substr(md5(rand(0, 1000) . $info->getName()), 24);
			
				$tabElement->addClass('withpanel clickable');
				$tabElement->setAttr('data-panel-id', $id);
				
				$panelTag = $this->createPanel($info);
				$panelTag->id = $id;
				
				$panels .= $panelTag->render();
			}
			
			$tabsList->addElement($tabElement);
		}
		
		$styleTag  = new Tag('style', $this->getAsset('bar.css'));
		$scriptTag = new Script($this->getAsset('bar.js'));
		
		$wrapperTag = new Tag('div', $tabsList->render(), 'debug-bar-wrapper');
		$debugTag   = new Tag('div', $panels . $wrapperTag->render(), 'debug-main');
		
		return $styleTag->render() . $scriptTag->render() . $debugTag->render();
	}
299163
public function render($renderer)
    {
        if (strpos($this->text, '{{:ptp:}}') !== false) {
            return;
        }
        $temptext = str_replace('#PAGENUM#', (string) $renderer->pageNo(), $this->text);
        // underline «title» part of Source item
        $temptext = str_replace([
            '«',
            '»',
        ], [
            '<u>',
            '</u>',
        ], $temptext);

        // Set up the text style
        if ($renderer->getCurrentStyle() !== $this->styleName) {
            $renderer->setCurrentStyle($this->styleName);
        }

        // If (Future-feature-enable/disable cell padding)
        $cP = $renderer->cPadding;

        // Adjust the positions
        if ($this->left === ReportBaseElement::CURRENT_POSITION) {
            $this->left = $renderer->getX();
        } else {
            $renderer->setX($this->left);
        }

        if ($this->top === ReportBaseElement::CURRENT_POSITION) {
            $this->top = $renderer->getY();
        } else {
            $renderer->setY($this->top);
        }

        // Start collecting the HTML code
        echo '<div class="', $this->styleName, '" style="position:absolute;top:', $this->top, 'pt;';
        // Use Cell around padding to support RTL also
        echo 'padding:', $cP, 'pt;';
        // LTR (left) or RTL (right)
        echo $renderer->alignRTL, ':', $this->left, 'pt;';

        // Background color
        if (!empty($this->bgcolor)) {
            echo 'background-color:', $this->bgcolor, ';';
        }

        // Borders
        $bpixX = 0;
        $bpixY = 0;
        if (!empty($this->border)) {
            // Border all around
            if ($this->border == 1) {
                echo ' border:solid ';
                if (!empty($this->bocolor)) {
                    echo $this->bocolor;
                } else {
                    echo 'black';
                }
                echo ' 1pt;';
                $bpixX = 1;
                $bpixY = 1;
            } else {
                if (stripos($this->border, 'T') !== false) {
                    echo ' border-top:solid ';
                    if (!empty($this->bocolor)) {
                        echo $this->bocolor;
                    } else {
                        echo 'black';
                    }
                    echo ' 1pt;';
                    $bpixY = 1;
                }
                if (stripos($this->border, 'B') !== false) {
                    echo ' border-bottom:solid ';
                    if (!empty($this->bocolor)) {
                        echo $this->bocolor;
                    } else {
                        echo 'black';
                    }
                    echo ' 1pt;';
                    $bpixY = 1;
                }
                if (stripos($this->border, 'R') !== false) {
                    echo ' border-right:solid ';
                    if (!empty($this->bocolor)) {
                        echo $this->bocolor;
                    } else {
                        echo 'black';
                    }
                    echo ' 1pt;';
                    $bpixX = 1;
                }
                if (stripos($this->border, 'L') !== false) {
                    echo ' border-left:solid ';
                    if (!empty($this->bocolor)) {
                        echo $this->bocolor;
                    } else {
                        echo 'black';
                    }
                    echo ' 1pt;';
                    $bpixX = 1;
                }
            }
        }
        // Check the width if set to page wide OR set by xml to larger then page wide
        if ($this->width == 0 || $this->width > $renderer->getRemainingWidth()) {
            $this->width = $renderer->getRemainingWidth();
        }
        // We have to calculate a different width for the padding, counting on both side
        $cW = $this->width - ($cP * 2);

        // If there is any text
        if (!empty($temptext)) {
            // Wrap the text
            $temptext = $renderer->textWrap($temptext, $cW);
            $tmph     = $renderer->getTextCellHeight($temptext);
            // Add some cell padding
            $this->height += $cP;
            if ($tmph > $this->height) {
                $this->height = $tmph;
            }
        }
        // Check the last cell height and adjust the current cell height if needed
        if ($renderer->lastCellHeight > $this->height) {
            $this->height = $renderer->lastCellHeight;
        }
        echo ' width:', $cW - $bpixX, 'pt;height:', $this->height - $bpixY, 'pt;';

        // Text alignment
        switch ($this->align) {
            case 'C':
                echo ' text-align:center;';
                break;
            case 'L':
                echo ' text-align:left;';
                break;
            case 'R':
                echo ' text-align:right;';
                break;
        }

        // Print the collected HTML code
        echo '">';

        // Print URL
        if (!empty($this->url)) {
            echo '<a href="', $this->url, '">';
        }
        // Print any text if exists
        if (!empty($temptext)) {
            $renderer->write($temptext, $this->tcolor, false);
        }
        if (!empty($this->url)) {
            echo '</a>';
        }
        // Finish the cell printing and start to clean up
        echo "</div>\n";

        // Where to place the next position
        if ($this->newline == 0) {
            // -> Next to this cell in the same line
            $renderer->setXy($this->left + $this->width, $this->top);
            $renderer->lastCellHeight = $this->height;
        } elseif ($this->newline == 1) {
            // -> On a new line at the margin - Default
            $renderer->setXy(0, $renderer->getY() + $this->height + ($cP * 2));
            // Reset the last cell height for the next line
            $renderer->lastCellHeight = 0;
        } elseif ($this->newline == 2) {
            // -> On a new line at the end of this cell
            $renderer->setXy($renderer->getX() + $this->width, $renderer->getY() + $this->height + ($cP * 2));
            // Reset the last cell height for the next line
            $renderer->lastCellHeight = 0;
        }
    }
207921
public function render(Render $renderer)
	{
		$checkboxes = [];

		// Render all the boxes
		foreach ($this->getContents() as $checkbox)
		{
			$checkboxes[] = $renderer->render($checkbox);
		}

		return implode('', $checkboxes);
	}
1001035
public function render( RendererInterface $renderer )
    {
        if ( empty( $this->paragraphId ) )
        {
            return '';
        }

        return $renderer->htmlTag(
            'a',
            $this->getDescription(),
            array(
                'title' => $this->originalTitle,
                'href'  => '/app/' . $this->locale .
                           '/paragraph/render/' . $this->paragraphId,
            )
        );
    }
1020070
public function render_set($res, $name, $dload, $sep, $config, $mix){
		$output="";
		$index=0;
		$conn = $this->conn;
		$this->mix($config, $mix);
		$conn->event->trigger("beforeRenderSet",$conn,$res,$config);
		while ($data=$conn->sql->get_next($res)){
			$data = $this->simple_mix($mix, $data);

			$data = new $name($data,$config,$index);
			if ($data->get_id()===false)
				$data->set_id($conn->uuid());
			$conn->event->trigger("beforeRender",$data);
			$output.=$data->to_xml().$sep;
			$index++;
		}
		$this->unmix($config, $mix);
		return $output;
	}
210465
public function render($renderer, $sub = false, $inat = true)
    {
        if (!empty($this->attrs['wt_style'])) {
            $renderer->setCurrentStyle($this->attrs['wt_style']);
        }

        $this->text = $this->getStart() . $this->text;
        foreach ($this->elements as $element) {
            if ($element === 'footnotetexts') {
                $renderer->footnotes();
            } elseif ($element === 'addpage') {
                $renderer->addPage();
            } elseif ($element instanceof ReportBaseHtml) {
                $element->render($renderer, true, false);
            } else {
                $element->render($renderer);
            }
        }
        $this->text .= $this->getEnd();
        if ($sub) {
            return $this->text;
        }

        // If not called by an other attribute
        if ($inat) {
            $startX = $renderer->getX();
            $startY = $renderer->getY();
            $width  = $renderer->getRemainingWidth();
            echo '<div style="position: absolute;top: ', $startY, 'pt;', $renderer->alignRTL, ': ', $startX, 'pt;width: ', $width, 'pt;">';
            $startY += $renderer->getCurrentStyleHeight() + 2;
            $renderer->setY($startY);
        }

        echo $this->text;

        if ($inat) {
            echo "</div>\n";
        }
    }
909062
public function render($depth = 0, $indent = null, $inner = false)
    {
        if (!($this->hasChildren())) {
            $this->prepare();
        }
        foreach ($this->fieldsets as $fieldset) {
            foreach ($fieldset->getAllFields() as $field) {
                if ($field instanceof Element\Input\File) {
                    $this->setAttribute('enctype', 'multipart/form-data');
                    break;
                }
            }
        }
        return parent::render($depth, $indent, $inner);
    }