| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 1.0.2 Free | |
| 4 | + * @version 2.0.10 Free | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <info@fireplugins.com> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | - * @copyright Copyright © 2021 FirePlugins All Rights Reserved | |
| 8 | + * @copyright Copyright © 2023 FirePlugins All Rights Reserved | |
| 9 | 9 | * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | namespace FireBox\Core\Admin\Forms; |
| @@ -16,9 +16,8 @@ | ||
| 16 | 16 | exit; // Exit if accessed directly. |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | use FireBox\Core\Helpers\BoxHelper; |
| 20 | -use FireBox\Core\FB\Box; | |
| 21 | 20 | |
| 22 | 21 | class FireBox |
| 23 | 22 | { |
| 24 | 23 | /** |
| @@ -36,9 +35,9 @@ | ||
| 36 | 35 | 'show_tab_title' => true, |
| 37 | 36 | 'data' => [ |
| 38 | 37 | 'design' => (new FireBox\Design())->getSettings(), |
| 39 | 38 | 'behavior' => (new FireBox\Behavior())->getSettings(), |
| 40 | - 'publishing_assignments' => (new FireBox\Assignments())->getSettings(), | |
| 39 | + 'display_conditions' => (new FireBox\DisplayConditions())->getSettings(), | |
| 41 | 40 | 'actions' => (new FireBox\Actions())->getSettings(), |
| 42 | 41 | 'advanced' => (new FireBox\Advanced())->getSettings() |
| 43 | 42 | ] |
| 44 | 43 | ]; |
| @@ -53,17 +52,17 @@ | ||
| 53 | 52 | */ |
| 54 | 53 | public static function getBindData() |
| 55 | 54 | { |
| 56 | 55 | // get box meta from a template |
| 57 | - $box = BoxHelper::getBoxFromTemplate(); | |
| 56 | + $box = BoxHelper::getBoxFromTemplateURL(); | |
| 58 | 57 | |
| 59 | - if (!empty($box)) | |
| 58 | + if (isset($box['template'])) | |
| 60 | 59 | { |
| 61 | - return $box->params; | |
| 60 | + return $box['template']['params']; | |
| 62 | 61 | } |
| 63 | 62 | |
| 64 | 63 | // get box meta from existing item |
| 65 | - $meta = Box::getMeta(get_the_ID()); | |
| 64 | + $meta = \FireBox\Core\Helpers\BoxHelper::getMeta(get_the_ID()); | |
| 66 | 65 | |
| 67 | 66 | if (empty($meta)) |
| 68 | 67 | { |
| 69 | 68 | return []; |