Home
last modified time | relevance | path

Searched refs:html (Results 1 – 25 of 195) sorted by relevance

12345678

/webtrees/app/Module/InteractiveTree/
H A DTreeView.php63 $html = view('modules/interactive-tree/chart', [
71 $html,
131 $html = $this->getPersonDetails($individual, null);
135 $html .= $this->getPersonDetails($spouse, $family);
139 return $html;
187 $html = '';
216 $html .= $this->drawPerson($child, $gen - 1, -1, null, $co, false);
219 …$html = '<td align="right"' . ($gen === 0 ? ' abbr="c' . $f2load . '"' : '') . '>' . $html . '</td…
223 return $html;
251 …$html = '<table id="tvTreeBorder" class="tv_tree"><tbody><tr><td id="tv_tree_topleft"></td><td id=…
[all …]
/webtrees/tests/feature/
H A DIndividualListTest.php74 $html = $response->getBody()->getContents();
75 preg_match_all('/%2Findividual-list&amp;alpha=([^"&]+)/', $html, $matches);
81 $html = $response->getBody()->getContents();
82 preg_match_all('/%2Findividual-list&amp;alpha=([^"&]+)/', $html, $matches);
88 $html = $response->getBody()->getContents();
89 preg_match_all('/%2Findividual-list&amp;alpha=([^"&]+)/', $html, $matches);
126 $html = $response->getBody()->getContents();
127 preg_match_all('/%2Fname%2Findividual%2F(X\d+)%2F/', $html, $matches);
133 $html = $response->getBody()->getContents();
134 preg_match_all('/%2Fname%2Findividual%2F(X\d+)%2F/', $html, $matches);
[all …]
/webtrees/tests/
H A DTestCase.php221 $html = $response->getBody()->getContents();
223 self::assertStringStartsWith('<DOCTYPE html>', $html);
225 $this->validateHtml(substr($html, strlen('<DOCTYPE html>')));
228 protected function validateHtml(string $html): void argument
233 $html = substr($html, strcspn($html, '<>'));
235 if (str_starts_with($html, '>')) {
239 if (str_starts_with($html, '<')) {
240 if (preg_match('~^</([a-z]+)>~', $html, $match)) {
244 $html = substr($html, strlen($match[0]));
245 … } elseif (preg_match('~^<([a-z]+)(?:\s+[a-z_\-]+="[^">]*")*\s*(/?)>~', $html, $match)) {
[all …]
/webtrees/app/Module/
H A DCensusAssistantModule.php69 $html = $this->censusTableHeader(new $census_class());
71 return response($html);
96 $html = $this->censusTableRow($census, $individual, $head);
98 $html = $this->censusTableEmptyRow($census);
101 return response($html);
211 $html = '';
213 …$html .= '<th class="wt-census-assistant-field" title="' . $column->title() . '">' . $column->abbr…
216 return '<tr class="wt-census-assistant-row"><th hidden></th>' . $html . '<th></th></tr>';
230 …$html = '<td class="wt-census-assistant-field" hidden><input type="hidden" name="ca_individuals[xr…
233 …$html .= '<td class="wt-census-assistant-field p-0"><input class="form-control wt-census-assistant…
[all …]
H A DDescendancyModule.php88 $html = '';
91 $html = $this->search_service
97 if ($html !== '') {
98 $html = '<ul>' . $html . '</ul>';
101 return response($html);
117 $html = $this->loadSpouses($individual, 1);
119 $html = '';
122 return response($html);
H A DFanChartModule.php308 $html = '';
443 $html .= '<div id="' . $individual->xref() . '" class="fan_chart_menu">';
444 $html .= '<a href="' . e($individual->url()) . '" class="dropdown-item p-1">';
445 $html .= $individual->fullName();
446 $html .= '</a>';
451 … $html .= '<a href="' . e($link) . '" class="dropdown-item p-1 ' . e($class) . '">';
452 $html .= $menu->getLabel();
453 $html .= '</a>';
456 $html .= '</div>';
468 'html' => $html,
H A DFixPrimaryTag.php107 $html = '';
109 … $html = '<p>' . I18N::translate('Delete') . ' – <code>' . e($prim->gedcom()) . '</code></p>';
112 $html .= '<ul>';
114 …$html .= '<li>' . I18N::translate('Re-order media') . ' – <a href="' . e($individual->url()) . '">…
116 $html .= '</ul>';
118 return $html;
H A DHtmlBlockModule.php160 $html = Validator::parsedBody($request)->string('html');
165 $this->setBlockSetting($block_id, 'html', $this->html_service->sanitize($html));
182 $html = $this->getBlockSetting($block_id, 'html');
187 … $html => I18N::translate('Custom'),
194 'html' => $html,
/webtrees/public/ckeditor-4.15.1-custom/
H A DCHANGES.md8 … feature](https://ckeditor.com/docs/ckeditor4/latest/features/colorbutton.html#color-history) repo…
16 …TOR.inlineAll()`](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR.html#method-inlineAll) m…
18 …[block format](https://ckeditor.com/docs/ckeditor4/latest/features/format.html) should remove exis…
19 …der](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_scriptLoader.html) does not execute c…
20 …ITOR.domReady()`](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR.html#method-domReady) me…
27 …esRemove`](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-stylesRemove)…
33 …classic.html) by handling exceptions and displaying convenient [error messages](https://ckeditor.c…
39 …_config.html#cfg-colorButton_foreStyle) and [`config.colorButton_backStyle`](https://ckeditor.com/…
49 …ionChars`](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-dataIndentation…
51 …w`](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_dom_selection.html#method-scrollIntoVi…
[all …]
/webtrees/app/Elements/
H A DNoteStructure.php123 $html = $this->valueFormatted($value, $tree);
127 if ($html === '<p>' . strip_tags($note->fullName()) . '</p>') {
128 $value = '<a href="' . e($note->url()) . '">' . strip_tags($html) . '</a>';
142 $html .
147 $html = $this->valueFormatted($value, $tree);
150 … if ($html === strip_tags($html, ['a', 'em', 'p', 'strong']) && substr_count($html, '<p>') === 1) {
151 $html = strip_tags($html, ['a', 'em', 'strong']);
152 $value = '<span class="ut">' . $html . '</span>';
157 $value = e(Note::firstLineOfTextFromHtml($html));
169 $html .
H A DAbstractElement.php250 … $html = I18N::translate(/* I18N: e.g. "Occupation: farmer" */ '%1$s: %2$s', $label, $value);
252 return '<div>' . $html . '</div>';
337 $html = Registry::markdownFactory()->autolink($canonical);
338 $html = strip_tags($html, ['a', 'br']);
340 $html = nl2br(e($canonical), false);
343 if (str_contains($html, '<br>')) {
344 return '<span class="ut d-inline-block">' . $html . '</span>';
347 return '<span class="ut">' . $html . '</span>';
H A DCensus.php68 $html = $this->editHidden($id, $name, $value);
70 $html .= view('modules/GEDFact_assistant/select-census', [
84 $html .= $census_assistant->createCensusAssistant($record);
87 return $html;
/webtrees/app/Http/RequestHandlers/
H A DManageMediaData.php283 …$html = '<a href="' . e($media->url()) . '" title="' . e($media->tree()->title()) . '">' . $med…
286 $html .= ' — ' . e($media->tree()->title());
289 $html .= $element->value($media->getNote(), $media->tree());
318 $html .= '<ul class="list-unstyled">';
320 $html .= '<li>' . $link . '</li>';
322 $html .= '</ul>';
324 …$html .= '<div class="alert alert-danger">' . I18N::translate('There are no links to this media ob…
327 return $html;
340 $html = '<dl>';
341 $html .= '<dt>' . I18N::translate('Filename') . '</dt>';
[all …]
/webtrees/tests/app/Elements/
H A DAbstractElementTestCase.php52 $html = static::$element->value(self::EVIL_VALUE, $tree);
55 self::assertStringNotContainsStringIgnoringCase(self::EVIL_VALUE, $html, $message);
61 $html = static::$element->labelValue(self::EVIL_VALUE, $tree);
64 self::assertStringNotContainsStringIgnoringCase(self::EVIL_VALUE, $html, $message);
70 $html = static::$element->edit('id', 'name', self::EVIL_VALUE, $tree);
73 self::assertStringNotContainsStringIgnoringCase(self::EVIL_VALUE, $html, $message);
79 $html = static::$element->value(self::TEST_VALUE, $tree);
81 $this->validateHtml($html);
87 $html = static::$element->edit('id', 'name', self::TEST_VALUE, $tree);
89 $this->validateHtml($html);
H A DXrefSourceTest.php56 $html = $element->edit('some-id', 'some-name', '@X123@', $tree);
58 $dom->loadHTML($html);
77 $html = $element->edit('some-id', 'some-name', 'An inline source', $tree);
79 $dom->loadHTML($html);
/webtrees/app/
H A DNote.php92 $html = Registry::markdownFactory()->markdown($this->getNote());
94 $html = Registry::markdownFactory()->autolink($this->getNote());
97 $first_line = self::firstLineOfTextFromHtml($html);
107 * @param string $html
111 public static function firstLineOfTextFromHtml(string $html): string argument
113 $html = strtr($html, [
129 $html = strip_tags($html, ['br']);
131 [$first] = explode(MarkdownFactory::BREAK, $html, 2);
H A DHtml.php45 $html = [];
48 $html[] = e($key) . '="' . e($value) . '"';
50 $html[] = e($key) . '="' . $value . '"';
52 $html[] = e($key) . '="' . e($key) . '"';
56 return implode(' ', $html);
/webtrees/tests/views/
H A DAbstractViewTest.php40 $html = view($view, $datum);
42 $this->validateHTML($html);
71 protected function validateHtml(string $html): void argument
73 if (str_starts_with($html, '<!DOCTYPE html>')) {
74 $xml = $html;
76 $xml = '<!DOCTYPE html><html lang="en"><body>' . $html . '</body></html>';
82 self::assertTrue($doc->loadXML($xml, LIBXML_PEDANTIC), $html);
/webtrees/resources/views/
H A Dfact-date.phtml24 $html = ''; variable
50 $html .= ' ' . $date->display($cal_link ? $record->tree() : null, null, true);
53 $html .= ' – <span class="date">' . $match[1] . '</span>';
63 $html .= view('fact-parents-age', ['individual' => $record, 'birth_date' => $date]);
136 $html .= ' <span class="age">' . $ageText . '</span>';
149 $html .= ' <span class="label">' . $label . ':</span> <span class="age">' . $age . '</span>';
154 <?= $html ?>
/webtrees/app/Factories/
H A DMarkdownFactory.php105 $html = $converter->convert($markdown)->getContent();
108 $html = strip_tags($html, ['a', 'br', 'p']);
111 return strtr($html, ["\n" => '']);
136 $html = $converter->convert($markdown)->getContent();
139 return strtr($html, ["\n" => '']);
/webtrees/tests/app/Module/
H A DMapLinkOpenStreetMapTest.php41 $html = $module->mapLink($fact);
43 static::assertSame('', $html);
59 $html = $module->mapLink($fact);
61 self::assertTrue((new DOMDocument())->loadHTML($html), 'HTML=' . $html);
H A DMapLinkGoogleTest.php41 $html = $module->mapLink($fact);
43 static::assertSame('', $html);
59 $html = $module->mapLink($fact);
61 self::assertTrue((new DOMDocument())->loadHTML($html), 'HTML=' . $html);
H A DMapLinkBingTest.php41 $html = $module->mapLink($fact);
43 static::assertSame('', $html);
62 $html = $module->mapLink($fact);
64 self::assertTrue((new DOMDocument())->loadHTML($html), 'HTML=' . $html);
H A DBirthDeathMarriageReportModuleTest.php108 $html = ob_get_clean();
109 self::assertIsString($html);
110 self::assertStringStartsWith('<', $html);
111 self::assertStringEndsWith('>', $html);
H A DFamilyGroupReportModuleTest.php116 $html = ob_get_clean();
117 self::assertIsString($html);
118 self::assertStringStartsWith('<', $html);
119 self::assertStringEndsWith('>', $html);

12345678