From 368edfd5c17f5eab8c2f7147e64f12ca3c160c0e Mon Sep 17 00:00:00 2001 From: Jefferson Silva Date: Fri, 10 Jul 2015 16:40:51 -0300 Subject: [PATCH] Incluindo os arquivos do plugin. --- funifier/funifier-options.php | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ funifier/funifier.php | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ funifier/funifier.png | Bin 0 -> 641 bytes funifier/logo-funifier.png | Bin 0 -> 7151 bytes funifier/readme.txt | 28 ++++++++++++++++++++++++++++ funifier/styles.css | 33 +++++++++++++++++++++++++++++++++ funifier/uninstall.php | 11 +++++++++++ 7 files changed, 217 insertions(+), 0 deletions(-) create mode 100644 funifier/funifier-options.php create mode 100644 funifier/funifier.php create mode 100644 funifier/funifier.png create mode 100644 funifier/logo-funifier.png create mode 100644 funifier/readme.txt create mode 100644 funifier/styles.css create mode 100644 funifier/uninstall.php diff --git a/funifier/funifier-options.php b/funifier/funifier-options.php new file mode 100644 index 0000000..6fb551e --- /dev/null +++ b/funifier/funifier-options.php @@ -0,0 +1,49 @@ + + +
+
+
+
+ + + + + + + + + + + + + + + + + +
>
>
>
+
+ +

+ +

+
+
+ diff --git a/funifier/funifier.php b/funifier/funifier.php new file mode 100644 index 0000000..20c46ea --- /dev/null +++ b/funifier/funifier.php @@ -0,0 +1,96 @@ +ID); + //$first_name = $user_info->first_name; + $user_email = $user_info->user_email; + $funifierHtmlLoginImplicit = " + Funifier.auth.authenticate({ + auth_mode: 'IMPLICIT', + player: '$user_email' + }, function (err, data) { }); + "; + } + + wp_enqueue_script( 'my_custom_script', '//client2.funifier.com/2.0.0/funifier.js' ); + echo '"; +} + +$funifierCheckWidgetAdmin = stripslashes(get_option('funifier-check-widget-admin')); +if($funifierCheckWidgetAdmin){ + add_action( 'admin_enqueue_scripts', 'admin_funifier_js' ); +} + +/** + * Add widget start - Website + */ +function site_funifier_js(){ + $funifierApiKey = stripslashes(get_option('funifier-api-key')); + + wp_enqueue_script( 'my_custom_script', '//client2.funifier.com/2.0.0/funifier.js' ); + echo '"; +} + +$funifierCheckWidgetSite = stripslashes(get_option('funifier-check-widget-site')); +if($funifierCheckWidgetSite){ + add_action( 'wp_enqueue_scripts', 'site_funifier_js' ); +} + +/** + * Add Funifier Menu + */ +add_action('admin_menu', 'funifier_add_menu'); + +?> diff --git a/funifier/funifier.png b/funifier/funifier.png new file mode 100644 index 0000000..bf7a52e Binary files /dev/null and b/funifier/funifier.png differ diff --git a/funifier/logo-funifier.png b/funifier/logo-funifier.png new file mode 100644 index 0000000..d0ac18c Binary files /dev/null and b/funifier/logo-funifier.png differ diff --git a/funifier/readme.txt b/funifier/readme.txt new file mode 100644 index 0000000..183be23 --- /dev/null +++ b/funifier/readme.txt @@ -0,0 +1,28 @@ +=== Funifier === +Plugin Name: Funifier +Plugin URI: http://www.funifier.com +Description: O plugin do Funifier foi criado para integração com o sistema de gamificação da empresa. +Author: Jefferson Alessandro +Author URI: https://plus.google.com/+jeffalessandro/about +Contributors: Caio Lucena +Tags: admin, javascript, gamification, funifier +Version: 1.0 + +O plugin do Funifier foi criado para integração com o sistema de gamificação da empresa. + +== Description == + +Para conhecer mais sobre como gamificar seu site, acesse o site www.funifier.com! + +== Installation == + +1. Faça o upload do arquivo funifer.zip no menu Plugins -> Adicionar Novo; +2. Ative o plugin após a instalação; +3. Edite o contúdo do HTML em Configurações -> Funifier + +== Frequently Asked Questions == + +== Changelog == + += 1.0 = +Release inicial diff --git a/funifier/styles.css b/funifier/styles.css new file mode 100644 index 0000000..fb8795f --- /dev/null +++ b/funifier/styles.css @@ -0,0 +1,33 @@ + diff --git a/funifier/uninstall.php b/funifier/uninstall.php new file mode 100644 index 0000000..8d0cd40 --- /dev/null +++ b/funifier/uninstall.php @@ -0,0 +1,11 @@ +