diff options
author | Thomas Lange <code@nerdmind.de> | 2024-11-21 20:59:05 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2024-11-21 21:27:03 +0100 |
commit | 5ccca11a448ea315a6e64453e630694ba2c20e66 (patch) | |
tree | d29b46acc6ade8c3d94e272695122e7d1c611bf6 /theme | |
parent | 52cb2b8aef3ba86e4abe551a3df9831d347e948e (diff) | |
download | blog-5ccca11a448ea315a6e64453e630694ba2c20e66.tar.gz blog-5ccca11a448ea315a6e64453e630694ba2c20e66.tar.xz blog-5ccca11a448ea315a6e64453e630694ba2c20e66.zip |
Rename "rsrc" directories to "static"
Stop using "rsrc" as name for the directories which contain static files
and rename them to "static". This affects the global static directory
and the static sub-directories in the theme directories.
If you've stored your own files in the old global "rsrc" directory, you
must move them to the new "static" directory.
Diffstat (limited to 'theme')
-rw-r--r-- | theme/admin/html/main.php | 6 | ||||
-rw-r--r-- | theme/admin/html/migration.php | 4 | ||||
-rw-r--r-- | theme/admin/static/css/bright.css (renamed from theme/admin/rsrc/css/bright.css) | 0 | ||||
-rw-r--r-- | theme/admin/static/css/bright.scss (renamed from theme/admin/rsrc/css/bright.scss) | 0 | ||||
-rw-r--r-- | theme/admin/static/css/dark.css (renamed from theme/admin/rsrc/css/dark.css) | 0 | ||||
-rw-r--r-- | theme/admin/static/css/dark.scss (renamed from theme/admin/rsrc/css/dark.scss) | 0 | ||||
-rw-r--r-- | theme/admin/static/css/import/_fontello.scss (renamed from theme/admin/rsrc/css/import/_fontello.scss) | 0 | ||||
-rw-r--r-- | theme/admin/static/css/import/_fonts.scss (renamed from theme/admin/rsrc/css/import/_fonts.scss) | 0 | ||||
-rw-r--r-- | theme/admin/static/css/import/_responsive.scss (renamed from theme/admin/rsrc/css/import/_responsive.scss) | 0 | ||||
-rw-r--r-- | theme/admin/static/css/import/_styles.scss (renamed from theme/admin/rsrc/css/import/_styles.scss) | 0 | ||||
-rw-r--r-- | theme/admin/static/css/import/_variables.scss (renamed from theme/admin/rsrc/css/import/_variables.scss) | 0 | ||||
-rw-r--r-- | theme/admin/static/font/fontello.json (renamed from theme/admin/rsrc/font/fontello.json) | 0 | ||||
-rw-r--r-- | theme/admin/static/font/fontello.woff2 (renamed from theme/admin/rsrc/font/fontello.woff2) | bin | 16460 -> 16460 bytes | |||
-rw-r--r-- | theme/admin/static/font/kadwa-n-400.woff2 (renamed from theme/admin/rsrc/font/kadwa-n-400.woff2) | bin | 18108 -> 18108 bytes | |||
-rw-r--r-- | theme/admin/static/font/ruda-n-400.woff2 (renamed from theme/admin/rsrc/font/ruda-n-400.woff2) | bin | 9120 -> 9120 bytes | |||
-rw-r--r-- | theme/admin/static/font/ruda-n-700.woff2 (renamed from theme/admin/rsrc/font/ruda-n-700.woff2) | bin | 9116 -> 9116 bytes | |||
-rw-r--r-- | theme/admin/static/icon-public-domain.svg (renamed from theme/admin/rsrc/icon-public-domain.svg) | 0 | ||||
-rw-r--r-- | theme/admin/static/img/noise-bright.png (renamed from theme/admin/rsrc/img/noise-bright.png) | bin | 9237 -> 9237 bytes | |||
-rw-r--r-- | theme/admin/static/img/noise-dark.png (renamed from theme/admin/rsrc/img/noise-dark.png) | bin | 6557 -> 6557 bytes | |||
-rw-r--r-- | theme/admin/static/main.js (renamed from theme/admin/rsrc/main.js) | 0 | ||||
-rw-r--r-- | theme/default/html/feed/main.php | 2 | ||||
-rw-r--r-- | theme/default/html/main.php | 10 | ||||
-rw-r--r-- | theme/default/static/css/import/_fontello.scss (renamed from theme/default/rsrc/css/import/_fontello.scss) | 0 | ||||
-rw-r--r-- | theme/default/static/css/import/_fonts.scss (renamed from theme/default/rsrc/css/import/_fonts.scss) | 0 | ||||
-rw-r--r-- | theme/default/static/css/import/_responsive.scss (renamed from theme/default/rsrc/css/import/_responsive.scss) | 0 | ||||
-rw-r--r-- | theme/default/static/css/main.css (renamed from theme/default/rsrc/css/main.css) | 0 | ||||
-rw-r--r-- | theme/default/static/css/main.scss (renamed from theme/default/rsrc/css/main.scss) | 0 | ||||
-rw-r--r-- | theme/default/static/font/fontello.json (renamed from theme/default/rsrc/font/fontello.json) | 0 | ||||
-rw-r--r-- | theme/default/static/font/fontello.woff2 (renamed from theme/default/rsrc/font/fontello.woff2) | bin | 16864 -> 16864 bytes | |||
-rw-r--r-- | theme/default/static/font/ruda-n-400.woff2 (renamed from theme/default/rsrc/font/ruda-n-400.woff2) | bin | 9120 -> 9120 bytes | |||
-rw-r--r-- | theme/default/static/font/ruda-n-700.woff2 (renamed from theme/default/rsrc/font/ruda-n-700.woff2) | bin | 9116 -> 9116 bytes | |||
-rw-r--r-- | theme/default/static/logo.png (renamed from theme/default/rsrc/logo.png) | bin | 2595 -> 2595 bytes | |||
-rw-r--r-- | theme/default/static/main.js (renamed from theme/default/rsrc/main.js) | 0 |
33 files changed, 11 insertions, 11 deletions
diff --git a/theme/admin/html/main.php b/theme/admin/html/main.php index 2035b47..c6fe12c 100644 --- a/theme/admin/html/main.php +++ b/theme/admin/html/main.php @@ -19,8 +19,8 @@ $theme = isset($_COOKIE['dark_mode']) ? 'dark' : 'bright'; <meta charset="UTF-8"> <meta name="referrer" content="origin-when-crossorigin"> <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="stylesheet" href="<?=Application::getTemplateURL("rsrc/css/$theme.css")?>"> - <script defer src="<?=Application::getTemplateURL('rsrc/main.js')?>"></script> + <link rel="stylesheet" href="<?=Application::getTemplateURL("static/css/$theme.css")?>"> + <script defer src="<?=Application::getTemplateURL('static/main.js')?>"></script> <title><?=escapeHTML($NAME)?> | Administration</title> </head> <body> @@ -28,7 +28,7 @@ $theme = isset($_COOKIE['dark_mode']) ? 'dark' : 'bright'; <div class="header-line background"> <div class="header-content"> <a href="<?=Application::getURL()?>"> - <img id="header-logo" src="<?=Application::getTemplateURL('rsrc/icon-public-domain.svg')?>" alt="Administration"> + <img id="header-logo" src="<?=Application::getTemplateURL('static/icon-public-domain.svg')?>" alt="Administration"> </a> <div id="header-text"><?=escapeHTML($BLOGMETA['NAME'])?></div> <div id="header-desc"><?=escapeHTML($BLOGMETA['DESC'])?></div> diff --git a/theme/admin/html/migration.php b/theme/admin/html/migration.php index 921b006..05f33c1 100644 --- a/theme/admin/html/migration.php +++ b/theme/admin/html/migration.php @@ -5,14 +5,14 @@ <meta charset="UTF-8"> <meta name="referrer" content="origin-when-crossorigin"> <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="stylesheet" href="<?=Application::getTemplateURL("rsrc/css/$theme.css")?>"> + <link rel="stylesheet" href="<?=Application::getTemplateURL("static/css/$theme.css")?>"> <title><?=$Language->text('maintenance_mode')?></title> </head> <body> <header id="main-header"> <div class="header-line background"> <div class="header-content"> - <img id="header-logo" src="<?=Application::getTemplateURL('rsrc/icon-public-domain.svg')?>" alt="Administration"> + <img id="header-logo" src="<?=Application::getTemplateURL('static/icon-public-domain.svg')?>" alt="Administration"> <div id="header-text"><?=escapeHTML($BLOGMETA['NAME'])?></div> <div id="header-desc"><?=$Language->text('maintenance_mode')?></div> </div> diff --git a/theme/admin/rsrc/css/bright.css b/theme/admin/static/css/bright.css index 6ca9bae..6ca9bae 100644 --- a/theme/admin/rsrc/css/bright.css +++ b/theme/admin/static/css/bright.css diff --git a/theme/admin/rsrc/css/bright.scss b/theme/admin/static/css/bright.scss index 3d65448..3d65448 100644 --- a/theme/admin/rsrc/css/bright.scss +++ b/theme/admin/static/css/bright.scss diff --git a/theme/admin/rsrc/css/dark.css b/theme/admin/static/css/dark.css index 1a46895..1a46895 100644 --- a/theme/admin/rsrc/css/dark.css +++ b/theme/admin/static/css/dark.css diff --git a/theme/admin/rsrc/css/dark.scss b/theme/admin/static/css/dark.scss index 472095a..472095a 100644 --- a/theme/admin/rsrc/css/dark.scss +++ b/theme/admin/static/css/dark.scss diff --git a/theme/admin/rsrc/css/import/_fontello.scss b/theme/admin/static/css/import/_fontello.scss index 7c2e964..7c2e964 100644 --- a/theme/admin/rsrc/css/import/_fontello.scss +++ b/theme/admin/static/css/import/_fontello.scss diff --git a/theme/admin/rsrc/css/import/_fonts.scss b/theme/admin/static/css/import/_fonts.scss index 4431bec..4431bec 100644 --- a/theme/admin/rsrc/css/import/_fonts.scss +++ b/theme/admin/static/css/import/_fonts.scss diff --git a/theme/admin/rsrc/css/import/_responsive.scss b/theme/admin/static/css/import/_responsive.scss index 9675071..9675071 100644 --- a/theme/admin/rsrc/css/import/_responsive.scss +++ b/theme/admin/static/css/import/_responsive.scss diff --git a/theme/admin/rsrc/css/import/_styles.scss b/theme/admin/static/css/import/_styles.scss index 93c0d8f..93c0d8f 100644 --- a/theme/admin/rsrc/css/import/_styles.scss +++ b/theme/admin/static/css/import/_styles.scss diff --git a/theme/admin/rsrc/css/import/_variables.scss b/theme/admin/static/css/import/_variables.scss index 70a8424..70a8424 100644 --- a/theme/admin/rsrc/css/import/_variables.scss +++ b/theme/admin/static/css/import/_variables.scss diff --git a/theme/admin/rsrc/font/fontello.json b/theme/admin/static/font/fontello.json index 1af78d5..1af78d5 100644 --- a/theme/admin/rsrc/font/fontello.json +++ b/theme/admin/static/font/fontello.json diff --git a/theme/admin/rsrc/font/fontello.woff2 b/theme/admin/static/font/fontello.woff2 Binary files differindex c62227f..c62227f 100644 --- a/theme/admin/rsrc/font/fontello.woff2 +++ b/theme/admin/static/font/fontello.woff2 diff --git a/theme/admin/rsrc/font/kadwa-n-400.woff2 b/theme/admin/static/font/kadwa-n-400.woff2 Binary files differindex 1566426..1566426 100644 --- a/theme/admin/rsrc/font/kadwa-n-400.woff2 +++ b/theme/admin/static/font/kadwa-n-400.woff2 diff --git a/theme/admin/rsrc/font/ruda-n-400.woff2 b/theme/admin/static/font/ruda-n-400.woff2 Binary files differindex 6435a0d..6435a0d 100644 --- a/theme/admin/rsrc/font/ruda-n-400.woff2 +++ b/theme/admin/static/font/ruda-n-400.woff2 diff --git a/theme/admin/rsrc/font/ruda-n-700.woff2 b/theme/admin/static/font/ruda-n-700.woff2 Binary files differindex 0066431..0066431 100644 --- a/theme/admin/rsrc/font/ruda-n-700.woff2 +++ b/theme/admin/static/font/ruda-n-700.woff2 diff --git a/theme/admin/rsrc/icon-public-domain.svg b/theme/admin/static/icon-public-domain.svg index 88f7227..88f7227 100644 --- a/theme/admin/rsrc/icon-public-domain.svg +++ b/theme/admin/static/icon-public-domain.svg diff --git a/theme/admin/rsrc/img/noise-bright.png b/theme/admin/static/img/noise-bright.png Binary files differindex a9356b3..a9356b3 100644 --- a/theme/admin/rsrc/img/noise-bright.png +++ b/theme/admin/static/img/noise-bright.png diff --git a/theme/admin/rsrc/img/noise-dark.png b/theme/admin/static/img/noise-dark.png Binary files differindex f0ddc0d..f0ddc0d 100644 --- a/theme/admin/rsrc/img/noise-dark.png +++ b/theme/admin/static/img/noise-dark.png diff --git a/theme/admin/rsrc/main.js b/theme/admin/static/main.js index 94fc591..94fc591 100644 --- a/theme/admin/rsrc/main.js +++ b/theme/admin/static/main.js diff --git a/theme/default/html/feed/main.php b/theme/default/html/feed/main.php index bdd0a48..9f8e0b9 100644 --- a/theme/default/html/feed/main.php +++ b/theme/default/html/feed/main.php @@ -23,7 +23,7 @@ $self = Application::getURL('feed/'); <image> <title><?=$title?></title> - <url><?=Application::getTemplateURL('rsrc/logo.png')?></url> + <url><?=Application::getTemplateURL('static/logo.png')?></url> <link><?=Application::getURL()?></link> </image> diff --git a/theme/default/html/main.php b/theme/default/html/main.php index f226ff1..223464c 100644 --- a/theme/default/html/main.php +++ b/theme/default/html/main.php @@ -32,7 +32,7 @@ $BLOGMETA_DESC = escapeHTML($BLOGMETA['DESC']); <meta property="og:site_name" content="<?=$BLOGMETA_NAME?>"> <meta property="og:title" content="<?=$HEAD_NAME?>"> - <meta property="og:image" content="<?=Application::getTemplateURL('rsrc/logo.png')?>"> + <meta property="og:image" content="<?=Application::getTemplateURL('static/logo.png')?>"> <?php if(isset($HEAD['OG_IMAGES'])): ?> <?php foreach($HEAD['OG_IMAGES'] as $imageURL): ?> @@ -40,11 +40,11 @@ $BLOGMETA_DESC = escapeHTML($BLOGMETA['DESC']); <?php endforeach; ?> <?php endif; ?> - <link rel="icon" href="<?=Application::getTemplateURL('rsrc/favicon.ico')?>"> - <link rel="stylesheet" href="<?=Application::getTemplateURL('rsrc/css/main.css')?>" title="<?=$BLOGMETA_NAME?>"> + <link rel="icon" href="<?=Application::getTemplateURL('static/favicon.ico')?>"> + <link rel="stylesheet" href="<?=Application::getTemplateURL('static/css/main.css')?>" title="<?=$BLOGMETA_NAME?>"> <link rel="alternate" type="application/rss+xml" title="<?=$BLOGMETA_NAME?>" href="<?=Application::getURL('feed/')?>"> - <script defer src="<?=Application::getTemplateURL('rsrc/main.js')?>"></script> + <script defer src="<?=Application::getTemplateURL('static/main.js')?>"></script> <title><?="{$HEAD_NAME} | {$BLOGMETA_NAME} {$BLOGMETA_DESC}"?></title> </head> @@ -53,7 +53,7 @@ $BLOGMETA_DESC = escapeHTML($BLOGMETA['DESC']); <header id="main-header"> <div> <a href="<?=Application::getURL()?>" title="<?="{$BLOGMETA_NAME} {$BLOGMETA_DESC}"?>"> - <img id="main-logo" src="<?=Application::getTemplateURL('rsrc/logo.png')?>" alt="<?=$BLOGMETA_NAME?>"> + <img id="main-logo" src="<?=Application::getTemplateURL('static/logo.png')?>" alt="<?=$BLOGMETA_NAME?>"> </a> </div> <nav id="main-navi"> diff --git a/theme/default/rsrc/css/import/_fontello.scss b/theme/default/static/css/import/_fontello.scss index 04c13c9..04c13c9 100644 --- a/theme/default/rsrc/css/import/_fontello.scss +++ b/theme/default/static/css/import/_fontello.scss diff --git a/theme/default/rsrc/css/import/_fonts.scss b/theme/default/static/css/import/_fonts.scss index 109a541..109a541 100644 --- a/theme/default/rsrc/css/import/_fonts.scss +++ b/theme/default/static/css/import/_fonts.scss diff --git a/theme/default/rsrc/css/import/_responsive.scss b/theme/default/static/css/import/_responsive.scss index d248bf4..d248bf4 100644 --- a/theme/default/rsrc/css/import/_responsive.scss +++ b/theme/default/static/css/import/_responsive.scss diff --git a/theme/default/rsrc/css/main.css b/theme/default/static/css/main.css index 5fe9eed..5fe9eed 100644 --- a/theme/default/rsrc/css/main.css +++ b/theme/default/static/css/main.css diff --git a/theme/default/rsrc/css/main.scss b/theme/default/static/css/main.scss index 4ea6a2b..4ea6a2b 100644 --- a/theme/default/rsrc/css/main.scss +++ b/theme/default/static/css/main.scss diff --git a/theme/default/rsrc/font/fontello.json b/theme/default/static/font/fontello.json index aae4194..aae4194 100644 --- a/theme/default/rsrc/font/fontello.json +++ b/theme/default/static/font/fontello.json diff --git a/theme/default/rsrc/font/fontello.woff2 b/theme/default/static/font/fontello.woff2 Binary files differindex 75d56e6..75d56e6 100644 --- a/theme/default/rsrc/font/fontello.woff2 +++ b/theme/default/static/font/fontello.woff2 diff --git a/theme/default/rsrc/font/ruda-n-400.woff2 b/theme/default/static/font/ruda-n-400.woff2 Binary files differindex 6435a0d..6435a0d 100644 --- a/theme/default/rsrc/font/ruda-n-400.woff2 +++ b/theme/default/static/font/ruda-n-400.woff2 diff --git a/theme/default/rsrc/font/ruda-n-700.woff2 b/theme/default/static/font/ruda-n-700.woff2 Binary files differindex 0066431..0066431 100644 --- a/theme/default/rsrc/font/ruda-n-700.woff2 +++ b/theme/default/static/font/ruda-n-700.woff2 diff --git a/theme/default/rsrc/logo.png b/theme/default/static/logo.png Binary files differindex 7a62549..7a62549 100644 --- a/theme/default/rsrc/logo.png +++ b/theme/default/static/logo.png diff --git a/theme/default/rsrc/main.js b/theme/default/static/main.js index 164c50f..164c50f 100644 --- a/theme/default/rsrc/main.js +++ b/theme/default/static/main.js |