PluginProbe
Webling / 3.6.0
Webling v3.6.0
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.6.0, at webling.php

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