Returns HTML code of panel.
@return mixed
321534
public function getPanel()
	{
		if ($this->countAll === 0 && $this->hideEmpty) {
			return;
		}

		$this->processMessage();

		$latte = new \Latte\Engine;
		$latte->setTempDirectory($this->fileMailer->getTempDirectory());
		return $latte->renderToString(__DIR__ . '/MailPanel.latte', [
			'messages' => $this->messages,
			'countNew' => $this->countNew,
			'countAll' => $this->countAll,
			'show' => $this->show,
		]);
	}
277652
public function getHtml()
  {
    $html = "";

    $table_classes = $this->getTableClasses();

    if($this->table_responsive)
    {
      $html.= "<div class=\"table-responsive\">\n";
    }

    $id_tag = $this->getTagId();

    $html.= "<table {$id_tag} class=\"table {$table_classes}\">\n";

    // table header
    if( isset($this->header) )
    {
        $html.= "\t<thead>\n";
        $html.= $this->header->getHtml();
        $html.= $this->fillWithEmptyCells($this->header, $this->header->getTagRow() );
        $html.= "\t</thead>\n";
    }

    // table data
    if( isset($this->rows))
    {
      $html.= "\t<tbody>\n";
      foreach($this->rows as $row)
      {
        $html.= $row->getHtml();
        $html.= $this->fillWithEmptyCells($row, $row->getTagRow() );
      }
      $html.= "\t</tbody>\n";
    }

    $html.= "</table>\n";

    if($this->table_responsive)
    {
      $html.= "</div>\n";
    }

    return $html;
  }
262639
public function getHtml(): string
  {
    $html = $this->prefix;
    $html .= Html::generateElement('span', $this->attributes, $this->innerHtml, true);
    $html .= $this->postfix;

    return $html;
  }
374425
public function getPanel(): string
    {
        $params = [
            'class'                   => get_class($this->translator),
            'listUsedTranslate'       => $this->translator->getListUsedTranslate(),         // list used translate index
            'listAllDefaultTranslate' => $this->translator->getListAllDefaultTranslate(),   // list default translate
            'listDefaultTranslate'    => $this->translator->getListDefaultTranslate(),      // list default translate path
            'dictionary'              => $this->translator->getDictionary(),                // list dictionary
        ];
        $latte = new Engine;
        return $latte->renderToString(__DIR__ . '/PanelTemplate.latte', $params);
    }
1197541
public function getHTML()
    {
        $loggedin = "";
        $html = "";

        $isadmin = $this->sess['isadmin'] === 1 ? true : false;

        $create = $this->setUrlCreator("comm/create");
        $del = $this->setUrlCreator("comm/admindelete");
        $viewone = $this->setUrlCreator("comm/view-one");

        $loggedin = $this->getLoginLink($isadmin, $create, $del);

        $html .= '<div class="col-sm-12 col-xs-12">
        <div class="col-lg-6 col-sm-7 col-xs-7">
        <h3>Gruppinlägg <span class="small">' . $loggedin . '</span></h3>
        <hr />';

        foreach ($this->comments as $value) {
            if ((int)$value->parentid > 0) {
                continue;
            }
            $html .= $this->getValHtml($value, $isadmin, $viewone);
        }
        
        $html .= '</div></div>';
        return $html;
    }
723886
public function getHtml()
    {
        if (!$this->exists()) {
            return '';
        }
        switch ($this->type) {
            case 'datetime':
                $html = '<abbr title="'.$this->content->format('c').'">'
                    .(class_exists('WebSyndication\Helper') ?
                        \WebSyndication\Helper::getLocalizedDateString($this->content) : $this->content->format('D j m Y H:i:s')
                    ).'</abbr>';
                break;
            case 'time':
                $html = $this->content->format('H:i:s');
                break;
            case 'email':
                $html = '<a href="mailto:'.$this->content.'" title="Contact this email">'.$this->content.'</a>';
                break;
            case 'url':
                $html = '<a href="'.$this->content.'" title="See online">'.$this->content.'</a>';
                break;
            case 'text':
                $html = $this->xml_value;
                break;
            case 'lang':
                $html = '<abbr title="ISO : '.$this->xml_value.'">'.$this->content.'</abbr>';
                break;
            case 'list':
                $html = '';
                foreach ($this->content as $_ctt) {
                    $html .= (strlen($html) ? ', ' : '').$_ctt->content;
                }
                break;
            default:
                $html = $this->content;
                break;
        }
        return $html;
    }
