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