| 1 |
<?php |
| 2 |
|
| 3 |
namespace Carbon_Fields; |
| 4 |
|
| 5 |
# Define version constant |
| 6 |
if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) { |
| 7 |
define( __NAMESPACE__ . '\VERSION', '3.6.5' ); |
| 8 |
} |
| 9 |
|
| 10 |
# Define root directory |
| 11 |
if ( ! defined( __NAMESPACE__ . '\DIR' ) ) { |
| 12 |
define( __NAMESPACE__ . '\DIR', __DIR__ ); |
| 13 |
} |
| 14 |
|
| 15 |
# Define root URL |
| 16 |
if ( ! defined( __NAMESPACE__ . '\URL' ) ) { |
| 17 |
define( __NAMESPACE__ . '\URL', Carbon_Fields::directory_to_url( \Carbon_Fields\DIR ) ); |
| 18 |
} |
| 19 |
|
| 20 |
# Define whether to compact input fields into a single one to avoid hitting max_input_vars |
| 21 |
if ( ! defined( __NAMESPACE__ . '\COMPACT_INPUT' ) ) { |
| 22 |
define( __NAMESPACE__ . '\COMPACT_INPUT', true ); |
| 23 |
} |
| 24 |
|
| 25 |
# Define whether to compact input fields into a single one to avoid hitting max_input_vars |
| 26 |
if ( ! defined( __NAMESPACE__ . '\COMPACT_INPUT_KEY' ) ) { |
| 27 |
define( __NAMESPACE__ . '\COMPACT_INPUT_KEY', 'carbon_fields_compact_input' ); |
| 28 |
} |
| 29 |
|