Skip to content

Commit ca89f7c

Browse files
committed
Fixed bug with example widget
1 parent 9a7bf2a commit ca89f7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Widgets/ExampleWidget.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* A simple widget that displays a text field (title) and textarea.
99
* @since 0.3.0
1010
*/
11-
class ExampleWidget extends Widget {
11+
class ExampleWidget extends Carbon_Fields\Widget {
1212

1313
public function __construct() {
1414

@@ -29,8 +29,8 @@ public function __construct() {
2929
*/
3030
public function front_end( $args, $instance ) {
3131

32-
echo $args['before_title'] . $instance[$this->prefix( 'widget_title' )] . $args['after_title'];
33-
echo '<p>' . $instance[$this->prefix( 'widget_content')] . '</p>';
32+
echo $args[ 'before_title' ] . $instance[ Plugin::prefix( 'widget_title' ) ] . $args[ 'after_title' ];
33+
echo '<p>' . $instance[ Plugin::prefix( 'widget_content') ] . '</p>';
3434

3535
}
3636

0 commit comments

Comments
 (0)