-
Notifications
You must be signed in to change notification settings - Fork 0
PHP Constants
Responsive Framework has several PHP constants that can be used to enable or
control various features in the framework. PHP Constants can't be changed
after they are defined. A child theme's functions.php
The current Responsive Framework theme version.
Overridable in child theme: No.
The Responsive child theme version. This should be used in all child themes. If
defined in a child theme, this will override RESPONSIVE_FRAMEWORK_VERSION
in
get_responsive_theme_version()
.
The version of Modernizr being loaded in the framework.
Overridable in child theme: Yes.
The version of jQuery lightGallery packaged with the framework.
Overridable in child theme: Possible, but not supported.
The version of lg-thumbnail
packaged with the framework.
Overridable in child theme: Possible, but not supported.
The following constants are not defined by the framework. But, if a child theme defines them, they will override features in the framework and always enforce the value the constant is set to (if valid).
Specifies if the posts sidebar should show at the bottom of the page (narrow).
Falls back to the option value if not defined.
Defines a sidebar position. Disables the option in the Customizer.
Allowed values:: right
, left
, bottom
.
Specifies the responsive layout. Disables the option in the Customizer.
Allowed values:: default
, top-nav
, side-nav
, no-nav
, mega-nav
.
Note: Child themes can filter these allowed values.
Specified whether to enable the alternate footbar. Disables the option in the Customizer.
Specifies the font palette to use for a child theme.
Several constants that control plugin behaviors are also defined in Responsive Framework. These are all overridable in a child theme or plugin.
Defines whether the site supports the BU Comments plugin.
Default: true
Defines whether the site supports the BU SEO features of BU Post Details plugin.
Default: true
Defines whether the footer editor in BU Links.
Default: true
(disabled)
Defines maximum depth of the primary navigation in BU Navigation.
Default: 1
Defines the site's branding type. Disables the option in the Customizer.
Allowed values:: logotype
, signature
, unbranded
Default: logotype
Several plugins use PHP constants to indicate they are active and available to be used. These constants are defined in the plugins themselves and cannot be overridden.
Indicates that the BU Profiles plugin is active.
Indicates that the BU Site Manager plugin is active.
Get started
Configuration
Build child themes
- Customizing CSS in a child theme
- Overriding templates in a child theme
- Code patterns
- Code reviews
- Pulling in Foundation Updates
- Merging and Creating a Pull Request
Sass
Javascript
PHP
- Coding Standards
- PHP Constants
- Temp PHP Code Patterns
- PHP Snippets
- How to Use Hooks
- Action Hooks
- Using Action Hooks To Output Markup
- Filter Hooks
Shortcodes
Templates
GitHub
Tasks
Contribute to the framework
- Framework Development and Release Workflows
- Documentation Template
- Testing your changes
- Creating a new release
- Migration Guide
- Needs Documentation
Code Examples
- Adding Content Container Classes
- Adding News Templates
- Adding Script Dependencies
- Changing Available Layouts and Default Layout
- Displaying a Fancy Gallery
- Loading a Custom Build of Modernizr
- Loading Modernizr in the Footer
- Using Action Hooks To Output Markup
- Understanding get_template_part
BU Developer Resources