PluginProbe
Webling / 3.9.2
Webling v3.9.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.9.2, at webling.php

70 lines 2.3 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.9.2
7 Author: uSystems GmbH
8 Author URI: http://www.usystems.ch
9 Text Domain: webling
10 License: GPLv2 or later
11 License URI: https://www.gnu.org/licenses/gpl-2.0.html
12 */
13
14 /*
15 Webling (Wordpress Plugin)
16 Copyright (C) 2014 uSystems GmbH
17 Contact me at http://www.usystems.ch
18 */
19
20 // Make sure we don't expose any info if called directly
21 defined('ABSPATH') or die('.');
22
23 define('WEBLING_PLUGIN_FILE_NAME', 'webling/webling.php');
24 define('WEBLING_PLUGIN_DIR', __DIR__);
25
26
27 // Load Vendor Libs
28 require_once(WEBLING_PLUGIN_DIR . '/vendor/autoload.php');
29
30 require_once(WEBLING_PLUGIN_DIR . '/src/setup/deactivate.php');
31 require_once(WEBLING_PLUGIN_DIR . '/src/setup/setup.php');
32 require_once(WEBLING_PLUGIN_DIR . '/src/setup/uninstall.php');
33 require_once(WEBLING_PLUGIN_DIR . '/src/actions/webling_custom_css.php');
34 require_once(WEBLING_PLUGIN_DIR . '/src/actions/webling_clear_cache.php');
35 require_once(WEBLING_PLUGIN_DIR . '/src/actions/webling_form_submit.php');
36 require_once(WEBLING_PLUGIN_DIR . '/src/actions/webling_rest_api.php');
37 require_once(WEBLING_PLUGIN_DIR . '/src/shortcodes/webling_memberlist.php');
38 require_once(WEBLING_PLUGIN_DIR . '/src/shortcodes/webling_form.php');
39 require_once(WEBLING_PLUGIN_DIR . '/src/helpers/WeblingMemberlistHelper.php');
40 require_once(WEBLING_PLUGIN_DIR . '/src/helpers/WeblingApiHelper.php');
41 require_once(WEBLING_PLUGIN_DIR . '/src/WeblingAPI/WordpressCacheAdapter.php');
42
43
44 // Setup / Upgrade
45 define('WEBLING_DB_VERSION', 8);
46 register_activation_hook( __FILE__ , 'webling_plugin_setup');
47 register_deactivation_hook( __FILE__ , 'webling_plugin_deactivate');
48 register_uninstall_hook( __FILE__ , 'webling_plugin_uninstall');
49 add_action('plugins_loaded', 'webling_plugin_update_check');
50
51
52 // Load Admin
53 if (is_admin()){
54 require_once(WEBLING_PLUGIN_DIR . '/src/admin/admin.php');
55 }
56
57
58 // Register Shortcodes
59 add_shortcode('webling_memberlist', ['webling_memberlist_shortcode', 'handler']);
60 add_shortcode('webling_form', ['webling_form_shortcode', 'handler']);
61
62 // Shortcode submit handler
63 add_action('init', 'webling_form_submit');
64
65 // Add webling css
66 add_action('wp_head', 'webling_custom_css');
67
68 // Add api image proxy
69 add_action( 'rest_api_init', 'webling_register_rest_api');
70