Appearance. * * @package Cambay * @since 1.3.4 */ namespace cambay; /** * Display Cambay theme admin page in Dashboard > Appearance. * * @since 1.3.4 */ class Admin_Page { /** * Constructor method. * * @since 1.3.4 */ public function __construct() {} /** * Register hooked functions. * * @since 1.3.4 */ public function init() { global $pagenow; // Add Welcome message on Theme activation. if ( is_admin() && 'themes.php' === $pagenow && isset( $_GET['activated'] ) ) { add_action( 'admin_notices', [ $this, 'welcome_theme_notice' ], 99 ); } } /** * Display Welcome Message on Theme activation. * * @since 1.3.4 * * @return void */ public function welcome_theme_notice() { // Since Manta is not the active theme, let user know Manta Plus will not work. printf( '

%s

%s

  1. %s
  2. %s

%s

', esc_html__( 'Hi there!', 'cambay' ), esc_html__( 'Thanks for trying Cambay. Here are some quick tips to get you started.', 'cambay' ), esc_html__( 'Use "Display Posts" widget from Appearance > Widgets to create various posts layout.', 'cambay' ), esc_html__( 'Use "Blank Widget" widget from Appearance > Widgets to create vertical gaps between widgets.', 'cambay' ), esc_html__( 'Thank You', 'cambay' ) ); ?> init();