Skip to content

Commit bfb04fb

Browse files
committed
Remove the postbox div for more native look
The postbox class added white background which is usually used for information boxes like the ones in the dashboard. Signed-off-by: Roi Dayan <roi.dayan@gmail.com>
1 parent 0131c06 commit bfb04fb

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

src/class.settings-api.php

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -471,23 +471,21 @@ function show_navigation() {
471471
function show_forms() {
472472
?>
473473
<div class="metabox-holder">
474-
<div class="postbox">
475-
<?php foreach ( $this->settings_sections as $form ) { ?>
476-
<div id="<?php echo $form['id']; ?>" class="group">
477-
<form method="post" action="options.php">
478-
479-
<?php do_action( 'wsa_form_top_' . $form['id'], $form ); ?>
480-
<?php settings_fields( $form['id'] ); ?>
481-
<?php do_settings_sections( $form['id'] ); ?>
482-
<?php do_action( 'wsa_form_bottom_' . $form['id'], $form ); ?>
483-
484-
<div style="padding-left: 10px">
485-
<?php submit_button(); ?>
486-
</div>
487-
</form>
488-
</div>
489-
<?php } ?>
490-
</div>
474+
<?php foreach ( $this->settings_sections as $form ) { ?>
475+
<div id="<?php echo $form['id']; ?>" class="group">
476+
<form method="post" action="options.php">
477+
<?php
478+
do_action( 'wsa_form_top_' . $form['id'], $form );
479+
settings_fields( $form['id'] );
480+
do_settings_sections( $form['id'] );
481+
do_action( 'wsa_form_bottom_' . $form['id'], $form );
482+
?>
483+
<div style="padding-left: 10px">
484+
<?php submit_button(); ?>
485+
</div>
486+
</form>
487+
</div>
488+
<?php } ?>
491489
</div>
492490
<?php
493491
$this->script();

0 commit comments

Comments
 (0)