Changeset 2236006
- Timestamp:
- 01/30/2020 07:21:34 PM (6 years ago)
- Location:
- adbutler/trunk
- Files:
-
- 4 edited
-
adbutler.php (modified) (2 diffs)
-
includes/adbutler_plugin.class (modified) (3 diffs)
-
includes/adbutler_widget.class (modified) (6 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
adbutler/trunk/adbutler.php
r2161604 r2236006 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 57 Version: 1.26 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 5');25 define( 'ADBUTLER_PLUGIN_VERSION', '1.26'); 26 26 27 27 -
adbutler/trunk/includes/adbutler_plugin.class
r2161604 r2236006 103 103 $this, 104 104 'enqueue_blog_scripts' 105 )106 );107 add_action(108 'admin_footer', array(109 $this,110 'setup_js_params'111 105 ) 112 106 ); … … 270 264 public function enqueue_admin_scripts($hook) 271 265 { 272 wp_ enqueue_script(266 wp_register_script( 273 267 'adbutler_script', plugins_url("../js/adbutler.js", __FILE__), array( 274 'jquery-ui-button', 275 'jquery', 276 'jquery-ui-spinner', 277 ), ADBUTLER_PLUGIN_VERSION, true 278 ); 279 280 wp_enqueue_style('adbutler_css', plugins_url('../css/adbutler.css', __FILE__), [], ADBUTLER_PLUGIN_VERSION); 281 } 282 283 public function setup_js_params() 284 { 268 'jquery-ui-button', 269 'jquery', 270 'jquery-ui-spinner', 271 ), ADBUTLER_PLUGIN_VERSION, true 272 ); 273 285 274 $params = array( 286 275 'widgetID' => 'adbutler', … … 290 279 291 280 wp_localize_script('adbutler_script', 'adbutlerParams', $params); 281 282 wp_enqueue_script('adbutler_script'); 283 284 wp_enqueue_style('adbutler_css', plugins_url('../css/adbutler.css', __FILE__), [], ADBUTLER_PLUGIN_VERSION); 292 285 } 293 286 -
adbutler/trunk/includes/adbutler_widget.class
r2044052 r2236006 139 139 <p title="Please select from one of the available zones to configure your advertisement placement."> 140 140 <label 141 for="<?php echo $this->get_field_id('zone'); ?>"><?php _e('Zone', 'spark_domain'); ?></label>141 for="<?php echo $this->get_field_id('zone'); ?>"><?php _e('Zone', 'spark_domain'); ?></label> 142 142 <div id="adbutler_refresh_button"><input class="button button-secondary button-small" value="Refresh zones" 143 143 onclick="adbutler.populate_zone_lists(true)"></div> … … 157 157 class="adbutler_type_wrap adbutler_type_fixed"> 158 158 <label 159 for="<?php echo $this->get_field_id('type_fixed'); ?>"><?php _e('Type', 'spark_domain'); ?></label>159 for="<?php echo $this->get_field_id('type_fixed'); ?>"><?php _e('Type', 'spark_domain'); ?></label> 160 160 <select class="adbutler_type_select widefat" 161 161 id="<?php echo $this->get_field_id('type_fixed'); ?>" … … 171 171 class="adbutler_type_wrap adbutler_type_responsive" style="display:none;"> 172 172 <label 173 for="<?php echo $this->get_field_id('type_responsive'); ?>"><?php _e('Type', 'spark_domain'); ?></label>173 for="<?php echo $this->get_field_id('type_responsive'); ?>"><?php _e('Type', 'spark_domain'); ?></label> 174 174 <select class="adbutler_type_select widefat" 175 175 id="<?php echo $this->get_field_id('type_responsive'); ?>" … … 194 194 title="Enter extra data to be passed along in your request. This requires configuration of your zones through AdButler."> 195 195 <label 196 for="<?php echo $this->get_field_id('extra_data'); ?>"><?php _e('Extra Data', 'spark_domain'); ?></label>196 for="<?php echo $this->get_field_id('extra_data'); ?>"><?php _e('Extra Data', 'spark_domain'); ?></label> 197 197 <input id="<?php echo $this->get_field_id('extra_data'); ?>" 198 198 name="<?php echo $this->get_field_name('extra_data'); ?>" class="widefat" … … 215 215 </div> 216 216 217 <?php if ($instance): ?>218 217 <script type="text/javascript"> 219 218 jQuery(function () { 219 adbutler.populate_zone_lists(); 220 220 adbutler.update_all_lists(); 221 221 }); 222 222 </script> 223 <?php endif;223 <?php 224 224 } 225 225 … … 233 233 { 234 234 extract($args); 235 echo $before_widget;236 235 if (array_key_exists('adtag', $instance)) { 237 236 echo $instance['adtag']; 238 237 } 239 echo $after_widget;240 238 } 241 239 } 242 -
adbutler/trunk/readme.txt
r2161604 r2236006 24 24 = Special Considerations = 25 25 26 The Ad butler Plugin communicates with the Adbutler servers under two circumstances.26 The AdButler Plugin communicates with the AdButler servers under two circumstances. 27 27 1. When the AdButler Wordpress key is entered, a server to server call is made validating the key and storing basic adserving information for use in generating the tags. 28 28 1. During the creation and use of any widgets. At this point the widget makes a AJAX/jsonp call to the AdButler server requesting the current publishers and zones associated with the current account. … … 68 68 69 69 == Changelog == 70 *1.26 Fixed editing widget in customize mode 70 71 *1.25 Fixed header bidding bug. Updated supported WordPress version. 71 72 *1.22 Added Async Beta 1.1 tags. Updated supported WordPress version. … … 89 90 *1.04 Fixed widgets on customize appearance page. 90 91 *1.03 Fixed some connection issues. 91 92 == Upgrade notice ==93 94 Async Beta 1.1 tags are now supported.95 96 97
Note: See TracChangeset
for help on using the changeset viewer.