Renders the Content Sets table
@return string
763882
protected function renderContentSets()
    {
        $ret = '';
        $ret .= $this->start('table');
        $ret .= $this->element('caption', 'Content Sets');
        foreach ($this->def->info_content_sets as $name => $lookup) {
            $ret .= $this->heavyHeader($name);
            $ret .= $this->start('tr');
            $ret .= $this->element('td', $this->listifyTagLookup($lookup));
            $ret .= $this->end('tr');
        }
        $ret .= $this->end('table');
        return $ret;
    }
996688
protected function renderContent() {
        ?>
            <div id="maj-sosa-missing-page" class="center">
    			<h2><?= $this->data->get('title') ?></h2>
    			
    			<?php  if($this->data->get('is_setup')) { 
    			    $this->renderSosaHeader();
    			    if($this->data->get('has_missing', false)) {
    			        $table_id = $this->data->get('table_id');
    			        ?>
    			<div id="sosa-indi-missing" class="smissing-list">
                	<table id="<?= $table_id ?>">
        				<thead>     
            				<tr>
    							<th colspan="11">
    								<div class="btn-toolbar">
    									<div class="btn-group">
    										<button
    											class="ui-state-default"
    											data-filter-column="10"
    											data-filter-value="M"
    											title="<?php I18N::translate('Show only males.'); ?>"
    											type="button"
    										>
    										<?= Individual::sexImage('M', 'large') ?>
    										</button>
    										<button
    											class="ui-state-default"
    											data-filter-column="10"
    											data-filter-value="F"
    											title="<?php I18N::translate('Show only females.'); ?>"
    											type="button"
    										>
    										<?= Individual::sexImage('F', 'large') ?>
    										</button>
    										<button
    											class="ui-state-default"
    											data-filter-column="10"
    											data-filter-value="U"
    											title="<?php I18N::translate('Show only individuals for whom the gender is not known.'); ?>"
    											type="button"
    										>
    										<?= Individual::sexImage('U', 'large') ?>
    										</button>
    									</div>
    								</div>
    							</th>
    						</tr>       				
        					<tr>
        						<th><?= I18N::translate('Sosa') ?></th>
        						<th><?= GedcomTag::getLabel('INDI') ?></th>
        						<th><?= GedcomTag::getLabel('GIVN') ?></th>
        						<th><?= GedcomTag::getLabel('SURN') ?></th>
        						<?php if (ModuleManager::getInstance()->isOperational(Constants::MODULE_MAJ_ISSOURCED_NAME)) { ?>
        						<th><i class="icon-source" title="<?= I18N::translate('Sourced individual') ?>" border="0"></i></th>
        						<?php } else { ?>
        						<th></th>
        						<?php } ?>
        						<th><?= Functions::getRelationshipNameFromPath('fat') ?></th>
								<th><?= Functions::getRelationshipNameFromPath('mot') ?></th>        						
        						<th><?= GedcomTag::getLabel('BIRT') ?></th>
        						<th><?= GedcomTag::getLabel('PLAC') ?></th>
        						<?php if (ModuleManager::getInstance()->isOperational(Constants::MODULE_MAJ_ISSOURCED_NAME)) { ?>
        						<th><i class="icon-source" title="<?= I18N::translate('Sourced birth') ?>" border="0"></i></th>
        						<?php } else { ?>
        						<th></th>
        						<?php } ?>
        						<th hidden>SEX</th>
        					</tr>
        				</thead>
        			<tbody>
        			
        			<?php foreach($this->data->get('missing_list') as $missing_tab) {
        			    $person = $missing_tab['indi'];
        			    
        			    /** @var \Fisharebest\Webtrees\Individual $person */
        			    if ($person->isPendingAddtion()) {
        			        $class = ' class="new"';
        			    } elseif ($person->isPendingDeletion()) {
        			        $class = ' class="old"';
        			    } else {
        			        $class = '';
        			    }
        			    $dperson = new \MyArtJaub\Webtrees\Individual($person);
        			    list($surn_givn, $givn_surn) = FunctionsPrintLists::sortableNames($person);
        			    ?>			
                		<tr <?= $class ?>>
                			<td class="transparent"><?= $missing_tab['sosa'] ?></td>
                			<td class="transparent"><?= $person->getXref() ?></td>
                			<td colspan="2" data-sort="<?= Filter::escapeHtml($givn_surn) ?>">
                			<?php foreach ($person->getAllNames() as $num=>$name) {
                				if ($name['type']=='NAME') {
                					$title='';
                				} else {
                					$title='title="'.strip_tags(GedcomTag::getLabel($name['type'], $person)).'"';
                				}
                				if ($num==$person->getPrimaryName()) {
                					$class=' class="name2"';
                					$sex_image=$person->getSexImage();
                				} else {
                					$class='';
                					$sex_image='';
                				} ?>
                				<a <?= $title.' '.$class ?> href="<?= $person->getHtmlUrl() ?>">
                					<?= \Fisharebest\Webtrees\Functions\FunctionsPrint::highlightSearchHits($name['full']) ?>
                				</a>
                				<?= $sex_image;
                				echo implode('&nbsp;',
                				    \MyArtJaub\Webtrees\Hook\HookProvider::getInstance()
                				    ->get('hRecordNameAppend')
                				    ->executeOnlyFor(array(Constants::MODULE_MAJ_SOSA_NAME),  $person, 'smaller'));  ?>
                				<br/>
                    		<?php }
                    		echo $person->getPrimaryParentsNames('parents details1', 'none');
                    		?>
                    		</td>
							<td hidden data-sort="<?= Filter::escapeHtml($surn_givn) ?>"></td>             		
                			<?php if (ModuleManager::getInstance()->isOperational(Constants::MODULE_MAJ_ISSOURCED_NAME)) {
        				        $isISourced = $dperson->isSourced(); ?>
        				   	<td data-sort="<?= $isISourced ?>"><?= FunctionsPrint::formatIsSourcedIcon('R', $isISourced, 'INDI', 1, 'medium') ?></td>
        					<?php } else { ?>
        					<td>&nbsp;</td>
        					<?php } ?>
        					<td><?= $missing_tab['has_father'] ? '&nbsp;' : 'X' ?></td>
        					<td><?= $missing_tab['has_mother'] ? '&nbsp;' : 'X' ?></td>
                    		<?php $birth_dates = $person->getAllBirthDates(); ?>
                    		<td data-sort="<?= $person->getEstimatedBirthDate()->julianDay() ?>">
                    		<?php                     		
                    		foreach ($birth_dates as $n => $birth_date) {
                    		    if ($n > 0) { ?> <br> <?php  } 
                    		    echo $birth_date->display(true);
                    		}
                    		?>
                    		</td>
                			<td>
                			<?php foreach ($person->getAllBirthPlaces() as $n => $birth_place) {
        				        $tmp = new \Fisharebest\Webtrees\Place($birth_place, $person->getTree());
                				if ($n > 0) { ?><br><?php } ?>
                				<a href="'<?= $tmp->getURL(); ?>" title="<?= strip_tags($tmp->getFullName()) ?>">
                					<?= \Fisharebest\Webtrees\Functions\FunctionsPrint::highlightSearchHits($tmp->getShortName()) ?>
                				</a>
                			<?php } ?>
                			</td>
        					<?php if (ModuleManager::getInstance()->isOperational(Constants::MODULE_MAJ_ISSOURCED_NAME)) {
        				        $isBSourced = $dperson->isBirthSourced(); ?>
        				   	<td data-sort="<?= $isBSourced ?>"><?= FunctionsPrint::formatIsSourcedIcon('E', $isBSourced, 'BIRT', 1, 'medium') ?></td>
        					<?php } else { ?>
        					<td>&nbsp;</td>
        					<?php } ?>
        					<td hidden><?= $person->getSex() ?></td>
        				</tr>
                	<?php } ?>
                	</tbody>
                	<tfoot>
						<tr>
							<td class="ui-state-default" colspan="11">
								<div class="center">
									<?= I18N::translate('Number of different missing ancestors: %s', I18N::number($this->data->get('missing_diff_count'))) ?>
									<?php if($this->data->get('missing_hidden') > 0) echo ' ['. I18N::translate('%s hidden', I18N::number($this->data->get('missing_hidden'))).']'; ?>
									<?= ' - ' . I18N::translate('Generation complete at %s', I18N::percentage($this->data->get('perc_sosa'), 2)) ?>
									<?= ' [' . I18N::translate('Potential %s', I18N::percentage($this->data->get('perc_sosa_potential'),2)).']' ?>
								</div>
							</td>
						</tr>
					</tfoot>
                </table>
    			 <?php } else if ($this->data->get('generation', 0) > 0) { ?> 
    			<p><?= I18N::translate('No ancestors are missing for this generation. Generation complete at %s.', I18N::percentage($this->data->get('perc_sosa'), 2)) ?></p>
    			    <?php }   			    
    			} else { ?>
    			<p class="warning"><?= I18N::translate('The list could not be displayed. Reasons might be:') ?><br/>
    				<ul>
    					<li><?= I18N::translate('No Sosa root individual has been defined.') ?></li>
    					<li><?= I18N::translate('The Sosa ancestors have not been computed yet.') ?></li>
    					<li><?= I18N::translate('No generation were found.') ?></li>
    				</ul>
    			</p>
    			<?php } ?>
    		</div> 
    		<?php 
        }
