X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Ftheme.php;h=c2669f5a931ae8030d88ba603d596b243ec894b9;hb=0c764684bb32a9432fd161e62db907efb78af1a5;hp=8b0ce4bcba634f47ac511daebf7a52fc36812ca8;hpb=988d0327aea5d0bf7658900593fca512437f021f;p=friendica.git diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index 8b0ce4bcba..c2669f5a93 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -33,7 +33,8 @@ function vier_init(&$a) { $a->page['htmlhead'] .= ''."\n"; $a->page['htmlhead'] .= ''."\n"; } - $a->page['htmlhead'] .= ''."\n"; + // deactivated since it doesn't work with desktop browsers at the moment (To-Do) + //$a->page['htmlhead'] .= ''."\n"; $a->page['htmlhead'] .= <<< EOT @@ -86,9 +87,30 @@ function cmtBbOpen(id) { function cmtBbClose(id) { $("#comment-edit-bb-" + id).hide(); } + + + EOT; + +if ($a->is_mobile || $a->is_tablet){ + $a->page['htmlhead'] .= <<< EOT + +EOT; +} + + // Hide the left menu bar if (($a->page['aside'] == "") AND in_array($a->argv[0], array("community", "events", "help", "manage", "notifications", "probe", "webfinger", "login", "invite", "credits"))) @@ -198,35 +220,50 @@ function vier_community_info() { //Community_Pages at right_aside if($show_pages AND local_user()) { - $pagelist = array(); + require_once('include/ForumManager.php'); - $contacts = q("SELECT `id`, `url`, `name`, `micro` FROM `contact` - WHERE `network`= '%s' AND `uid` = %d AND (`forum` OR `prv`) AND - NOT `hidden` AND NOT `blocked` AND - NOT `archive` AND NOT `pending` AND - `success_update` > `failure_update` - ORDER BY `name` ASC", - dbesc(NETWORK_DFRN), intval($a->user['uid'])); + if(x($_GET['cid']) && intval($_GET['cid']) != 0) + $cid = $_GET['cid']; - $pageD = array(); + //sort by last updated item + $lastitem = true; - // Look if the profile is a community page - foreach($contacts as $contact) { - $pageD[] = array("url"=>$contact["url"], "name"=>$contact["name"], "id"=>$contact["id"], "micro"=>$contact['micro']); - }; + $contacts = ForumManager::get_list($a->user['uid'],true,$lastitem, true); + $total = count($contacts); + $visible_forums = 10; - $contacts = $pageD; + if(count($contacts)) { - if ($contacts) { - $page = ' -