Theme Constants

Theme ValuesDescriptionValue
THEMEPREFIX
theme prefix'bioship'
THEMESLUG
sanitized lowercase and hyphenated) theme namestring
THEMEKEY
options table key value for theme optionsstring
THEMEDISPLAYNAME
the Display Name of currently active Themestring
THEMEHOMEURL
static URL of the BioShip websitehttp://bioship.space
THEMESUPPORT
static URL of Support website (WordQuest)http://wordquest.org
Load States
THEMESSL
whether to load SSL resources (is_ssl)true/false
THEMECHILD
if using a Child Theme or nottrue/false
THEMEPARENT
parent Theme template slug (if any)string
THEMEVERSION
current version of BioShip Theme Frameworkx.x.x
THEMECHILDVERSION
Child Theme version (or parent if no child)x.x.x
Library States
THEMETITAN
if Titan Framework is loadedtrue/false
THEMEOPT
if Options Framework is loadedtrue/false
THEMEHYBRID
if full Hybrid Core is loadedtrue/false
THEMEDRIVE
if a Theme Test Drive is activetrue/false
THEMEKIRKI
if Kirki is loaded (Customizer only)true/false
Theme Debugging
THEMEDEBUG
output debugging information commentstrue/false
THEMECOMMENTS
output template element commentstrue/false
THEMETRACE
if performing a theme argument tracetrue/false
THEMEWINDOWS
local environment for directory pathstrue/false

Theme Globals

Theme Options
$vthemesettingsAll Current Theme SettingsMulti-level Array
$vthemeoptionsAll Available Theme OptionsMulti-level Array
Theme Root Directories(with trailing slashes)Child ThemeNo Child Theme
$vthemestyledirTheme Stylesheet DirectoryChild Theme DirParent Theme Dir
$vthemestyleurlTheme Stylesheet URLChild Theme URLParent Theme URL
$vthemetemplatedirTheme Template DirectoryParent Theme DirParent Theme Dir
$vthemetemplateurlTheme Template URLParent Theme URLParent Theme URL
Theme Resource Directories
$vthemedirsFile Hierarchy SearchDefault ValuesFilter
['core']Core Theme Directories Arrayempty array (theme root)theme_core_dirs
['admin']Theme Admin Directories Array'admin'theme_admin_dirs
['style']Style Directories Array'styles', 'css', 'assets/css'theme_style_dirs
['script']Script Directories Array'javascripts', 'js', 'assets/js'theme_script_dirs
['image']Image Directories Array'images', 'img', 'icons', 'assets/img'theme_image_dirs
Layout Sections and Hooks
$vthemehooksLayout Hooks InformationNotes
['sections']Ordered array of Layout Sectionsnumeric key sections with hooks
['hooks']Array of Theme Layout Hook Keysflat list of all layout hook keys
['functions']Array of Hooked Default Functions(default function priorities are also stored)
['labels']Labels for both Sections and Hooks(sections numeric keys, hooks string keys)
['hybrid']Modified Layout Hook array for Hybrid Hook(bioship_ prefix removed)
Theme Layout Values
$vthemelayoutCalculated (and Filtered) Theme LayoutFilter
['pagecontext']Page Context
['subpagecontext']Archive SubContext
['menus']Filtered Menu States
['maxwidth']Maximum Layout Width (px)skeleton_layout_width
['gridcolumns']Word-Number of Grid Columnsskeleton_grid_columns
['contentcolumns']Word-Number of Content Columnsskeleton_content_columns_override
['rawcontentwidth']Content Width (px) - padding width not removedskeleton_raw_content_width
['contentwidth']Calculated Content Width (px)skeleton_content_width
['rawcontentpadding']Content Padding (CSS from Theme Option)skeleton_raw_content_padding
['contentpadding']Calculated Content Padding Width (px)skeleton_content_padding_width
['contentgridcolumns']Columns for Content Grid Systemskeleton_content_grid_columns
Sidebar Layout Values
$vthemesidebarsCalculated (and Filtered) Sidebar LayoutFilter
['sidebars']Sidebar Template Layout Array* skeleton_sidebar_layout_override
['sidebar']Calculated Sidebar switch (true/false)
['subsidebar']Calculated SubSidebar switch (true/false)
['sidebarmode']Posts/Pages Sidebar Modeskeleton_sidebar_mode
['subsidebarmode']Posts/Pages SubSidebar Modeskeleton_subsidebar_mode
['sidebarcontext']Based on Page Context and Active Sidebars
['subsidebarcontext']Based on Page Context and Active Sidebars
['sidebarcolumns']Number-Word of Sidebar Columnsskeleton_sidebar_columns
['subsidebarcolumns']Number-Word of SubSidebar Columnsskeleton_subsidebar_columns
['output']Stores actual Sidebar content HTML for output
For more details on Sidebars see the BioShip Sidebar Guide.

Leave a Reply

Your email address will not be published. Required fields are marked *


*