ad-debug.php
21 lines
| 1 | <!--noptimize--><script> |
| 2 | // Output script that makes full-screen mode. |
| 3 | if ( typeof advanced_ads_full_screen_debug !== 'function' ) { |
| 4 | function advanced_ads_full_screen_debug( ad ) { |
| 5 | if ( ! ad || ! document.body ) { return; } |
| 6 | |
| 7 | var ad_full = document.createElement( 'div' ); |
| 8 | ad_full.style.cssText = '<?php echo $style_full; ?>'; |
| 9 | ad_full.ondblclick = function() { |
| 10 | this.parentNode.removeChild( this ); |
| 11 | } |
| 12 | ad_full.innerHTML = ad.innerHTML; |
| 13 | document.body.appendChild( ad_full ); |
| 14 | } |
| 15 | } |
| 16 | </script><!--/noptimize--> |
| 17 | <div id="<?php echo $wrapper_id; ?>" style="<?php echo $style; ?>" ondblclick="advanced_ads_full_screen_debug( this );"> |
| 18 | <strong><?php _e( 'Ad debug output', 'advanced-ads' ); ?></strong> |
| 19 | <?php echo '<br /><br />' . implode( '<br /><br />', $content ); ?> |
| 20 | <br /><br /><a style="color: green;" href="<?php echo ADVADS_URL; ?>manual/ad-debug-mode/#utm_source=advanced-ads&utm_medium=link&utm_campaign=ad-debug-mode" target="_blank"><?php _e( 'Find solutions in the manual', 'advanced-ads' ); ?></a> |
| 21 | </div> |