Aide vers la page des fontes

This commit is contained in:
fredtempez 2022-02-25 14:45:12 +01:00
parent 79c22bef27
commit 8edda8e586
3 changed files with 20 additions and 13 deletions

View File

@ -8,7 +8,16 @@
'value' => 'Retour'
]); ?>
</div>
<div class="col2 offset8">
<div class="col2">
<?php echo template::button('pageEditHelp', [
'href' => 'https://doc.zwiicms.fr/fontes#add',
'target' => '_blank',
'ico' => 'help',
'value' => 'Aide',
'class' => 'buttonHelp'
]); ?>
</div>
<div class="col2 offset6">
<?php echo template::submit('fontAddPublish', [
'value' => 'Valider',
'uniqueSubmission' => true

View File

@ -1,11 +0,0 @@
<?php
$filefont = 'https://www.cdnfonts.com/sketched.font';
$doc = new DOMDocument();
$doc->loadHTMLFile($filefont, LIBXML_NOERROR);
$elements = $doc->getElementsByTagName('i');
var_dump ($elements);
foreach($elements as $element) {
if ($element->$textContent === 'https://fonts.cdnfonts.com/css/sketched') {
var_dump( $element['textContent'] );
}
}

View File

@ -7,7 +7,16 @@
'value' => 'Retour'
]); ?>
</div>
<div class="col2 offset8">
<div class="col2">
<?php echo template::button('pageEditHelp', [
'href' => 'https://doc.zwiicms.fr/fontes',
'target' => '_blank',
'ico' => 'help',
'value' => 'Aide',
'class' => 'buttonHelp'
]); ?>
</div>
<div class="col2 offset6">
<?php echo template::button('themeFontAdd', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/fontAdd',
'ico' => 'plus',