Renders the header.

@return string
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)));
    }
137066
public function renderHeaderCell()
	{
		if ($this->grid->json) {
			$header = array('id' => $this->id);
			$content = array();
			if ($this->grid->enableSorting && $this->sortable && $this->name !== null) {
				$sort = $this->grid->dataProvider->getSort();
				$label = isset($this->header) ? $this->header : $sort->resolveLabel($this->name);

				if ($sort->resolveAttribute($this->name) !== false) {
					$label .= '<span class="caret"></span>';
				}
				$content['content'] = $sort->link($this->name, $label, array('class' => 'sort-link'));
			} else {
				if ($this->name !== null && $this->header === null) {
					if ($this->grid->dataProvider instanceof CActiveDataProvider) {
						$content['content'] = CHtml::encode(
							$this->grid->dataProvider->model->getAttributeLabel($this->name)
						);
					} else {
						$content['content'] = CHtml::encode($this->name);
					}
				} else {
					$content['content'] = trim($this->header) !== '' ? $this->header
						: $this->grid->blankDisplay;
				}
			}
			return CMap::mergeArray($header, $content);
		}
		parent::renderHeaderCell();
	}
1266422
public function showHeader()
    {
        $properties = $this->getProperties();
        $properties['header'] = true;
        $this->setProperties($properties);
        return $this;
    }
648417
private function buildHeader(){

        $formClass = $this->getClassName('str');
        $formName = $this->formName;
        $formNs = $this->formNs;

        $action = $this->action;
        $method = $this->method;
        $enctype = $this->enctype;
        $header = "<form action='".$action."' method='".$method."' class='".$formNs.$formClass."' id='".$formNs.$formName."' name='".$formNs.$formName."' enctype='".$enctype."'>";

        return $header;
    }
770665
public function render()
    {
        if (!$this->grid->usePagination()) {
            return '';
        }

        return $this->paginationRanger().
            $this->paginationLinks().
            $this->perPageSelector();
    }
757390
public function render() {
		
		$buffer = ''; 
		
		if ( !empty( $this->header ) ) {
			
			$buffer .= '<tr'.HTML::attr( $this->header[1] ).'>';
			foreach( $this->header[0] as $head ) {
				$head->name = 'th';
				$buffer .= $head->render();
			}
			$buffer .= '</tr>';
			foreach( $this->data as $row ) {
				$buffer .= '<tr'.HTML::attr( $row[1] ).'>';
				foreach( $this->header[0] as $key => $value ) {
					$buffer .= HTML::tag( 'td', $row[0][$key]->value, $row[0][$key]->attr );
				}
				$buffer .= '</tr>';
			}
		}
		else {
			foreach( $this->data as $row ) {
				$buffer .= '<tr'.HTML::attr( $row[1] ).'>';
				foreach( $row[0] as $value ) {
					$buffer .= $value->render();
				}
				$buffer .= '</tr>';
			}
		}
		
		$this->element->value = $buffer;
		
		return $this->element->render();
	}
940230
public function renderHeaderCell()
	{
		if ($this->grid->json) {
			$this->headerHtmlOptions['id'] = $this->id;
			if ($this->grid->json) {
				return CMap::mergeArray(
					$this->headerHtmlOptions,
					array('content' => $this->renderHeaderCellContent())
				);
			}
		}
		parent::renderHeaderCell();
	}
790129
function renderHeader(&$header)
    {
        $name = $header->getName();
        if (!empty($name) && isset($this->_templates[$name])) {
            $this->_html .= str_replace('{header}', $header->toHtml(), $this->_templates[$name]);
        } else {
            $this->_html .= str_replace('{header}', $header->toHtml(), $this->_headerTemplate);
        }
    }
564911
protected function _renderHead()
    {
        $document = $this->getService('anahita:document');
        $html = '<base href="base://" />';
        $html .= '<title>'.$document->getTitle().'</title>';
        $html .= '<meta name="description" content="'.$document->getDescription().'" />';

        /* Google+ Card*/
        $html .= '<meta itemprop="name" content="'.$document->getTitle().'" />';
        $html .= '<meta itemprop="description" content="'.$document->getDescription().'" />';

        if ($document->getImage()) {
            $html .= '<meta itemprop="image" content="'.$document->getImage().'" />';
        }

        /* Twitter Card */
        $twitter_card = ($document->getImage()) ? 'summary_large_image' : 'summary';
        $html .= '<meta name="twitter:card" value="'.$twitter_card.'">';
        $html .= '<meta property="twitter:title" content="'.$document->getTitle().'" />';
        $html .= '<meta property="twitter:description" content="'.$document->getDescription().'" />';
        $html .= '<meta property="og:type" content="'.$document->getType().'" />';
        $html .= '<meta property="twitter:site" content="'.$document->getLink().'" />';

        if ($document->getImage()) {
            $html .= '<meta property="twitter:image:src" content="'.$document->getImage().'" />';
        }


        /* Generic Open Graph tags */
        $html .= '<meta property="og:title" content="'.$document->getTitle().'" />';
        $html .= '<meta property="og:description" content="'.$document->getDescription().'" />';
        $html .= '<meta property="og:type" content="'.$document->getType().'" />';
        $html .= '<meta property="og:url" content="'.$document->getLink().'" />';

        if ($document->getImage()) {
            $html .= '<meta property="og:image" content="'.$document->getImage().'" />';
        }

        return $html;
    }
