Skip to content

Commit e8fe4a4

Browse files
committed
deploy: 2b8edf2
1 parent 67e9dd0 commit e8fe4a4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

ableplayer.php.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,28 @@
693693
return false;
694694
}
695695
}
696+
697+
698+
add_action( 'admin_notices', 'able_status_notice', 10 );
699+
/**
700+
* Display notice in Playground for demo purposes.
701+
*/
702+
function able_status_notice() {
703+
// Only shown when in the Playground preview.
704+
if ( 'true' === get_option( 'able_show_playground_intro', '' ) ) {
705+
$settings_url = admin_url( 'options-general.php?page=ableplayer' );
706+
echo '<div class="notice notice-info">';
707+
echo '<h3>' . __( 'Thanks for trying out Able Player!', 'ableplayer' ) . '</h3>';
708+
echo '<p>' . __( "Let me give you a few quick things to try out while you're here:", 'ableplayer' ) . '</p>';
709+
echo '<ol>';
710+
echo '<li>' . __( 'Create a new post and add media to experiment with Able Player.', 'ableplayer' ) . '</li>';
711+
echo '<li>' . sprintf( __( 'Visit the <a href="%s">Able Player settings page</a> and explore options.', 'ableplayer' ), esc_url( $settings_url ) ) . '</li>';
712+
echo '</ol>';
713+
// translators: link to plugin documentation.
714+
echo '<p>' . sprintf( __( 'To learn more, check out the <a href="%s">player documentation</a>.', 'ableplayer' ), 'https://ableplayer.github.io/ableplayer/' ) . '</p>';
715+
echo '</div>';
716+
}
717+
}
696718
</code></pre>
697719
</article>
698720
</section>

0 commit comments

Comments
 (0)