PluginProbe
Webling / 3.4.0
Webling v3.4.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.4.0, at webling.php

63 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.4.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/shortcodes/webling_memberlist.php');
35 require_once(WEBLING_PLUGIN_DIR . '/src/shortcodes/webling_form.php');
36 require_once(WEBLING_PLUGIN_DIR . '/src/WeblingAPI/WeblingApiHelper.php');
37 require_once(WEBLING_PLUGIN_DIR . '/src/WeblingAPI/WordpressCache.php');
38
39
40 // Setup / Upgrade
41 define('WEBLING_DB_VERSION', 6);
42 register_activation_hook( __FILE__ , 'webling_plugin_setup');
43 register_deactivation_hook( __FILE__ , 'webling_plugin_deactivate');
44 register_uninstall_hook( __FILE__ , 'webling_plugin_uninstall');
45 add_action('plugins_loaded', 'webling_plugin_update_check');
46
47
48 // Load Admin
49 if (is_admin()){
50 require_once(WEBLING_PLUGIN_DIR . '/src/admin/admin.php');
51 }
52
53
54 // Register Shortcodes
55 add_shortcode('webling_memberlist', ['webling_memberlist_shortcode', 'handler']);
56 add_shortcode('webling_form', ['webling_form_shortcode', 'handler']);
57
58 // Shortcode submit handler
59 add_action('init', 'webling_form_submit');
60
61 // Add webling css
62 add_action('wp_head', 'webling_custom_css');
63