Viewing file: NavigationFeedback.php (1.15 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /** * Kkart Admin Navigation Feature Feedback */
namespace Automattic\Kkart\Admin\Notes;
use Automattic\Kkart\Admin\Loader;
defined( 'ABSPATH' ) || exit;
/** * NavigationFeedback */ class NavigationFeedback { /** * Note traits. */ use NoteTraits;
/** * Name of the note for use in the database. */ const NOTE_NAME = 'kkart-admin-navigation-feedback';
/** * Get the note. * * @return Note */ public static function get_note() { if ( ! Loader::is_feature_enabled( 'navigation' ) ) { return; }
$content = __( "We're introducing the new navigation for a more intuitive and improved user experience. We'd like to hear your thoughts and first impressions.", 'kkart' );
$note = new Note(); $note->set_title( __( 'You now have access to the new Kkart navigation', 'kkart' ) ); $note->set_content( $content ); $note->set_content_data( (object) array() ); $note->set_type( Note::E_KKART_ADMIN_NOTE_INFORMATIONAL ); $note->set_name( self::NOTE_NAME ); $note->set_source( 'kkart-admin' ); $note->add_action( 'share-feedback', __( 'Share feedback', 'kkart' ), 'https://automattic.survey.fm/new-navigation' ); return $note; } }
|