$currentTheme = SugarThemeRegistry::current(); echo "Current theme ID: " . $currentTheme['id']; echo "Current theme name: " . $currentTheme['name'];
$currentTheme = SugarThemeRegistry::current(); if ($currentTheme['name'] == 'my_custom_theme') { echo "Custom theme is active"; } else { echo "Custom theme is not active"; }This code checks if a custom theme named "my_custom_theme" is currently active and prints a message accordingly. This package library is likely part of the SugarCRM framework.