diff --git a/core/core.php b/core/core.php index bc8e5f4d..5364aa8b 100644 --- a/core/core.php +++ b/core/core.php @@ -430,7 +430,7 @@ class common { $f ['imported'] [$fontId] = [ 'name' => $fontValue ['name'], 'font-family'=> $fontValue ['font-family'], - 'ressource' => $fontValue ['ressource'] + 'resource' => $fontValue ['resource'] ]; } } @@ -442,7 +442,7 @@ class common { $f ['files'] [$fontId] = [ 'name' => $fontValue ['name'], 'font-family'=> $fontValue ['font-family'], - 'ressource' => $fontValue ['ressource'] + 'resource' => $fontValue ['resource'] ]; } } @@ -2361,7 +2361,7 @@ class core extends common { $fontFile = ''; foreach ($fonts as $fontId) { if ( isset($fontsAvailable['imported'][$fontId])) { - $fontFile .= ''; + $fontFile .= ''; // Tableau pour la construction de la feuille de style $fonts [$fontId] = $fontsAvailable['imported'][$fontId]['font-family']; } @@ -2379,7 +2379,7 @@ class core extends common { // Chargement de la police //$formatFont = explode('.', self::DATA_DIR . 'fonts/' . $fontName); $css .= '@font-face {font-family:"' . $fontsAvailable['files'][$fontId]['font-family'] . '";'; - $css .= 'src: url("' . helper::baseUrl(false) . self::DATA_DIR . 'fonts/' .$fontsAvailable['files'][$fontId]['ressource'] . '");}'; + $css .= 'src: url("' . helper::baseUrl(false) . self::DATA_DIR . 'fonts/' .$fontsAvailable['files'][$fontId]['resource'] . '");}'; // Tableau pour la construction de la feuille de style $fonts [$fontId] = $fontsAvailable['files'][$fontId]['font-family']; } @@ -2595,7 +2595,7 @@ class core extends common { $fontFile = ''; foreach ($fonts as $fontId) { if ( isset($fontsAvailable['imported'][$fontId])) { - $fontFile .= ''; + $fontFile .= ''; // Tableau pour la construction de la feuille de style $fonts [$fontId] = $fontsAvailable['imported'][$fontId]['font-family']; } @@ -2613,7 +2613,7 @@ class core extends common { // Chargement de la police //$formatFont = explode('.', self::DATA_DIR . 'fonts/' . $fontName); $css .= '@font-face {font-family:"' . $fontsAvailable['files'][$fontId]['font-family'] . '";'; - $css .= 'src: url("' . helper::baseUrl(false) . self::DATA_DIR . 'fonts/' .$fontsAvailable['files'][$fontId]['ressource'] . '");}'; + $css .= 'src: url("' . helper::baseUrl(false) . self::DATA_DIR . 'fonts/' .$fontsAvailable['files'][$fontId]['resource'] . '");}'; // Tableau pour la construction de la feuille de style $fonts [$fontId] = $fontsAvailable['files'][$fontId]['font-family']; } diff --git a/core/include/update.inc.php b/core/include/update.inc.php index e6e9af9d..4680556d 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -816,102 +816,102 @@ if ($this->getData(['core', 'dataVersion']) < 11400) { 'arimo'=> [ 'name' => 'Arimo', 'font-family' => 'Arimo, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/arimo' + 'resource' => 'https://fonts.cdnfonts.com/css/arimo' ], 'arvo'=> [ 'name' => 'Arvo', 'font-family' => 'Arvo, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/arvo' + 'resource' => 'https://fonts.cdnfonts.com/css/arvo' ], 'dancing-script' => [ 'name' => 'Dancing Script', 'font-family' => '"Dancing Script", sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/dancing-script' + 'resource' => 'https://fonts.cdnfonts.com/css/dancing-script' ], 'droid-sans-2'=> [ 'name' => 'Droid Sans', 'font-family' => '"Droid Sans", sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/droid-sans-2' + 'resource' => 'https://fonts.cdnfonts.com/css/droid-sans-2' ], 'droid-serif-2'=> [ 'name' => 'Droid Serif', 'font-family' => '"Droid Serif", serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/droid-serif-2' + 'resource' => 'https://fonts.cdnfonts.com/css/droid-serif-2' ], 'indie-flower'=> [ 'name' => 'Indie Flower', 'font-family' => '"Indie Flower", sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/indie-flower' + 'resource' => 'https://fonts.cdnfonts.com/css/indie-flower' ], 'liberation-sans'=> [ 'name' => 'Liberation Sans', 'font-family' => '"Liberation Sans", sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/liberation-sans' + 'resource' => 'https://fonts.cdnfonts.com/css/liberation-sans' ], 'liberation-serif'=> [ 'name' => 'Liberation Serif', 'font-family' => '"Liberation Serif", serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/liberation-serif' + 'resource' => 'https://fonts.cdnfonts.com/css/liberation-serif' ], 'lobster-2'=> [ 'name' => 'Lobster', 'font-family' => 'Lobster, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/lobster-2' + 'resource' => 'https://fonts.cdnfonts.com/css/lobster-2' ], 'lato'=> [ 'name' => 'lato', 'font-family' => 'Lato, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/lato' + 'resource' => 'https://fonts.cdnfonts.com/css/lato' ], 'lora'=> [ 'name' => 'Lora', 'font-family' => 'Lora, serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/lora' + 'resource' => 'https://fonts.cdnfonts.com/css/lora' ], 'old-standard-tt-3'=> [ 'name' => 'Old Standard TT', 'font-family' => '"Old Standard TT", serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/old-standard-tt-3' + 'resource' => 'https://fonts.cdnfonts.com/css/old-standard-tt-3' ], 'open-sans' => [ 'name' => 'Open Sans', 'font-family' => '"Open Sans", sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/open-sans' + 'resource' => 'https://fonts.cdnfonts.com/css/open-sans' ], 'oswald-4'=> [ 'name' => 'Oswald', 'font-family' => 'Oswald, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/oswald-4' + 'resource' => 'https://fonts.cdnfonts.com/css/oswald-4' ], 'pt-mono'=> [ 'name' => 'PT Mono', 'font-family' => '"PT Mono", monospace', - 'ressource' => 'https://fonts.cdnfonts.com/css/pt-mono' + 'resource' => 'https://fonts.cdnfonts.com/css/pt-mono' ], 'pt-serif'=> [ 'name' => "PR Serif", 'font-family' => '"PT Serif", serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/pt-serif' + 'resource' => 'https://fonts.cdnfonts.com/css/pt-serif' ], 'rancho'=> [ 'name' => 'Rancho', 'font-family' => 'Rancho, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/rancho' + 'resource' => 'https://fonts.cdnfonts.com/css/rancho' ], 'roboto'=> [ 'name' => 'Roboto', 'font-family' => 'Roboto, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/roboto' + 'resource' => 'https://fonts.cdnfonts.com/css/roboto' ], 'ubuntu'=> [ 'name' => 'Ubuntu', 'font-family' => 'Ubuntu, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/ubuntu' + 'resource' => 'https://fonts.cdnfonts.com/css/ubuntu' ], 'vollkorn'=> [ 'name' => 'Vollkorn', 'font-family' => 'Vollkorn, serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/vollkorn' + 'resource' => 'https://fonts.cdnfonts.com/css/vollkorn' ] ]; $this->setData(['fonts', 'imported', $fonts]); diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index 546173de..b55e5acb 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -91,102 +91,102 @@ class init extends common { 'arimo'=> [ 'name' => 'Arimo', 'font-family' => 'Arimo, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/arimo' + 'resource' => 'https://fonts.cdnfonts.com/css/arimo' ], 'arvo'=> [ 'name' => 'Arvo', 'font-family' => 'Arvo, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/arvo' + 'resource' => 'https://fonts.cdnfonts.com/css/arvo' ], 'dancing-script' => [ 'name' => 'Dancing Script', 'font-family' => '"Dancing Script", sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/dancing-script' + 'resource' => 'https://fonts.cdnfonts.com/css/dancing-script' ], 'droid-sans-2'=> [ 'name' => 'Droid Sans', 'font-family' => '"Droid Sans", sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/droid-sans-2' + 'resource' => 'https://fonts.cdnfonts.com/css/droid-sans-2' ], 'droid-serif-2'=> [ 'name' => 'Droid Serif', 'font-family' => '"Droid Serif", serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/droid-serif-2' + 'resource' => 'https://fonts.cdnfonts.com/css/droid-serif-2' ], 'indie-flower'=> [ 'name' => 'Indie Flower', 'font-family' => '"Indie Flower", sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/indie-flower' + 'resource' => 'https://fonts.cdnfonts.com/css/indie-flower' ], 'liberation-sans'=> [ 'name' => 'Liberation Sans', 'font-family' => '"Liberation Sans", sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/liberation-sans' + 'resource' => 'https://fonts.cdnfonts.com/css/liberation-sans' ], 'liberation-serif'=> [ 'name' => 'Liberation Serif', 'font-family' => '"Liberation Serif", serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/liberation-serif' + 'resource' => 'https://fonts.cdnfonts.com/css/liberation-serif' ], 'lobster-2'=> [ 'name' => 'Lobster', 'font-family' => 'Lobster, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/lobster-2' + 'resource' => 'https://fonts.cdnfonts.com/css/lobster-2' ], 'lato'=> [ 'name' => 'lato', 'font-family' => 'Lato, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/lato' + 'resource' => 'https://fonts.cdnfonts.com/css/lato' ], 'lora'=> [ 'name' => 'Lora', 'font-family' => 'Lora, serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/lora' + 'resource' => 'https://fonts.cdnfonts.com/css/lora' ], 'old-standard-tt-3'=> [ 'name' => 'Old Standard TT', 'font-family' => '"Old Standard TT", serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/old-standard-tt-3' + 'resource' => 'https://fonts.cdnfonts.com/css/old-standard-tt-3' ], 'open-sans' => [ 'name' => 'Open Sans', 'font-family' => '"Open Sans", sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/open-sans' + 'resource' => 'https://fonts.cdnfonts.com/css/open-sans' ], 'oswald-4'=> [ 'name' => 'Oswald', 'font-family' => 'Oswald, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/oswald-4' + 'resource' => 'https://fonts.cdnfonts.com/css/oswald-4' ], 'pt-mono'=> [ 'name' => 'PT Mono', 'font-family' => '"PT Mono", monospace', - 'ressource' => 'https://fonts.cdnfonts.com/css/pt-mono' + 'resource' => 'https://fonts.cdnfonts.com/css/pt-mono' ], 'pt-serif'=> [ 'name' => "PR Serif", 'font-family' => '"PT Serif", serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/pt-serif' + 'resource' => 'https://fonts.cdnfonts.com/css/pt-serif' ], 'rancho'=> [ 'name' => 'Rancho', 'font-family' => 'Rancho, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/rancho' + 'resource' => 'https://fonts.cdnfonts.com/css/rancho' ], 'roboto'=> [ 'name' => 'Roboto', 'font-family' => 'Roboto, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/roboto' + 'resource' => 'https://fonts.cdnfonts.com/css/roboto' ], 'ubuntu'=> [ 'name' => 'Ubuntu', 'font-family' => 'Ubuntu, sans-serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/ubuntu' + 'resource' => 'https://fonts.cdnfonts.com/css/ubuntu' ], 'vollkorn'=> [ 'name' => 'Vollkorn', 'font-family' => 'Vollkorn, serif', - 'ressource' => 'https://fonts.cdnfonts.com/css/vollkorn' + 'resource' => 'https://fonts.cdnfonts.com/css/vollkorn' ] ] ], diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 613d8513..9ba6050a 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -635,7 +635,7 @@ class theme extends common { $t = [ $fontId => [ 'name' => $fontName, 'font-family' => $fontFamilyName, - 'ressource' => $ressource + 'resource' => $ressource ]]; // Stocker les fontes @@ -643,7 +643,7 @@ class theme extends common { [ 'name' => $fontName, 'font-family' => $fontFamilyName, - 'ressource' => $ressource + 'resource' => $ressource ]] ]); @@ -691,7 +691,7 @@ class theme extends common { $t = [ $fontId => [ 'name' => $fontName, 'font-family' => $fontFamilyName, - 'ressource' => $ressource + 'resource' => $ressource ]]; // Stocker les fontes @@ -699,7 +699,7 @@ class theme extends common { [ 'name' => $fontName, 'font-family' => $fontFamilyName, - 'ressource' => $ressource + 'resource' => $ressource ]] ]); diff --git a/core/module/theme/view/fontEdit/fontEdit.php b/core/module/theme/view/fontEdit/fontEdit.php index 33fec58c..17a9596b 100644 --- a/core/module/theme/view/fontEdit/fontEdit.php +++ b/core/module/theme/view/fontEdit/fontEdit.php @@ -69,7 +69,7 @@