Merge pull request #264 from tugelbend/master

documentation update for pageheader and pledgie addon
This commit is contained in:
fabrixxm 2015-05-27 15:14:12 +02:00
commit ce34ccd100
6 changed files with 15 additions and 4 deletions

Binary file not shown.

View file

@ -5,4 +5,4 @@ Displays a text message for system announcements'
The message is entered in the admin account at settings, Plugin settings. The message is entered in the admin account at settings, Plugin settings.
If you want to use HTML in the pageheader, create a file called pageheader.html If you want to use HTML in the pageheader, create a file called pageheader.html
in the document root of your friendica instance and add the html there. in the document root of your friendica instance and add the html there.

View file

@ -50,7 +50,7 @@ function pageheader_addon_settings(&$a,&$s) {
$s .= '<div class="settings-block">'; $s .= '<div class="settings-block">';
$s .= '<h3>' . t('"pageheader" Settings') . '</h3>'; $s .= '<h3>' . t('"pageheader" Settings') . '</h3>';
$s .= '<div id="pageheader-wrapper">'; $s .= '<div id="pageheader-wrapper">';
$s .= '<label id="pageheader-label" for="pageheader-words">' . t('Message to display on every page on this server') . ' </label>'; $s .= '<label id="pageheader-label" for="pageheader-words">' . t('Message to display on every page on this server (or put a pageheader.html file in your docroot)') . ' </label>';
$s .= '<textarea id="pageheader-words" type="text" name="pageheader-words">' . $words . '</textarea>'; $s .= '<textarea id="pageheader-words" type="text" name="pageheader-words">' . $words . '</textarea>';
$s .= '</div><div class="clear"></div>'; $s .= '</div><div class="clear"></div>';

Binary file not shown.

11
pledgie/README Normal file
View file

@ -0,0 +1,11 @@
Pledgie
Allows administrators to add a Pledgie-Donation Button to all their friendica pages.
This could be useful f.e. for public nodes that want to raise some money for server
maintenance costs.
Usage:
Add the campaign number of your pledgie campaign in the first field. To find out the campaign number,
go to your Pledgie campaign webpage. The campaign number is the number at the end of the URL.
Add a describtion of your campaign in the second field.

View file

@ -1,7 +1,7 @@
<?php <?php
/** /**
* Name: Pledgie * Name: Pledgie
* Description: Show link to Friendica pledgie account for donating * Description: Show link to a pledgie account for donating
* Version: 1.1 * Version: 1.1
* Author: tony baldwin <tony@free-haven.org> * Author: tony baldwin <tony@free-haven.org>
* Hauke Altmann <https://snarl.de/profile/tugelblend> * Hauke Altmann <https://snarl.de/profile/tugelblend>
@ -70,7 +70,7 @@ function pledgie_addon_settings_post(&$a,&$b) {
function pledgie_active(&$a,&$b) { function pledgie_active(&$a,&$b) {
$campaign = get_config('pledgie-campaign','text'); $campaign = get_config('pledgie-campaign','text');
$describe = get_config('pledgie-describe','text'); $describe = get_config('pledgie-describe','text');
$b .= '<div style="position: fixed; bottom: 5px; left: 60px;">'; $b .= '<div style="position: fixed; padding:5px; border-style:dotted; border-width:1px; background-color: white; line-height: 1; bottom: 5px; left: 20px; z-index: 1000; width: 150px; font-size: 12px;">';
$b .= $describe . '<br/><a href=\'http://www.pledgie.com/campaigns/'; $b .= $describe . '<br/><a href=\'http://www.pledgie.com/campaigns/';
$b .= $campaign; $b .= $campaign;
$b .= '\'><img alt=\'Click here to lend your support to: ' . $describe . '!\' src=\'http://www.pledgie.com/campaigns/'; $b .= '\'><img alt=\'Click here to lend your support to: ' . $describe . '!\' src=\'http://www.pledgie.com/campaigns/';