782007
public function render(){
		if (!$this->init_flag){
			$this->init_flag=true;
			return "";
		}
		$res = $this->sql->get_variants($this->config->text[0]["db_name"],$this->request);
		return $this->render_set($res);
	}
101044
protected function renderContent() {
        
        /** @var Tree $tree  */
        $tree = $this->data->get('tree');
        $root_url = $this->data->get('root_url');
        $other_trees = $this->data->get('other_trees');
        $table_id = $this->data->get('table_id');
        ?>        
        <ol class="breadcrumb small">
        	<li><a href="admin.php"><?php echo I18N::translate('Control panel'); ?></a></li>
			<li><a href="admin_modules.php"><?php echo I18N::translate('Module administration'); ?></a></li>
			<li class="active"><?php echo $this->data->get('title'); ?></li>
		</ol>
		
		<h1><?php echo $this->data->get('title'); ?></h1>
		
		<h2>
			<?php echo $tree->getTitleHtml(); ?>
			<?php if(count($other_trees) > 0) {?>
			<div class="btn-group">
				<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
					<?php echo I18N::translate('Change tree'); ?>
					<span class="caret"></span>
				</button>
				<?php foreach($other_trees as $other_tree) { ?>
				<ul class="dropdown-menu" role="menu">
					<li>
						<a href="<?php echo $root_url . '&ged=' . $other_tree->getNameUrl(); ?>">
							<i class="fa fa-fw fa-tree"></i>&nbsp;<?php echo $other_tree->getTitleHtml(); ?>
						</a>
					</li>
    			</ul>
    			<?php } ?>
    		</div>
    		<?php } ?>
		</h2>
		
		<p>
		<?php $places_hierarchy = $this->data->get('places_hierarchy'); 
		if($places_hierarchy) {
		    switch ($places_hierarchy['type']) {
		        case 'header':
		            echo I18N::translate('According to the GEDCOM header, the places within your file follows the structure: ');
		            break;
		        case 'data':
		            echo I18N::translate('Your GEDCOM header does not contain any indication of place structure.').
		            '<br/>'.
		            I18N::translate('Here is an example of your place data: ');
		            break;
		        default:
		            break;
		    }
		    $str_hierarchy = array();
		    foreach($places_hierarchy['hierarchy'] as $key => $level) {
		        $str_hierarchy[] = I18N::translate('(%d) %s', $key + 1, $level);
		    }
		    echo '<strong>' . implode(I18N::$list_separator, $str_hierarchy) . '</strong>';
		}
		?>
		</p>

		<table id="<?php echo $table_id; ?>" class="table table-condensed table-bordered">
    		<thead>
    			<tr>
    				<th><?php echo I18N::translate('Edit'); ?></th>
    				<th hidden><!-- geoanalysis id --></th>
    				<th><?php echo I18N::translate('Enabled'); ?></th>
    				<th><?php echo I18N::translate('Description'); ?></th>
    				<th><?php echo I18N::translate('Level of analysis'); ?></th>
    				<th><!-- Analysis Level --></th>
    				<th><?php echo I18N::translate('Map'); ?></th>
    				<th><?php echo I18N::translate('Map parent level'); ?></th>
    				<th><?php echo I18N::translate('Use flags'); ?></th>
    				<th><?php echo I18N::translate('Top places'); ?></th>
    			</tr>
    		</thead>
    		<tbody>
    		</tbody>
    	</table>
    	
        <a type="button" class="btn btn-primary" href="<?php echo $root_url . '@add&ged=' . $tree->getNameUrl(); ?>" title="<?php echo I18N::translate('Add'); ?>">
        	<i class="fa fa-plus"></i>
        	<?php echo I18N::translate('Add'); ?>
        </a>
		
		<?php        
    }
