Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

theme_exists

This function will return false if the theme does not exist and true if it does. On true the function will define the THEME constant.
If the theme is incorrect this function will select another theme to prevent site not from loading correctly.

theme_exists

Quote

theme_exists ( string $theme )


Parameters
theme
Theme folder you want to check for

Example
Code
<?php
if (!theme_exists("my_theme")) {
 echo "my_theme theme does not exist!";
}
?>

Here we will check if the my_theme theme exists or not

Notes
This function can only be called once, in the maincore, as it sets CONSTANTS which can not be set again!