Skip to content

Commit f15e54d

Browse files
committed
fix widgets labels & error
1 parent 7d69dfd commit f15e54d

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

assets/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"dependencies": {},
77
"devDependencies": {
8-
"@creativecommons/vocabulary": "^2020.9.4",
8+
"@creativecommons/vocabulary": "^2020.10.1",
99
"@glidejs/glide": "^3.4.1",
1010
"bulma": "^0.9.1",
1111
"copy-webpack-plugin": "^5.1.1",

inc/widgets/cc-columns-widgets.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function form( $instance ) {
2727
$vertical_space = $instance['vertical_space'];
2828
echo '<p><label>Columns: </label>';
2929
echo '<p><label for="' . $this->get_field_name( 'remove_gaps' ) . '">Remove gap? </label><input type="checkbox" id="' . $this->get_field_id( 'remove_gaps' ) . '"' . ( ( ! empty( $remove_gaps ) ) ? ' checked="checked" ' : '' ) . ' name="' . $this->get_field_name( 'remove_gaps' ) . '" value="1"></p>';
30+
echo '<p><label>Column count: </label>';
3031
echo '<select class="widefat" id="' . $this->get_field_id( 'columns' ) . '" name="' . $this->get_field_name( 'columns' ) . '">';
3132
echo '<option value="">Select</option>';
3233
echo '<option value="auto"' . ( ( $columns == 'auto' ) ? 'selected="selected"' : '' ) . '>Auto fit</option>';

inc/widgets/cc-notification.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ function form( $instance ) {
3737
echo '<p><label>Notification format: </label>';
3838
echo '<select class="widefat" id="' . $this->get_field_id( 'type' ) . '" name="' . $this->get_field_name( 'type' ) . '">';
3939
echo '<option value="">Select format</option>';
40-
echo '<option value="warning" ' . ( ( $type == 'warning' ) ? 'selected="selected"' : '' ) . '>Warning</option>';
41-
echo '<option value="content" ' . ( ( $type == 'content' ) ? 'selected="selected"' : '' ) . '>Content</option>';
40+
echo '<option value="warning" ' . ( ( $instance['type'] == 'warning' ) ? 'selected="selected"' : '' ) . '>Warning</option>';
41+
echo '<option value="content" ' . ( ( $instance['type'] == 'content' ) ? 'selected="selected"' : '' ) . '>Content</option>';
4242
echo '</select>';
4343
echo '</p>';
4444
}

0 commit comments

Comments
 (0)