1241748
protected function render()
    {
        if (!isset($this->items[0])) {
            return $this->contentIfEmpty;
        }
        
        $this->html('<' . $this->type . $this->getEltDecorationStr() . '>');
        foreach ($this->items as $item) {
            $this->html('<li>' . $item . '</li>');
        }
        $this->html('</' . $this->type . '>');
        return $this->getHtml();
    }
590674
public function render()
	{
		$buffer	= '';
		foreach( $this->list as $content )
			$buffer	.= $this->renderInner( $content );
		return $buffer;
	}
525800
public function renderContent()
    {
        // Render Subclass Template:
        
        if ($this->getTemplate() != self::class) {
            return $this->renderWith($this->getTemplate());
        }
        
        // Render Button Instance:
        
        if ($button = $this->getButton()) {
            return DBField::create_field('HTMLFragment', $button->render());
        }
    }
225349
public function render() {
		$rows = [];
		
		$rows[] = $this->color('ZExt framework ' . Version::getVersion(), 'yellow') . ' | Debug info:' . PHP_EOL;

		$brief = array_search('brief', $this->getCliParams());
		
		foreach ($this->info as $info) {
			$row = ' ' . $info->getName();
			
			if ($info->hasTitle()) {
				$row .= ': ' . $this->bbCodesHandle($info->getTitle());
			}
			
			$rows[] = $this->colorLine($row, null, 'dark_gray') . PHP_EOL;
			
			if ($brief || $info->isEmpty()) {
				continue;
			}
			
			$rows[] = $this->createContent($info) . PHP_EOL;
		}
		
		return implode(PHP_EOL, $rows) . PHP_EOL;
	}
