Commit d2a1d7c8 authored by Your Name's avatar Your Name

adsence追加

parent 8d1f4072
<?php
/**
* Name: adsence
* Description: Show Ads in Harukin+
* Version: 1.0
* Depends: harukin
* Author: harukin <harukin@haruk.in>
*/
use Zotlabs\Extend\Hook;
function upgrade_info_load(){
Hook::register('conversation_start', 'addon/adsence/adsence.php', 'adsence');
}
function upgrade_info_unload(){
Hook::register('conversation_start', 'addon/adsence/adsence.php', 'adsence');
}
function adsence(&$b){
$b .= "
<script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client:'ca-pub-7579303910483862',
enable_page_level_ads: true
});
</script>";
}
<?php
/**
* Name: testaddon
* Description: testtestaddon
* Version: 1.0
* Depends: Core
* Author: harukin <harukin@plus.haruk.in>
*/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment