classes
4 weeks ago
css
4 weeks ago
functions
4 weeks ago
js
4 weeks ago
views
4 weeks ago
README.md
4 weeks ago
bootstrapper.php
4 weeks ago
changelog.txt
4 weeks ago
index.php
4 weeks ago
bootstrapper.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | /* |
| 8 | * Foo Plugin Base Bootsrapper |
| 9 | * Includes all the files needed for the Foo Plugin Base framework |
| 10 | * |
| 11 | * Version: 2.1 |
| 12 | * Author: Brad Vincent |
| 13 | * Author URI: https://fooplugins.com |
| 14 | * License: GPL2 |
| 15 | */ |
| 16 | |
| 17 | //include the framework |
| 18 | require_once 'classes/class-foo-plugin-base.php'; |
| 19 | |
| 20 | //include other classes we need |
| 21 | require_once 'classes/class-foo-plugin-options.php'; |
| 22 | require_once 'classes/class-foo-plugin-textdomain.php'; |
| 23 | require_once 'classes/class-foo-friendly-dates.php'; |
| 24 | require_once 'classes/class-foo-plugin-file-locator.php'; |
| 25 | |
| 26 | //include classes we need in the admin |
| 27 | if ( is_admin() ) { |
| 28 | require_once 'classes/class-foo-plugin-settings.php'; |
| 29 | require_once 'classes/class-foo-plugin-metabox-sanity.php'; |
| 30 | } |
| 31 | |
| 32 | //include all functions we need |
| 33 | require_once 'functions/arrays.php'; |
| 34 | require_once 'functions/general.php'; |
| 35 | require_once 'functions/screen.php'; |
| 36 | require_once 'functions/strings.php'; |
| 37 | require_once 'functions/dates.php'; |
| 38 |