PluginProbe
Webling / 3.1.2
Webling v3.1.2
trunk 2.0 3.0 3.0.1 3.0.2 3.0.3 3.1.0 3.1.1 3.1.2 3.2.0 3.2.1 3.3.0 3.4.0 3.4.1 3.5.0 3.6.0 3.7.0 3.7.1 3.7.2 3.7.3 3.8.0 3.9.0 3.9.1 3.9.2
webling / webling.php

webling.php in Webling 3.1.2, at webling.php

62 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Webling
4 Plugin URI: https://www.webling.eu
5 Description: Mitgliederdaten aus der Vereinssoftware webling.eu auf deiner Webseite anzeigen.
6 Version: 3.1.2
7 Author: uSystems GmbH
8 Author URI: http://www.usystems.ch
9 */
10
11 /*
12 Webling (Wordpress Plugin)
13 Copyright (C) 2014 uSystems GmbH
14 Contact me at http://www.usystems.ch
15 */
16
17 // Make sure we don't expose any info if called directly
18 defined('ABSPATH') or die('.');
19
20 define('WEBLING_PLUGIN_FILE_NAME', 'webling/webling.php');
21 define('WEBLING_PLUGIN_DIR', __DIR__);
22
23
24 // Load Vendor Libs
25 require_once(WEBLING_PLUGIN_DIR . '/vendor/autoload.php');
26
27 require_once(WEBLING_PLUGIN_DIR . '/src/setup/deactivate.php');
28 require_once(WEBLING_PLUGIN_DIR . '/src/setup/setup.php');
29 require_once(WEBLING_PLUGIN_DIR . '/src/setup/uninstall.php');
30 require_once(WEBLING_PLUGIN_DIR . '/src/actions/webling_custom_css.php');
31 require_once(WEBLING_PLUGIN_DIR . '/src/actions/webling_clear_cache.php');
32 require_once(WEBLING_PLUGIN_DIR . '/src/actions/webling_form_submit.php');
33 require_once(WEBLING_PLUGIN_DIR . '/src/shortcodes/webling_memberlist.php');
34 require_once(WEBLING_PLUGIN_DIR . '/src/shortcodes/webling_form.php');
35 require_once(WEBLING_PLUGIN_DIR . '/src/WeblingAPI/WeblingApiHelper.php');
36 require_once(WEBLING_PLUGIN_DIR . '/src/WeblingAPI/WordpressCache.php');
37
38
39 // Setup / Upgrade
40 define('WEBLING_DB_VERSION', 4);
41 register_activation_hook( __FILE__ , 'webling_plugin_setup');
42 register_deactivation_hook( __FILE__ , 'webling_plugin_deactivate');
43 register_uninstall_hook( __FILE__ , 'webling_plugin_uninstall');
44 add_action('plugins_loaded', 'webling_plugin_update_check');
45
46
47 // Load Admin
48 if (is_admin()){
49 require_once(WEBLING_PLUGIN_DIR . '/src/admin/admin.php');
50 }
51
52
53 // Register Shortcodes
54 add_shortcode('webling_memberlist', ['webling_memberlist_shortcode', 'handler']);
55 add_shortcode('webling_form', ['webling_form_shortcode', 'handler']);
56
57 // Shortcode submit handler
58 add_action('init', 'webling_form_submit');
59
60 // Add webling css
61 add_action('wp_head', 'webling_custom_css');
62