Changeset 1869371
- Timestamp:
- 05/06/2018 04:59:20 AM (8 years ago)
- File:
-
- 1 edited
-
surveysparrow-helper/trunk/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
surveysparrow-helper/trunk/index.php
r1841697 r1869371 6 6 Author URI: http://surveysparrow.com 7 7 Author: SurveySparrow 8 Version: 1.0 18 Version: 1.03 9 9 Tested up to: 4.9.4 10 10 */ 11 11 12 12 function sparrow_return_script($atts){ 13 if( $atts[env]){13 if(array_key_exists('env',$atts)){ 14 14 $script = sprintf('<script>(function(){var t,e,s,n="ss-widget",r="script",a=document,o=window;o.SS_WIDGET_TOKEN="%s",o.SS_ACCOUNT="%s",o.SS_SURVEY_NAME="%s";a.getElementById(n)||(t=a.getElementsByTagName(r),s=t[t.length-1],e=a.createElement(r),e.type="text/javascript",e.async=!0,e.id=n,e.src=["https://","assets.surveysparrow.com/%s/%s","/widget.js?token=",o.SS_WIDGET_TOKEN].join(""),s.parentNode.insertBefore(e,s))})();</script>',$atts['token'],$atts['account'],$atts['survey'],$atts['env'],$atts['version']); 15 15 }
Note: See TracChangeset
for help on using the changeset viewer.