make home.html fullpage mode - make directory search work for non-logged in, but leave off suggest and invite

This commit is contained in:
friendica 2013-12-14 17:03:37 -08:00
parent c00f0d4b28
commit d14e2db6b4
4 changed files with 12 additions and 13 deletions

View File

@ -25,7 +25,8 @@ function findpeople_widget() {
'$suggest' => t('Channel Suggestions'), '$suggest' => t('Channel Suggestions'),
'$similar' => '', // FIXME and uncomment when mod/match working // t('Similar Interests'), '$similar' => '', // FIXME and uncomment when mod/match working // t('Similar Interests'),
'$random' => t('Random Profile'), '$random' => t('Random Profile'),
'$inv' => t('Invite Friends') '$inv' => t('Invite Friends'),
'$loggedin' => local_user()
)); ));
} }

View File

@ -11,15 +11,13 @@ function directory_init(&$a) {
function directory_aside(&$a) { function directory_aside(&$a) {
if(local_user()) {
require_once('include/contact_widgets.php');
$a->set_widget('find_people',findpeople_widget());
}
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
return; return;
} }
require_once('include/contact_widgets.php');
$a->set_widget('find_people',findpeople_widget());
$a->set_widget('safe_search',dir_safe_mode()); $a->set_widget('safe_search',dir_safe_mode());
$a->set_widget('dir_sort_order',dir_sort_links()); $a->set_widget('dir_sort_order',dir_sort_links());

View File

@ -1,6 +1,6 @@
<?php <?php
if(! function_exists('home_init')) {
function home_init(&$a) { function home_init(&$a) {
$ret = array(); $ret = array();
@ -20,10 +20,10 @@ function home_init(&$a) {
goaway(z_root() . '/new_channel'); goaway(z_root() . '/new_channel');
} }
}} }
if(! function_exists('home_content')) {
function home_content(&$a) { function home_content(&$a) {
$o = ''; $o = '';
@ -85,4 +85,4 @@ require_once('include/conversation.php');
return $o; return $o;
} }
}

View File

@ -7,8 +7,8 @@
</form> </form>
<br /> <br />
{{if $similar}}<a href="match" >{{$similar}}</a><br />{{/if}} {{if $similar}}<a href="match" >{{$similar}}</a><br />{{/if}}
<a href="suggest" >{{$suggest}}</a><br /> {{if $loggedin}}<a href="suggest" >{{$suggest}}</a><br />{{/if}}
<a href="randprof" >{{$random}}</a><br /> <a href="randprof" >{{$random}}</a><br />
{{if $inv}}<a href="invite" >{{$inv}}</a>{{/if}} {{if $loggedin}}{{if $inv}}<a href="invite" >{{$inv}}</a>{{/if}}{{/if}}
</div> </div>