Notes'; echo '
'; $title = $identifier; if ( ! isset( $control->values['title'] ) || ( $control->values['title'] == '' ) ) { switch ( $identifier ) { case 'above': $title = 'Above Post Content'; break; case 'middle': $title = 'Middle of Post Content'; break; case 'below': $title = 'Below Post Content'; break; case 'left': $title = 'To the Left of Post Content'; break; case 'right': $title = 'To the Right of Post Content'; break; default: $title = $identifier; break; } } else { $title = $control->values['title']; } $control->add_control( [ 'type' => 'text', 'optionName' => 'title', 'helpText' => 'The title is used to identify your Ad Widget easily in future. A Random Title will be assigned to your Ad widget by default.', 'value' => $title, ] ); $control->create_section( 'Title' ); wp_insert_echo_html( $control->HTML ); $control->clear_controls(); $control->add_control( [ 'type' => 'textarea', 'optionName' => 'notes', 'style' => 'height: 220px;', ] ); $control->create_section( 'Notes' ); wp_insert_echo_html( $control->HTML ); $control->clear_controls(); echo '
'; return $control; }