-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbootstrap.php
47 lines (37 loc) · 968 Bytes
/
bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
namespace AutoListings;
new Plugin( __DIR__ . '/auto-listings.php' );
new Listing\PostType();
new Listing\PostStatuses();
new Listing\Fields();
new Enquiry\PostType();
new Enquiry\Fields();
new Enquiry\ContactForm();
new SearchForm\PostType();
new SearchForm\Ajax();
new Shortcodes();
new Query();
new SearchForm();
new SearchQuery();
new Upgrade\Manager();
if ( is_admin() ) {
new Admin\Main();
new Admin\Assets();
new Admin\SellerColumns();
new Admin\Settings();
new Listing\AdminColumns();
new Enquiry\AdminColumns();
new SearchForm\AdminColumns();
new SearchForm\Editor();
new Updater\Tab();
}
if ( ( ! is_admin() || wp_doing_ajax() ) && ! wp_doing_cron() ) {
new Frontend\Main();
new Frontend\TemplateLoader();
new Frontend\Assets();
new SearchForm\Shortcode\Form();
$control = new SearchForm\Shortcode\Control();
new SearchForm\Shortcode\Field( $control );
new SearchForm\Shortcode\Extras();
new SearchForm\Shortcode\Button();
}