X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=wppost%2Fwppost.php;h=10437a06656e403e977a508011ccf56e3df2f714;hb=dd08a0164894ef192111a3fc20124797ab8eee15;hp=9cb258200a202d7c051ab6b8323e88959ac85e70;hpb=0b459e83794fff75fc9cbd980738147e367becf4;p=friendica-addons.git diff --git a/wppost/wppost.php b/wppost/wppost.php index 9cb25820..10437a06 100755 --- a/wppost/wppost.php +++ b/wppost/wppost.php @@ -3,7 +3,7 @@ /** * Name: WordPress Post Connector * Description: Post to WordPress (or anything else which uses blogger XMLRPC API) - * Version: 1.0 + * Version: 1.1 * Author: Mike Macgirvin */ @@ -46,38 +46,42 @@ 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'); + $enabled = get_pconfig(local_user(),'wppost','post'); + $checked = (($enabled) ? ' checked="checked" ' : ''); - $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'); + $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'); $wp_blog = get_pconfig(local_user(), 'wppost', 'wp_blog'); + $wp_backlink_text = get_pconfig(local_user(), 'wppost', 'wp_backlink_text'); /* Add some HTML to the existing form */ $s .= ''; - $s .= '

' . t('WordPress Post Settings') . '

'; + $s .= '

'. t('Wordpress Export').'

'; $s .= '
'; $s .= '