summaryrefslogtreecommitdiff
path: root/smartyplugins/function.adsense.php
blob: e4e31ed37d9c632710096e34e31bcd654e867fe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
namespace Bitweaver\Plugins;

/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
* smarty_function_adsense
*/
function smarty_function_adsense( $params, &$gBitSmarty ) {
	global $gBitSystem, $gLibertySystem;
	if( $gBitSystem->isFeatureActive( 'liberty_plugin_status_dataadsense' ) ) {
		echo data_adsense( '', $params );
	} else {
		echo "You need to activate the adsense liberty plugin to use this.";
	}
}