Changeset 2161604
- Timestamp:
- 09/23/2019 05:05:00 PM (7 years ago)
- Location:
- adbutler/trunk
- Files:
-
- 4 edited
-
adbutler.php (modified) (2 diffs)
-
includes/adbutler_header_bidding_widget.class (modified) (1 diff)
-
includes/adbutler_plugin.class (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
adbutler/trunk/adbutler.php
r2092450 r2161604 5 5 Plugin URI: https://wordpress.org/plugins/adbutler 6 6 Description: AdButler ad management system integration plugin. Simplify deployment of your ad zones with this highly effective manner of deploying your publishing needs 7 Version: 1.2 47 Version: 1.25 8 8 Author: AdButler 9 9 Author URI: http://www.adbutler.com … … 23 23 define( 'ADBUTLER_CACHEURL', ADBUTLER_URLPATH . 'cache/' ); 24 24 define( 'ADBUTLER_ADSERVE_URL','https://adbutler.com/external_request.spark'); 25 define( 'ADBUTLER_PLUGIN_VERSION', '1.2 4');25 define( 'ADBUTLER_PLUGIN_VERSION', '1.25'); 26 26 27 27 -
adbutler/trunk/includes/adbutler_header_bidding_widget.class
r1948203 r2161604 171 171 private function sizes_string_to_array($str) 172 172 { 173 $strArray = explode(',', $str); 174 $strArray = array_filter($strArray, function ($str) { return trim($str) == false; }); 175 return array_map(function ($str) { return explode('x', trim($str)); }, $strArray); 173 $sizes = []; 174 $sizeStrings = explode(',', $str); 175 176 foreach ($sizeStrings as $size) { 177 $sizeParts = explode('x', $size); 178 if (count($sizeParts) === 2) { 179 $sizes[] = [intval($sizeParts[0]), intval($sizeParts[1])]; 180 } 181 } 182 183 return $sizes; 176 184 } 177 185 -
adbutler/trunk/includes/adbutler_plugin.class
r2044052 r2161604 557 557 echo "<script type='text/javascript' src='{$protocol}{$host}/hb_app.js' async></script>"; 558 558 559 wp_enqueue_script('adbutler_hb_init', plugins_url('../js/adbutler_hb_init.js', __FILE__), [], ADBUTLER_PLUGIN_VERSION );559 wp_enqueue_script('adbutler_hb_init', plugins_url('../js/adbutler_hb_init.js', __FILE__), [], ADBUTLER_PLUGIN_VERSION, true); 560 560 561 561 $timeout = intval(get_option('adbutler_hb_timeout')) ?: 700; 562 562 wp_add_inline_script('adbutler_hb_init', "AdButlerHB.timeout = {$timeout};"); 563 563 564 wp_enqueue_script('adbutler_hb_final', plugins_url('../js/adbutler_hb_final.js', __FILE__), ['adbutler_hb_init'], ADBUTLER_PLUGIN_VERSION );564 wp_enqueue_script('adbutler_hb_final', plugins_url('../js/adbutler_hb_final.js', __FILE__), ['adbutler_hb_init'], ADBUTLER_PLUGIN_VERSION, true); 565 565 } 566 566 … … 644 644 return "[{$size[0]}, {$size[1]}]"; 645 645 }, array_merge([$atts['size']], $atts['additional_sizes']))); 646 646 647 $zoneID = $atts['zone_id']; 647 648 $adbutlerID = get_option('adbutler_id'); -
adbutler/trunk/readme.txt
r2044052 r2161604 4 4 Tags: Ad serving, AdButler, Ad Server,Ad Management,Ad Rotation 5 5 Requires at least: 3.3 6 Tested up to: 5. 16 Tested up to: 5.2 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 68 68 69 69 == Changelog == 70 *1.22 Added Async Beta 1.1 tags. Bumped supported WordPress version. 70 *1.25 Fixed header bidding bug. Updated supported WordPress version. 71 *1.22 Added Async Beta 1.1 tags. Updated supported WordPress version. 71 72 *1.21 Fixed resources not loading with https on some configurations. 72 73 *1.20 Removed AdButler key config from dashboard. The key must be configured in the admin settings.
Note: See TracChangeset
for help on using the changeset viewer.