diff --git a/impressum/README.md b/impressum/README.md index 963a085e..1dde2ac3 100644 --- a/impressum/README.md +++ b/impressum/README.md @@ -7,7 +7,7 @@ Impressum Addon for Friendica About ----- -This addon adds an Impressum (contact) block to the /friendica page with +This addon adds an Impressum (contact) block to the /friendica page with informations about the page operator/owner and how to contact you in case of any questions. @@ -16,23 +16,19 @@ normal friendica postings.. Configuration ------------- -Simply fill in the fields in the impressium settings page in the addons +Simply fill in the fields in the impressium settings page in the addons area of your admin panel. For email adresses the "@" symbol will be obfuscated in the source of the page to make in harder for harvesting tools. Manual Configuration -------------------- -If you for any reason prefer to use a configuration file instead, you can set the following variables in the .htconfig file +If you for any reason you prefer to use a configuration file instead, you can set the following variables in the config/local.ini.php file - $a->config['impressum']['owner'] this is the Name of the Operator - $a->config['impressum']['ownerprofile'] this is an optional Friendica account - where the above owner name will link to - $a->config['impressum']['email'] a contact email address (optional) - will be displayed slightly obfuscated - as name(at)example(dot)com - $a->config['impressum']['postal'] should contain a postal address where - you can be reached at (optional) - $a->config['impressum']['notes'] additional informations that should - be displayed in the Impressum block - $a->config['impressum']['footer_text'] Text that will be displayed at - the bottom of the pages. + [impressum] + owner = this is the Name of the Operator + ownerprofile = this is an optional Friendica account where the above owner name will link to + email = a contact email address (optional) + will be displayed slightly obfuscated as name(at)example(dot)com + postal = should contain a postal address where you can be reached at (optional) + notes = additional informations that should be displayed in the Impressum block + footer_text = Text that will be displayed at the bottom of the pages. diff --git a/impressum/config/impressum.ini.php b/impressum/config/impressum.ini.php new file mode 100644 index 00000000..93c03cc2 --- /dev/null +++ b/impressum/config/impressum.ini.php @@ -0,0 +1,33 @@ +'.$text.''; } } + +function impressum_load_config(\Friendica\App $a) +{ + $a->loadConfigFile(__DIR__. '/config/impressum.ini.php'); +} + function impressum_show($a,&$b) { $b .= '