We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a7bf2a commit ca89f7cCopy full SHA for ca89f7c
app/Widgets/ExampleWidget.php
@@ -8,7 +8,7 @@
8
* A simple widget that displays a text field (title) and textarea.
9
* @since 0.3.0
10
*/
11
-class ExampleWidget extends Widget {
+class ExampleWidget extends Carbon_Fields\Widget {
12
13
public function __construct() {
14
@@ -29,8 +29,8 @@ public function __construct() {
29
30
public function front_end( $args, $instance ) {
31
32
- echo $args['before_title'] . $instance[$this->prefix( 'widget_title' )] . $args['after_title'];
33
- echo '<p>' . $instance[$this->prefix( 'widget_content')] . '</p>';
+ echo $args[ 'before_title' ] . $instance[ Plugin::prefix( 'widget_title' ) ] . $args[ 'after_title' ];
+ echo '<p>' . $instance[ Plugin::prefix( 'widget_content') ] . '</p>';
34
35
}
36
0 commit comments