View gist:22dc5be5ac96a7cca554026bb8fe7095
/**
* API Updates
*/
if( !class_exists( 'SeedProd_Updater_cspv5' ) ) {
// load our custom updater
include( dirname( __FILE__ ) . '/seedprod-updater-cspv5.php' );
}
function seed_cspv5_plugin_updater() {
View gist:e1f5fda3dcb141682c9e8e25a5be2a74
// Multisite Initial Install License Check
function seed_cspv5_check_license_updater(){
if(get_option('seed_cspv5_a') === false){
add_option('seed_cspv5_license_key',SEED_CSP_API_KEY);
add_option('seed_cspv5_token',strtolower(wp_generate_password(32,false, false)));
$params = array(
'action' => 'info',
'license_key'=> SEED_CSP_API_KEY,
'slug' => SEED_CSPV5_SLUG,
View record_upsell.php
<?php
// Record Source
try {
$seedprod_source = $_COOKIE['seedprod_source'];
$source = '';
if(!empty($seedprod_source)){
$source = explode("|",$seedprod_source)[0];
$dt = date("Y-m-d H:i:s",explode("|",$seedprod_source)[1]);
$order = Order::find($data['order']->id);
View track_upsell.php
<?php
// Set cookie of free user
add_action( 'wp', 'track_upsell' );
function track_upsell() {
if(is_page('ultimate-coming-soon-page-vs-coming-soon-pro')){
if(!isset($_COOKIE['seedprod_source'])) {
setcookie( 'seedprod_source', 'free_plugin|'.time(), strtotime("+1 year"),"/","seedprod.com" );
}
View read_cookie.php
View gist:6a98fb3597176b243a5518ebbf672c93
<?php
// Set cookie of free user
add_action( 'wp', 'free_user_cookie' );
function free_user_cookie() {
//if(is_page('features') && isset($_GET['utm_campaign']) && ($_GET['utm_campaign'] == 'coming-soon-pro-from-wordpress.org' || $_GET['utm_campaign'] == 'coming-soon-link-in-plugin' || $_GET['utm_campaign'] == 'coming-soon-banner-in-plugin')){
if(is_page('ultimate-coming-soon-page-vs-coming-soon-pro')){
if(!isset($_COOKIE['seedprod_source'])) {
setcookie( 'seedprod_source', 'free_plugin|'.time(), strtotime("+1 year"),"/","seedprod.com" );
View gist:ef5ead0dc06ea7fe0eda1eca51ebec4b
{"action":"seed_cspv5_save_page","_wpnonce":"68aaaf4bf0","disabled_fields":"","first_run":"","page_id":"2","theme":"14","name":"Coming Soon Page","logo":"http:\/\/testdrive.seedprod.com\/chantel450hotmailcom\/wp-content\/uploads\/sites\/6189\/2017\/07\/Special-Needs_sd12.jpg","headline":"Coming Soon","description":"<h4><strong>Introducing Special Needs Reviews, the first review site specifically tailored to NYC special needs population.\u00a0<\/strong><\/h4><div id=\"seed-csp4-page\"><div id=\"seed-csp4-content\"><div id=\"seed-csp4-description\"><p>\u00a0<\/p><p>As a parent of a child with autism or other special needs, you know better than anyone how important finding just the right doctors, therapists, schools, and more for your precious child can be.But you\u2019ve learned exactly how overwhelming making these decisions can be, too.<\/p><p><strong>Now, for the first time, there\u2019s a better way. <\/strong><\/p><p>\u00a0<\/p><ul><li style=\"text-align: left;\">Imagine having hundreds of honest reviews o
View custom-logo.php
function custom_loginlogo() {
echo '<style type="text/css">
h1 a {background-image: url('.get_bloginfo('template_directory').'/images/login_logo.png) !important; }
</style>';
}
add_action('login_head', 'custom_loginlogo');
View .js
<script>
jQuery( document ).ready(function($) {
$("#cspio-langs").select2('open');
});
</script>
View gist:c128f60266c5b90cf51692bb987de789
html{-webkit-background-size: contain;-moz-background-size: contain;-o-background-size: contain;background-size: contain;}