Extension talk:AdsWherever
Add topicAppearance
It would be easier and handier to paste HTML and JavaScript code "as is" using nowdoc that doesn't require quoting:
// Google Adsense Example
$ad['goo1'] = <<<'EOAD'
<div class="thumbnail"><div id="ads">
<script type="text/javascript"><!--
google_ad_client = "Your Publisher ID";
google_ad_slot = "The Ads slot number";
google_ad_width =Â ;
google_ad_height =Â ;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div>
EOAD;
This works starting with PHP 5.3.0. But in older PHP versions using heredoc is still possible too after carefully escaping special characters \ and $ in:
// Google Adsense Example
$ad['goo1'] = <<<EOAD
<div class="thumbnail"><div id="ads">
<script type="text/javascript"><!--
google_ad_client = "Your Publisher ID";
google_ad_slot = "The Ads slot number";
google_ad_width =Â ;
google_ad_height =Â ;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div>
EOAD;
Start a discussion about Extension:AdsWherever
Talk pages are where people discuss how to make content on MediaWiki the best that it can be. You can use this page to start a discussion with others about how to improve Extension:AdsWherever.