Changeset 1183638
- Timestamp:
- 06/18/2015 04:53:02 PM (11 years ago)
- Location:
- adbutler/trunk
- Files:
-
- 5 edited
-
adbutler.php (modified) (1 diff)
-
css/adbutler.css (modified) (1 diff)
-
includes/adbutler_plugin.class (modified) (5 diffs)
-
includes/adbutler_widget.class (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
adbutler/trunk/adbutler.php
r1181213 r1183638 5 5 Plugin URI: http://example.com/wordpress-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.0 87 Version: 1.09 8 8 Author: Sparklit Networks 9 9 Author URI: http://sparklit.com -
adbutler/trunk/css/adbutler.css
r788990 r1183638 23 23 } 24 24 .adbutler-optional{ 25 display:none;25 26 26 } 27 27 -
adbutler/trunk/includes/adbutler_plugin.class
r1179344 r1183638 88 88 'zone_id' => 0, 89 89 'type' => 'asyncjs', 90 'secure'=> false,91 'size' => '300 *250',90 'secure'=> is_ssl(), 91 'size' => '300x250', 92 92 'adbutler_id' => get_option('adbutler_id'), 93 93 'host_name' => get_option('adbutler_host_name'), … … 354 354 } 355 355 356 if (isset($_POST['refresh'])) { 357 check_admin_referer('spark_permission_check', 'nonce_check'); 358 $adbutler_key = get_option('adbutler_key'); 359 if (adbutler_plugin::validate_adbutler_key($adbutler_key)) { 360 echo "<strong style=\"color:darkgreen\">The configuration was refreshed susccesfully</strong>"; 361 } else { 362 echo "<strong style=\"color:red\">The configuration refresh failed. Please enter a new key</strong>"; 363 } 364 } 365 356 366 $adbutler_key = get_option('adbutler_id'); 357 367 echo '<div id="key-form"><form method="post" target="_self">'; … … 388 398 ?> 389 399 <p>A key has been configured with this account.</p> 390 < input type="hidden" name="clear" value="1">391 <button class="button-primary" type=submit>Clear Key</button>400 <button class="button-primary" name="clear" type=submit>Clear Key</button> 401 <button class="button-primary" name="refresh" type=submit>Refresh</button> 392 402 <?php 393 403 } … … 551 561 $protocol = "http://" . $def['host_name']; 552 562 } 563 if (isset($def['extra_data']) && !empty($def['extra_data'])) { 564 $extra = ",extraData:'".$def['extra_data']."'"; 565 } 553 566 ob_start(); 554 567 ?> … … 560 573 var plc<?php echo $zone_id?> = window.plc<?php echo $zone_id?> || 0; 561 574 document.write('<'+'div id="placement_<?php echo $zone_id?>_'+plc<?php echo $zone_id?>+'"></'+'div>'); 562 AdButler.ads.push({handler: function(opt){ AdButler.register(<?php echo $MID?>,<?php echo $zone_id?>, [<?php echo $size[0]?>,<?php echo $size[1]?>], 'placement_<?php echo $zone_id?>_'+opt.place, opt); }, opt: { place: plc<?php echo $zone_id?>++, keywords: abkw ,domain: '<?php echo $def['secure']? $def['ssl_host_name']: $def['host_name']?>' }});575 AdButler.ads.push({handler: function(opt){ AdButler.register(<?php echo $MID?>,<?php echo $zone_id?>, [<?php echo $size[0]?>,<?php echo $size[1]?>], 'placement_<?php echo $zone_id?>_'+opt.place, opt); }, opt: { place: plc<?php echo $zone_id?>++, keywords: abkw <?php echo empty($extra)?'':$extra?>,domain: '<?php echo $def['secure']? $def['ssl_host_name']: $def['host_name']?>' }}); 563 576 </script> 564 577 <?php -
adbutler/trunk/includes/adbutler_widget.class
r1040829 r1183638 42 42 break; 43 43 } 44 $instance['secure'] = isset($new_instance['secure']) ? 1 : 0;44 $instance['secure']= $new_instance['secure']; 45 45 if(preg_match('^\d+x\d+$^',$new_instance['size'])) 46 46 $instance['size'] = $new_instance['size']; … … 165 165 166 166 <p class="adbutler-optional" title="Select Secure to enable SSL based Ad serving. Note this should only be chosen for secure sites"> 167 <input id="<?php echo $this->get_field_id('secure'); ?>" type="checkbox" value="1" 168 name=" 169 <?php echo $this->get_field_name('secure'); ?>" <?php checked($secure, 1); ?>> 170 <label 171 for="<?php echo $this->get_field_id('secure'); ?>"><?php _e('Secure', 'spark_domain'); ?></label> 167 <input class="checkbox" type="checkbox" <?php checked($instance['secure'], 'on'); ?> id="<?php echo $this->get_field_id('secure'); ?>" name="<?php echo $this->get_field_name('secure'); ?>" /> 168 <label for="<?php echo $this->get_field_id('secure'); ?>"><?php _e('Secure', 'spark_domain'); ?></label> 169 </p> 172 170 </p> 173 171 174 172 <p class="adbutler-optional" title="Enter extra data to be passed along in your request. This requires configuration of your zones through AdButler"> 175 173 <label for="<?php echo $this->get_field_id('extra_data'); ?>"><?php _e('Extra Data', 'spark_domain'); ?></label> 176 <input id="<?php echo $this->get_field_id('extra_data'); ?>" maxlength="60"177 name="<?php echo $this->get_field_name('extra_data'); ?>" value="<?php echo $extra_data ?>"174 <input id="<?php echo $this->get_field_id('extra_data'); ?>" 175 name="<?php echo $this->get_field_name('extra_data'); ?>" class="widefat" value="<?php echo $extra_data ?>" 178 176 /></p> 179 177 <?php if (isset($instance['adtag'])): ?> -
adbutler/trunk/readme.txt
r1181213 r1183638 74 74 1. 07 Added Support for shortcodes 75 75 1. 08 Fixed development bug 76 1. 09 Added Secure Tags and Refresh Settings 76 77 77 78 == Upgrade notice == 78 79 79 Added the ability to embed shortcodes within in posts80 Added the ability to refresh tag config and Secure tag type 80 81 81 82
Note: See TracChangeset
for help on using the changeset viewer.