[impressum] Update config file style/name
This commit is contained in:
parent
b1295c2eaa
commit
dbd93f8351
4 changed files with 44 additions and 43 deletions
|
@ -16,13 +16,14 @@ Simply fill in the fields in the impressium settings page in the addons area of
|
||||||
|
|
||||||
Manual Configuration
|
Manual Configuration
|
||||||
--------------------
|
--------------------
|
||||||
If you for any reason you prefer to use a configuration file instead, you can set the following variables in the config/addon.ini.php file
|
If you for any reason you prefer to use a configuration file instead, you can set the following variables in the `config/addon.config.php` file
|
||||||
|
|
||||||
[impressum]
|
'impressum' => [
|
||||||
owner = this is the Name of the Operator
|
'owner' => '', This is the Name of the Operator
|
||||||
ownerprofile = this is an optional Friendica account where the above owner name will link to
|
'ownerprofile' => '', This is an optional Friendica account where the above owner name will link to
|
||||||
email = a contact email address (optional)
|
'email' => '', A contact email address (optional)
|
||||||
will be displayed slightly obfuscated as name(at)example(dot)com
|
Will be displayed slightly obfuscated as name(at)example(dot)com
|
||||||
postal = should contain a postal address where you can be reached at (optional)
|
'postal' => '', Should contain a postal address where you can be reached at (optional)
|
||||||
notes = additional informations that should be displayed in the Impressum block
|
'notes' => '', Additional informations that should be displayed in the Impressum block
|
||||||
footer_text = Text that will be displayed at the bottom of the pages.
|
'footer_text' => '', Text that will be displayed at the bottom of the pages.
|
||||||
|
],
|
||||||
|
|
33
impressum/config/impressum.config.php
Normal file
33
impressum/config/impressum.config.php
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// Warning: Don't change this file! It only holds the default config values for this addon.
|
||||||
|
// Instead overwrite these config values in config/addon.config.php in your Friendica directory
|
||||||
|
|
||||||
|
return [
|
||||||
|
'impressum' => [
|
||||||
|
// owner (String)
|
||||||
|
// This is the Name of the Operator
|
||||||
|
'owner' => '',
|
||||||
|
|
||||||
|
// ownerprofile (String)
|
||||||
|
// This is an optional Friendica account where the above owner name will link to
|
||||||
|
'ownerprofile' => '',
|
||||||
|
|
||||||
|
// email (String)
|
||||||
|
// A contact email address (optional)
|
||||||
|
// Will be displayed slightly obfuscated as name(at)example(dot)com
|
||||||
|
'email' => '',
|
||||||
|
|
||||||
|
// postal (String)
|
||||||
|
// Should contain a postal address where you can be reached at (optional)
|
||||||
|
'postal' => '',
|
||||||
|
|
||||||
|
// notes (String)
|
||||||
|
// Additional informations that should be displayed in the Impressum block
|
||||||
|
'notes' => '',
|
||||||
|
|
||||||
|
// footer_text (String)
|
||||||
|
// Text that will be displayed at the bottom of the pages.
|
||||||
|
'footer_text' => '',
|
||||||
|
],
|
||||||
|
];
|
|
@ -1,33 +0,0 @@
|
||||||
<?php return <<<INI
|
|
||||||
|
|
||||||
; Warning: Don't change this file! It only holds the default config values for this addon.
|
|
||||||
; Instead overwrite these config values in config/addon.ini.php in your Friendica directory
|
|
||||||
|
|
||||||
[impressum]
|
|
||||||
; owner (String)
|
|
||||||
; This is the Name of the Operator
|
|
||||||
owner =
|
|
||||||
|
|
||||||
; ownerprofile (String)
|
|
||||||
; This is an optional Friendica account where the above owner name will link to
|
|
||||||
ownerprofile =
|
|
||||||
|
|
||||||
; email (String)
|
|
||||||
; A contact email address (optional)
|
|
||||||
; Will be displayed slightly obfuscated as name(at)example(dot)com
|
|
||||||
email =
|
|
||||||
|
|
||||||
; postal (String)
|
|
||||||
; Should contain a postal address where you can be reached at (optional)
|
|
||||||
postal =
|
|
||||||
|
|
||||||
; notes (String)
|
|
||||||
; Additional informations that should be displayed in the Impressum block
|
|
||||||
notes =
|
|
||||||
|
|
||||||
; footer_text (String)
|
|
||||||
; Text that will be displayed at the bottom of the pages.
|
|
||||||
footer_text =
|
|
||||||
|
|
||||||
INI;
|
|
||||||
//Keep this line
|
|
|
@ -54,7 +54,7 @@ function impressum_footer($a, &$b) {
|
||||||
|
|
||||||
function impressum_load_config(\Friendica\App $a)
|
function impressum_load_config(\Friendica\App $a)
|
||||||
{
|
{
|
||||||
$a->loadConfigFile(__DIR__. '/config/impressum.ini.php');
|
$a->loadConfigFile(__DIR__ . '/config/impressum.config.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
function impressum_show($a,&$b) {
|
function impressum_show($a,&$b) {
|
||||||
|
|
Loading…
Reference in a new issue