Overview

Packages

  • ACF
  • Automation
    • Actions
    • Activation
    • LeadProfile
    • Menus
    • Queries
    • Rules
    • Triggers
  • CTA
    • Activation
    • AJAXListeners
    • Cloning
    • Core
    • Display
    • EditPage
    • Enqueues
    • GPLSettings
    • LeadsProfile
    • Loading
    • Menus
    • Notices
    • PlacementMetabox
    • PostType
    • Templates
    • Tracking
    • Variations
    • YOAST
  • InboundPro
    • Activation
    • AdminAJAX
    • AutoLoading
    • Cron
    • DataInterface
    • FieldMapping
    • Funnels
    • InboundNowAPI
    • Installer
    • LeadStatuses
    • Menus
    • Notifications
    • Ouath
    • Reports
    • Settings
    • Tracking
    • Translations
    • Updates
  • LandingPages
    • Activation
    • DataInterfaces
    • Management
    • Menus
    • NeedsAttention
    • Notices
    • Sidebars
    • Templates
    • Tracking
    • Variations
    • WelcomeScreen
    • Widgets
  • Leads
    • Activation
    • Akismet
    • BranchControl
    • BulkActions
    • Dashboard
    • Management
    • Notifications
    • Settings
    • Tracking
    • UserProfile
    • WPLogin
  • Mailer
    • Activation
    • Admin
    • ClickTracking
    • DataInterface
    • InboundForms
    • Leads
    • Management
    • Notifications
    • Scheduling
    • Sending
    • Settings
    • ShortcodesAndTokens
    • SparkPost
    • Templates
    • Unsubscribes
    • Variations
    • YoastSEO
  • None
  • Shared
    • APIs
    • CPT
    • DatabaseRoutines
    • DebugTricks
    • DoubleOptin
    • EventManagement
    • FieldMapping
    • InboundForms
    • LeadSorage
    • MarketingButton
    • Menus
    • Notifications
    • Shortcodes
    • ShortcodesAndTokens
    • StandAloneLicensing
    • Tracking
    • VisualEditor
  • xDepreciated

Classes

  • CTA_Render

Functions

  • CTA_Render
  • inbound_template_brightness
  • inbound_template_color
  • wp_cta_check_active
  • wp_cta_load_calls_to_action
  • Overview
  • Package
  • Class

Class CTA_Render

Package: CTA\Display
Located at core/cta/classes/class.cta.render.php
Methods summary
public static
# instance( )
public
# setup_hooks( )

Load Hooks and Filters

Load Hooks and Filters

public
# setup_static_environment_vars( )

Detect& store data about the load environment into static variables

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

Determine if content ID has Calls to Actions assigned to it

public static string
# place_in_middle( $content, $cta )

Place CTA content in middle of text

Place CTA content in middle of text

Parameters

$content
$cta

Returns

string
public static
# prepare_cta_dataset( ARRAY $cta_display_list, $variation_id = null )

Generate a set of data related to CTA(s)

Generate a set of data related to CTA(s)

Parameters

$cta_display_list
array of cta id(s)
$variation_id
public static
# prepare_tracked_links( HTML $variation_html, ARRAY $selected_cta, INT $vid )

Loop through cta varaition html and create masked links

Loop through cta varaition html and create masked links

Parameters

$variation_html
$varaition_html html of variation being processed
$selected_cta
dataset of parent call to action
$vid
id of variation being processed
public static
# get_template_asset_files( $template )

Given a template slug, get it's asset files.

Given a template slug, get it's asset files.

public
# enqueue_scripts( )

Enqueue CSS & JS

Enqueue CSS & JS

public static
# load_custom_js_css( $selected_cta = null, $return = false )

Prints / Returns Custom JS & CSS Related to Call to Action

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

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

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

Deletes content discovered in string between two other stringds

Parameters

$beginning
$end
$string

Returns

STRING
modified string
public static
# parse_css_template( $dynamic_css, $css_id_preface )

Parse CSS and prepend the call to action / varition id

Parse CSS and prepend the call to action / varition id

public static
# validate_css_property_value( $input, $css_prop )

Validate CSS values

Validate CSS values

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.

Creates html of cta variations and sets their visibility to hidden. Javascript will be used to display the correct variation.

Parameters

$selected_cta
dataset containing meta information on call to action

Returns

STRING $cta_template prepared html
public
# add_cta_to_post_content( $content )

Adds CTA to post content

Adds CTA to post content

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

Determines if cta is set to display in dynamic widget placeholder and if it is then redners it inside the appropriate hook

public
# render_widget( )

Renders shortcode in wp_cta_cta_dynamic_widget action hook

Renders shortcode in wp_cta_cta_dynamic_widget action hook

public
# process_shortcode_cta( $atts )

This method processes the [cta] shortcode

This method processes the [cta] shortcode

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

Returns or Echos Script That Reveals Call to Action Variation

Parameters

$cta_id
$variation_id
$return
If set to true will return instead of print

Returns

STRING
$script javascript code
public
# preview_cta( )

Preview CTA

Preview CTA

public
# modify_admin_url( $link )
Inbound Pro Plugin - PHP Codex API documentation generated by ApiGen