ID;
$theme_data = wp_get_theme();
$gogo_icon = apply_filters( 'gogo_page_top_icon', true );
$gogo_nme = apply_filters( 'gogo_welcome_page_notice_header_site_title','');
if ( !get_user_meta( $user_id, esc_html( $theme_data->get( 'TextDomain' ) ) . '_notice_ignore' ) ) {
?>
Version ) );
}else{
/* translators: %1$s: theme name, %2$s theme version */
printf( esc_html__( 'Thank you for Installing %1$s - Version %2$s', 'gogo' ), esc_html($theme_data->Name), esc_html( $theme_data->Version ) );
}
?>
', '?' . esc_html( $theme_data->get( 'TextDomain' ) ) . '_notice_ignore=0' );
}else{
/* translators: %1$s: theme name, %2$s link */
printf( __( 'Visit %1$s options page to take full advantage of theme.', 'gogo' ), esc_html( $theme_data->Name ), esc_url( admin_url( 'themes.php?page=gogo' ) ) );
printf( '', '?' . esc_html( $theme_data->get( 'TextDomain' ) ) . '_notice_ignore=0' );
}
?>
Name ) );
}
?>
ID;
/* If user clicks to ignore the notice, add that to their user meta */
if ( isset( $_GET[ esc_html( $theme_data->get( 'TextDomain' ) ) . '_notice_ignore' ] ) && '0' == $_GET[ esc_html( $theme_data->get( 'TextDomain' ) ) . '_notice_ignore' ] ) {
add_user_meta( $user_id, esc_html( $theme_data->get( 'TextDomain' ) ) . '_notice_ignore', 'true', true );
}
}
function gogo_active_plugin(){
$plugin_slug = 'hunk-companion';
$active_file_name = $plugin_slug.'/'.$plugin_slug.'.php';
if ( is_plugin_active( $active_file_name ) ){
$button_class = 'button disabled';
$button_txt = esc_html__( 'Plugin & Homepage Activated', 'gogo' );
}
if ( ! is_plugin_active( $active_file_name ) ){
$button_txt = esc_html__( 'Activate Now', 'gogo' );
$button_class = 'activate-now button-primary '.$plugin_slug;
$status = is_dir( WP_PLUGIN_DIR . '/'.$plugin_slug );
if ( ! $status ){
$button_class = 'install-now button button-primary button-large '.$plugin_slug;
$button_txt = esc_html__( 'Install Plugin & Setup Homepage', 'gogo' );
}
}
return "";
}