Created
March 5, 2014 05:45
-
-
Save atwellpub/9361899 to your computer and use it in GitHub Desktop.
List of core tokens for call to action templating engine. Originally located in https://github.com/inboundnow/calls-to-action/blob/master/modules/module.calls-to-action.php#L591
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* replace core tokens if available */ | |
$template = str_replace( '{{cta-id}}' , $selected_cta['id'] , $template ); | |
$template = str_replace( '{{variation-id}}' , $vid , $template ); | |
$template = str_replace( '{{template-urlpath}}' , $selected_cta['templates'][$vid]['urlpath'] , $template ); | |
$template = str_replace( '{{wordpress-ajaxurl}}' , admin_url( 'admin-ajax.php' ) , $template ); | |
$template = str_replace( '{{cta-width}}' , $width , $template ); | |
$template = str_replace( '{{cta-height}}' , $height , $template ); | |
$template = str_replace( '{{width}}' , $w , $template ); | |
$template = str_replace( '{{height}}' , $h , $template ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment