X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fdiabook-blue%2Ftheme.php;h=fb6b44a16b587af947a62d5017585d99dd63f601;hb=7d23149a61f75923b2c71a288a722ee219f5e6ba;hp=c2475e8bcaea2aeb125a9fb5b3a18376f2122a2e;hpb=b23ad806ec8cedbc94d721279fd5615f79c4a4c6;p=friendica.git diff --git a/view/theme/diabook-blue/theme.php b/view/theme/diabook-blue/theme.php index c2475e8bca..fb6b44a16b 100755 --- a/view/theme/diabook-blue/theme.php +++ b/view/theme/diabook-blue/theme.php @@ -7,9 +7,6 @@ * Author: */ -$a->theme_info = array( - 'extends' => 'diabook', -); //change css on network and profilepages $cssFile = null; @@ -18,7 +15,7 @@ $cssFile = null; /** * prints last community activity */ -function diabook_community_info(){ +function diabook_blue_community_info(){ $a = get_app(); //right_aside at networkpages @@ -33,7 +30,7 @@ function diabook_community_info(){ FROM `profile` LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid` WHERE `is-default` = 1 $publish AND `user`.`blocked` = 0 $sql_extra $order LIMIT %d , %d ", 0, - 12 + 9 ); $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl'); if(count($r)) { @@ -61,7 +58,7 @@ function diabook_community_info(){ WHERE `T1`.`liker-link` LIKE '%s%%' OR `item`.`author-link` LIKE '%s%%' GROUP BY `uri` ORDER BY `T1`.`created` DESC - LIMIT 0,10", + LIMIT 0,5", $a->get_baseurl(),$a->get_baseurl() ); @@ -109,7 +106,7 @@ function diabook_community_info(){ AND `user`.`blockwall`=0 AND `user`.`hidewall`=0 ORDER BY `photo`.`edited` DESC - LIMIT 0, 12", + LIMIT 0, 9", dbesc(t('Contact Photos')), dbesc(t('Profile Photos')) ); @@ -139,6 +136,60 @@ function diabook_community_info(){ $aside['$fostitJS'] = $fostitJS; + //nav FIND FRIENDS + if(local_user()) { + $nv = array(); + $nv['directory'] = Array('directory', t('Directory'), "", ""); + $nv['match'] = Array('match', t('Similar Interests'), "", ""); + $nv['suggest'] = Array('suggest', t('Friend Suggestions'), "", ""); + $nv['invite'] = Array('invite', t('Invite Friends'), "", ""); + + $nv['search'] = '