751825
protected function renderHeader()
	{
		echo "<ul class=\"tabs\">\n";
		foreach($this->tabs as $id=>$tab)
		{
			$title=isset($tab['title'])?$tab['title']:'undefined';
			$active=$id===$this->activeTab?' class="active"' : '';
			$url=isset($tab['url'])?$tab['url']:"#{$id}";
			echo "<li><a href=\"{$url}\"{$active}>{$title}</a></li>\n";
		}
		echo "</ul>\n";
	}
598947
public function render()
    {
        return implode(PHP_EOL, array_filter([
            $this->title->render(),
            $this->description->render(),
            $this->keywords->render(),
            $this->misc->render(),
            $this->webmasters->render(),
            $this->analytics->render(),
        ]));
    }
1210135
public function render()
    {
        parent::render();

        // performing redirect if needed
        $this->redirectAfterLogin();

        // is logged in ?
        $user = $this->getUser();
        $passwordField = 'oxuser__oxpassword';
        if (!$user || ($user && !$user->$passwordField->value) ||
            ($this->isEnabledPrivateSales() && $user && (!$user->isTermsAccepted() || $this->confirmTerms()))
        ) {
            $this->_sThisTemplate = $this->_getLoginTemplate();
        }

        return $this->_sThisTemplate;
    }
800961
public function render($with_headers = false)
    {
        $contents = array();

        // headers
        $headers = $this->getHeaders();
        if ($with_headers && $headers) {
            foreach ($headers as $key => $value) {
                $key = join('-', array_map('ucfirst', explode('-', $key)));
                $contents[] = sprintf('%s: %s', $key, $value);
            }
            $contents[] = '';
        }

        // content
        $contents[] = $this->content;

        return join("\n", $contents);
    }
851000
public function render()
    {
        
        // Render the table container
        $output = "<table {$this->renderAttributes()} >\n\t<tbody>\n";
        
        // Render the heading
        $output .= "\t\t<th>\n";
        
        foreach ($this->_head as $heading) {
            
            $output .= "\t\t\t<td>{$heading}</td>\n";
            
        }
        
        $output .= "\t\t</th>\n";
        
        // Render the rows
        foreach($this->_rows as $row) {
            
            $output .= "\t\t<tr>\n";
            
            foreach($this->_head as $columnName) {
                
                $column = $row[$columnName];
                
                switch(gettype($column)) {
                    
                    case 'array':
                        $column = print_r($column, true);
                        break;
                    
                    case 'object':
                        $column = (method_exists($column, 'render')) ? $column->render() : 'Object';
                        break;
                    
                    case 'boolean':
                        $column = $column ? 'True' : 'False';
                        break;
                    
                    case 'unknown type':
                    case 'resource':
                    case 'NULL':
                        $column = 'NULL';
                    
                    default:
                        break;
                    
                }
                
                $output .= "\t\t\t<td>{$column}</td>\n";
                
            }
            
            $output .= "\t\t</tr>\n";
            
        }
        
        $output .= "\t</tbody>\n</table>";
        
        return $output;
        
    }
68117
public function render() : string
    {
        if ($this->isVoid) {
            return $this->renderOpeningTag();
        }

        return $this->renderOpeningTag() . $this->content . $this->renderClosingTag();
    }
1354943
public function render()
    {
        $output[] = $this->open();

        if ($this->withLabel) {
            $output[] = $this->now . '%';
        } else {
            $output[] = $this->label;
        }

        $output[] = $this->close();

        return implode(PHP_EOL, $output);
    }
630787
public function render()
    {
        $max_label_length = $this->max_label_length + 5;
        $dashes = str_repeat('-', $max_label_length + 39) . "\n";
        $margin = str_repeat(' ', 2);

        $header = sprintf(
            "%s %-{$max_label_length}s %-12s %-12s %s\n",
            $margin, 'label', 'time (ms)', 'perc', 'memory'
        );

        $body = '';
        foreach ($this->runs as $run) {
            $body .= sprintf(
                "%s %-{$max_label_length}s %-10s %6s %14s\n",
                $margin,
                $run->label,
                $run->time,
                number_format(($run->time * 100) / $this->total, 2, '.', ''),
                $run->memory
            );
        }
        return $header . $dashes . $body . $dashes;
    }