X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=wppost%2Fwppost.php;h=3a00853b9b586a23c0d4404fbb33e38c1e4fd805;hb=2e96c60a478156a9dae89d9ab9d35c6eebf543e6;hp=e8b6fc6d5236235690b0a0ca0b9f6f16a5a13eb8;hpb=57441b4def0f4bb42044ea444b6c59bcaa166d61;p=friendica-addons.git diff --git a/wppost/wppost.php b/wppost/wppost.php index e8b6fc6d..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'); @@ -72,8 +73,13 @@ function wppost_settings(&$a,&$s) { /* Add some HTML to the existing form */ - $s .= '