lib/colors.php
Configuration of background colors for different regions
- Package
- ncp\wp\themes\planet_foundation
- Since
- Planet Foundation 1.0.0
Functions

pf_add_background_colors() : void
Checks theme customization and adds css styling to header for background colors
Adds html directly to UA. Uses the hook pf_add_more_background_colors.
Hooks are called before ending is printed.
Details- Link
- Theme Customization API
- See
- get_theme_mod()
- See
- do_action()
- See
- add_action()
- Since
- Planet Foundation 1.0.0

pf_custom_background_cb() : void
Modification of _custom_background_cb to only use background image on large screen devices only.
Large screen devices hardcoded here to be 768 pixels.
Prints the html directly to UA
Details- See
- get_theme_mod()
- Todo
- Figure out how to use the Zurb Foundation SASS parameter
- Todo
- Figure out if this is even necessary. Small devices may not even load the background.