2019-07-01 03:11:48 +00:00
|
|
|
<?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;
|
|
|
|
}
|
|
|
|
|
2019-07-01 06:36:03 +00:00
|
|
|
return $text . '<br><br>' . t('This app is currently installed.');
|
2019-07-01 03:11:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|