X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=wppost%2Fwppost.php;h=fc3d3a10acccd1058099181e7619956834426e4b;hb=c719574a1af50809fedc6ccd8e10d2fb0f125386;hp=ac85662313295a383c2c814b6eff7c9112a939b9;hpb=ce997a0367c56d293099bde0984d92055ab7b221;p=friendica-addons.git
diff --git a/wppost/wppost.php b/wppost/wppost.php
index ac856623..fc3d3a10 100755
--- a/wppost/wppost.php
+++ b/wppost/wppost.php
@@ -46,24 +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');
+ $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');
@@ -73,11 +76,11 @@ function wppost_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '';
- $s .= '' . t('WordPress Export') . '
';
+ $s .= ''. t('Wordpress Export').'
';
$s .= '';
$s .= '