streams/Zotlabs/Module/Drafts.php

30 lines
660 B
PHP
Raw Normal View History

2020-11-30 00:38:45 +00:00
<?php
namespace Zotlabs\Module;
use Zotlabs\Lib\Apps;
use Zotlabs\Lib\Libsync;
use Zotlabs\Web\Controller;
class Drafts extends Controller {
function init() {
if (local_channel() && Apps::system_app_installed(local_channel(),'Drafts')) {
2020-11-30 00:43:31 +00:00
goaway(z_root() . '/stream/?draft=1');
2020-11-30 00:38:45 +00:00
}
}
function get() {
$desc = t('This app allows you to save posts you are writing and finish them later prior to sharing/publishing.');
$text = '<div class="section-content-info-wrapper">' . $desc . '</div>';
if(! ( local_channel() && Apps::system_app_installed(local_channel(),'Drafts'))) {
return $text;
}
}
}