Changeset 1948203
- Timestamp:
- 09/27/2018 06:45:42 PM (8 years ago)
- Location:
- adbutler/trunk
- Files:
-
- 5 edited
-
adbutler.php (modified) (2 diffs)
-
includes/adbutler_admin_settings.class (modified) (8 diffs)
-
includes/adbutler_header_bidding_widget.class (modified) (1 diff)
-
js/adbutler.js (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
adbutler/trunk/adbutler.php
r1947600 r1948203 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.1 77 Version: 1.18 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.1 7');25 define( 'ADBUTLER_PLUGIN_VERSION', '1.18'); 26 26 27 27 -
adbutler/trunk/includes/adbutler_admin_settings.class
r1947600 r1948203 291 291 292 292 <th> 293 <label class="adbutler-input-label" for="adbutler_type_select ">293 <label class="adbutler-input-label" for="adbutler_type_select_fixed"> 294 294 <?php _e('Delivery Method', 'spark_domain'); ?> 295 295 </label> … … 300 300 <label> 301 301 <select class="adbutler_type_select" 302 id="adbutler_type_select "303 name="adbutler_type_select "302 id="adbutler_type_select_fixed" 303 name="adbutler_type_select_fixed" 304 304 <?php disabled(!$enabled); ?>> 305 305 <?php foreach ($fixed_type_list as $k => $v) { … … 314 314 type="checkbox" 315 315 <?php checked($secure, 'on'); ?> 316 id="adbutler_secure "317 name="adbutler_secure "316 id="adbutler_secure_fixed" 317 name="adbutler_secure_fixed" 318 318 <?php disabled(!$enabled); ?> 319 319 /> … … 330 330 <th> 331 331 <label class="adbutler-input-label" 332 for="adbutler_type_select ">332 for="adbutler_type_select_responsive"> 333 333 <?php _e('Delivery Method', 'spark_domain'); ?> 334 334 </label> … … 337 337 <td> 338 338 <fieldset> 339 <select class="adbutler_type_select" 340 id="adbutler_type_select" 341 name="adbutler_type_select" 339 <label> 340 <select class="adbutler_type_select" 341 id="adbutler_type_select_responsive" 342 name="adbutler_type_select_responsive" 342 343 disabled> 343 344 <?php foreach ($responsive_type_list as $k => $v) { … … 346 347 <?php } ?> 347 348 </select> 349 </label> 348 350 <br> 349 351 <label> … … 351 353 type="checkbox" 352 354 <?php checked($secure, 'on'); ?> 353 id="adbutler_secure "354 name="adbutler_secure "355 id="adbutler_secure_responsive" 356 name="adbutler_secure_responsive" 355 357 <?php disabled(!$enabled); ?> 356 358 /> … … 479 481 if ($_POST['adbutler_interval_ads_enable'] === 'on') { 480 482 update_option(adbutler_interval_ads::OPTION_ZONE_ID, $_POST['adbutler_zone_select']); 481 update_option(adbutler_interval_ads::OPTION_SECURE, $_POST['adbutler_secure']);482 update_option(adbutler_interval_ads::OPTION_TYPE, $_POST['adbutler_type_select']);483 483 update_option(adbutler_interval_ads::OPTION_EXTRA_DATA, $_POST['adbutler_extra_data']); 484 484 update_option(adbutler_interval_ads::OPTION_CSS_CLASSES, $_POST['adbutler_css_classes']); 485 485 update_option(adbutler_interval_ads::OPTION_SIZE, $_POST['adbutler_size_hidden']); 486 486 update_option(adbutler_interval_ads::OPTION_NAME, $_POST['adbutler_name_hidden']); 487 update_option(adbutler_interval_ads::OPTION_RESPONSIVE, $_POST['adbutler_responsive_hidden']); 487 488 $responsive = $_POST['adbutler_responsive_hidden']; 489 update_option(adbutler_interval_ads::OPTION_RESPONSIVE, $responsive); 490 491 if ($responsive === 'FIXED') { 492 update_option(adbutler_interval_ads::OPTION_SECURE, $_POST['adbutler_secure_fixed']); 493 update_option(adbutler_interval_ads::OPTION_TYPE, $_POST['adbutler_type_select_fixed']); 494 } else { 495 update_option(adbutler_interval_ads::OPTION_SECURE, $_POST['adbutler_secure_responsive']); 496 update_option(adbutler_interval_ads::OPTION_TYPE, $_POST['adbutler_type_select_responsive']); 497 } 488 498 489 499 $nth_post = $_POST['adbutler_nth_post'] >= 1 ? $_POST['adbutler_nth_post'] : 1; -
adbutler/trunk/includes/adbutler_header_bidding_widget.class
r1947600 r1948203 172 172 { 173 173 $strArray = explode(',', $str); 174 $strArray = array_filter($strArray, function ($str) { return !empty(trim($str)); });174 $strArray = array_filter($strArray, function ($str) { return trim($str) == false; }); 175 175 return array_map(function ($str) { return explode('x', trim($str)); }, $strArray); 176 176 } -
adbutler/trunk/js/adbutler.js
r1947600 r1948203 16 16 } 17 17 18 if ($('.adbutler_widget ').length > 0 ||($("[id^='customize-control-widget_adbutler-']"))) {18 if ($('.adbutler_widget, .adbutler_settings').length > 0 ||($("[id^='customize-control-widget_adbutler-']"))) { 19 19 adbutler.populate_zone_lists(); 20 20 } … … 39 39 handle_zone_select: function (selectEl) { 40 40 var $select = $(selectEl), 41 $widget = $select.parents('.adbutler_widget '),41 $widget = $select.parents('.adbutler_widget, .adbutler_settings'), 42 42 $selected = $select.find('option:selected'), 43 43 zone_id = $selected.val(); … … 121 121 }); 122 122 $select.append(o.join('')); 123 adbutler.handle_zone_select($select[0]); 123 124 }); 124 125 -
adbutler/trunk/readme.txt
r1947600 r1948203 68 68 69 69 == Changelog == 70 *1.17 Added support for header bidding ads. Header bidding ads can now be added as a widget or shortcode. Interval ads can now be targetted at specific pages. 70 *1.18 Bug and compatibility fixes. 71 *1.17 Added support for header bidding ads. Header bidding ads can now be added as a widget or shortcode. Interval ads can now be targeted at specific pages. 71 72 *1.16 Fixed a CSS caching issue. 72 73 *1.15 You now have the option of displaying an ad between posts. Configure this in AdButler > Interval Ads. … … 86 87 == Upgrade notice == 87 88 88 Added support for header bidding ads. Interval ads can now be target ted at specific pages.89 Added support for header bidding ads. Interval ads can now be targeted at specific pages. 89 90 90 91
Note: See TracChangeset
for help on using the changeset viewer.