| 1 |
<?php |
| 2 |
|
| 3 |
/* Copyright 2014 PressApps |
| 4 |
|
| 5 |
This program is free software; you can redistribute it and/or modify |
| 6 |
it under the terms of the GNU General Public License, version 2, as |
| 7 |
published by the Free Software Foundation. |
| 8 |
|
| 9 |
This program is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
GNU General Public License for more details. |
| 13 |
|
| 14 |
You should have received a copy of the GNU General Public License |
| 15 |
along with this program; if not, write to the Free Software |
| 16 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 |
*/ |
| 18 |
|
| 19 |
/** |
| 20 |
* @file |
| 21 |
* Main file of the "PressApps Plugin Framework" |
| 22 |
* |
| 23 |
* The file loads the core files if not already done inside another plugin, |
| 24 |
* then it loads the options defined in the options folder. |
| 25 |
* |
| 26 |
* @package pressapps-admin-framework |
| 27 |
*/ |
| 28 |
|
| 29 |
/** |
| 30 |
* Load the framework core if not done inside another plugin |
| 31 |
*/ |
| 32 |
if ( ! defined( 'PAF' ) ) { |
| 33 |
include dirname( __FILE__ ) . '/core/core.php'; |
| 34 |
} |
| 35 |
|
| 36 |
/** |
| 37 |
* Use sample data if $skelet_use_sample_data evaluates to true |
| 38 |
*/ |
| 39 |
if ( K::get_var( 'skelet_use_sample_data' ) ) { |
| 40 |
skelet_dir( dirname( __FILE__ ) . '/sample-data/' ); |
| 41 |
} |
| 42 |
|