2020-08-24 00:32:33 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Zotlabs\Module;
|
|
|
|
|
|
|
|
use Zotlabs\Lib\Apps;
|
|
|
|
use Zotlabs\Lib\Libsync;
|
|
|
|
use Zotlabs\Web\Controller;
|
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
class Secrets extends Controller
|
|
|
|
{
|
2020-08-24 00:32:33 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
public function get()
|
|
|
|
{
|
2020-08-24 00:32:33 +00:00
|
|
|
|
|
|
|
$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>';
|
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
if (!(local_channel() && Apps::system_app_installed(local_channel(), 'Secrets'))) {
|
2020-08-24 00:32:33 +00:00
|
|
|
return $text;
|
|
|
|
}
|
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
$desc = t('This app is installed. A button to encrypt content may be found in the post editor.');
|
2020-08-24 00:32:33 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
$text = '<div class="section-content-info-wrapper">' . $desc . '</div>';
|
2020-08-24 00:32:33 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
return $text;
|
|
|
|
}
|
2020-08-24 00:32:33 +00:00
|
|
|
}
|