384566
public function getHTML()
    {
        $dom = new DOMDocument();

        $interceptor = new ErrorInterceptor(array($dom, 'loadHTML'));
        $interceptor->registerError(E_WARNING, "DOMDocument::loadHTML");

        $interceptor->execute($this->html);
        $body = $dom->getElementsByTagName('body')->item(0);

        $this->sanitizeNode($body);

        $html = "";
        foreach ($body->childNodes as $n)
            $html .= $dom->saveHTML($n);

        return $html;
    }
590332
public function html() {

        $attributes = array(
            'type' => 'checkbox',
            'name' => $this->name,
            'value' => 1,
            'id' => $this->name
        );

        // UCSB fixed user should not be able to override locked grade.
        if ( $this->locked) {
            $attributes['disabled'] = 'DISABLED';
        }

        $hidden = array(
            'type' => 'hidden',
            'name' => 'old' . $this->name
        );

        if ($this->ischecked) {
            $attributes['checked'] = 'CHECKED';
            $hidden['value'] = 1;
        }

        $type = "override";
        if (preg_match("/^exclude/", $this->name)) {
            $type = "exclude";
        }

        return (
            html_writer::tag('label',
                             get_string($type . 'for', 'gradereport_singleview', $this->label),
                             array('for' => $this->name, 'class' => 'accesshide')) .
            html_writer::empty_tag('input', $attributes) .
            html_writer::empty_tag('input', $hidden)
        );
    }
633095
protected function _getVersionPanel()
    {
        $panel = "<h4>ZFDebug $this->_version – Zend Framework "
               . Zend_Version::VERSION . " on PHP " . phpversion() . "</h4>\n"
               . "<p>©2008-2013 <a href='http://jokke.dk'>Joakim Nygård</a>" . $this->getLinebreak()
               . "with contributions by <a href='http://www.bangal.de'>Andreas Pankratz</a> and others</p>"
               . "<p>The project is hosted at <a href='https://github.com/jokkedk/ZFDebug'>https://github.com/jokkedk/ZFDebug</a>"
               . " and released under the BSD License" . $this->getLinebreak()
               . "Includes images from the <a href='http://www.famfamfam.com/lab/icons/silk/'>Silk Icon set</a> by Mark James</p>"
               . "<p>Disable ZFDebug temporarily by sending ZFDEBUG_DISABLE as a GET/POST parameter</p>";
        // $panel .= '<h4>Zend Framework '.Zend_Version::VERSION.' / PHP '.phpversion().' with extensions:</h4>';
        // $extensions = get_loaded_extensions();
        // natcasesort($extensions);
        // $panel .= implode('<br>', $extensions);
        return $panel;
    }
1244505
public function getHtml(): string
  {
    $html = $this->prefix;
    $html .= $this->value;
    $html .= $this->postfix;

    return $html;
  }
1320307
public function getPanel(): string
    {
        if ($this->isUnderVersionControl()) {
            $title = '<h1>GIT</h1>';
            $warning = '';
            $cntTable = '';

            if ($this->getBranchName() === 'master' || $this->getBranchName() === 'staging') {
                $warning = '<p style="color: #dd4742; font-weight: 700;">You are working in '.$this->getBranchName().' branch</p>';
            }

            // commit message
            if ($this->getLastCommitMessage() !== null) {
                $cntTable .= '<tr><td>Last commit</td><td> '.$this->getLastCommitMessage().' </td></tr>';
            }

            // heads
            if ($this->getHeads() !== null) {
                $cntTable .= '<tr><td>Branches</td><td> '.$this->getHeads().' </td></tr>';
            }

            // remotes
            if ($this->getRemotes() !== null) {
                $cntTable .= '<tr><td>Remotes</td><td> '.$this->getRemotes().' </td></tr>';
            }

            // tags
            if ($this->getTags() !== null && !empty($this->getTags())) {
                $cntTable .= '<tr><td>Tags</td><td> '.$this->getTags().' </td></tr>';
            }

            $content = '<div class=\"tracy-inner tracy-InfoPanel\"><table><tbody>'.
                $cntTable.
                '</tbody></table></div>';

            return $title.$warning.$content;
        }
        
        return "";
    }
756715
public function getHtml(): string
  {
    $this->attributes['name'] = $this->submitName;

    $html = $this->prefix;
    $html .= $this->getHtmlPrefixLabel();
    $html .= Html::generateTag('select', $this->attributes);

    // Normalize current value as a string.
    $valueAsString = Cast::toManString($this->value, '');

    // Add an empty option, if necessary.
    if ($this->emptyOption!==null)
    {
      $optionAttributes = ['value'    => $this->emptyOption,
                           'selected' => ($valueAsString===Cast::toManString($this->emptyOption, ''))];

      $html .= Html::generateElement('option', $optionAttributes, ' ');
    }

    if (is_array($this->options))
    {
      foreach ($this->options as $option)
      {
        $optionAttributes = $this->optionAttributes($option);

        // Get the (database) key of the option.
        $key         = $option[$this->keyKey];
        $keyAsString = Cast::toManString($key, '');

        // If an obfuscator is installed compute the obfuscated code of the (database) ID.
        $code = ($this->optionsObfuscator) ? $this->optionsObfuscator->encode(Cast::toOptInt($key)) : $keyAsString;

        $optionAttributes['value']    = $code;
        $optionAttributes['selected'] = ($valueAsString===$keyAsString);

        $html .= Html::generateElement('option', $optionAttributes, Cast::toOptString($option[$this->labelKey]));
      }
    }

    $html .= '</select>';
    $html .= $this->getHtmlPostfixLabel();
    $html .= $this->postfix;

    return $html;
  }
