';
diff --git a/diaspora/diaspora.php b/diaspora/diaspora.php
index 53e1890c..dfefff71 100755
--- a/diaspora/diaspora.php
+++ b/diaspora/diaspora.php
@@ -119,8 +119,8 @@ function diaspora_settings(&$a,&$s) {
/* Get the current state of our config variables */
$enabled = get_pconfig(local_user(),'diaspora','post');
-
$checked = (($enabled) ? ' checked="checked" ' : '');
+ $css = (($enabled) ? '' : '-disabled');
$def_enabled = get_pconfig(local_user(),'diaspora','post_by_default');
@@ -146,11 +146,11 @@ function diaspora_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '
';
- $s .= ''. t('Diaspora Export').'
';
+ $s .= ''. t('Diaspora Export').'
';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= ''. t('Diaspora Export').'
';
+ $s .= ''. t('Diaspora Export').'
';
$s .= '';
if ($status) {
diff --git a/fbpost/fbpost.php b/fbpost/fbpost.php
index 62ae73c7..93a31e2b 100644
--- a/fbpost/fbpost.php
+++ b/fbpost/fbpost.php
@@ -320,6 +320,10 @@ function fbpost_content(&$a) {
* @param null|object $b
*/
function fbpost_plugin_settings(&$a,&$b) {
+
+ $enabled = get_pconfig(local_user(),'facebook','post');
+ $css = (($enabled) ? '' : '-disabled');
+
$result = q("SELECT `installed` FROM `addon` WHERE `name` = 'fbsync' AND `installed`");
if(count($result) > 0)
$title = t('Facebook Import/Export/Mirror');
@@ -327,7 +331,7 @@ function fbpost_plugin_settings(&$a,&$b) {
$title = t('Facebook Export/Mirror');
$b .= '
';
}
diff --git a/gpluspost/gpluspost.php b/gpluspost/gpluspost.php
index b3ae3293..92ee8375 100644
--- a/gpluspost/gpluspost.php
+++ b/gpluspost/gpluspost.php
@@ -58,6 +58,7 @@ function gpluspost_settings(&$a,&$s) {
$enabled = get_pconfig(local_user(),'gpluspost','post');
$checked = (($enabled) ? ' checked="checked" ' : '');
+ $css = (($enabled) ? '' : '-disabled');
$def_enabled = get_pconfig(local_user(),'gpluspost','post_by_default');
$def_checked = (($def_enabled) ? ' checked="checked" ' : '');
@@ -81,11 +82,11 @@ function gpluspost_settings(&$a,&$s) {
$title = "Google+ Export";
$s .= '
';
- $s .= ''. t($title).'
';
+ $s .= ''. t($title).'
';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= ''. t($title).'
';
+ $s .= ''. t($title).'
';
$s .= '';
$s .= '
';
diff --git a/libertree/libertree.php b/libertree/libertree.php
index 123bfe2b..d614d758 100755
--- a/libertree/libertree.php
+++ b/libertree/libertree.php
@@ -50,8 +50,8 @@ function libertree_settings(&$a,&$s) {
/* Get the current state of our config variables */
$enabled = get_pconfig(local_user(),'libertree','post');
-
$checked = (($enabled) ? ' checked="checked" ' : '');
+ $css = (($enabled) ? '' : '-disabled');
$def_enabled = get_pconfig(local_user(),'libertree','post_by_default');
@@ -64,11 +64,11 @@ function libertree_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '
';
- $s .= ''. t('libertree Export').'
';
+ $s .= ''. t('libertree Export').'
';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= ''. t('libertree Export').'
';
+ $s .= ''. t('libertree Export').'
';
$s .= '';
$s .= '
';
diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php
index 3083d732..d2ef540e 100755
--- a/pumpio/pumpio.php
+++ b/pumpio/pumpio.php
@@ -203,6 +203,7 @@ function pumpio_settings(&$a,&$s) {
$enabled = get_pconfig(local_user(),'pumpio','post');
$checked = (($enabled) ? ' checked="checked" ' : '');
+ $css = (($enabled) ? '' : '-disabled');
$def_enabled = get_pconfig(local_user(),'pumpio','post_by_default');
$def_checked = (($def_enabled) ? ' checked="checked" ' : '');
@@ -219,11 +220,11 @@ function pumpio_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '
';
- $s .= ''. t('Pump.io Import/Export/Mirror').'
';
+ $s .= ''. t('Pump.io Import/Export/Mirror').'
';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= ''. t('Pump.io Import/Export/Mirror').'
';
+ $s .= ''. t('Pump.io Import/Export/Mirror').'
';
$s .= '';
$s .= '
';
diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php
index fd9c7b1a..1109a0f2 100644
--- a/statusnet/statusnet.php
+++ b/statusnet/statusnet.php
@@ -287,15 +287,17 @@ function statusnet_settings(&$a,&$s) {
$create_userenabled = get_pconfig(local_user(),'statusnet','create_user');
$create_userchecked = (($create_userenabled) ? ' checked="checked" ' : '');
+ $css = (($enabled) ? '' : '-disabled');
+
$globalshortening = get_config('statusnet','intelligent_shortening');
$s .= '
';
- $s .= ''. t('StatusNet Import/Export/Mirror').'
';
+ $s .= ''. t('StatusNet Import/Export/Mirror').'
';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= ''. t('StatusNet Import/Export/Mirror').'
';
+ $s .= ''. t('StatusNet Import/Export/Mirror').'
';
$s .= '';
if ( (!$ckey) && (!$csecret) ) {
diff --git a/tumblr/tumblr.php b/tumblr/tumblr.php
index 61b9bef5..bbd0da83 100755
--- a/tumblr/tumblr.php
+++ b/tumblr/tumblr.php
@@ -172,8 +172,8 @@ function tumblr_settings(&$a,&$s) {
/* Get the current state of our config variables */
$enabled = get_pconfig(local_user(),'tumblr','post');
-
$checked = (($enabled) ? ' checked="checked" ' : '');
+ $css = (($enabled) ? '' : '-disabled');
$def_enabled = get_pconfig(local_user(),'tumblr','post_by_default');
@@ -182,11 +182,11 @@ function tumblr_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '
';
- $s .= ''. t('Tumblr Export').'
';
+ $s .= ''. t('Tumblr Export').'
';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= ''. t('Tumblr Export').'
';
+ $s .= ''. t('Tumblr Export').'
';
$s .= '';
$s .= '
';
diff --git a/twitter/twitter.php b/twitter/twitter.php
index c14841f4..35cae97d 100755
--- a/twitter/twitter.php
+++ b/twitter/twitter.php
@@ -230,14 +230,16 @@ function twitter_settings(&$a,&$s) {
$create_userenabled = get_pconfig(local_user(),'twitter','create_user');
$create_userchecked = (($create_userenabled) ? ' checked="checked" ' : '');
+ $css = (($enabled) ? '' : '-disabled');
+
$globalshortening = get_config('twitter','intelligent_shortening');
$s .= '';
$s .= '
';
$s .= '
';
- $s .= ''. t('Twitter Import/Export/Mirror').'
';
+ $s .= ''. t('Twitter Import/Export/Mirror').'
';
$s .= '';
if ( (!$ckey) && (!$csecret) ) {
diff --git a/wppost/wppost.php b/wppost/wppost.php
index 8436fd3a..3a00853b 100755
--- a/wppost/wppost.php
+++ b/wppost/wppost.php
@@ -56,9 +56,10 @@ function wppost_settings(&$a,&$s) {
/* Get the current state of our config variables */
$enabled = get_pconfig(local_user(),'wppost','post');
-
$checked = (($enabled) ? ' checked="checked" ' : '');
+ $css = (($enabled) ? '' : '-disabled');
+
$def_enabled = get_pconfig(local_user(),'wppost','post_by_default');
$back_enabled = get_pconfig(local_user(),'wppost','backlink');
@@ -73,11 +74,11 @@ function wppost_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '
';
- $s .= ''. t('Wordpress Export').'
';
+ $s .= ''. t('Wordpress Export').'
';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= ''. t('Wordpress Export').'
';
+ $s .= ''. t('Wordpress Export').'
';
$s .= '';
$s .= '
';
$s .= '';