Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit ad28e76

Browse files
committed
updated forms to WP 4.x
1 parent 426380a commit ad28e76

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

admin_panels.php

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -977,31 +977,33 @@ function openid_general_settings() {
977977
*/
978978
function openid_discussion_settings() {
979979
?>
980-
<label for="openid_enable_commentform">
981-
<input type="checkbox" name="openid_enable_commentform" id="openid_enable_commentform" value="1" <?php
982-
echo checked(true, get_option('openid_enable_commentform')); ?> />
983-
<?php _e('Enable OpenID for comments', 'openid') ?>
984-
</label>
985-
<br />
986-
987-
<?php if ( get_option('openid_enable_commentform') ): ?>
988-
989-
<?php if ( get_option('require_name_email') ): ?>
990-
<label for="openid_no_require_name">
991-
<input type="checkbox" name="openid_no_require_name" id="openid_no_require_name" value="1" <?php
992-
echo checked(true, get_option('openid_no_require_name')) ; ?> />
993-
<?php _e('Do not require name and e-mail for comments left with a verified OpenID', 'openid') ?>
980+
<fieldset>
981+
<label for="openid_enable_commentform">
982+
<input type="checkbox" name="openid_enable_commentform" id="openid_enable_commentform" value="1" <?php
983+
echo checked(true, get_option('openid_enable_commentform')); ?> />
984+
<?php _e('Enable OpenID for comments', 'openid') ?>
994985
</label>
995986
<br />
996-
<?php endif; ?>
997987

998-
<label for="openid_enable_approval">
999-
<input type="checkbox" name="openid_enable_approval" id="openid_enable_approval" value="1" <?php
1000-
echo checked(true, get_option('openid_enable_approval')); ?> />
1001-
<?php _e('Always approve comments left with a verified OpenID', 'openid'); ?>
1002-
</label>
1003-
<br />
988+
<?php if ( get_option('openid_enable_commentform') ): ?>
1004989

1005-
<?php endif; ?>
990+
<?php if ( get_option('require_name_email') ): ?>
991+
<label for="openid_no_require_name">
992+
<input type="checkbox" name="openid_no_require_name" id="openid_no_require_name" value="1" <?php
993+
echo checked(true, get_option('openid_no_require_name')) ; ?> />
994+
<?php _e('Do not require name and e-mail for comments left with a verified OpenID', 'openid') ?>
995+
</label>
996+
<br />
997+
<?php endif; ?>
998+
999+
<label for="openid_enable_approval">
1000+
<input type="checkbox" name="openid_enable_approval" id="openid_enable_approval" value="1" <?php
1001+
echo checked(true, get_option('openid_enable_approval')); ?> />
1002+
<?php _e('Always approve comments left with a verified OpenID', 'openid'); ?>
1003+
</label>
1004+
<br />
1005+
1006+
<?php endif; ?>
1007+
</fieldset>
10061008
<?php
10071009
}

0 commit comments

Comments
 (0)