X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Ftheme.php;h=4afc5409c06b0be4692ab1008577efb2b091e55c;hb=0a5297970bc3c8e5dbcbadeb3463c2950ca40eef;hp=87f41ae15b0247dbe8180c84b5e5fe4a71718eee;hpb=98f524db67a73565f0a03bd9b4d1a557f6b3e99a;p=friendica.git
diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php
index 87f41ae15b..4afc5409c0 100644
--- a/view/theme/vier/theme.php
+++ b/view/theme/vier/theme.php
@@ -9,9 +9,9 @@
* Description: "Vier" is a very compact and modern theme. It uses the font awesome font library: http://fortawesome.github.com/Font-Awesome/
*/
-require_once("mod/nodeinfo.php");
-require_once("mod/proxy.php");
+require_once("include/plugin.php");
require_once("include/socgraph.php");
+require_once("mod/proxy.php");
function vier_init(&$a) {
@@ -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
@@ -219,35 +220,50 @@ function vier_community_info() {
//Community_Pages at right_aside
if($show_pages AND local_user()) {
- $pagelist = array();
+ require_once('include/forums.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 = get_forumlist($a->user['uid'],true,$lastitem, true);
+ $total = count($contacts);
+ $visible_forums = 10;
- $contacts = $pageD;
+ if(count($contacts)) {
- if ($contacts) {
- $page = '
-