PostNuke Help |
||
|---|---|---|
Previous |
Next |
|
get current theme
string pnUserGetTheme();
pnUserGetTheme() obtains the name of the current theme that this session is using for output display.
This function returns the name of the theme that is being used. This function returns void if an exception was raised.
This function raises UNKNOWN if it can't find the theme. This function throw back exceptions raised by other functions.
This function takes into account per-category and per-story theme overrides.
The user does not actually have to be logged in for this function to operate correctly. If the user is not logged in then this function will return the system's default theme instead.
// Get the user's current theme
$theme = pnUserGetTheme();
Previous |
Next |