mirror of
https://gitlab.com/randompenguin/postbox.git
synced 2025-04-22 05:50:10 +00:00
Upload New File
This commit is contained in:
commit
748b8e02e8
1 changed files with 21 additions and 0 deletions
21
postbox.php
Normal file
21
postbox.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
/**
|
||||
* Name: Postbox
|
||||
* Description: Adds support for showing Postbox backgrounds but does NOT add an interface for making them (but users can still make them with BBcode)
|
||||
* Version: 1.0
|
||||
* Author: Random Penguin <https://gitlab.com/randompenguin>
|
||||
*/
|
||||
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\DI;
|
||||
|
||||
function postbox_install()
|
||||
{
|
||||
Hook::register('head', __FILE__, 'postbox_head');
|
||||
}
|
||||
function postbox_head(string &$b)
|
||||
{
|
||||
// Add Postbox Styling to Header
|
||||
$box_styles = __DIR__ . '/postbox.css';
|
||||
DI::page()->registerStylesheet($box_styles);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue