Constants

From StartBox Docs

Jump to: navigation, search

Contents

StartBox defines a number of constants during initialization that you may find useful.

Theme Constants

THEME_NAME
Returns active theme name
THEME_VERSION
Returns active theme version number
THEME_OPTIONS
Returns 'startbox', used for interacting with the primary serialized theme option in the database.
THEME_PREFIX
Returns 'sb_', used to prefix various things throughout StartBox.
SB_VERSION
Returns StartBox version vumber
IS_MU
Returns 'true' if multisite is active, false if not

Theme Paths

THEME_PATH
Returns path to active theme directory (get_stylesheet_directory()).
THEME_URI
Returns URI to active theme directory (get_stylesheet_directory_uri()).
SB_PATH
Returns path to StartBox directory (get_template_directory()).
INCLUDES_PATH
Returns path to StartBox /includes/ directory.
INCLUDES_URL
Returns URI to StartBox /includes/ directory.
ADMIN_PATH
Returns path to StartBox /admin/ directory.
FUNCTIONS_PATH
Returns path to StartBox /functions/ directory.
PLUGINS_PATH
Returns path to StartBox /plugins/ directory.
SCRIPTS_URL
Returns URI to StartBox /scripts/ directory.
WIDGETS_PATH
Returns path to StartBox /widgets/ directory.
STYLES_URL
Returns URI to StartBox /styles/ directory.
IMAGES_PATH
Returns path to StartBox /images/ directory.
IMAGES_URL
Returns URI to StartBox /images/ directory.

Undefined Constants

SB_LICENSE
Used to define your license for automatic updates programmatically.
SB_REMOVE_DEFAULT_SETTINGS
Remove all default panels from the Theme Options page. You can also use the function sb_remove_default_settings()

Source

These constants are defined in /startbox/includes/functions/startbox.php.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox