Changeset 324187
- Timestamp:
- 12/18/2010 09:23:41 PM (15 years ago)
- Location:
- ad-wrap/trunk
- Files:
-
- 2 edited
-
ad-wrap.php (modified) (6 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ad-wrap/trunk/ad-wrap.php
r244666 r324187 4 4 Plugin URI: http://www.geekyramblings.net/plugins/ad-wrap 5 5 Description: Simple plugin to wrap text in context ad service tags to identify important context. 6 Version: 0. 57 Tested up to: 3.0. 06 Version: 0.6 7 Tested up to: 3.0.3 8 8 Author: David Gibbs 9 9 Author URI: http://www.geekyramblings.net … … 15 15 $amazon = get_option('ad_wrap_amazon'); 16 16 $kontera = get_option('ad_wrap_kontera'); 17 $infolinks = get_option('ad_wrap_infolinks'); 17 18 18 19 $prefix = ""; 19 20 if ($kontera) { 20 $prefix .=" <div class=\"KonaBody\">";21 $prefix .="\n<div class=\"KonaBody\">"; 21 22 } 22 23 if ($google_adsense) { 23 $prefix .= " <!-- google_ad_section_start -->";24 $prefix .= "\n<!-- google_ad_section_start -->"; 24 25 } 25 if ($ amazon) {26 $prefix .= " <!--Amazon_CLS_IM_START-->";26 if ($infolinks) { 27 $prefix .= "\n<!--INFOLINKS_ON-->"; 27 28 } 28 29 29 30 $sufix = ""; 30 if ($ amazon) {31 $sufix .= " <!--Amazon_CLS_IM_END-->";31 if ($infolinks) { 32 $sufix .= "\n<!--INFOLINKS_OFF-->"; 32 33 } 33 34 if ($google_adsense) { 34 $sufix .= " <!-- google_ad_section_end -->";35 $sufix .= "\n<!-- google_ad_section_end -->"; 35 36 } 36 37 if ($kontera) { 37 $sufix .= " </div>";38 $sufix .= "\n</div> <!-- KonaBody -->"; 38 39 } 39 40 40 return $prefix." <p>".$text.$sufix;41 return $prefix."\n<p>".$text.$sufix."\n"; 41 42 } 42 43 … … 52 53 <li><a href="http://www.google.com/adsense">Google AdSense</a></li> 53 54 <li><a href="http://www.kontera.com/ads-for-site/become-a-kontera-publisher">Kontera ContextLink</a></li> 55 <li><a href="http://www.infolinks.com/signup.html">infolinks</a></li> 54 56 </ul> 55 57 <?php _e('Contact') ?> <a href="mailto:[email protected]">[email protected]</a> <?php _e('to request additional context ad services. Please provide details on how the ad service identifies relevent content (usually with html comments or div sections.') ?> … … 72 74 </td> 73 75 </tr> 76 <tr> 77 <th scope="row" valign="top">infolinks</th> 78 <td> 79 <input id="ad_wrap_infolinks" type="checkbox" name="ad_wrap_infolinks" <?php echo get_option('ad_wrap_infolinks')?'checked=checked':''; ?> /> 80 <label for="ad_wrap_kontera"><?php _e('Check this box to wrap text in') ?> <!--INFOLINKS_ON--> <?php _e('and') ?> <!--INFOLINKS_OFF--></label> 81 </td> 82 </tr> 74 83 </table> 75 84 <p/> 76 85 <b><?php _e('NOTE') ?>:</b> <?php _e('This plug-in does <u>NOT</u> add the code to invoke the actual ad service. It just provides markers to the ad service to identify the important content. Consider using ') ?><a href="http://www.geekyramblings.net/plugins/general-headers/">General Headers</a> <?php _e('to add arbitrary code to the headers and/or footers of your content.') ?> 86 77 87 <p class="submit"> 78 88 <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" /> 79 89 </p> 80 90 <input type="hidden" name="action" value="update" /> 81 <input type="hidden" name="page_options" value="ad_wrap_google_adsense,ad_wrap_kontera "/>91 <input type="hidden" name="page_options" value="ad_wrap_google_adsense,ad_wrap_kontera,ad_wrap_infolinks"/> 82 92 </form> 83 93 </div> … … 99 109 // Clean up the options 100 110 delete_option('ad_wrap_google_adsense'); 101 delete_option('ad_wrap_ amazon');111 delete_option('ad_wrap_infolinks'); 102 112 delete_option('ad_wrap_kontera'); 103 113 } … … 105 115 add_option('ad_wrap_google_adsense', true); 106 116 add_option('ad_wrap_kontera', true); 117 add_option('ad_wrap_infolinks', true); 107 118 add_option('ad_wrap_version', '0.3'); 108 119 add_action('admin_menu', 'ad_wrap_menu'); -
ad-wrap/trunk/readme.txt
r244666 r324187 4 4 Tags: ads, context, monetize 5 5 Requires at least: 2.2.0 6 Tested up to: 3.0 6 Tested up to: 3.0.3 7 7 Stable tag: Trunk 8 8 … … 15 15 16 16 1. Google Adsense 17 3. Kontera ContextLink 17 2. Kontera ContextLink 18 3. Infolinks 18 19 19 20 This plug-in is based on work originally done by John Godley … … 35 36 36 37 == Changelog == 38 39 = 0.6 = 40 * Removed WP Help Center 41 * Added support for infolinks 37 42 38 43 = 0.5 =
Note: See TracChangeset
for help on using the changeset viewer.