mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Reduce the opacity of the network settings icon when disabled.
This commit is contained in:
parent
5282318d1a
commit
2e96c60a47
11 changed files with 39 additions and 26 deletions
|
@ -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>';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue