|
@@ 87-91 (lines=5) @@
|
| 84 |
|
$instance['text'] = $new_instance['text']; |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
if ( isset( $new_instance['customtext'] ) ) { |
| 88 |
|
$instance['customtext'] = mb_substr( $new_instance['customtext'], 0, 4096 ); |
| 89 |
|
} else { |
| 90 |
|
$instance['text'] = 'default'; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
if ( isset( $new_instance['color-scheme'] ) ) { |
| 94 |
|
$instance['color-scheme'] = 'negative' === $new_instance['color-scheme'] ? 'negative' : 'default'; |
|
@@ 93-97 (lines=5) @@
|
| 90 |
|
$instance['text'] = 'default'; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
if ( isset( $new_instance['color-scheme'] ) ) { |
| 94 |
|
$instance['color-scheme'] = 'negative' === $new_instance['color-scheme'] ? 'negative' : 'default'; |
| 95 |
|
} else { |
| 96 |
|
$instance['color-scheme'] = 'default'; |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
if ( in_array( $new_instance['policy-url'], array( 'default', 'custom' ) ) ) { |
| 100 |
|
$instance['policy-url'] = $new_instance['policy-url']; |