-/*
- if($ccCookie != "9") {
- $close_pages = get_vier_config( "close_pages", 1 );
- $close_profiles = get_vier_config( "close_profiles", 0 );
- $close_helpers = get_vier_config( "close_helpers", 0 );
- $close_services = get_vier_config( "close_services", 0 );
- $close_friends = get_vier_config( "close_friends", 0 );
- $close_lastusers = get_vier_config( "close_lastusers", 0 );
- $close_lastphotos = get_vier_config( "close_lastphotos", 0 );
- $close_lastlikes = get_vier_config( "close_lastlikes", 0 );
- $close_or_not = array('1'=>t("don't show"), '0'=>t("show"),);
- $boxsettings['title'] = Array("", t('Show/hide boxes at right-hand column:'), "", "");
- $aside['$boxsettings'] = $boxsettings;
- $aside['$close_pages'] = array('vier_close_pages', t('Community Pages'), $close_pages, '', $close_or_not);
- $aside['$close_profiles'] = array('vier_close_profiles', t('Community Profiles'), $close_profiles, '', $close_or_not);
- $aside['$close_helpers'] = array('vier_close_helpers', t('Help or @NewHere ?'), $close_helpers, '', $close_or_not);
- $aside['$close_services'] = array('vier_close_services', t('Connect Services'), $close_services, '', $close_or_not);
- $aside['$close_friends'] = array('vier_close_friends', t('Find Friends'), $close_friends, '', $close_or_not);
- $aside['$close_lastusers'] = array('vier_close_lastusers', t('Last users'), $close_lastusers, '', $close_or_not);
- $aside['$close_lastphotos'] = array('vier_close_lastphotos', t('Last photos'), $close_lastphotos, '', $close_or_not);
- $aside['$close_lastlikes'] = array('vier_close_lastlikes', t('Last likes'), $close_lastlikes, '', $close_or_not);
- $aside['$sub'] = t('Submit');
- $baseurl = $a->get_baseurl($ssl_state);
- $aside['$baseurl'] = $baseurl;
-
- if (isset($_POST['vier-settings-box-sub']) && $_POST['vier-settings-box-sub']!=''){
- set_pconfig(local_user(), 'vier', 'close_pages', $_POST['vier_close_pages']);
- set_pconfig(local_user(), 'vier', 'close_profiles', $_POST['vier_close_profiles']);
- set_pconfig(local_user(), 'vier', 'close_helpers', $_POST['vier_close_helpers']);
- set_pconfig(local_user(), 'vier', 'close_services', $_POST['vier_close_services']);
- set_pconfig(local_user(), 'vier', 'close_friends', $_POST['vier_close_friends']);
- set_pconfig(local_user(), 'vier', 'close_lastusers', $_POST['vier_close_lastusers']);
- set_pconfig(local_user(), 'vier', 'close_lastphotos', $_POST['vier_close_lastphotos']);
- set_pconfig(local_user(), 'vier', 'close_lastlikes', $_POST['vier_close_lastlikes']);
+ if (plugin_enabled("ifttt"))
+ $r[] = array("photo" => "addon/ifttt/ifttt.png", "name" => "IFTTT");
+
+ if (plugin_enabled("statusnet"))
+ $r[] = array("photo" => "images/gnusocial.png", "name" => "GNU Social");
+
+ if (plugin_enabled("gpluspost"))
+ $r[] = array("photo" => "images/googleplus.png", "name" => "Google+");
+
+ //if (plugin_enabled("ijpost"))
+ // $r[] = array("photo" => "images/", "name" => "");
+
+ if (plugin_enabled("libertree"))
+ $r[] = array("photo" => "images/libertree.png", "name" => "Libertree");
+
+ //if (plugin_enabled("ljpost"))
+ // $r[] = array("photo" => "images/", "name" => "");
+
+ if (plugin_enabled("pumpio"))
+ $r[] = array("photo" => "images/pumpio.png", "name" => "pump.io");
+
+ if (plugin_enabled("tumblr"))
+ $r[] = array("photo" => "images/tumblr.png", "name" => "Tumblr");
+
+ if (plugin_enabled("twitter"))
+ $r[] = array("photo" => "images/twitter.png", "name" => "Twitter");
+
+ if (plugin_enabled("wppost"))
+ $r[] = array("photo" => "images/wordpress.png", "name" => "Wordpress");
+
+ if(function_exists("imap_open") AND !get_config("system","imap_disabled") AND !get_config("system","dfrn_only"))
+ $r[] = array("photo" => "images/mail.png", "name" => "E-Mail");
+
+ $tpl = get_markup_template('ch_connectors.tpl');
+
+ if(count($r)) {
+
+ $con_services = array();
+ $con_services['title'] = Array("", t('Connect Services'), "", "");
+ $aside['$con_services'] = $con_services;
+
+ foreach($r as $rr) {
+ $entry = replace_macros($tpl,array(
+ '$url' => $url,
+ '$photo' => $rr['photo'],
+ '$alt_text' => $rr['name'],
+ ));
+ $aside['$connector_items'][] = $entry;
+ }