X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Ftheme.php;h=7f6ead079f4d9abce62e964edf297f375e260bb5;hb=d10eee45b9d539a282180344fb5d5972a887e0ba;hp=df28c0689eba5c78abeb9e8fb2670fab5fc9396f;hpb=5d6f02da419703d76eee3442e55b69a19c02f9c8;p=friendica.git diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index df28c0689e..7f6ead079f 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) { @@ -19,18 +19,23 @@ function vier_init(&$a) { set_template_engine($a, 'smarty3'); - $baseurl = $a->get_baseurl(); - $a->theme_info = array(); if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname'] or $a->argv[0] === "network" && local_user()) { vier_community_info(); - $a->page['htmlhead'] .= ""; + $a->page['htmlhead'] .= "\n"; + } + + if ($a->is_mobile || $a->is_tablet) { + $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 - + 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"))) + if (($a->page['aside'] == "") AND in_array($a->argv[0], array("community", "events", "help", "manage", "notifications", + "probe", "webfinger", "login", "invite", "credits"))) $a->page['htmlhead'] .= ""; } @@ -130,8 +157,9 @@ function vier_community_info() { foreach($r as $rr) { $entry = replace_macros($tpl,array( '$id' => $rr['id'], - '$profile_link' => zrl($rr['url']), - '$photo' => proxy_url($rr['photo']), + //'$profile_link' => zrl($rr['url']), + '$profile_link' => 'follow/?url='.urlencode($rr['url']), + '$photo' => proxy_url($rr['photo'], false, PROXY_SIZE_MICRO), '$alt_text' => $rr['name'], )); $aside['$comunity_profiles_items'][] = $entry; @@ -156,11 +184,11 @@ function vier_community_info() { $aside['$lastusers_items'] = array(); foreach($r as $rr) { - $profile_link = $a->get_baseurl() . '/profile/' . ((strlen($rr['nickname'])) ? $rr['nickname'] : $rr['profile_uid']); + $profile_link = 'profile/' . ((strlen($rr['nickname'])) ? $rr['nickname'] : $rr['profile_uid']); $entry = replace_macros($tpl,array( '$id' => $rr['id'], '$profile_link' => $profile_link, - '$photo' => $a->get_cached_avatar_image($rr['thumb']), + '$photo' => $a->remove_baseurl($rr['thumb']), '$alt_text' => $rr['name'])); $aside['$lastusers_items'][] = $entry; } @@ -177,7 +205,7 @@ function vier_community_info() { $nv['suggest'] = Array('suggest', t('Friend Suggestions'), "", ""); $nv['invite'] = Array('invite', t('Invite Friends'), "", ""); - $nv['search'] = '