Skip to content

Instantly share code, notes, and snippets.

@atwellpub
atwellpub / config.php
Last active September 24, 2015 19:44
calls to action, cta
<?php //remove me
$wp_cta_data[$key]['info'] = array(
'data_type' => 'template', // Template Data Type
'version' => "1.0", // Version Number
'label' => "My Custom Call to Action Template", // Nice Name
'category' => 'special,custom', // Template Categories
'demo' => 'http://demo.inboundnow.com/go/demo-template-preview/', // Demo Link if applicable
'description' => 'This is a call to action we are developing!', // template description
'path' => $this_path, //path to template folder
@atwellpub
atwellpub / config.php
Last active September 24, 2015 19:43
calls to action, cta
<?php //remove me
$key = basename(dirname(__FILE__)); /* this grabs the parent folder name. we will use this as a identifier and key for storing data*/
$this_path = WP_CTA_UPLOADS_PATH . $key.'/'; /* this sets the absolute path to the template */
$url_path = WP_CTA_UPLOADS_URLPATH . $key.'/'; /* this sets the base URL to the template */
<?php
/**
* WordPress: WP Calls To Action Template Config File
* Template Name: My Custom Call to Action Template
* @package WordPress Calls to Action
* @author InboundNow
*/
Delivered-To: [email protected]
Received: by 10.66.156.69 with SMTP id wc5csp1790784pab;
Tue, 15 Sep 2015 11:37:48 -0700 (PDT)
X-Received: by 10.50.109.198 with SMTP id hu6mr8775390igb.3.1442342268758;
Tue, 15 Sep 2015 11:37:48 -0700 (PDT)
Return-Path: <bounces+8498-e7f6-atwell.publishing=gmail.com@campaignmail.topspin.net>
Received: from o1.campaignmail.topspin.net (o1.campaignmail.topspin.net. [208.115.214.149])
by mx.google.com with ESMTPS id hz2si33892274pbc.62.2015.09.15.11.37.46
for <[email protected]>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
@atwellpub
atwellpub / functions.php
Last active September 24, 2015 23:45
Change cta render priority
<?php
add_filter('cta_the_content_priority', 'change_cta_priority' );
function change_cta_priority() {
return 1;
}
@atwellpub
atwellpub / index.php
Created September 10, 2015 00:00
Email Template
<?php
/**
* Template Name: Sidebar
* @package Inbound Email
* @author Inbound Now
*/
/* Declare Template Key */
$key = basename(dirname(__FILE__));
/* do global action */
@atwellpub
atwellpub / index.php
Created August 18, 2015 00:17
Countdown pro modification
<?php
/*****************************************/
// Template Title: Countdown Prof
// Plugin: Landing Pages - Inboundnow.com
/*****************************************/
/* Include Shareme Library */
include_once(LANDINGPAGES_PATH.'assets/libraries/shareme/library.shareme.php');
/* Declare Template Key */
<?php
$USA = array(
'Alabama' => array(
'Abbeville',
'Adamsville',
'Addison',
'Akron',
'Alabaster',
'Albertville',
<?php
$UK = array(
'England' => array(
'Abingdon',
'Accrington',
'Acton',
'Adlington',
'Alcester',
<?php
$CANADA = array(
'Alberta' => array(
'Airdrie',
'Grande Prairie',
'Red Deer',
'Beaumont',
'Hanna',