This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/themes/warm/upload.theme.php

19 lines
415 B
PHP
Raw Normal View History

2021-12-14 18:32:47 +00:00
<?php
declare(strict_types=1);
2009-07-23 01:32:45 +00:00
namespace Shimmie2;
class CustomUploadTheme extends UploadTheme
{
public function display_block(Page $page): void
{
$page->add_block(new Block("Upload", $this->build_upload_block(), "head", 20));
}
2009-07-23 01:32:45 +00:00
public function display_full(Page $page): void
{
$page->add_block(new Block("Upload", "Disk nearly full, uploads disabled", "head", 20));
}
2009-07-23 01:32:45 +00:00
}