HEX
Server: Apache
System: Linux linplesk41.pumo.com.tw 3.10.0-962.3.2.lve1.5.27.el7.x86_64 #1 SMP Sat Nov 30 02:18:52 EST 2019 x86_64
User: rajlaw (10192)
PHP: 7.4.24
Disabled: phpinfo,passthru,exec,shell_exec,system,popen,proc_open,proc_close,show_source,pcntl_exec,escapeshellcmd,proc_get_status,proc_nice,proc_terminate,escapeshellarg
Upload Files
File: /home/httpd/vhosts/rajlaw.com.tw/httpdocs/wp-content/themes/freeware/inc/information.php
<?php
/**
 * Information about theme
 *
 * @link https://jetpack.com/
 *
 * @package freeware
 */

/*
** Notice after Theme Activation and Update.
*/
function freeware_activation_notice() {

	global $current_user;
  	$current_user_id   = $current_user->ID;
	$theme_data	 = wp_get_theme();
	if ( !get_user_meta( $current_user_id, esc_html( $theme_data->get( 'TextDomain' ) ) . '_notice_ignore' ) ) {

		echo '<div class="notice freeware-dismiss">';
		
			echo '<h1>';
				/* translators: %s theme name */
				printf( esc_html__( 'Welcome to %s', 'freeware' ), esc_html( $theme_data->Name ) );
			echo '</h1>';

			echo '<p>';
				/* translators: %1$s: theme name, %2$s link */
				printf( __( 'Thank you for choosing %1$s! To fully take advantage of our best theme, make sure you visit Welcome page', 'freeware' ), esc_html( $theme_data->Name ), esc_url( admin_url( 'themes.php?page=freeware-about' ) ) );
				printf( '<a href="%1$s" class="notice-dismiss dashicons dashicons-dismiss dashicons-dismiss-icon"></a>', '?' . esc_html( $theme_data->get( 'TextDomain' ) ) . '_notice_ignore=0' );
			echo '</p>';

			echo '<p><a href="'. esc_url( admin_url( 'themes.php?page=freeware-about' ) ) .'" class="button button-primary">';
				/* translators: %s theme name */
				printf( esc_html__( 'Get started with %s', 'freeware' ), esc_html( $theme_data->Name ) );
			echo '</a></p>';

		echo '</div>';
	}
}