diff --git a/conf/default.php b/conf/default.php
index 70bcae8..f666d04 100755
--- a/conf/default.php
+++ b/conf/default.php
@@ -8,3 +8,4 @@ $conf['sidebar_sections'] = 'h1,h2,h3,h4,h5';
$conf['header_layout'] = 'header-default';
$conf['autocollapse'] = 1;
$conf['closedwiki'] = 0;
+$conf['copyright'] = '';
diff --git a/conf/metadata.php b/conf/metadata.php
index f804194..ff5023f 100755
--- a/conf/metadata.php
+++ b/conf/metadata.php
@@ -20,3 +20,4 @@ $meta['header_layout'] = array(
$meta['autocollapse'] = array('onoff');
$meta['closedwiki'] = array('onoff');
+$meta['copyright'] = [];
diff --git a/css/area_footer.less b/css/area_footer.less
index 62dafe5..bc11b5a 100755
--- a/css/area_footer.less
+++ b/css/area_footer.less
@@ -37,6 +37,7 @@
box-sizing: border-box;
background-color: @ini_background_site;
margin-top: 5px; // for box-shadow of content
+ text-align: center;
}
p {
diff --git a/detail.php b/detail.php
index 6fc84f0..49de8c8 100755
--- a/detail.php
+++ b/detail.php
@@ -387,16 +387,7 @@ include('tpl/favicon_tiles.php');
diff --git a/lang/en/settings.php b/lang/en/settings.php
index 757d39b..e71229c 100755
--- a/lang/en/settings.php
+++ b/lang/en/settings.php
@@ -17,3 +17,4 @@ $lang['header_layout_o_compact'] = 'compact header layout for short wiki title
$lang['autocollapse'] = 'Automatically collapse the sidebar when viewing non-content pages for more screen estate.';
$lang['closedwiki'] = 'This is a closed wiki. Hide most wiki functionality before user has logged in.';
+$lang['copyright'] = 'Copyright notice. Use %year%, %title%, and %TITLE% as placeholders. May contain HTML. You probably want to disable the default license notice.';
diff --git a/main.php b/main.php
index 2a10c1d..7d00e4b 100755
--- a/main.php
+++ b/main.php
@@ -426,16 +426,7 @@ $classWideContent = (Template::getInstance())->fullWidthClass();
diff --git a/tpl/main-footer.php b/tpl/main-footer.php
new file mode 100644
index 0000000..7e12ae8
--- /dev/null
+++ b/tpl/main-footer.php
@@ -0,0 +1,25 @@
+';
+ tpl_license($img = false, $imgonly = false, $return = false, $wrap = false);
+ echo '';
+}
+
+if (tpl_getConf('copyright')) {
+ $copy = str_replace(
+ [
+ '%year%',
+ '%title%',
+ '%TITLE%',
+ ],
+ [
+ date('Y'),
+ $conf['title'],
+ dokuwiki\Utf8\PhpString::strtoupper($conf['title']),
+ ],
+ tpl_getConf('copyright')
+ );
+ echo '' . $copy . '
';
+}