summaryrefslogtreecommitdiff
path: root/smartyplugins/function.adsense.php
blob: 83eee91d9ba5746ad09594ecba20d555ee138fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 * 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.";
	}
}
?>