Upload New File

This commit is contained in:
Random Penguin 2025-03-23 14:00:16 -05:00
commit 748b8e02e8

21
postbox.php Normal file
View 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);
}