Packages

CAWeb

CAWebModuleExtension

ds

Reports

Errors

Markers

Indices

Files

inc/functions.php

CAWeb Theme Helper Functions

Table of Contents

Functions

caweb_color_schemes() Retrieve CAWeb Color Schemes
 caweb_color_schemes( $version = -1,  $field = '',  $color = '') : array
Return values

array

caweb_font_sizes() CAWeb Font Sizes
 caweb_font_sizes(mixed||string|int $exclude = array(),  $values = false) : array
Return values

array

caweb_get_attachment_post_meta() Return CAWeb Attachment Meta Field for given urls
 caweb_get_attachment_post_meta(string|array $image_url,  $meta_key = '') : string|array
Return values

string|array

caweb_get_min_file() Load Minified Version of a file
 caweb_get_min_file( $f,  $ext = 'css') : string
Return values

string

caweb_get_nav_menu_item_children() Returns all child nav_menu_items under a specific parent
 caweb_get_nav_menu_item_children( $parent_id, mixed||string|int $nav_menu_items,  $depth = true) : array
Return values

array

caweb_get_shortcode_from_content() Retrieve specific shortcode tag from given content
 caweb_get_shortcode_from_content( $con = '',  $tag = '',  $all_matches = false) : array|object
Return values

array|object

caweb_get_user_color() Get User Profile Color
 caweb_get_user_color() : string
Return values

string

caweb_is_beta_version() Returns whether or not the Site Wide Template Version is a Beta
 caweb_is_beta_version() : bool
Return values

bool

caweb_is_debug_enabled() Is CAWeb Theme is running in Debug Mode.
 caweb_is_debug_enabled() : bool
Return values

bool

caweb_is_divi_used() Checks if page/post is using Divi Builder.
 caweb_is_divi_used() : bool
Return values

bool

caweb_nav_menu_theme_locations() Returns array of CAWeb Menu Theme Locations
 caweb_nav_menu_theme_locations() : array
Return values

array

caweb_template_colors() CA.gov Template Colors
 caweb_template_colors() : array
Return values

array

caweb_template_version() Returns the Site Wide Template Version Setting
 caweb_template_version( $exclude_design_system = false) : int
Return values

int

caweb_template_versions() Returns all CAWeb State Template Versions
 caweb_template_versions( $include_beta = true) : array
Return values

array