PostNuke Help

Previous
pnUserGetLang

Home
up

Next
pnUserGetVar


pnUserGetTheme

get current theme

Synopsis

string pnUserGetTheme();

Description

pnUserGetTheme() obtains the name of the current theme that this session is using for output display.

Return Values

This function returns the name of the theme that is being used. This function returns void if an exception was raised.

Exceptions

This function raises UNKNOWN if it can't find the theme. This function throw back exceptions raised by other functions.

Notes

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.

Examples

// Get the user's current theme
$theme = pnUserGetTheme();
       

Previous
pnUserGetLang

Home
up

Next
pnUserGetVar