120682
protected function tableHeaders() : string
    {
        $arrCells = [];
        foreach ($this->getHeaderColumns() as $key => $val) {
            $arrCells[] = $this->renderHeaderColumn($key, $val);
        }        
        $arrCells[] = "";
        
        $content = H::renderTableHeaderRow($arrCells);
        $full = H::thead($content)
                . H::tbody('');
        return $full;
    }
1255542
protected function renderContent() {
        
        /** @var AbstractTask $task */
        $task = $this->data->get('task');
        ?>        
        <ol class="breadcrumb small">
        	<li><a href="admin.php"><?php echo I18N::translate('Control panel'); ?></a></li>
			<li><a href="admin_modules.php"><?php echo I18N::translate('Module administration'); ?></a></li>
			<li><a href="<?php echo $this->data->get('admin_config_url'); ?>"><?php echo $this->data->get('module_title'); ?></a></li>
			<li class="active"><?php echo $this->data->get('title'); ?></li>
		</ol>
		
		<h1><?php echo $this->data->get('title'); ?></h1>
		
		<form class="form-horizontal" name="newform" method="post" role="form" action="<?php echo $this->data->get('save_url'); ?>" autocomplete="off">
    		<?php echo Filter::getCsrf(); ?>
    		<input type="hidden" name="task" value="<?php echo $task->getName(); ?>">
    
			<h3><?php echo I18N::translate('General'); ?></h3>
	
    		<!-- FREQUENCY -->
    		<div class="form-group">
    			<label class="control-label col-sm-3" for="frequency">
    				<?php echo I18N::translate('Frequency'); ?>
    			</label>
    			<div class="col-sm-9">
    				<div class="row">
    					<div class="col-sm-4">
            				<div class="input-group" >
                				<input class="form-control" type="number" min="0" id="frequency" name="frequency" required maxlength="70" value="<?php echo $task->getFrequency(); ?>" dir="auto">
            					<span class="input-group-addon">
            						<?php echo I18N::translate('minutes'); ?>
            					</span>
        					</div>
        				</div>
        			</div>
    				<p class="small text-muted">
    					<?php echo I18N::translate('Frequency at which the task should be run (in minutes).'); ?>
						<?php echo I18N::translate('The actual run of the task may not be fired exactly at the frequency defined, but should be run as close as possible to it.'); ?>
    				</p>
    			</div>
    		</div>
			
			<!-- LIMITED OCCURRENCES -->
    		<div class="form-group">
    			<label class="control-label col-sm-3" for="is_limited">
    				<?php echo I18N::translate('Run a limited number of times'); ?>
    			</label>
    			<div class="col-sm-9">
    				<?php echo FunctionsEdit::editFieldYesNo('is_limited', $task->getRemainingOccurrences() > 0 ? 1 : 0, 'class="radio-inline"'); ?>
				    <p class="small text-muted">
    					<?php echo I18N::translate('Defines whether the task should be run only a limited number of times.'); ?>
    				</p>
    			</div>
    		</div>
			
			<!-- NB_OCCURRENCES -->
    		<div id="nb_occurences" class="form-group">
    			<label class="control-label col-sm-3" for="nb_occur">
    				<?php echo I18N::translate('Number of occurrences'); ?>
    			</label>
    			<div class="col-sm-9">
    				<div class="row">
    					<div class="col-sm-3">
            				<div class="input-group" >
                				<input class="form-control" type="number" min="0" id="nb_occur" name="nb_occur" maxlength="70" value="<?php echo $task->getRemainingOccurrences(); ?>" dir="auto">
            					<span class="input-group-addon">
            						<?php echo I18N::translate('time(s)'); ?>
            					</span>
        					</div>
        				</div>
        			</div>
    				<p class="small text-muted">
    					<?php echo I18N::translate('Defines the number of times the task will run.'); ?>
    				</p>
    			</div>
    		</div>
			
			<?php if($task instanceof ConfigurableTaskInterface) { ?>
			
			<h3><?php echo I18N::translate('Options for “%s”', $task->getTitle()); ?></h3>
			
			<?php echo $task->htmlConfigForm(); ?>
			
			<?php } ?>
    		
    		<div class="form-group">
    			<div class="col-sm-offset-3 col-sm-9">
    				<button type="submit" class="btn btn-primary">
    					<?php echo I18N::translate('save'); ?>
    				</button>
    			</div>
    		</div>
    	</form>
		
		<?php        
    }
