Changeset 1757562
- Timestamp:
- 11/02/2017 05:08:00 PM (8 years ago)
- Location:
- second-street-promotion/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
secondstreet-promotion.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
second-street-promotion/trunk/readme.txt
r1051287 r1757562 1 1 === Second Street Promotion Plugin === 2 Contributors: Second Street 2 Contributors: Second Street (Heather McCarron) 3 3 Tags: Page, Post, Shortcode, Promotion, Second Street, UPICKEM 4 4 Requires at least: 3.0 5 Tested up to: 4. 05 Tested up to: 4.7 6 6 Stable tag: trunk 7 7 License: GPLv2 or later … … 25 25 3. Activate the plugin through the 'Plugins' menu in WordPress. 26 26 4. 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/) 28 28 5. Place (paste) your Shortcode into the page content area in your WordPress site. 29 29 -
second-street-promotion/trunk/secondstreet-promotion.php
r1052890 r1757562 3 3 * Plugin Name: Second Street Promotion 4 4 * Description: Plugin will allow Second Street Affiliates to embed a Second Street Promotion within their WordPress site(s). 5 * Version: 1.06 * Author: Second Street 5 * Version: 2.0 6 * Author: Second Street (Heather McCarron) 7 7 * Author URI: http://secondstreet.com 8 8 * License: GPL2 9 9 */ 10 10 11 /* Copyright 2014 Second Street (email : ssmwordpressdev@secondstreet.com)11 /* Copyright 2014 Second Street | Heather McCarron (email : heather@secondstreet.com) 12 12 13 13 This program is free software; you can redistribute it and/or modify … … 50 50 } 51 51 add_shortcode( 'ss-promo', 'ss_promo_func' ); 52 53 // [ss-signup] Code 54 function 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 65 add_shortcode( 'ss-promo', 'ss_promo_func' ); 66 add_shortcode( 'ss-signup', 'ss_signup_func' );
Note: See TracChangeset
for help on using the changeset viewer.