Changeset 1385886
- Timestamp:
- 04/04/2016 04:19:27 AM (10 years ago)
- Location:
- pubexchange/trunk
- Files:
-
- 2 edited
-
pubexchange_widget.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pubexchange/trunk/pubexchange_widget.php
r1343622 r1385886 4 4 * Plugin URI: https://www.pubexchange.com 5 5 * Description: PubExchange 6 * Version: 2.0. 16 * Version: 2.0.2 7 7 * Author: PubExchange 8 8 */ … … 46 46 add_action('wp_footer', array(&$this, 'pubexchange_footer_load_js')); 47 47 add_filter('the_content', array(&$this, 'load_pubexchange_content')); 48 if ( defined( 'INSTANT_ARTICLES_SLUG' ) ) { 49 add_filter( 'instant_articles_content', array(&$this, 'add_pubexchange_instant_article_filter' ), 99); 50 } 48 51 } 49 52 } … … 166 169 include_once('settings.php'); 167 170 } 171 172 function add_pubexchange_instant_article_filter( $content ) { 173 $content .= '<figure class="op-tracker"><iframe><script>(function(l,d){if (l.search.length){var m, u = {}, s = /([^&=]+)=?([^&]*)/g, q = l.search.substring(1);while (m = s.exec(q)) u[m[1]] = m[2];if (("pefbs" in u) && ("pefba" in u) && ("pefbt" in u)){var pe = d.createElement("script"); pe.type = "text/javascript"; pe.async = true;pe.src = "http://traffic.pubexchange.com/click/" + u.pefbt + "/" + u.pefbs + "/" + u.pefba;var t = d.getElementsByTagName("script")[0]; t.parentNode.insertBefore(pe, t);}}}(window.location, document));</script></iframe></figure>'; 174 return $content; 175 } 168 176 } 169 177 } -
pubexchange/trunk/readme.txt
r1343637 r1385886 26 26 * Search for PubExchange. Once found click on 'Install Now' 27 27 * Select 'Activate Plugin' from the download page or go to 'Plugins' -> 'Installed Plugins' -> 'Activate Plugin' 28 29 = Upgrading to >= 2.0 =30 * In PubExchange >= 2.0, you now need to provide a Widget Number in addition to a Widget ID. You can get this number from the PubExchange dashboard, or by contacting a PubExchange representative.31 28 32 29 = Below Article widgets = … … 69 66 70 67 == Changelog == 68 = Upgrading to >= 2.0 = 69 In PubExchange >= 2.0, you now need to provide a Widget Number in addition to a Widget ID. You can get this number from the PubExchange dashboard, or by contacting a PubExchange representative. 70 71 == Changelog == 72 = 2.0.2 = 73 * Added tracking to Facebook Instant Article RSS feed, if publisher uses Wordpress' official Instant Article plugin 74 71 75 = 2.0.1 = 72 76 * Added Lazy Load functionality, which defers the loading of the widget until the reader scrolls down to where the widget will display
Note: See TracChangeset
for help on using the changeset viewer.