Packages

CAWeb

CAWebModuleExtension

ds

Reports

Errors

Markers

Indices

Files

ET_Builder_CAWeb_Module

extends ET_Builder_Module

in package CAWebModuleExtension

CAWeb Module Class extends Divi's ET_Builder_Module Class Tags

see

Table of Contents

$caweb_google_maps_embed_api_key : string

Member Variable

$module_credits : array

Member Variable

_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.

caweb_get_address() :

Returns address in CSV format

caweb_get_excerpt() :

Return an excerpt from the content of requested length.

caweb_get_google_map_place_link() :

Create a GoogleMap Place Link/Embedded IFrame

caweb_get_icon_span() :

Create icon span

caweb_get_text_sizes() : mixed||string|int

Available module text sizes

caweb_get_the_post_thumbnail() :

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_font_styles() :

Create inline styles from Divi's Font Settings

parse_divi_font_settings() : mixed||string|int

Parse Divi's Font Settings into array

process_icon() :

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 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 = '') : string
Tags

see

Return values

string

caweb_get_address() Returns address in CSV format
public caweb_get_address(array|string $addr) : string
Tags

see

Return values

string

caweb_get_excerpt() Return an excerpt from the content of requested length.
public caweb_get_excerpt( $con,  $excerpt_length,  $p = -1) : string
Tags

see

Return values

string

caweb_get_icon_span() Create icon span
public caweb_get_icon_span( $icon,  $classes = '',  $styles = '') : string
Tags

see

Return values

string

caweb_get_text_sizes() Available module text sizes
public caweb_get_text_sizes(mixed||string|int $exclude = array()) : array
Tags

see

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()) : void
Tags

see

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|string
Tags

see

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') : array
Tags

see

Return values

array

create_inline_font_styles() Create inline styles from Divi's Font Settings
public create_inline_font_styles( $font_settings) : string
Tags

see

Return values

string

parse_divi_font_settings() Parse Divi's Font Settings into array
public parse_divi_font_settings( $settings) : array
Tags

see

Return values

array

process_icon() Processes modules icon selection
private process_icon( $icon) : string
Tags

see

Return values

string