PluginProbe
Download Manager Addons for Elementor / trunk
Download Manager Addons for Elementor vtrunk
trunk 1.0.5 1.2.3 1.2.5 1.3.0
wpdm-elementor / src / includes.php

includes.php in Download Manager Addons for Elementor trunk, at src/includes.php

46 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * File includes for WPDM Elementor plugin.
5 *
6 * If Composer autoload is available, use it.
7 * Otherwise, fall back to manual includes.
8 */
9
10 $composer_autoload = dirname(__DIR__) . '/vendor/autoload.php';
11
12 if (file_exists($composer_autoload)) {
13 require_once $composer_autoload;
14 } else {
15 // Manual includes (fallback when Composer is not used)
16 include_once dirname(__DIR__) . '/src/constants.php';
17 include_once dirname(__DIR__) . '/src/helper-functions.php';
18
19 // Base widget class (must be loaded before other widgets)
20 include_once dirname(__DIR__) . '/src/widgets/BaseWidget.php';
21
22 // Widget classes
23 include_once dirname(__DIR__) . '/src/widgets/AllPackagesWidget.php';
24 include_once dirname(__DIR__) . '/src/widgets/CategoryWidget.php';
25 include_once dirname(__DIR__) . '/src/widgets/DirectLinkWidget.php';
26 include_once dirname(__DIR__) . '/src/widgets/FrontendWidget.php';
27 include_once dirname(__DIR__) . '/src/widgets/LoginFormWidget.php';
28 include_once dirname(__DIR__) . '/src/widgets/PackagesWidget.php';
29 include_once dirname(__DIR__) . '/src/widgets/PackageWidget.php';
30 include_once dirname(__DIR__) . '/src/widgets/RegFormWidget.php';
31 include_once dirname(__DIR__) . '/src/widgets/SearchResultWidget.php';
32 include_once dirname(__DIR__) . '/src/widgets/TagWidget.php';
33 include_once dirname(__DIR__) . '/src/widgets/UserDashboardWidget.php';
34 include_once dirname(__DIR__) . '/src/widgets/UserProfileWidget.php';
35 }
36
37
38
39
40
41
42
43
44
45
46