mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 08:23:42 +00:00
default checked
This commit is contained in:
parent
6ac0556e10
commit
b84ee7f2cf
2 changed files with 3 additions and 1 deletions
BIN
wppost.tgz
BIN
wppost.tgz
Binary file not shown.
|
@ -60,8 +60,10 @@ function wppost_settings(&$a,&$s) {
|
||||||
$checked = (($enabled) ? ' checked="checked" ' : '');
|
$checked = (($enabled) ? ' checked="checked" ' : '');
|
||||||
|
|
||||||
$def_enabled = get_pconfig(local_user(),'wppost','post_by_default');
|
$def_enabled = get_pconfig(local_user(),'wppost','post_by_default');
|
||||||
|
$back_enabled = get_pconfig(local_user(),'wppost','backlink');
|
||||||
|
|
||||||
$def_checked = (($def_enabled) ? ' checked="checked" ' : '');
|
$def_checked = (($def_enabled) ? ' checked="checked" ' : '');
|
||||||
|
$back_checked = (($back_enabled) ? ' checked="checked" ' : '');
|
||||||
|
|
||||||
$wp_username = get_pconfig(local_user(), 'wppost', 'wp_username');
|
$wp_username = get_pconfig(local_user(), 'wppost', 'wp_username');
|
||||||
$wp_password = get_pconfig(local_user(), 'wppost', 'wp_password');
|
$wp_password = get_pconfig(local_user(), 'wppost', 'wp_password');
|
||||||
|
@ -98,7 +100,7 @@ function wppost_settings(&$a,&$s) {
|
||||||
|
|
||||||
$s .= '<div id="wppost-backlink-wrapper">';
|
$s .= '<div id="wppost-backlink-wrapper">';
|
||||||
$s .= '<label id="wppost-backlink-label" for="wppost-backlink">' . t('Provide a backlink to the Friendica post') . '</label>';
|
$s .= '<label id="wppost-backlink-label" for="wppost-backlink">' . t('Provide a backlink to the Friendica post') . '</label>';
|
||||||
$s .= '<input id="wppost-backlink" type="checkbox" name="wp_backlink" value="1" ' . $def_checked . '/>';
|
$s .= '<input id="wppost-backlink" type="checkbox" name="wp_backlink" value="1" ' . $back_checked . '/>';
|
||||||
|
|
||||||
$s .= '</div><div class="clear"></div>';
|
$s .= '</div><div class="clear"></div>';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue