ET_Builder_CAWeb_Module
extends ET_Builder_Module
in package CAWebModuleExtension
CAWeb Module Class extends Divi's ET_Builder_Module Class TagsTable of Contents
$caweb_google_maps_embed_api_key : string
Member Variable$module_credits : array
Member Variable
Wrap module's rendered output with proper module wrapper. Ensuring module has consistent
wrapper output which compatible with module attribute and background insertion.
Returns address in CSV format
Return an excerpt from the content of requested length.
Create a GoogleMap Place Link/Embedded IFrame
Create icon span
caweb_get_text_sizes() : mixed||string|int
Available module text sizes
CAWeb Get Post Thumbnail
caweb_is_money() : bool|string
Validates if is a valid monetary value and return it if true.caweb_return_posts() : mixed||string|int
Return posts based on parameters
Create inline styles from Divi's Font Settings
parse_divi_font_settings() : mixed||string|int
Parse Divi's Font Settings into array
Processes modules icon selection
Properties
$caweb_google_maps_embed_api_key
Member Variable
protected string $caweb_google_maps_embed_api_key = 'AIzaSyCtq3i8ME-Ab_slI2D8te0Uh2PuAQVqZuE';
$module_credits : 26
$module_credits
Member Variable
protected array $module_credits = array('module_uri' => 'https://caweb.cdt.ca.gov/', 'author' => 'CAWeb Publishing', 'author_uri' => '');
Methods
_render_module_wrapper()
Wrap module's rendered output with proper module wrapper. Ensuring module has consistent
wrapper output which compatible with module attribute and background insertion.
protected _render_module_wrapper( $output = '', $render_slug = '') : stringTags Return values
string
caweb_get_address()
Returns address in CSV format
public caweb_get_address(array|string $addr) : stringTags Return values
string
caweb_get_excerpt()
Return an excerpt from the content of requested length.
public caweb_get_excerpt( $con, $excerpt_length, $p = -1) : stringTags Return values
string
caweb_get_google_map_place_link()
Create a GoogleMap Place Link/Embedded IFrame
public caweb_get_google_map_place_link(array|string $addr, $embed = false, $target = '_blank', $class = '') : stringTags Return values
string
caweb_get_icon_span()
Create icon span
public caweb_get_icon_span( $icon, $classes = '', $styles = '') : stringTags Return values
string
caweb_get_text_sizes()
Available module text sizes
public caweb_get_text_sizes(mixed||string|int $exclude = array()) : arrayTags Return values
array
caweb_get_the_post_thumbnail()
CAWeb Get Post Thumbnail
public caweb_get_the_post_thumbnail(int|WP_Post $post = null, $size = 'thumbnail', $attr = '', mixed||string|int $pixel_size = array()) : voidTags Return values
void
caweb_is_money()
Validates if is a valid monetary value and return it if true.
public caweb_is_money( $checkmoney, $pattern = '%.2n') : bool|stringTags Return values
bool|string
caweb_return_posts()
Return posts based on parameters
public caweb_return_posts(mixed||string|int $cats = array(), mixed||string|int $tags = array(), $post_amount = -1, $orderby = 'post_date', $order = 'DESC') : arrayTags Return values
array
create_inline_font_styles()
Create inline styles from Divi's Font Settings
public create_inline_font_styles( $font_settings) : stringTags Return values
string
parse_divi_font_settings()
Parse Divi's Font Settings into array
public parse_divi_font_settings( $settings) : arrayTags Return values
array
process_icon()
Processes modules icon selection
private process_icon( $icon) : stringTags Return values
string