Google AdSense Plugin v0.2

Description
Offer setting for Google AdSense in LifeType.

Installation
Just unpack the pluing zip file to your lifetype plugins folder, then refresh browser in plugins center.
You can find googleadsense plugin installed.

Configuration
1.Enter admin page, goto control center -> Google Adsense.
2.Enable this plugin and fill in you client code, and detial setting for content, suggestion and search of Google AdSense.

Tempalte
1. Content

{if $googleadsense && $googleadsense->isContentEnabled()}
<script type="text/javascript"><!--
google_ad_client = "{$googleadsense->getClient()}";
google_ad_width = {$googleadsense->getContentWidth()};
google_ad_height = {$googleadsense->getContentHeight()};
google_ad_format = "{$googleadsense->getContentFormat()}";
google_ad_type = "{$googleadsense->getContentType()}";
google_ad_channel = "{$googleadsense->getContentChannel()}";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
{/if}

2. Suggestion

{if $googleadsense && $googleadsense->isSuggestionEnabled()}
<script type="text/javascript"><!--
google_ad_client = "{$googleadsense->getClient()}";
google_ad_width = {$googleadsense->getSuggestionWidth()};
google_ad_height = {$googleadsense->getSuggestionHeight()};
google_ad_format = "{$googleadsense->getSuggestionFormat()}";
google_cpa_choice = "{$googleadsense->getSuggestionChoice()}";
google_ad_channel = "{$googleadsense->getSuggestionChannel()}";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
{/if}

3. Search
{if $googleadsense && $googleadsense->isSearchEnabled()}
<!--
copy and paste search code here, just change the client value like
<input type="hidden" name="client" value="{$googleadsense->getClient()}"></input>
-->
{/if}

Of course, you must get a google adsense account first. :P
