mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-22 11:15:13 +00:00
29 lines
709 B
PHP
29 lines
709 B
PHP
|
<?php
|
||
|
|
||
|
namespace Zotlabs\Module;
|
||
|
|
||
|
use Zotlabs\Lib\Apps;
|
||
|
use Zotlabs\Lib\Libsync;
|
||
|
use Zotlabs\Web\Controller;
|
||
|
|
||
|
class Secrets extends Controller {
|
||
|
|
||
|
function get() {
|
||
|
|
||
|
$desc = t('This app allows you to protect messages with a secret passphrase. This only works across selected platforms.');
|
||
|
|
||
|
$text = '<div class="section-content-info-wrapper">' . $desc . '</div>';
|
||
|
|
||
|
if(! ( local_channel() && Apps::system_app_installed(local_channel(),'Secrets'))) {
|
||
|
return $text;
|
||
|
}
|
||
|
|
||
|
$desc = t('This app is installed. A button to encrypt content may be found in the post editor.');
|
||
|
|
||
|
$text = '<div class="section-content-info-wrapper">' . $desc . '</div>';
|
||
|
|
||
|
return $text;
|
||
|
|
||
|
}
|
||
|
}
|