Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions base-files/settings-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public function form_field_text ( $args ) {
$options = $this->get_settings();
echo '<input id="' . esc_attr( $args['key'] ) . '" name="' . $this->token . '[' . esc_attr( $args['key'] ) . ']" size="40" type="text" value="' . esc_attr( $options[$args['key']] ) . '" />' . "\n";
if ( isset( $args['data']['description'] ) ) {
echo '<span class="description">' . esc_html( $args['data']['description'] ) . '</span>' . "\n";
echo '<span class="description">' . $args['data']['description'] . '</span>' . "\n";
}
} // End form_field_text()

Expand All @@ -271,7 +271,7 @@ public function form_field_checkbox ( $args ) {
}
echo '<input id="' . $args['key'] . '" name="' . $this->token . '[' . esc_attr( $args['key'] ) . ']" type="checkbox" value="1"' . checked( esc_attr( $options[$args['key']] ), '1', false ) . ' />' . "\n";
if ( $has_description ) {
echo esc_html( $args['data']['description'] ) . '</label>' . "\n";
echo $args['data']['description'] . '</label>' . "\n";
}
} // End form_field_text()

Expand All @@ -288,7 +288,7 @@ public function form_field_textarea ( $args ) {

echo '<textarea id="' . esc_attr( $args['key'] ) . '" name="' . $this->token . '[' . esc_attr( $args['key'] ) . ']" cols="42" rows="5">' . esc_html( $options[$args['key']] ) . '</textarea>' . "\n";
if ( isset( $args['data']['description'] ) ) {
echo '<p><span class="description">' . esc_html( $args['data']['description'] ) . '</span></p>' . "\n";
echo '<p><span class="description">' . $args['data']['description'] . '</span></p>' . "\n";
}
} // End form_field_textarea()

Expand All @@ -313,7 +313,7 @@ public function form_field_select ( $args ) {
echo $html;

if ( isset( $args['data']['description'] ) ) {
echo '<p><span class="description">' . esc_html( $args['data']['description'] ) . '</span></p>' . "\n";
echo '<p><span class="description">' . $args['data']['description'] . '</span></p>' . "\n";
}
}
} // End form_field_select()
Expand All @@ -337,7 +337,7 @@ public function form_field_radio ( $args ) {
echo $html;

if ( isset( $args['data']['description'] ) ) {
echo '<span class="description">' . esc_html( $args['data']['description'] ) . '</span>' . "\n";
echo '<span class="description">' . $args['data']['description'] . '</span>' . "\n";
}
}
} // End form_field_radio()
Expand Down Expand Up @@ -365,7 +365,7 @@ public function form_field_multicheck ( $args ) {
echo $html;

if ( isset( $args['data']['description'] ) ) {
echo '<span class="description">' . esc_html( $args['data']['description'] ) . '</span>' . "\n";
echo '<span class="description">' . $args['data']['description'] . '</span>' . "\n";
}
}
} // End form_field_multicheck()
Expand All @@ -391,7 +391,7 @@ public function form_field_range ( $args ) {
echo $html;

if ( isset( $args['data']['description'] ) ) {
echo '<p><span class="description">' . esc_html( $args['data']['description'] ) . '</span></p>' . "\n";
echo '<p><span class="description">' . $args['data']['description'] . '</span></p>' . "\n";
}
}
} // End form_field_range()
Expand All @@ -415,7 +415,7 @@ public function form_field_images ( $args ) {
echo $html;

if ( isset( $args['data']['description'] ) ) {
echo '<span class="description">' . esc_html( $args['data']['description'] ) . '</span>' . "\n";
echo '<span class="description">' . $args['data']['description'] . '</span>' . "\n";
}
}
} // End form_field_images()
Expand Down Expand Up @@ -639,4 +639,4 @@ protected function get_array_field_types() {
return array( 'multicheck' );
} // End get_array_field_types()
} // End Class
?>
?>