summaryrefslogtreecommitdiff
path: root/smartyplugins/function.adsense.php
diff options
context:
space:
mode:
Diffstat (limited to 'smartyplugins/function.adsense.php')
-rw-r--r--smartyplugins/function.adsense.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/smartyplugins/function.adsense.php b/smartyplugins/function.adsense.php
new file mode 100644
index 0000000..83eee91
--- /dev/null
+++ b/smartyplugins/function.adsense.php
@@ -0,0 +1,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.";
+ }
+}
+?>