2019-07-01 03:11:48 +00:00
|
|
|
<?php
|
2021-12-03 03:01:39 +00:00
|
|
|
|
2022-02-16 04:08:28 +00:00
|
|
|
namespace Code\Module;
|
2019-07-01 03:11:48 +00:00
|
|
|
|
|
|
|
use App;
|
2022-02-16 04:08:28 +00:00
|
|
|
use Code\Web\Controller;
|
|
|
|
use Code\Lib\Apps;
|
2019-07-01 03:11:48 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
class Photomap extends Controller
|
|
|
|
{
|
2019-07-01 03:11:48 +00:00
|
|
|
|
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
public function get()
|
|
|
|
{
|
2019-07-01 03:11:48 +00:00
|
|
|
$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>';
|
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
if (!(local_channel() && Apps::system_app_installed(local_channel(), 'Photomap'))) {
|
2019-07-01 03:11:48 +00:00
|
|
|
return $text;
|
|
|
|
}
|
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
return $text . '<br><br>' . t('This app is currently installed.');
|
|
|
|
}
|
2019-07-01 03:11:48 +00:00
|
|
|
}
|