Character set in the template

- The Leggero template now uses the array locale.charset and can be changed via the admin panel Options->International settings->Character set.

/fp-content/config/settings.conf.php
https://forum.flatpress.org/viewtopic.php?t=323
#281
This commit is contained in:
Fraenkiman 2024-03-15 20:36:11 +01:00
parent 4976edbe07
commit 7b6a153f55
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="{$fp_config.locale.lang}"> <html xmlns="http://www.w3.org/1999/xhtml" lang="{$fp_config.locale.lang}">
<head> <head>
<title>{$flatpress.title}{$pagetitle}</title> <title>{$flatpress.title}{$pagetitle}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$flatpress.charset}"> <meta http-equiv="Content-Type" content="text/html; charset={$fp_config.locale.charset}">
{action hook=wp_head} {action hook=wp_head}
{action hook=admin_head} {action hook=admin_head}
</head> </head>

View File

@ -2,8 +2,8 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="{$fp_config.locale.lang}"> <html xmlns="http://www.w3.org/1999/xhtml" lang="{$fp_config.locale.lang}">
<head> <head>
<title>{$flatpress.title|tag:wp_title:'&laquo;'}</title> <title>{$flatpress.title|tag:wp_title:'&laquo;'}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$flatpress.charset}" /> <meta http-equiv="Content-Type" content="text/html; charset={$fp_config.locale.charset}">
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{action hook=wp_head} {action hook=wp_head}
</head> </head>