472337
public function render_content() {
		if ( empty( $this->choices ) ) {
			return;
		}
		?>

		<?php if ( ! empty( $this->label ) ) : ?>
			<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
		<?php endif; ?>

		<?php if ( ! empty( $this->description ) ) : ?>
			<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
		<?php endif; ?>

		<?php $multi_values = ( ! is_array( $this->value() ) ) ? explode( ',', $this->value() ) : $this->value(); ?>

		<ul>
			<?php foreach ( $this->choices as $value => $label ) : ?>
				<li>
					<label>
						<input type="checkbox" value="<?php echo esc_attr( $value ); ?>" <?php checked( in_array( $value, $multi_values ) ); ?> />
						<?php echo esc_html( $label ); ?>
					</label>
				</li>
			<?php endforeach; ?>
		</ul>

		<input type="hidden" <?php $this->link(); ?> value="<?php echo esc_attr( implode( ',', $multi_values ) ); ?>" />
		<?php
	}
18438
public function toString()
    {
        $output = [];
        $output[] = '<table' . $this->renderAttributes($this->getTableAttributes()) . '>';

        if (count($this->specialRows['header'])) {
            $output[] = $this->renderArea($this->specialRows['header'], 'thead', 'th');
        }

        $ids = array_diff(
            array_keys($this->rows),
            array_merge($this->specialRows['header'], $this->specialRows['footer'])
        );

        if (count($ids)) {
            $output[] = $this->renderArea($ids);
        }

        if (count($this->specialRows['footer'])) {
            $output[] = $this->renderArea($this->specialRows['footer'], 'tfoot');
        }

        $output[] = '</table>';

        return implode('', $output);
    }