327936
public function getActionTaskHtml()
    {
        $html = '<div class="field dmsdocment-actions">'
            . '<label class="left">' . _t('DMSDocument.ACTIONS_LABEL', 'Actions') . '</label>'
            . '<ul>';

        foreach ($this->actionTasks as $panelKey => $title) {
            $panelKey = Convert::raw2xml($panelKey);
            $title = Convert::raw2xml($title);

            $html .= '<li class="ss-ui-button dmsdocument-action" data-panel="' . $panelKey . '">'
                . _t('DMSDocument.ACTION_' . strtoupper($panelKey), $title)
                . '</li>';
        }

        $html .= '</ul></div>';

        return $html;
    }
501822
public function getHtml(): string
  {
    $html = $this->prefix;
    $html .= Html::generateTag('span', $this->attributes);

    if (is_array($this->options))
    {
      // Normalize current value as a string.
      $valueAsString = Cast::toManString($this->value, '');

      foreach ($this->options as $option)
      {
        $inputAttributes = $this->inputAttributes($option);
        $labelAttributes = $this->labelAttributes($option);

        $labelAttributes['for'] = $inputAttributes['id'];

        $key         = $option[$this->keyKey];
        $keyAsString = Cast::toManString($key, '');
        $value       = ($this->optionsObfuscator) ? $this->optionsObfuscator->encode(Cast::toOptInt($key)) : $key;

        $inputAttributes['value']   = $value;
        $inputAttributes['checked'] = ($valueAsString===$keyAsString);

        $html .= Html::generateVoidElement('input', $inputAttributes);

        $html .= $this->labelPrefix;
        $html .= Html::generateElement('label',
                                       $labelAttributes,
                                       Cast::toOptString($option[$this->labelKey]),
                                       $this->labelIsHtml);
        $html .= $this->labelPostfix;
      }
    }

    $html .= '</span>';
    $html .= $this->postfix;

    return $html;
  }
662882
public function getPanel()
	{
		if ($this->isUnderVersionControl()) {
			$title = '<h1>GIT</h1>';
			$warning = $cntTable = '';

			$branch = $this->getBranchName();
			if ($branch === 'master' || $branch === 'staging') {
				$warning = '<p style="color: #dd4742; font-weight: 700;">Current working in ' . $branch . ' branch</p>';
			}

			// commit message
			if (($commit = $this->getLastCommitMessage()) !== null) {
				$cntTable .= '<tr><td>Last commit</td><td> ' . $commit . ' </td></tr>';
			}

			// heads
			if (($heads = $this->getHeads()) !== null) {
				$cntTable .= '<tr><td>Branches</td><td> ' . $heads . ' </td></tr>';
			}

			// remotes
			if (($remotes = $this->getRemotes()) !== null) {
				$cntTable .= '<tr><td>Remotes</td><td> ' . $remotes . ' </td></tr>';
			}

			// tags
			if (($tags = $this->getTags()) !== null) {
				$cntTable .= '<tr><td>Tags</td><td> ' . $tags . ' </td></tr>';
			}

			$content = '<div class=\"tracy-inner tracy-InfoPanel\"><table><tbody>' .
				$cntTable .
				'</tbody></table></div>';

			return $title . $warning . $content;
		}

		return '';
	}
1075683
public function code()
    {
        $fieldWrapper = new HTMLBrick('div', $this->field());
        $fieldWrapper->addClass('col-lg-9');

        $formGroup = new HTMLBrick('div', $this->label().$fieldWrapper);
        $formGroup->addClass('form-group');
        if ($this->hasError) {
            $formGroup->addClass('has-error');
        }

        return $formGroup;
    }
1240625
private function getGroupId(): ?string
    {
        $group = $this->getPanelGroup();
        if (!$group) {
            return null;
        }

        $cssID = StringUtil::deserialize($group->cssID, true);
        if (is_string($cssID[0]) && $cssID[0] !== '') {
            return $cssID[0];
        }

        return 'panel-group-' . $group->id;
    }