Merge pull request #264 from tugelbend/master
documentation update for pageheader and pledgie addon
This commit is contained in:
commit
ce34ccd100
BIN
pageheader.tgz
BIN
pageheader.tgz
Binary file not shown.
|
@ -5,4 +5,4 @@ Displays a text message for system announcements'
|
|||
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
|
||||
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.
|
|
@ -50,7 +50,7 @@ function pageheader_addon_settings(&$a,&$s) {
|
|||
$s .= '<div class="settings-block">';
|
||||
$s .= '<h3>' . t('"pageheader" Settings') . '</h3>';
|
||||
$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 .= '</div><div class="clear"></div>';
|
||||
|
||||
|
|
BIN
pledgie.tgz
BIN
pledgie.tgz
Binary file not shown.
|
@ -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.
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
/**
|
||||
* Name: Pledgie
|
||||
* Description: Show link to Friendica pledgie account for donating
|
||||
* Description: Show link to a pledgie account for donating
|
||||
* Version: 1.1
|
||||
* Author: tony baldwin <tony@free-haven.org>
|
||||
* Hauke Altmann <https://snarl.de/profile/tugelblend>
|
||||
|
@ -70,7 +70,7 @@ function pledgie_addon_settings_post(&$a,&$b) {
|
|||
function pledgie_active(&$a,&$b) {
|
||||
$campaign = get_config('pledgie-campaign','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 .= $campaign;
|
||||
$b .= '\'><img alt=\'Click here to lend your support to: ' . $describe . '!\' src=\'http://www.pledgie.com/campaigns/';
|
||||
|
|
Loading…
Reference in New Issue
Block a user