Class CTA_Render
public static
|
|
public
|
|
public
|
#
setup_static_environment_vars( )
Detect& store data about the load environment into static variables |
public
|
#
setup_cta_direct_placement( $is_preview = false )
Determine if content ID has Calls to Actions assigned to it |
public static
string
|
|
public static
|
#
prepare_cta_dataset( ARRAY $cta_display_list, $variation_id = null )
Generate a set of data related to CTA(s) |
public static
|
#
prepare_tracked_links( HTML $variation_html, ARRAY $selected_cta, INT $vid )
Loop through cta varaition html and create masked links |
public static
|
|
public
|
|
public static
|
#
load_custom_js_css( $selected_cta = null, $return = false )
Prints / Returns Custom JS & CSS Related to Call to Action |
public
|
#
replace_template_variables( $selected_cta, $template, $vid )
Replaced tokens in call to action template with values |
public static
|
#
support_conditional_tags( $token_match, $key, $value, $template )
Adds support for conditional tags to the token engine |
public static
STRING
|
#
delete_all_inbetween( STRING $beginning, STRING $end, STRING $string )
Deletes content discovered in string between two other stringds |
public static
|
#
parse_css_template( $dynamic_css, $css_id_preface )
Parse CSS and prepend the call to action / varition id |
public static
|
|
public
|
#
build_cta_content( ARRAY $selected_cta = null )
Creates html of cta variations and sets their visibility to hidden. Javascript will be used to display the correct variation. |
public
|
|
public
|
#
add_cta_to_dynamic_widget( )
Determines if cta is set to display in dynamic widget placeholder and if it is then redners it inside the appropriate hook |
public
|
|
public
|
|
public
STRING
|
#
load_shortcode_variation_js( INT $cta_id, INT $variation_id = null, BOOL $return = false )
Returns or Echos Script That Reveals Call to Action Variation |
public
|
|
public
|