X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=wppost%2Fwppost.php;h=5e197ab65c96b9f00a75597fdea4f348bd9976ef;hb=6d6e73096afb22e95678c651e055337f1bf5405d;hp=3a00853b9b586a23c0d4404fbb33e38c1e4fd805;hpb=2e96c60a478156a9dae89d9ab9d35c6eebf543e6;p=friendica-addons.git diff --git a/wppost/wppost.php b/wppost/wppost.php index 3a00853b..5e197ab6 100755 --- a/wppost/wppost.php +++ b/wppost/wppost.php @@ -46,25 +46,27 @@ function wppost_jot_nets(&$a,&$b) { function wppost_settings(&$a,&$s) { - if(! local_user()) - return; + if(! local_user()) + return; - /* Add our stylesheet to the page so we can make our settings look nice */ + /* Add our stylesheet to the page so we can make our settings look nice */ - $a->page['htmlhead'] .= '' . "\r\n"; + $a->page['htmlhead'] .= '' . "\r\n"; - /* Get the current state of our config variables */ + /* Get the current state of our config variables */ - $enabled = get_pconfig(local_user(),'wppost','post'); - $checked = (($enabled) ? ' checked="checked" ' : ''); + $enabled = get_pconfig(local_user(),'wppost','post'); + $checked = (($enabled) ? ' checked="checked" ' : ''); - $css = (($enabled) ? '' : '-disabled'); + $css = (($enabled) ? '' : '-disabled'); - $def_enabled = get_pconfig(local_user(),'wppost','post_by_default'); - $back_enabled = get_pconfig(local_user(),'wppost','backlink'); + $def_enabled = get_pconfig(local_user(),'wppost','post_by_default'); + $back_enabled = get_pconfig(local_user(),'wppost','backlink'); + $shortcheck_enabled = get_pconfig(local_user(),'wppost','shortcheck'); - $def_checked = (($def_enabled) ? ' checked="checked" ' : ''); - $back_checked = (($back_enabled) ? ' checked="checked" ' : ''); + $def_checked = (($def_enabled) ? ' checked="checked" ' : ''); + $back_checked = (($back_enabled) ? ' checked="checked" ' : ''); + $shortcheck_checked = (($shortcheck_enabled) ? ' checked="checked" ' : ''); $wp_username = get_pconfig(local_user(), 'wppost', 'wp_username'); $wp_password = get_pconfig(local_user(), 'wppost', 'wp_password'); @@ -108,7 +110,11 @@ function wppost_settings(&$a,&$s) { $s .= '