Reduce the opacity of the network settings icon when disabled.

This commit is contained in:
Michael Vogel 2014-04-24 16:18:36 +02:00
parent 5282318d1a
commit 2e96c60a47
11 changed files with 39 additions and 26 deletions

View file

@ -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 .= '<div class="settings-block">';
$b .= '<a href="fbpost"><img class="connector" src="images/facebook.png" /><h3 class="connector">'.$title.'</h3></a>';
$b .= '<a href="fbpost"><img class="connector'.$css.'" src="images/facebook.png" /><h3 class="connector">'.$title.'</h3></a>';
$b .= '</div>';
}