function vier_community_info()
{
- $a = get_app();
+ $a = \get_app();
$show_pages = get_vier_config("show_pages", 1);
$show_profiles = get_vier_config("show_profiles", 1);
//Community_Pages at right_aside
if ($show_pages && local_user()) {
- $cid = null;
- if (x($_GET, 'cid') && intval($_GET['cid']) != 0) {
- $cid = $_GET['cid'];
- }
+ $cid = defaults($_GET, 'cid', null);
//sort by last updated item
$lastitem = true;
/// @TODO This whole thing is hard-coded, better rewrite to Intercepting Filter Pattern (future-todo)
$r = [];
- if (Addon::isEnabled("appnet")) {
- $r[] = ["photo" => "images/appnet.png", "name" => "App.net"];
- }
-
if (Addon::isEnabled("buffer")) {
$r[] = ["photo" => "images/buffer.png", "name" => "Buffer"];
}
$r[] = ["photo" => "images/dreamwidth.png", "name" => "Dreamwidth"];
}
- if (Addon::isEnabled("fbpost")) {
- $r[] = ["photo" => "images/facebook.png", "name" => "Facebook"];
- }
-
if (Addon::isEnabled("ifttt")) {
$r[] = ["photo" => "addon/ifttt/ifttt.png", "name" => "IFTTT"];
}
$r[] = ["photo" => "images/gnusocial.png", "name" => "GNU Social"];
}
- if (Addon::isEnabled("gpluspost")) {
- $r[] = ["photo" => "images/googleplus.png", "name" => "Google+"];
- }
-
/// @TODO old-lost code (and below)?
//if (Addon::isEnabled("ijpost")) {
// $r[] = array("photo" => "images/", "name" => "");