esc_html__( 'Sidebar', 'binsight' ),
'id' => 'sidebar-1',
'description' => esc_html__( 'Add widgets here.', 'binsight' ),
'before_widget' => '',
'before_title' => '
',
)
);
}
add_action( 'widgets_init', 'binsight_widgets_init' );
/**
* Display admin notice when theme is activated or themes page is loaded
*/
function binsight_admin_notice() {
// Get current screen
$screen = get_current_screen();
// Check if we're on the themes page
if ($screen && ($screen->id === 'themes' || $screen->id === 'dashboard')) {
$theme_activated = isset($_GET['activated']) && $_GET['activated'] == 'true';
// Get theme screenshot URL
$theme = wp_get_theme();
$screenshot = $theme->get_screenshot();
// Start output buffering to build our notice
ob_start();
?>
get('Name')) . '!' : 'Welcome! Thank you for choosing ' . esc_html($theme->get('Name')). ' theme. ' ?>