test fonts
This commit is contained in:
parent
452d245e00
commit
8ea56f8ae9
@ -29,7 +29,8 @@ class theme extends common {
|
|||||||
'manage' => self::GROUP_ADMIN,
|
'manage' => self::GROUP_ADMIN,
|
||||||
'export' => self::GROUP_ADMIN,
|
'export' => self::GROUP_ADMIN,
|
||||||
'import' => self::GROUP_ADMIN,
|
'import' => self::GROUP_ADMIN,
|
||||||
'save' => self::GROUP_ADMIN
|
'save' => self::GROUP_ADMIN,
|
||||||
|
'fonts' => self::GROUP_ADMIN
|
||||||
];
|
];
|
||||||
public static $aligns = [
|
public static $aligns = [
|
||||||
'left' => 'À gauche',
|
'left' => 'À gauche',
|
||||||
@ -538,6 +539,20 @@ class theme extends common {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Options des fontes
|
||||||
|
*/
|
||||||
|
public function fonts() {
|
||||||
|
// Soumission du formulaire
|
||||||
|
if($this->isPost()) {
|
||||||
|
}
|
||||||
|
// Valeurs en sortie
|
||||||
|
$this->addOutput([
|
||||||
|
'title' => 'Gestion des fontes',
|
||||||
|
'view' => 'fonts'
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Réinitialisation de la personnalisation avancée
|
* Réinitialisation de la personnalisation avancée
|
||||||
*/
|
*/
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
<?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 === 'http://fonts.cdnfonts.com/css/sketched') {
|
||||||
|
var_dump( $element['textContent'] );
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user