diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-01-29 22:44:38 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-01-29 22:44:38 +0100 |
commit | 296117124c530ce7533431e6bb8a7958b89f7f51 (patch) | |
tree | f4cac99084f605059e830d4713926bf39fc13593 /Zotlabs/Module/Go.php | |
parent | 0d21c6f86361d723175357b9584ca69d4a62e0a4 (diff) | |
parent | e4eff6a32bd6b9907c5c1a4454e5861f3712d380 (diff) | |
download | volse-hubzilla-296117124c530ce7533431e6bb8a7958b89f7f51.tar.gz volse-hubzilla-296117124c530ce7533431e6bb8a7958b89f7f51.tar.bz2 volse-hubzilla-296117124c530ce7533431e6bb8a7958b89f7f51.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Module/Go.php')
-rw-r--r-- | Zotlabs/Module/Go.php | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Zotlabs/Module/Go.php b/Zotlabs/Module/Go.php new file mode 100644 index 000000000..2c2dcf460 --- /dev/null +++ b/Zotlabs/Module/Go.php @@ -0,0 +1,66 @@ +<?php + +namespace Zotlabs\Module; + + +class Go extends \Zotlabs\Web\Controller { + + function init() { + if(local_channel()) { + $channel = \App::get_channel(); + if($channel) { + profile_load($channel['channel_address'],0); + } + } + } + + + + function get() { + if(! local_channel()) { + notify( t('This page is available only to site members') . EOL); + } + + $channel = \App::get_channel(); + + + $title = t('Welcome'); + + $m = t('What would you like to do?'); + + $m1 = t('Please bookmark this page if you would like to return to it in the future'); + + + $options = [ + 'profile_photo' => t('Upload a profile photo'), + 'profiles' => t('Edit your default profile'), + 'suggest' => t('View friend suggestions'), + 'directory' => t('View the directory to find other interesting channels'), + 'settings' => t('View/edit your channel settings'), + 'help' => t('View the site or project documentation'), + 'channel/' . $channel['channel_address'] => t('Visit your channel homepage'), + 'connections' => t('View your connections and/or add somebody whose address you already know'), + 'network' => t('View your personal stream (this may be empty until you add some connections)'), + + ]; + + $site_firehose = ((intval(get_config('system','site_firehose',0))) ? true : false); + $net_firehose = ((get_config('system','disable_discover_tab',1)) ? false : true); + + if($site_firehose || $net_firehose) { + $options['pubstream'] = t('View the public stream. Warning: this content is not moderated'); + } + + $o = replace_macros(get_markup_template('go.tpl'), [ + '$title' => $title, + '$m' => $m, + '$m1' => $m1, + '$options' => $options + + ]); + + return $o; + + } + +}
\ No newline at end of file |