mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:55:15 +00:00
add missing module
This commit is contained in:
parent
6b1f5503a3
commit
2925aad846
1 changed files with 24 additions and 0 deletions
24
Zotlabs/Module/Photomap.php
Normal file
24
Zotlabs/Module/Photomap.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
namespace Zotlabs\Module;
|
||||
|
||||
use App;
|
||||
use Zotlabs\Web\Controller;
|
||||
use Zotlabs\Lib\Apps;
|
||||
|
||||
class Photomap extends Controller {
|
||||
|
||||
|
||||
function get() {
|
||||
$desc = t('This app provides a displayable map when viewing detail of photos that contain location information.');
|
||||
|
||||
$text = '<div class="section-content-info-wrapper">' . $desc . '</div>';
|
||||
|
||||
if(! ( local_channel() && Apps::system_app_installed(local_channel(),'Photomap'))) {
|
||||
return $text;
|
||||
}
|
||||
|
||||
return $text . '<br><br>' . t('This app is currently installed');
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue