Plugin Directory

Changeset 1757562


Ignore:
Timestamp:
11/02/2017 05:08:00 PM (8 years ago)
Author:
ssmwordpressdev
Message:

optin updates

Location:
second-street-promotion/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • second-street-promotion/trunk/readme.txt

    r1051287 r1757562  
    11=== Second Street Promotion Plugin ===
    2 Contributors: Second Street
     2Contributors: Second Street (Heather McCarron)
    33Tags: Page, Post, Shortcode, Promotion, Second Street, UPICKEM
    44Requires at least: 3.0
    5 Tested up to: 4.0
     5Tested up to: 4.7
    66Stable tag: trunk
    77License: GPLv2 or later
     
    25253. Activate the plugin through the 'Plugins' menu in WordPress.
    26264. Retrieve (copy) your Promotion's Shortcode from your Second Street Partner Tool.
    27    (Login to your Second Street account at https://affiliates.upickem.net)
     27   (Login to your Second Street account at https://partners.secondstreet.com/)
    28285. Place (paste) your Shortcode into the page content area in your WordPress site.
    2929
  • second-street-promotion/trunk/secondstreet-promotion.php

    r1052890 r1757562  
    33 * Plugin Name: Second Street Promotion
    44 * Description: Plugin will allow Second Street Affiliates to embed a Second Street Promotion within their WordPress site(s).
    5  * Version: 1.0
    6  * Author: Second Street
     5 * Version: 2.0
     6 * Author: Second Street (Heather McCarron)
    77 * Author URI: http://secondstreet.com
    88 * License: GPL2
    99 */
    1010
    11 /*  Copyright 2014  Second Street  (email : ssmwordpressdev@secondstreet.com)
     11/*  Copyright 2014  Second Street | Heather McCarron  (email : heather@secondstreet.com)
    1212
    1313    This program is free software; you can redistribute it and/or modify
     
    5050}
    5151add_shortcode( 'ss-promo', 'ss_promo_func' );
     52
     53// [ss-signup] Code
     54function ss_signup_func( $atts, $content = null ) {
     55    $a = shortcode_atts( array (
     56            'design_id' => ''
     57        ), $atts );
     58
     59    $ss_script_url = 'https://embed.secondstreetapp.com/Scripts/dist/optin.js';
     60
     61    return '<script src="' . esc_url( $ss_script_url ) . '" data-ss-embed="optin" data-design-id="' . esc_attr( $a['design_id'] ) . '"></script>';
     62
     63}
     64
     65add_shortcode( 'ss-promo', 'ss_promo_func' );
     66add_shortcode( 'ss-signup', 'ss_signup_func' );
Note: See TracChangeset for help on using the changeset viewer.