96812
public function render()
    {
        $str = $this->renderTable($this->table);
        if (empty($str)) {
            return self::NO_DATA_AVAILABLE;
        }

        $this->renderHeader();

        $str = $this->convertToUnicode($str);
        return $str;
    }
781207
private function render()
    {
        $transformation = implode('_', array_column($this->items, 'rendered'));
        $transformation = preg_replace('#(_?/_?)+#isu', '/', $transformation);
        $transformation = trim($transformation, '/_');

        return $transformation;
    }
319191
public function Content()
    {
        $templates = array_reverse(array_values(ClassInfo::ancestry($this->widget->class)));
        return $this->renderWith($templates);
    }
640640
public function render() {

		$title = $list = $template = '';

		if ( $this->items ) {

			// If there's title text, format it.
			if ( $this->args['title_text'] ) {

				$title = sprintf(
					'<%1$s class="%2$s">%3$s</%1$s>',
					tag_escape( $this->args['title_tag'] ),
					esc_attr( $this->args['title_class'] ),
					esc_html( $this->args['title_text'] )
				);
			}

			// Loop through each of the items and format each into
			// an HTML string.
			foreach ( $this->items as $item ) {

				$list .= $this->formatItem( $item );
			}

			// Format the list.
			$list = sprintf(
				'<%1$s class="%2$s">%3$s</%1$s>',
				tag_escape( $this->args['list_tag'] ),
				esc_attr( $this->args['list_class'] ),
				$list
			);

			// Format the nav wrapper.
			$template = sprintf(
				'<%1$s class="%2$s" role="navigation">%3$s%4$s</%1$s>',
				tag_escape( $this->args['container_tag'] ),
				esc_attr( sprintf( $this->args['container_class'], $this->context ) ),
				$title,
				$list
			);
		}

		return apply_filters( "hybrid/pagination/{$this->context}", $template, $this->args );
	}
531522
public function getHtmlHeadEntrySet()
    {
        $set = parent::getHtmlHeadEntrySet();

        foreach ($this->columns as $column) {
            $set->addEntrySet($column->getHtmlHeadEntrySet());
        }

        foreach ($this->spanning_columns as $column) {
            $set->addEntrySet($column->getHtmlHeadEntrySet());
        }

        foreach ($this->extra_rows as $row) {
            $set->addEntrySet($row->getHtmlHeadEntrySet());
        }

        foreach ($this->groups as $group) {
            $set->addEntrySet($group->getHtmlHeadEntrySet());
        }

        return $set;
    }