Browse Source

Aide vers la page des fontes

master
fredtempez 4 months ago
parent
commit
8edda8e586
  1. 11
      core/module/theme/view/fontAdd/fontAdd.php
  2. 11
      core/module/theme/view/fonts/fonts copy.php
  3. 11
      core/module/theme/view/fonts/fonts.php

11
core/module/theme/view/fontAdd/fontAdd.php

@ -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

11
core/module/theme/view/fonts/fonts copy.php

@ -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'] );
}
}

11
core/module/theme/view/fonts/fonts.php

@ -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',

Loading…
Cancel
Save