Changeset 2142701
- Timestamp:
- 08/20/2019 05:15:13 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
second-street-promotion/trunk/secondstreet-promotion.php
r2116483 r2142701 2 2 /** 3 3 * Plugin Name: Second Street * Description: Plugin will allow Second Street Affiliates to embed a Second Street Promotion within their WordPress site(s). 4 * Version: 2. 14 * Version: 2.2 5 5 * Author: Second Street 6 6 * Author URI: http://secondstreet.com … … 71 71 'contest_url' => '', 72 72 'contest_folder' => '', 73 'routing' => '' 73 'routing' => '', 74 'contest_id' => '' 74 75 ), $atts ); 75 76 76 77 $ss_script_url = $a['contest_url'] . '/' . 'shared/embedcode/embed.js'; 77 78 78 return '<script type="text/javascript" src="' . esc_attr( $a['contest_url'] ) . '/shared/embedcode/talker-v1.0.0.js"></script><script src="' . esc_url( $ss_script_url ) . '" data-ss-embed="contest" data-routing="' . esc_attr( $a['routing'] ) . '"></script>'; 79 if (esc_attr( $a['contest_id'] ) != '') { //Old Engine contests will pass contest_id 80 return '<script type="text/javascript" src="' . esc_attr( $a['contest_url'] ) . '/shared/embedcode/talker-v1.0.0.js"></script><script src="' . esc_url( $ss_script_url ) . '" data-ss-embed="contest" data-routing="' . esc_attr( $a['routing'] ) . '" data-contest-id="' . esc_attr( $a['contest_id'] ) . '"></script>'; 81 } else { 82 return '<script type="text/javascript" src="' . esc_attr( $a['contest_url'] ) . '/shared/embedcode/talker-v1.0.0.js"></script><script src="' . esc_url( $ss_script_url ) . '" data-ss-embed="contest" data-routing="' . esc_attr( $a['routing'] ) . '"></script>'; 83 } 79 84 80 85 }
Note: See TracChangeset
for help on using the changeset viewer.